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

feat: APPS-2910 assemble event series page #39

Merged
merged 18 commits into from
Sep 17, 2024

Conversation

farosFreed
Copy link
Contributor

@farosFreed farosFreed commented Sep 6, 2024

Connected to APPS-2910

Page/Pages Created/updated: [slug].vue

Notes:

Styles:
For the first page I added most styles directly to the page, including some global variables.
Because we are reusing a lot of these styles across pages, I have moved reused styles to global.scss to prevent duplication and keep things DRY

MOBILE:
The mockups for this page show complex behavior for the sidebar content (the previously sticky sidebar needs to split into 2 distinct content blocks and slot into 2 different areas in the column). This work is not 100% done, and will be continued in this ticket https://uclalibrary.atlassian.net/browse/APPS-2946

BLOCKCARDTHREECOLUMN:
Fixed in this commit
Currently the links do not work, I believe this is because of the way card-meta implements links using formatLinkTarget, this will likely need to be fixed next week as it cannot be fixed from the page side.

Time Report:

This took me 10-12 hours to build this.

Checklist:

  • I added github label for semantic versioning
  • I double checked it looks like the designs
  • I completed any required mobile breakpoint styling
  • I completed any required hover state styling
  • I included a working spec file
  • I added notes above about how long it took to build this component
  • UX has reviewed this PR
  • I assigned this PR to someone to review

@farosFreed farosFreed self-assigned this Sep 6, 2024
Copy link

github-actions bot commented Sep 6, 2024

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/ftva-website-nuxt/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

github-actions bot commented Sep 6, 2024

🚀 Deployed on https://deploy-preview-39--test-ftva.netlify.app

@github-actions github-actions bot temporarily deployed to pull_request-39 September 6, 2024 23:38 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 10, 2024 22:39 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 11, 2024 00:12 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 11, 2024 23:24 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 12, 2024 00:26 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 12, 2024 19:23 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 12, 2024 22:29 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 12, 2024 22:42 Inactive
@farosFreed farosFreed marked this pull request as ready for review September 13, 2024 17:58
@farosFreed farosFreed marked this pull request as draft September 13, 2024 19:10
@farosFreed farosFreed marked this pull request as ready for review September 13, 2024 22:58
@github-actions github-actions bot temporarily deployed to pull_request-39 September 13, 2024 22:59 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 13, 2024 23:21 Inactive
return upcomingEvents.value.map((item, index) => {
return {
...item,
image: item.image[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Make it fail safe:
image: item.image && item.image.length > 0 ? item.image[0] : null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

return pastEvents.value.map((item, index) => {
return {
...item,
image: item.image[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Make it fail safe:
image: item.image && item.image.length > 0 ? item.image[0] : null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

return []

let otherSeries = otherSeriesUpcoming.value.concat(otherSeriesOngoing.value)
// Get first 3 events
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to further filter the array by removing current series like
// Return series without the page's featured event otherSeries = otherSeries.filter(({ to }) => !to.includes(route.params.slug) )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@github-actions github-actions bot temporarily deployed to pull_request-39 September 16, 2024 23:34 Inactive
…d upcomming events cards, also needed to add to and parent-tiltle to navbreadcrum for event slug due to to bug in nav-breadcrumb
@github-actions github-actions bot temporarily deployed to pull_request-39 September 17, 2024 00:48 Inactive
@github-actions github-actions bot temporarily deployed to pull_request-39 September 17, 2024 01:09 Inactive
Copy link
Contributor

@pghorpade pghorpade left a comment

Choose a reason for hiding this comment

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

👍 well done

@pghorpade pghorpade merged commit 45fdb14 into main Sep 17, 2024
8 checks passed
@pghorpade pghorpade deleted the APPS-2910_assemble_event_series_page branch September 17, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants