-
-
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
Data page: About this data (& refactor shared components) #2853
Conversation
6615f3c
to
67c29e3
Compare
0b22570
to
4022482
Compare
80bdf07
to
ccb1889
Compare
9304695
to
1d93632
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 work! The components are so much tidier now, love it :)
I have one comment about prefering not to switch to an enum - otherwise this is good to ship!
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; |
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.
This looks interesting but exceeds my CSS understanding. What does this do?
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 this is code I copied over. It makes it so, that the content doesn't wrap into a new line. Instead, if the content overflows, three dots "..." are added at the end of the line
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 work! The components are so much tidier now, love it :)
I have one comment about prefering not to switch to an enum - otherwise this is good to ship!
@danyx23 Ah, I think for now we're referring to indicators as "variables" in code. Should I rename the components to use "Variable" instead of "Indicator" or should we just start using both terms interchangeably? |
264ba0e
to
7aa4e9f
Compare
Yeah this is a bit tricky. I think when communicating to the user it should always be Indicator. In the database etc it will be Variable for a long time probably. For cases like components it's a bit open. I'd say let's use both and for entirely new components like here use Indicator? |
sounds good to me! thanks for the quick review, Daniel! |
97d642c
to
30fa0f7
Compare
30fa0f7
to
f5dd3c4
Compare
02cea62
to
cc073f0
Compare
f5dd3c4
to
2aabaea
Compare
…up all available space
f3666b5
to
2943fbe
Compare
2623efa
to
bc6a0b5
Compare
Description
Implements the redesigned About this data section and refactors shared data page components.
About this data section:
unit
,additionalInfo
and the indicator'stitle
Refactor:
<IndicatorBrief />
is split into two components,<IndicatorKeyData />
and<IndicatorDescriptions />
(makes it a little easier for the sources modal)metadataHelpers.ts
in the utils folderOther changes:
Open questions