Skip to content

News Site Next#426

Closed
flashdesignory wants to merge 10 commits into
WebKit:mainfrom
flashdesignory:fix/news-site-next
Closed

News Site Next#426
flashdesignory wants to merge 10 commits into
WebKit:mainfrom
flashdesignory:fix/news-site-next

Conversation

@flashdesignory

Copy link
Copy Markdown
Contributor

This fixes next.js issue: #422
A separate pr for Nuxt will do the same.

The fix here is to add unique ids to any article content that is a list.
This is done in the actual data files, so no need for the app to generate them at any point.

@kara

@camillobruni camillobruni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Generally LGTM: might be worth adding a little test to check for consistency across languages and uniqueness of IDs within a language.

@flashdesignory

Copy link
Copy Markdown
Contributor Author

yes, absolutely!
Tests are needed and will come in a future PR at some point.

@julienw julienw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good to me, thanks for the fix.
One more thing: in section.jsx you can use article.id instead of concatenating the section id with index.

@rniwa

rniwa commented Sep 4, 2024

Copy link
Copy Markdown
Member

Do we have before/after numbers?

@flashdesignory

Copy link
Copy Markdown
Contributor Author

Do we have before/after numbers?

here's a snapshot

browser before after
chrome 72.27 70.27
firefox 77.47 72.43
safari 54.03 57.47

@rniwa

rniwa commented Sep 4, 2024

Copy link
Copy Markdown
Member

Is that runtime or pts?

@flashdesignory

Copy link
Copy Markdown
Contributor Author

Is that runtime or pts?

we're displaying runtime in the detail screen, right?

@flashdesignory

Copy link
Copy Markdown
Contributor Author

@rniwa - any concerns to merge this?

@flashdesignory

Copy link
Copy Markdown
Contributor Author

closing in favor of: #447

@flashdesignory flashdesignory deleted the fix/news-site-next branch April 21, 2025 17:42
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.

4 participants