feature: hide closed PRs behind a toggle and show pinned refs #39

Merged
Gilles merged 1 commit from feat/lighten-closed-pr-display into master 2026-10-30 14:51:43 +00:00
Owner

Summary

  • ProjectView collapses any pr-kind ref whose pr_state is "closed" into a collapsed "PR fermées (N)" section, unless it's pinned -- never an "unknown" state, so a transient Forgejo lookup failure never hides a PR that might still be open.
  • Pinned refs (new PinnedRef model, see argus/backend#49) show a 📌 badge next to their name and are never collapsed regardless of PR state.
  • RefDetailView gains a "Conserver à vie" / "Retirer l'épinglage" toggle, backed by the new pin endpoints; hidden while the pin status hasn't loaded, shows an inline error on a failed write (e.g. no write permission).

Depends on the backend companion PR (argus/backend#50) for the pr_state field and the pin endpoints.

Closes #38

Test plan

  • vitest (123/123)
  • vue-tsc -b clean
  • vite build clean

🤖 Generated with Claude Code

https://claude.ai/code/session_014HiJrn6J6vhyFfC2qyY4uh

## Summary - ProjectView collapses any pr-kind ref whose `pr_state` is "closed" into a collapsed "PR fermées (N)" section, unless it's pinned -- never an "unknown" state, so a transient Forgejo lookup failure never hides a PR that might still be open. - Pinned refs (new `PinnedRef` model, see argus/backend#49) show a 📌 badge next to their name and are never collapsed regardless of PR state. - RefDetailView gains a "Conserver à vie" / "Retirer l'épinglage" toggle, backed by the new pin endpoints; hidden while the pin status hasn't loaded, shows an inline error on a failed write (e.g. no write permission). Depends on the backend companion PR (argus/backend#50) for the `pr_state` field and the pin endpoints. Closes #38 ## Test plan - [x] vitest (123/123) - [x] vue-tsc -b clean - [x] vite build clean 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014HiJrn6J6vhyFfC2qyY4uh
feat: hide closed PRs behind a toggle and show pinned refs
All checks were successful
ci / unit (pull_request) Successful in 2m3s
ci / publish (pull_request) Has been skipped
623e11dc41
ProjectView collapses any pr-kind ref whose pr_state is "closed" into a
collapsed "PR fermées (N)" section, unless it's pinned -- never an "unknown"
state, so a transient Forgejo lookup failure never hides a PR that might
still be open. Pinned refs (PinnedRef, backend companion PR) show a 📌 badge
and are never collapsed.

RefDetailView gains a "Conserver à vie" / "Retirer l'épinglage" toggle,
backed by the new pin endpoints.

Closes #38

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HiJrn6J6vhyFfC2qyY4uh
Author
Owner
<!-- argus-link-bot:argus/frontend --> 📊 [Rapports Argus pour cette PR](https://reports.stationmyr.net/argus/frontend/pr/39)
Gilles merged commit a9f6a2f2eb into master 2026-10-30 14:51:43 +00:00
Gilles deleted branch feat/lighten-closed-pr-display 2026-10-30 14:51:43 +00:00
Gilles changed title from feat: hide closed PRs behind a toggle and show pinned refs to feature: hide closed PRs behind a toggle and show pinned refs 2026-10-30 14:54:40 +00:00
Sign in to join this conversation.
No description provided.