-
-
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
Add data download handling for multi-dims #4495
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -265,10 +269,10 @@ export function constructReadme( | |||
|
|||
const downloadDate = formatDate(new Date()) // formats the date as "October 10, 2024" | |||
if (isSingleColumn) | |||
readme = `# ${grapher.title} - Data package | |||
readme = `# ${grapher.displayTitle} - Data package |
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.
grapher.title
is undefined for mdims. The title we show in the UI gets set after we fetch the indicator metadata, so we have to use grapher.displayTitle
. This should be safe also for normal graphers, since we return grapher.title
from grapher.displayTitle
, if it exists.
@@ -295,6 +299,9 @@ export const MultiDimDataPageContent = ({ | |||
const grapherConfigComputed = useMemo(() => { | |||
const baseConfig: GrapherProgrammaticInterface = { | |||
bounds, | |||
bakedGrapherURL: BAKED_GRAPHER_URL, |
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.
We need this for constructing the URLs we show in the downloads modal.
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!
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2025-01-28 11:06:53 UTC |
080c5e9
to
41f7052
Compare
Resolves #4457