-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Datahub] [Resdesign] Header section #765
Conversation
Affected libs:
|
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.
Thank you, this looks good already! :-)
Only some minor comments.
apps/datahub/src/app/record/header-record/header-record.component.html
Outdated
Show resolved
Hide resolved
libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts
Outdated
Show resolved
Hide resolved
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.
Thanks for the clean adaptions @cmoinier! There are still some details that don't exactly match the mockups. Could you have a second check on that? Some I see at first glance are:
- the margin/padding below the "Geographical dataset" etc. line should be slightly larger
- background color of language switcher should be primary
- letter spacing of "BACK" should be wider
- should the time of last update be displayed? (It is not included in mockups)
- the date is not formatted as in mockups (which is not french btw) and not localized. We should eventually pass the current locale to toLocaleString().
I'm also wondering if there is a specific reason why we need to reload the page when switching the language (cc @fgravin)? The line does not come from this PR, but its effect is visible here.
apps/datahub/src/app/record/header-record/header-record.component.html
Outdated
Show resolved
Hide resolved
libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts
Outdated
Show resolved
Hide resolved
Thanks @Angi-Kinas & @tkohr for your helpful reviews 🙂 I made the following changes :
|
It is because changing the language has many consequences <hich are not handled internally:
|
to me this is 2 different things, cf my comments in Slack |
apps/datahub/src/app/record/header-record/header-record.component.ts
Outdated
Show resolved
Hide resolved
libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html
Outdated
Show resolved
Hide resolved
Thanks for all the adaptions @cmoinier! The date formats adapts well when switching the language on my side 👍 When using the geo2france config (
Maybe it'd be nice to add some e2e tests as well. |
apps/datahub/src/app/record/header-record/header-record.component.html
Outdated
Show resolved
Hide resolved
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.
Thanks for the continued effort on this @cmoinier ! I let you apply the last suggested change and then it LGTM.
…ent.html Co-authored-by: tkohr <[email protected]>
This PR applies the redesign of the header section, namely :
To do :
This is NOT COVERED (will be in another PR):
To test
Dataset
/dataset/01491630-78ce-49f3-b479-4b30dabc4c69
has all of the needed parameters of the design.Screenshot