NASA-IMPACT / veda-ui

Frontend for the Dashboard Evolution project
Other
25 stars 5 forks source link

Timeline date selection centering functionality #1181

Closed snmln closed 1 month ago

snmln commented 2 months ago

Related Ticket: https://github.com/orgs/NASA-IMPACT/projects/17/views/6?pane=issue&itemId=74641280

Description of Changes

{Update with description of changes made in this pull request}

Notes & Questions About Changes

This ticket introduces centerTimelineOnSelections function.

Validation / Testing

Navigate to exploration and select a data set. This functionality should only center when dates are selected from the date selector at the top. No centering functionality should be visible when a date in the timeline is selected via the click and drag interface.

Single date selection: Select a date that is outside of the current timeline view from the date picker. The timeline should pan to have that newly selected date now centered in the timeline.

Comparison date selection: Select a date that is outside of the current timeline view from the date picker. The timeline should pan & zoom to have that newly selected date range now centered in the timeline.

Select an 'A' date that is later in time than the existing 'B' date and then pan should still center around the 2 items.

netlify[bot] commented 2 months ago

Deploy Preview for veda-ui ready!

Name Link
Latest commit d5ec2249267277b70d7d7d109873f61b6ccf1bc5
Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/66fea712a7c9730008cbc045
Deploy Preview https://deploy-preview-1181--veda-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.