Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 (admin) data insight index page / TAS-845 #4490

Open
wants to merge 26 commits into
base: gdoc-di-props
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0ee4aa2
🎉 (admin) add data insight index page
sophiamersmann Jan 24, 2025
f4c38e9
🎉 (admin) add chart type to data insight index page
sophiamersmann Jan 24, 2025
b284846
🎉 (admin) add image preview to data insight index page
sophiamersmann Jan 24, 2025
632d3d5
🎉 (admin) filter by publication status
sophiamersmann Jan 25, 2025
9a562f0
🔨 rename narrative-view to narrative-chart
sophiamersmann Jan 27, 2025
84627ac
✨ (admin) add icons
sophiamersmann Jan 25, 2025
e6443ec
🔨 simplify
sophiamersmann Jan 27, 2025
654b091
🐛 deduplicate data insight entries
sophiamersmann Jan 27, 2025
8a5a252
🔨 add grapher-url validation
sophiamersmann Jan 27, 2025
e7a1d08
🎉 (admin) add data insight gallery
sophiamersmann Jan 27, 2025
9a37f13
✨ make preview image in gallery slightly smaller
sophiamersmann Jan 27, 2025
a310356
🐛 fix narrative chart edit link
sophiamersmann Jan 27, 2025
14f3124
🔨 add react key for table rows
sophiamersmann Jan 27, 2025
e32fa53
💄 fix eslint
sophiamersmann Jan 27, 2025
86ba6d5
🔨 use admin context
sophiamersmann Jan 28, 2025
fd2a856
🔨 refactor query
sophiamersmann Jan 29, 2025
b32b113
✨ make topic tags column more narrow
sophiamersmann Jan 29, 2025
a4ecd9c
✨ copy filename to clipboard
sophiamersmann Jan 28, 2025
c12d2dd
✨ add image border
sophiamersmann Jan 29, 2025
4199c5b
🔨 cleanup
sophiamersmann Jan 29, 2025
5dd945a
🔨 use kebap case for admin route
sophiamersmann Feb 7, 2025
8b20d68
🎉 add select for chart type
sophiamersmann Feb 7, 2025
d4404b4
🔨 don't trim grapher url
sophiamersmann Feb 7, 2025
54a9d04
🔨 move chart detection into ChartUtils
sophiamersmann Feb 7, 2025
613e40b
✨ add link to published data insight
sophiamersmann Feb 7, 2025
91bdd81
🔨 validate the first block in a di to be an image
sophiamersmann Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions adminSiteClient/AdminApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { IndicatorChartEditorPage } from "./IndicatorChartEditorPage.js"
import { ChartViewEditorPage } from "./ChartViewEditorPage.js"
import { ChartViewIndexPage } from "./ChartViewIndexPage.js"
import { ImageIndexPage } from "./ImagesIndexPage.js"
import { DataInsightIndexPage } from "./DataInsightIndexPage.js"

@observer
class AdminErrorMessage extends React.Component<{ admin: Admin }> {
Expand Down Expand Up @@ -337,6 +338,10 @@ export class AdminApp extends React.Component<{
</GdocsStoreProvider>
)}
/>
<Route
path="/data-insights"
component={DataInsightIndexPage}
/>
<Route
exact
path="/test"
Expand Down
6 changes: 6 additions & 0 deletions adminSiteClient/AdminSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
faSitemap,
faPanorama,
faImage,
faLightbulb,
} from "@fortawesome/free-solid-svg-icons"

import { ETL_WIZARD_URL } from "../settings/clientSettings.js"
Expand All @@ -38,6 +39,11 @@ export const AdminSidebar = (): React.ReactElement => (
<FontAwesomeIcon icon={faPanorama} /> Narrative charts
</Link>
</li>
<li>
<Link to="/data-insights">
<FontAwesomeIcon icon={faLightbulb} /> Data insights
sophiamersmann marked this conversation as resolved.
Show resolved Hide resolved
</Link>
</li>
<li>
<Link to="/posts">
<FontAwesomeIcon icon={faFile} /> Posts
Expand Down
Loading