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: rebuild Location page #435

Merged
merged 1 commit into from
Nov 5, 2022
Merged

feat: rebuild Location page #435

merged 1 commit into from
Nov 5, 2022

Conversation

yosevu
Copy link
Contributor

@yosevu yosevu commented Oct 30, 2022

This pull request addresses issue #414.

What changed?

  • chore: ignore declaration-block-no-redundant-longhand-properties Stylelint rule due to low-priority issue.
  • refactor: restructure components
  • test: add basic LocationPage tests
  • fix: correct static asset paths
  • refactor: rename LocationOverview and review-overview to LocationDetails
  • fix: pass location id only state to LocationPage and load locations data on LocationPage
  • refactor: use map for initial locations data structure for easy lookups on LocationPage
  • refactor: alias Window Location type as WindowLocation to prevent conclicts with Sparkeats Location
  • refactor: update imageURL logic to differentiate Review and Location image placeholders.
  • refactor: use useLocations hook

Impacts

  • Home Page
  • Locations data

How did you test the changes?

  • Writing automated Cypress end-to-end tests based on specifications Sparkeats Specifications #407
  • Manual navigation
  • Resolve build and browser console errors

Screenshots

Screenshot 2022-11-05 at 11 01 48 AM

Screenshot 2022-11-05 at 11 02 03 AM

@yosevu yosevu self-assigned this Oct 30, 2022
@yosevu yosevu linked an issue Oct 30, 2022 that may be closed by this pull request
@yosevu yosevu force-pushed the feat--rebuild-location-page branch 7 times, most recently from 7da70a7 to 7eb9801 Compare November 5, 2022 00:15
Resolves #414

- chore: ignore declaration-block-no-redundant-longhand-properties
  Stylelint rule due to low-priority issue.
- refactor: restructure components
- test: add basic LocationPage tests
- fix: correct static asset paths
- refactor: rename LocationOverview and review-overview to LocationDetails
- fix: pass location id only state to LocationPage and load locations data
  on LocationPage
- refactor: use map for initial locations data structure for easy lookups
  on LocationPage
- refactor: alias Window Location `WindowLocation` to prevent conclicts with
  Sparkeats `Location`
- refactor: update imageURL logic to differentiate Review and Location image placeholders.
- refactor: use useLocations hook
@yosevu yosevu force-pushed the feat--rebuild-location-page branch from 7eb9801 to 8f46062 Compare November 5, 2022 02:08
@yosevu yosevu merged commit 8f46062 into main Nov 5, 2022
@yosevu yosevu deleted the feat--rebuild-location-page branch November 5, 2022 02:11
@yosevu yosevu temporarily deployed to production November 5, 2022 02:11 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Rebuild Location Page
1 participant