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: APPS-2972 Reformat dates to exclude the leading zero on single digit dates #638

Conversation

jendiamond
Copy link
Member

@jendiamond jendiamond commented Oct 18, 2024

Connected to APPS-2972

Notes:

  • src/utils/formatEventDay.js
    • update the format to have no leading zero on single digit days
  • src/stories/SectionTeaserList.stories.js
    +.update this story to contain a date with a single digit

Checklist:

  • I checked that it is working locally in the storybook
  • I checked that it is working locally in the
    library-website-nuxt dev server
  • I added a screenshot of it working

Screenshot 2024-10-18 at 9 37 36 AM

@jendiamond jendiamond added the fix label Oct 18, 2024
@jendiamond jendiamond self-assigned this Oct 18, 2024
Copy link
Contributor

Percy Screenshots

In order to conserve our percy screenshot allowance, percy is not configured to run automatically. Please make sure the PR is ready and all other checks are passing, then start it manually:

  1. Visit https://github.com/UCLALibrary/ucla-library-website-components/actions/workflows/percy.yml 2. Click the 'Run workflow' button in the blue bar. 3. Select the correct branch for this PR and click 'Run workflow' again to confirm.

Copy link
Contributor

github-actions bot commented Oct 18, 2024

@github-actions github-actions bot temporarily deployed to storybook--pull_request-638 October 18, 2024 16:28 Inactive
Copy link
Contributor

@farosFreed farosFreed left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-10-18 at 3 31 13 PM I am concerned the BlockClippedDate default styles will be impacted by this. Please either revert the change to the shared util file and format the date directly in your component as needed, OR add a story for BlockClippedDate that adds a date starting with 0 and make sure it looks OK

src/utils/formatEventDay.js Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to storybook--pull_request-638 October 22, 2024 16:54 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-638 October 22, 2024 17:33 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-638 October 22, 2024 17:39 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-638 October 22, 2024 19:09 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-638 October 22, 2024 19:23 Inactive
Copy link
Contributor

@farosFreed farosFreed left a comment

Choose a reason for hiding this comment

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

Looks great, nice work 🥳

@farosFreed farosFreed merged commit 76b7155 into main Oct 22, 2024
9 checks passed
@farosFreed farosFreed deleted the APPS-2972_reformat-dates-to-exclude-the-leading-zero-on-single-digit-dates branch October 22, 2024 20:20
pghorpade pushed a commit that referenced this pull request Oct 22, 2024
## [3.29.7](v3.29.6...v3.29.7) (2024-10-22)

### Bug Fixes

* APPS-2972   Reformat dates to exclude the leading zero on single digit dates ([#638](#638)) ([76b7155](76b7155))
@pghorpade
Copy link
Contributor

🎉 This PR is included in version 3.29.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants