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-2922 remove time stamp on homepage #637

Merged
merged 10 commits into from
Oct 18, 2024

Conversation

farosFreed
Copy link
Contributor

@farosFreed farosFreed commented Oct 18, 2024

Connected to APPS-2922

Component Updated: CardMeta.vue

Stories: ~/stories/SectionWrapper.stories.js

Notes:

The main issue was the theme !== undefined check, which was meant to return false on the library-website-nuxt site. However, during testing I realized the site has a theme now, set to ''. So the undefined check was being passed and the time was rendering when it wasn't meant to. To fix this I made cardmeta explicitly check for ftva theme to show the time.

While testing this locally in library-website-nuxt, I noticed that we now had 2 dates showing (screenshot below). This is because of the postDate changes we made 15ish days ago that had not yet been updated on the library-website-nuxt site. To prevent this, I added a check to BlockCardWithImage to only pass the postDate when we are using the ftva theme.
Screenshot 2024-10-18 at 9 37 37 AM

Finally I added a story to SectionWrapper with the same data and theme setup as the library site homepage so this bug can be checked for.

Lastly, Our previous default stories without theme injections should maybe be updated everywhere - as they are no longer accurate. Should I do that as part of this ticket (add 'theme = '' to all default stories)?

Checklist:

  • I checked that it is working locally in the dev server
  • 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
  • [ ] UX has reviewed and approved this
  • I assigned this PR to someone on the dev team to review
  • I used a conventional commit message
  • I assigned myself to this PR

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-637 October 18, 2024 00:12 Inactive
@farosFreed farosFreed self-assigned this Oct 18, 2024
@farosFreed farosFreed added the fix label Oct 18, 2024
@github-actions github-actions bot temporarily deployed to storybook--pull_request-637 October 18, 2024 00:18 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-637 October 18, 2024 03:38 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-637 October 18, 2024 16:44 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-637 October 18, 2024 18:04 Inactive
@farosFreed farosFreed marked this pull request as ready for review October 18, 2024 18:12
@github-actions github-actions bot temporarily deployed to storybook--pull_request-637 October 18, 2024 18:13 Inactive
@github-actions github-actions bot temporarily deployed to storybook--pull_request-637 October 18, 2024 21:03 Inactive
@farosFreed farosFreed merged commit f1c6e49 into main Oct 18, 2024
9 checks passed
@farosFreed farosFreed deleted the APPS-2922_remove_time_stamp_on_homepage branch October 18, 2024 22:09
pghorpade pushed a commit that referenced this pull request Oct 18, 2024
## [3.29.5](v3.29.4...v3.29.5) (2024-10-18)

### Bug Fixes

* Apps-2922 remove time stamp on homepage ([#637](#637)) ([f1c6e49](f1c6e49))
@pghorpade
Copy link
Contributor

🎉 This PR is included in version 3.29.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

pghorpade pushed a commit that referenced this pull request Oct 22, 2024
* test: trying to recreate

* fix: time on ucla homepage

* chore: cleanup debugging mess, add test

* fix: prevent datecreated in default

* fix: undefined theme case

* fix: computed method for theme logic

* fix: closing tag

---------

Co-authored-by: Jess Divers <[email protected]>
Co-authored-by: JenDiamond <[email protected]>
pghorpade pushed a commit that referenced this pull request Oct 22, 2024
## [3.29.5](v3.29.4...v3.29.5) (2024-10-18)

### Bug Fixes

* Apps-2922 remove time stamp on homepage ([#637](#637)) ([f1c6e49](f1c6e49))
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.

4 participants