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

🎉 Explorers index page #4175

Merged
merged 4 commits into from
Nov 27, 2024
Merged

🎉 Explorers index page #4175

merged 4 commits into from
Nov 27, 2024

Conversation

ikesau
Copy link
Member

@ikesau ikesau commented Nov 15, 2024

image

A very simple explorer index page that a few of us at OWID have been missing. It also gives the homepage "See all our Data Explorers" link somewhere useful to go to.

We'll possibly update these cards to look the same as the cards on the homepage once Marwa has some time to design the rest of the tag icons that we'd need.

@owidbot
Copy link
Contributor

owidbot commented Nov 15, 2024

Quick links (staging server):

Site Admin Wizard Docs

Login: ssh owid@staging-site-explorer-index-page

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2024-11-15 16:29:56 UTC
Execution time: 1.20 seconds

@ikesau ikesau force-pushed the explorer-index-page branch from 0d8e9f1 to c4c196d Compare November 25, 2024 18:02
@ikesau ikesau requested a review from rakyi November 25, 2024 18:03
@ikesau ikesau marked this pull request as ready for review November 25, 2024 18:03
knex: KnexReadonlyTransaction
): Promise<string> => {
const explorersBySlug = await getPublishedExplorersBySlug(knex)
const explorers = Object.values(explorersBySlug).sort((a, b) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't really matter here, but in general it's usually better for perf to do the sorting in the DB in the same query.

@ikesau ikesau merged commit a9a022c into master Nov 27, 2024
24 checks passed
@ikesau ikesau deleted the explorer-index-page branch November 27, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants