Skip to content
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

fix(date-time-picker): ux bug fixes and improvements #4875

Merged
merged 21 commits into from
Oct 31, 2024

Conversation

mizgaionutalexandru
Copy link
Contributor

@mizgaionutalexandru mizgaionutalexandru commented Oct 29, 2024

Description

Bugs fixed:

  • deleting a year of a defined date makes the calendar no longer display the current one
  • the calendar selects a year in the 1900s when the DTP has a year with 2- digits
  • calendar's previous month button increases the year if the year is 1
  • the year can't be deleted on safari without changing the focus back and forth on the year segment
  • Bengali(India) year is not formatted on increment/decrement showing arabic numerals
  • warnings were shown outside of dev-mode

UX improvements:

  • Calendar month navigation buttons are now disabled when reaching the end of an era
  • Calendar now always displays the initial month in a place where dates are available
  • Calendar now closes when the disabled attribute is changed
  • The year segment no longer has a min-width

Also, some methods were moved around inside the Calendar.ts source file to improve readability.

Related issue(s)

How has this been tested?

Unit tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

Copy link

Branch preview

Visual regression test results

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

Copy link

github-actions bot commented Oct 29, 2024

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.99 0.99 0.99
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 228.438 kB 217.147 kB 217.132 kB 🏆
Scripts 57.688 kB 52.537 kB 52.50 kB 🏆
Stylesheet 34.596 kB 30.132 kB 30.102 kB 🏆
Document 6.239 kB 5.458 kB 🏆 5.496 kB
Font 126.898 kB 126.606 kB 🏆 126.615 kB

Request Count

Category Latest Main Branch
Total 52 52 52
Scripts 41 41 41
Stylesheet 5 5 5
Document 1 1 1
Font 2 2 2

@mizgaionutalexandru mizgaionutalexandru marked this pull request as ready for review October 29, 2024 10:24
@mizgaionutalexandru mizgaionutalexandru requested a review from a team as a code owner October 29, 2024 10:24
@mizgaionutalexandru mizgaionutalexandru merged commit b6670f1 into feature/date-time-picker Oct 31, 2024
54 of 57 checks passed
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