Skip to content

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

Description

@Chucks1093

Summary

Users who browse multiple keys must use browser history to return to a previously viewed key. A recently viewed section on the homepage showing the last 5 visited keys would make re-navigation instant.

Scope

  • Track key detail page visits in a recently_viewed array in localStorage (max 5 entries, newest first)
  • Show a Recently Viewed section on the homepage below the trending leaderboard for authenticated users
  • Render each visited key as a compact card with avatar, name, current price, and 24h change
  • Remove a key from recently viewed when it is added to the watchlist
  • Clear the recently viewed list when the user disconnects their wallet

Acceptance Criteria

  • Up to 5 recently visited keys shown on the homepage
  • Newest visit appears first in the list
  • Key removed from recently viewed when added to watchlist
  • List cleared on wallet disconnect
  • Section hidden when recently viewed is empty

ETA: 12 hours


Coordinate on Telegram

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions