Skip to content

PB-442: change timeslider css for partial data#823

Merged
ltshb merged 6 commits intodevelopfrom
feat-PB-442-css-change-timeslider-partial-data
May 22, 2024
Merged

PB-442: change timeslider css for partial data#823
ltshb merged 6 commits intodevelopfrom
feat-PB-442-css-change-timeslider-partial-data

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented May 6, 2024

We changed the color of the time slider bar when there is only partial data.
We also added a tippy on hovering the time slider bar, telling us which color is used for which state (no data, partial data, full data)
We also added a small correction to a german translation where a capitalized i shouldn't have been capitalized.

Test link with data

Test link

@ltkum ltkum requested a review from pakb May 6, 2024 12:33
@ltkum ltkum force-pushed the feat-PB-442-css-change-timeslider-partial-data branch from c1bf160 to d7894b4 Compare May 6, 2024 12:34
@cypress
Copy link

cypress bot commented May 6, 2024

Passing run #2238 ↗︎

0 206 20 0 Flakiness 0

Details:

PB-442: Fixed timeslider tippy
Project: web-mapviewer Commit: 0cee27fad8
Status: Passed Duration: 05:11 💡
Started: May 22, 2024 5:48 AM Ended: May 22, 2024 5:53 AM

Review all test suite changes for PR #823 ↗︎

@ltkum ltkum force-pushed the feat-PB-442-css-change-timeslider-partial-data branch from d7894b4 to 320d059 Compare May 7, 2024 10:04
@ltkum ltkum changed the title Feat-PB-442: css change timeslider partial data PB-442: css change timeslider partial data May 13, 2024
@ltkum ltkum changed the title PB-442: css change timeslider partial data PB-442: change timeslider css for partial data May 13, 2024
@ltkum ltkum requested a review from ltshb May 14, 2024 06:41
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perso I would make the tippy simpler as currently
image
I would use kind of legend way having a list of square with the color and next to it the meaning.

@ltkum ltkum force-pushed the feat-PB-442-css-change-timeslider-partial-data branch 2 times, most recently from 393494e to 5ee6629 Compare May 14, 2024 14:47
@ltkum ltkum requested a review from ltshb May 17, 2024 07:45
"time_hide": "Disable representation of data time stamps.",
"time_select_year": "Select a year",
"time_show": "Enable representation of data time stamps.",
"time_slider_legend_tippy_intro": "The time slider displays different colours depending on whether the time layers have data for the selected year or not.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the UI we never talk about layer but about map so we should keep this nomenclature in help text.

The time slider displays different colors depending on whether the maps have data for the year or not.

For German and Italian, @hansmannj and @Luke252 can maybe help and also check english 😉 . For french a proposal that can be double check by you and @pakb

Le curseur de temps affiche différentes couleurs selon si les cartes temporelles disposent de données ou non.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ltshb I checked and compared the IT and EN versions with the rest. Hope it's clear ;)

@ltkum ltkum requested review from Luke252 and ltshb May 21, 2024 14:20
"drawing_attached": "Zeichnung als Anhang hinzugefügt"
"drawing_attached": "Zeichnung als Anhang hinzugefügt",
"switch_tooltip_attached_to_feature": "Tooltip an Geometrie anhängen",
"switch_tooltip_floating": "Eine schwebende Tooltip verwenden",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Einen schwebenden

Comment on lines +682 to +683
"3d_vegetation_active": "Entferne Vegetationen",
"3d_vegetation_inactive": "Vegetationen hinzufügen",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use the singular "Vegetation" here in both cases

@ltkum ltkum force-pushed the feat-PB-442-css-change-timeslider-partial-data branch from c99ab98 to f2d2904 Compare May 21, 2024 14:45
@hansmannj
Copy link
Member

Most of my comments are gone, I'll try to remember and re-write them 😉

@ltkum ltkum force-pushed the feat-PB-442-css-change-timeslider-partial-data branch 2 times, most recently from 91e4512 to c9d2fe7 Compare May 21, 2024 15:46
@ltshb ltshb force-pushed the feat-PB-442-css-change-timeslider-partial-data branch from c9d2fe7 to a3abf21 Compare May 22, 2024 05:34
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I allowed myself to do some improvement on the tippy and rebased.

placement: 'bottom',
delay: [1500, 500],
allowHTML: true,
followCursor: 'horizontal',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After trying out, I find the folowCursor: 'initial' better here.

ltkum and others added 6 commits May 22, 2024 07:43
The striped bar was not satisfactory for conveying that there was only partial data available. Thus we now use a lighter shade of the primary color and added a tooltip to explain what the color means.
Part 1 : We fix the css here

PB-442: update tippy translations
Tippy needs to be destroyed. Also avoid duplicate tippy content in code.

For better readability use vue template for the complex tippy content.

Fix margin issue with the play button introduced by `mx-1` class.

Improve tippy content by adding some margin and padding.
@ltshb ltshb force-pushed the feat-PB-442-css-change-timeslider-partial-data branch from a3abf21 to 0cee27f Compare May 22, 2024 05:44
@ltshb ltshb merged commit 58a693d into develop May 22, 2024
@ltshb ltshb deleted the feat-PB-442-css-change-timeslider-partial-data branch May 22, 2024 06:58
@cypress cypress bot mentioned this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants