Skip to content

Fix the label formatting for annual datasets #1114

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

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

dzole0311
Copy link
Collaborator

Related Ticket: #1113

Description of Changes

The change fixes the label formatting of the timeline view and the datepicker labels when selecting annual datasets. The labels should show only in yyyy instead of MM yyyy format when annual datasets are the lowest common denominator selected.

Notes & Questions About Changes

{Add additonal notes and outstanding questions here related to changes in this pull request}

Validation / Testing

  • Add a dataset with annual time density and verify that the timeline view labels and the datepicker labels show only the year
  • Add datasets with month time density, and verify that now the labels show the month and the year
  • The rest should work as before (date picker shows the appropriate calendar view)

Copy link

netlify bot commented Aug 20, 2024

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 73b5d20
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/66c45cc06a8b430008a16204
😎 Deploy Preview https://deploy-preview-1114--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.

Copy link
Collaborator

@hanbyul-here hanbyul-here left a comment

Choose a reason for hiding this comment

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

Thanks for handling this issue 🙇

@dzole0311 dzole0311 merged commit a249701 into main Aug 20, 2024
8 checks passed
@dzole0311 dzole0311 deleted the 1113-annual-dataset-label-format-fix branch August 20, 2024 14:59
dzole0311 added a commit that referenced this pull request Aug 20, 2024
**Related Ticket:** #1113

### Description of Changes
The change fixes the label formatting of the timeline view and the
datepicker labels when selecting annual datasets. The labels should show
only in `yyyy` instead of `MM yyyy` format when annual datasets are the
lowest common denominator selected.

### Notes & Questions About Changes
_{Add additonal notes and outstanding questions here related to changes
in this pull request}_

### Validation / Testing

- Add a dataset with annual time density and verify that the timeline
view labels and the datepicker labels show only the year
- Add datasets with month time density, and verify that now the labels
show the month and the year
- The rest should work as before (date picker shows the appropriate
calendar view)
dzole0311 added a commit that referenced this pull request Aug 20, 2024
**Related Ticket:** #1113

### Description of Changes
The change fixes the label formatting of the timeline view and the
datepicker labels when selecting annual datasets. The labels should show
only in `yyyy` instead of `MM yyyy` format when annual datasets are the
lowest common denominator selected.

### Notes & Questions About Changes
_{Add additonal notes and outstanding questions here related to changes
in this pull request}_

### Validation / Testing

- Add a dataset with annual time density and verify that the timeline
view labels and the datepicker labels show only the year
- Add datasets with month time density, and verify that now the labels
show the month and the year
- The rest should work as before (date picker shows the appropriate
calendar view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants