Skip to content

Add containing-folder navigation - #179

Open
HamptonMakes wants to merge 1 commit into
mainfrom
hampton/plan-folder-return
Open

Add containing-folder navigation#179
HamptonMakes wants to merge 1 commit into
mainfrom
hampton/plan-folder-return

Conversation

@HamptonMakes

Copy link
Copy Markdown
Collaborator

Why

Plans can be saved in multiple personal libraries, so readers need a compact, unambiguous way to go up to the author-chosen containing folder without losing title space or landing on a generic profile.

What

  • Add a compact folder-up control to the plan byline and sticky header with Turbo hover prefetch
  • Add breadcrumb-based, read-only folder navigation for other users’ libraries while keeping owners in their editable workspace
  • Preserve visibility boundaries and include unfiled authored plans at the library root

Risk Assessment

Moderate — this changes plan chrome and existing library-route behavior, but the new browser is read-only, uses the existing visibility scope, and owners remain routed to their editable workspace.

Generated with Amp

@HamptonMakes
HamptonMakes marked this pull request as ready for review August 15, 2026 17:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9175efd378

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<% library = plan.created_by_user.library %>
<% folder = placement&.folder %>
<% label = folder ? "Up to containing folder — #{folder.path}" : "Up to #{plan.created_by_user.name}’s library" %>
<%= link_to library_path(library, folder: folder&.id),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid linking archived plans to an empty location

When an archived plan is opened directly, this control is still rendered, but both branches of the destination exclude it: LibrariesController#show applies Plan.active, and an owner's redirect reaches the workspace's default active-plan scope. Clicking “Up to containing folder” therefore lands in a folder where the source plan is absent; either suppress the control for archived plans or link owners to an archived-filtered folder view.

Useful? React with 👍 / 👎.

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.

1 participant