Skip to content

Feat/recently viewed keys 864 - #900

Merged
Chucks1093 merged 7 commits into
accesslayerorg:devfrom
Seunfunmi-319509:feat/recently-viewed-keys-864
Sep 6, 2026
Merged

Feat/recently viewed keys 864#900
Chucks1093 merged 7 commits into
accesslayerorg:devfrom
Seunfunmi-319509:feat/recently-viewed-keys-864

Conversation

@Seunfunmi-319509

Copy link
Copy Markdown
Contributor

PR Summary

Added a Recently Viewed section to the homepage to provide authenticated users with quick access to their last visited keys.

What was done

  • Added localStorage tracking for recently viewed keys with a maximum of 5 entries.
  • Displayed recently viewed keys in newest-first order.
  • Added compact cards showing each key's avatar, name, current price, and 24h change.
  • Removed keys from the recently viewed list when added to the watchlist.
  • Cleared the recently viewed list when the user's wallet is disconnected.
  • Hid the Recently Viewed section when no keys are available.

Acceptance Criteria

  • Up to 5 recently visited keys are displayed.
  • Newest visits appear first.
  • Watched keys are removed from the list.
  • List is cleared on wallet disconnect.
  • Section remains hidden when the list is empty.

Closes #864

Track the last 5 creator keys a user visits on the key detail page in a
localStorage-backed store (newest first) and surface them on the homepage
for connected users, below the trending leaderboard.

- Add useRecentlyViewed persisted store (max 5 entries, newest first)
- Record key detail visits in CreatorDetailPage
- Render compact RecentlyViewed cards (avatar, name, current price, 24h change)
- Add RecentlyViewedSection on the homepage, hidden for guests / empty state
- Remove a key from recently viewed when added to the watchlist
- Clear the list on wallet disconnect
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Seunfunmi-319509 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Seunfunmi-319509 and others added 4 commits August 31, 2026 13:33
…DetailPage

The remote merge removed the useRecentlyViewed call and WatchlistButton
JSX from CreatorDetailPage while keeping their imports, causing ESLint
no-unused-vars errors on CI. Also adds missing Bookmark icon import
in Header.tsx.

Closes accesslayerorg#864

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
…#900)

The last dev merge into feat/recently-viewed-keys-864 carried over
dev's own badly-resolved merge (e498adc in accesslayerorg#898), which left several
files with duplicate, unparseable content that broke `pnpm lint` and
`tsc`:

- slippageTolerance.utils.ts / SlippageToleranceSelector.tsx /
  KeySimulationTool.tsx and their tests were each stitched from two
  generations of the API (accesslayerorg#872-era and accesslayerorg#877/accesslayerorg#887-era). Restore the
  implementations the tree's consumers (TradeDialog, LandingPage,
  CreatorDetailPage) actually use, from the clean pre-merge state.
- WatchlistToggle.tsx and its test (dev accesslayerorg#861 artifacts) cannot compile
  against the wallet-scoped zustand watchlist store used by this
  branch's components; drop them and restore the store from the
  branch's own last good state, matching the accesslayerorg#870 resolution.

Verified locally: pnpm lint clean, pnpm build green, 46 watchlist /
slippage / recently-viewed tests pass.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@Seunfunmi-319509

Copy link
Copy Markdown
Contributor Author

@Chucks1093 all checks passed and all conflicts resolved

@Chucks1093

Copy link
Copy Markdown
Member

Fix Merge conflict

@Chucks1093

Copy link
Copy Markdown
Member

CI is green but this PR has a merge conflict with dev and cannot be auto-merged. Pull the latest dev into your branch with git fetch origin && git checkout your-branch && git merge origin/dev, resolve any conflicts, then run npm run build and npm run lint to confirm everything is clean before pushing.

@Seunfunmi-319509

Copy link
Copy Markdown
Contributor Author

@Chucks1093 all conflicts resolved and checks passed

@Chucks1093

Copy link
Copy Markdown
Member

MERGE CONFLICT

@Seunfunmi-319509

Copy link
Copy Markdown
Contributor Author

@Chucks1093 conflict resolved and checks passed

@Seunfunmi-319509

Copy link
Copy Markdown
Contributor Author

@Chucks1093, please merge Sir,

@Chucks1093
Chucks1093 merged commit 6df6574 into accesslayerorg:dev Sep 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a recently viewed keys section on the homepage showing the last 5 keys the user visited

2 participants