-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
✨ use dynamic thumbnails in GrapherImage #3746
Conversation
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-06-25 22:51:39 UTC |
e75c5c4
to
d888248
Compare
Note: I've just pushed a commit to master that uses more reasonable font sizes for this (6214343), because I've just realized that fonts are a big toooo big here :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is definitely a positive!
For whatever reason I don't see the "interactionNotice" here, but that's not too bad because with JS disabled, they can't really interact either way.
If you feel like it, you could let grapher / data pages handle query params using the CF Worker ;) but that's very much non-trivial...
TODO: improve the CSS for the failure case, and fix the spacing for the interaction notice |
This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected. |
@marcelgerber taking a bit of this "cooldown" to look at this again. I feel like no one would miss the interaction notice if we got rid of it? 🤔 |
I feel like it is still serving a purpose (for static previews on mobile, in particular), namely that there is an interactive version of this exact chart available if you click through. On the other hand, it doesn't really serve a good purpose for no-JS cases, and will only lead to confusion in that case. Not sure if we can easily hide it in that case? |
This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected. |
33e2964
to
1200c3e
Compare
This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected. |
Resolves #3661
Decided to go with an overload to support these 2 cases:
Seemed better than converting all the slugs to full URLs but I'm happy to change it if we don't like the overload pattern.
GrapherImage
usage:gdocs/blocks/Charts.tsx
- worksGrapherPage.tsx
- worksGrapherWithFallback.tsx
- worksRelatedChart.tsx
- worksAllChartsListItem.tsx
- worksDynamicCollection.tsx
- n/a, needs JS to functionStaticCollection.tsx
- n/a, needs JS to function