-
-
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
Build sources modal from shared components #2877
Conversation
1de66ea
to
7d4deab
Compare
264ba0e
to
7aa4e9f
Compare
196b226
to
7ebe22e
Compare
97d642c
to
30fa0f7
Compare
7ebe22e
to
eccd36e
Compare
30fa0f7
to
f5dd3c4
Compare
8e7f596
to
e292ab1
Compare
f5dd3c4
to
2aabaea
Compare
e292ab1
to
792938c
Compare
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.
Very nice! I had a few detail questions, but overall this is ready to go IMHO.
I saw that you used css variables in a few places which I don't think we use much so far - I have no opinion on this, but maybe worth chatting about in a grapher hour or so just to make sure we use the same tools for the same kinds of problems.
return source.description || | ||
source.citation || | ||
source.dataPublishedBy ? ( | ||
<ExpandableToggle |
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.
I wonder if we should show this section expanded if we are in the "About this data" overlay? The data page is pretty long and shows a lot of stuff so the collapsed section makes sense, but if you want to see the sources then why make users click once more? I'm not 100% sure this is the best way forward but this is my hunch.
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.
I think having the sources collapsed by default makes sense. Some of these fields can be quite long, e.g. click on "Bolt and van Zanden" in this chart. If that's the case the collapsed view gives a good overview of all sources in use.
2aabaea
to
202ef03
Compare
2b6a2f6
to
49dcc0a
Compare
2623efa
to
bc6a0b5
Compare
a2673ce
to
9332bb1
Compare
Description
Builds sources modal from shared components.
Handling of metadata:
description
refers to all sourcesOther changes:
Known bugs: