Skip to content

feat(app): reach Archived and Trash from the home navigation (TKT-380) - #63

Open
sepo-eng wants to merge 1 commit into
devfrom
feat/tkt-380-archived-trash-nav
Open

feat(app): reach Archived and Trash from the home navigation (TKT-380)#63
sepo-eng wants to merge 1 commit into
devfrom
feat/tkt-380-archived-trash-nav

Conversation

@sepo-eng

Copy link
Copy Markdown

Feedback 173: /archived and /trash were reachable only by typing the URL — no navigation affordance. Noted twice in runbooks.

The change

Both views join the home utility nav beside Settings and Help, using the archive and trash icons already present in the V2 icon set.

No new translation keys. The labels reuse the views' own archived.title / trash.title, which all 65 locale files already carry. Adding nav-specific keys would have meant 65 translations to say the same two words, and would have put this on the wrong side of TKT-373's i18n backlog.

The nav lives under the new layout only, which is where these routes are registered (settings.general.newLayoutDesigns()).

Verification

A regression spec that clicks the links, rather than asserting they are present:

[chromium] › home-archived-trash-nav.spec.ts › reaches Archived and Trash from the home navigation
1 passed
  • The control matters more than the pass. With the source change stashed and the spec kept, it fails — so it is coverage rather than decoration.
  • Clicking is the assertion because "present but not clickable" would satisfy a weaker existence check while leaving the views exactly as unreachable as the feedback describes.
  • HomeUtilityNav renders twice — hidden lg:flex beside the projects list, flex lg:hidden at the bottom — so the locators resolve the visible instance and cannot pass against the hidden copy.
  • Re-run against a cold dev server (killed port 3000 first), since Playwright reuses a warm server locally but never in CI, which makes a warm local pass the weaker signal.

Typecheck clean. oxlint: 1 warning, pre-existing on this file.

A note on the diff

home-projects-view.tsx is prettier-dirty on dev — running prettier --write over it reformats a ~60-line block nobody in this change touched. That reformatting is deliberately not included; the diff is +23 lines, all of them this feature. My own lines were checked against prettier separately and need no changes.

(I nearly recorded the opposite: an earlier check copied the file to a temp directory, where the repo's prettier config does not apply, and reported it clean. The check inside the repo is the one that counts.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01KbNYZHcnxRCknFmhhPHe7L

Both views existed and neither had a way in: /archived and /trash were reachable
only by typing the URL (feedback 173, noted twice in runbooks).

They join the home utility nav beside Settings and Help, using the archive and
trash icons already in the V2 set. Labels reuse the views' own title keys, which
all 65 locales already carry, rather than adding nav-specific keys that would
need 65 translations to say the same two words.

The regression test clicks the links rather than asserting they exist -- an
element that renders but cannot be clicked would satisfy the weaker check and
still leave the views unreachable, which is the actual complaint. Confirmed the
test fails without the change: it is coverage, not decoration.

HomeUtilityNav renders twice, once for wide viewports and once for narrow, so
the locators resolve the visible instance and cannot pass against the hidden one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KbNYZHcnxRCknFmhhPHe7L
Copilot AI lite review requested due to automatic review settings August 13, 2026 14:59

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants