Skip to content

feat: Add Recently Viewed section and utility functions for managing …#79

Merged
Alexandrbig1 merged 4 commits into
OpenCodeChicago:mainfrom
AparAgarwal:feature/recently-viewed-section
Oct 7, 2025
Merged

feat: Add Recently Viewed section and utility functions for managing …#79
Alexandrbig1 merged 4 commits into
OpenCodeChicago:mainfrom
AparAgarwal:feature/recently-viewed-section

Conversation

@AparAgarwal
Copy link
Copy Markdown
Contributor

@AparAgarwal AparAgarwal commented Oct 7, 2025

Description

Adds a small "Recently Viewed" section on the Products page that reads/writes a recently_viewed array in localStorage and shows up to 3 products per view with Previous/Next navigation. Gracefully hides when there are no items.

Changes

RecentlyViewed.jsx — new carousel-style component
recentlyViewed.js — get/add helpers for recently_viewed
Integrated into Products.jsx (renders when products load)

Closes: OpenCodeChicago/.github#85

Copy link
Copy Markdown
Contributor

@Alexandrbig1 Alexandrbig1 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, and congrats on your PR being approved!
We’re excited to have your work as part of Open Code Chicago’s Hacktoberfest 2025 project.

@Alexandrbig1 Alexandrbig1 added frontend Tasks related to the frontend (React, Vite, TailwindCSS, UI components, pages) hacktoberfest Special issue for Hacktoberfest hacktoberfest-2025 Special issue for Hacktoberfest 2025 hacktoberfest-accepted This label indicates that a contribution has been accepted and counts toward Hacktoberfest rewards. react React components & UI logic tailwind Tailwind CSS & styling labels Oct 7, 2025
@Alexandrbig1
Copy link
Copy Markdown
Contributor

@AparAgarwal, may you check lint error again, please :)

st

@AparAgarwal
Copy link
Copy Markdown
Contributor Author

Ahh, I see. It's the same error as before. I don't know why, but when I run npm lint to check for errors, it doesn't show me anything like this. I'll fix it.

@AparAgarwal
Copy link
Copy Markdown
Contributor Author

@Alexandrbig1 I’ve fixed it. Please check and let me know if everything looks good.

@Alexandrbig1
Copy link
Copy Markdown
Contributor

@AparAgarwal, just minor fix, please.

smaa

@Alexandrbig1 Alexandrbig1 merged commit f70a037 into OpenCodeChicago:main Oct 7, 2025
2 checks passed
@AparAgarwal
Copy link
Copy Markdown
Contributor Author

Can you guide me on how to get these detailed lint logs on my machine? I don’t see any of these errors when I run the lint check.

@Alexandrbig1
Copy link
Copy Markdown
Contributor

@AparAgarwal, just pull the latest updates, and before opening a PR, run the linter npm run lint and see the terminal output.

Also, one minor UI fix: adjust the wishlist button border on hover to match the design (hover border color/weight).

@Alexandrbig1
Copy link
Copy Markdown
Contributor

@AparAgarwal, were you asking for this task?

@Alexandrbig1 Alexandrbig1 added this to the Hacktoberfest 2025 milestone Oct 8, 2025
@AparAgarwal AparAgarwal deleted the feature/recently-viewed-section branch October 11, 2025 01:39
@Alexandrbig1 Alexandrbig1 linked an issue Nov 2, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Tasks related to the frontend (React, Vite, TailwindCSS, UI components, pages) hacktoberfest Special issue for Hacktoberfest hacktoberfest-2025 Special issue for Hacktoberfest 2025 hacktoberfest-accepted This label indicates that a contribution has been accepted and counts toward Hacktoberfest rewards. react React components & UI logic tailwind Tailwind CSS & styling

Development

Successfully merging this pull request may close these issues.

Implement "Recently Viewed" Section Build "All Products" Page (/products)

2 participants