feat: add recently viewed page for posts and communities#456
Open
christianjuth wants to merge 4 commits intomainfrom
Open
feat: add recently viewed page for posts and communities#456christianjuth wants to merge 4 commits intomainfrom
christianjuth wants to merge 4 commits intomainfrom
Conversation
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.
Contributor
Dependency GraphOne node per top-level folder in |
Contributor
Performance Comparison ReportSignificant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
Render Count ChangesThere are no entries Render Issues
Added EntriesThere are no entries Removed EntriesShow entries
Show details
|
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
Deploying blorp with
|
| 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 |
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.