Skip to content

feat: add recently viewed page for posts and communities#456

Open
christianjuth wants to merge 4 commits intomainfrom
claude/add-recently-viewed-page-aIC2u
Open

feat: add recently viewed page for posts and communities#456
christianjuth wants to merge 4 commits intomainfrom
claude/add-recently-viewed-page-aIC2u

Conversation

@christianjuth
Copy link
Copy Markdown
Collaborator

No description provided.

Track recently opened posts (with snapshot of post + community + creator)
alongside the existing recent communities, and surface both in a new
/home/recent page with a Posts/Communities toggle. Linked from the user
dropdown and sidebar under Saved using a clock icon.

Each recent entry is tagged with the accountUuid that viewed it so the
page renders correctly across accounts. Snapshots are hydrated into the
per-account caches when missing, keeping entries usable after the post
cache evicts them. PostCard accepts an optional accountUuid prop that
overrides which account's cache slot is read.
github-actions Bot added a commit that referenced this pull request May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Dependency Graph

Dependency graph — one node per top-level folder in src/

One node per top-level folder in src/. Generated by dependency-cruiser.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Performance Comparison Report

  • Current: HEAD (104307e) - 2026-05-05 12:45:17Z
  • Baseline: HEAD (5b448f4) - 2026-05-05 12:44:46Z

Significant Changes To Duration

There are no entries

Meaningless Changes To Duration

Show entries
Name Type Duration Count
PostCardView extra-small/text render 12.2 ms → 12.6 ms (+0.4 ms, +3.2%) 2 → 2
PostCardView large/article render 20.8 ms → 21.7 ms (+0.9 ms, +4.3%) 2 → 2
PostCardView large/image render 20.6 ms → 21.0 ms (+0.4 ms, +1.9%) 2 → 2
PostCardView large/text render 21.4 ms → 21.7 ms (+0.4 ms, +1.7%) 2 → 2
PostCardView small/image render 17.8 ms → 18.3 ms (+0.5 ms, +2.9%) 2 → 2
PostCardView small/text render 17.0 ms → 17.1 ms (+0.1 ms, +0.7%) 2 → 2
Show details
Name Type Duration Count
PostCardView extra-small/text render Baseline
Mean: 12.2 ms
Stdev: 0.2 ms (1.9%)
Runs: 12.3 11.8 12.1 12.1 12.1 12.4 12.1 12.6 12.2 12.3 11.9 12.2 12.1 12.4 12.8 12.0 12.4 12.1 12.2 12.1
Warmup runs: 12.9
Removed outliers: (none)

Current
Mean: 12.6 ms
Stdev: 0.2 ms (1.5%)
Runs: 12.6 12.9 12.6 12.6 12.6 12.7 12.4 12.9 12.1 12.6 12.4 12.5 12.4 12.7 12.8 12.6 12.7 12.7 12.7 12.5
Warmup runs: 13.0
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Current
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
PostCardView large/article render Baseline
Mean: 20.8 ms
Stdev: 0.3 ms (1.3%)
Runs: 21.3 20.6 20.6 20.8 20.9 21.1 20.5 20.8 21.2 21.3 20.9 20.6 20.6 20.6 20.8 20.6 20.4 20.9 21.1
Warmup runs: 25.4
Removed outliers: 29.4

Current
Mean: 21.7 ms
Stdev: 0.4 ms (2.0%)
Runs: 22.1 22.0 21.7 21.7 22.1 22.0 22.2 21.9 21.7 21.9 21.0 20.9 21.4 21.2 21.1 21.3 21.7 22.1 22.4
Warmup runs: 22.2
Removed outliers: 28.4
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Current
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
PostCardView large/image render Baseline
Mean: 20.6 ms
Stdev: 0.6 ms (2.8%)
Runs: 20.5 20.8 20.2 20.6 20.2 20.3 20.2 22.8 20.5 20.8 20.3 20.6 20.2 20.4 20.8 20.4 20.2 20.5 20.3 20.8
Warmup runs: 21.2
Removed outliers: (none)

Current
Mean: 21.0 ms
Stdev: 0.3 ms (1.5%)
Runs: 20.5 20.7 20.9 20.7 21.1 20.8 20.9 21.4 21.0 21.1 21.1 21.2 20.7 21.1 21.1 21.4 20.6 21.0 20.4 21.6
Warmup runs: 21.6
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Current
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
PostCardView large/text render Baseline
Mean: 21.4 ms
Stdev: 1.0 ms (4.6%)
Runs: 24.0 23.2 21.6 21.8 21.4 21.7 21.4 22.7 21.9 21.2 20.8 20.5 20.9 20.7 20.2 20.5 20.7 20.8 20.6 20.6
Warmup runs: 85.5
Removed outliers: (none)

Current
Mean: 21.7 ms
Stdev: 1.2 ms (5.5%)
Runs: 24.8 24.7 22.2 21.4 21.7 21.4 22.6 21.8 21.6 21.9 20.8 21.2 20.8 20.8 21.0 20.8 20.8 21.8 20.7
Warmup runs: 82.8
Removed outliers: 32.9
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Current
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
PostCardView small/image render Baseline
Mean: 17.8 ms
Stdev: 0.3 ms (1.8%)
Runs: 18.1 17.9 18.4 18.2 17.8 18.0 18.0 17.7 17.8 17.7 17.6 18.1 18.0 17.3 17.3 17.6 17.3 17.6 17.5 17.7
Warmup runs: 18.0
Removed outliers: (none)

Current
Mean: 18.3 ms
Stdev: 0.3 ms (1.9%)
Runs: 18.2 18.8 19.3 18.3 18.4 18.3 18.4 18.0 17.9 18.0 18.4 18.0 18.2 18.0 18.3 17.9 18.3 18.9 18.3 18.1
Warmup runs: 18.6
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Current
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
PostCardView small/text render Baseline
Mean: 17.0 ms
Stdev: 0.2 ms (1.3%)
Runs: 17.1 17.2 17.2 17.2 17.4 17.1 17.0 17.1 16.8 16.9 16.8 17.1 16.7 16.8 16.8 16.8 17.4 17.3 16.9 16.8
Warmup runs: 17.6
Removed outliers: (none)

Current
Mean: 17.1 ms
Stdev: 0.4 ms (2.1%)
Runs: 16.7 16.8 16.5 17.3 17.3 17.2 17.3 17.5 17.2 17.1 17.0 16.8 17.0 16.9 16.8 16.9 17.9 17.6 17.7 17.4
Warmup runs: 17.5
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Current
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Render Count Changes

There are no entries

Render Issues

Name Initial Updates Redundant Updates
PostCardView large/text 1 🔴 -
PostCardView large/image 1 🔴 -
PostCardView large/article 1 🔴 -
PostCardView small/text 1 🔴 -
PostCardView small/image 1 🔴 -
PostCardView extra-small/text 1 🔴 -

Added Entries

There are no entries

Removed Entries

Show entries
Name Type Duration Count
CommunityCardView md render 2.3 ms 2
CommunityCardView md/disableLink render 1.7 ms 2
CommunityCardView md/hideText render 2.0 ms 2
CommunityCardView md/nsfw render 2.0 ms 2
CommunityCardView sm render 1.9 ms 2
Show details
Name Type Duration Count
CommunityCardView md render Baseline
Mean: 2.3 ms
Stdev: 0.3 ms (14.6%)
Runs: 3.4 2.6 2.7 2.5 2.3 2.4 2.3 2.8 2.3 2.2 2.2 2.0 2.2 2.1 2.0 2.0 2.1 2.1 2.2 2.0
Warmup runs: 16.8
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
CommunityCardView md/disableLink render Baseline
Mean: 1.7 ms
Stdev: 0.0 ms (2.2%)
Runs: 1.7 1.6 1.7 1.7 1.7 1.7 1.7 1.7 1.7 1.8 1.7 1.7 1.7 1.7 1.7 1.7 1.7 1.7
Warmup runs: 1.7
Removed outliers: 2.6 2.3
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
CommunityCardView md/hideText render Baseline
Mean: 2.0 ms
Stdev: 0.0 ms (1.4%)
Runs: 2.0 2.0 2.0 2.0 1.9 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 1.9 2.0 2.0 2.0 2.0 2.0
Warmup runs: 2.0
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
CommunityCardView md/nsfw render Baseline
Mean: 2.0 ms
Stdev: 0.0 ms (1.9%)
Runs: 2.0 2.0 2.1 1.9 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.0 2.1
Warmup runs: 2.1
Removed outliers: 2.5 2.5
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1
CommunityCardView sm render Baseline
Mean: 1.9 ms
Stdev: 0.0 ms (2.4%)
Runs: 2.0 2.0 1.9 1.9 2.0 1.9 1.9 1.9 1.9 1.9 2.0 2.0 2.0 2.0 1.9 1.9 1.9 1.9 1.9 1.9
Warmup runs: 2.1
Removed outliers: (none)
Baseline
Mean: 2
Stdev: 0 (0.0%)
Runs: 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Render issues:
- Initial updates: 1

Recent is purely local tracking and works without a Lemmy account.
Guest accounts have UUIDs, so the page functions identically for them.
Remove the person guard from the Recent link while keeping it on Saved,
Profile, and Logout which genuinely require authentication.

https://claude.ai/code/session_019yMKPkGhTAFyLxsxTjtLgS
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 5, 2026

Deploying blorp with  Cloudflare Pages  Cloudflare Pages

Latest commit: 104307e
Status: ✅  Deploy successful!
Preview URL: https://8094ebd1.blorp-6rm.pages.dev
Branch Preview URL: https://claude-add-recently-viewed-p.blorp-6rm.pages.dev

View logs

claude added 2 commits May 5, 2026 03:30
…is set

When a post is rendered via an account override (e.g. the Recently Viewed
page showing a post from a different account), voting, saving, reacting,
moderation, and the action menu are all disabled. Share and download image
actions remain available since they don't require an API call.

https://claude.ai/code/session_019yMKPkGhTAFyLxsxTjtLgS
Cover dedupe by apId, ordering, max-size cap, accountUuid threading, and
a persisted-shape snapshot.

Also pass disabled to PostEmojiReactions buttons so they get the proper
disabled visual treatment alongside the no-op onClick.

https://claude.ai/code/session_019yMKPkGhTAFyLxsxTjtLgS
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.

2 participants