feature: pin-this-commit toggle on ReportCard #41

Merged
Gilles merged 1 commit from feat/pin-release-commits into master 2026-10-30 17:02:18 +00:00
Owner

Summary

  • RefDetailView's existing ref-level pin toggle protects a whole (ref_kind, ref_value) -- but a release/devel-snapshot upload shares its branch's ref with every regular CI push (see argus/backend#51/#52), so that toggle would freeze the entire branch's history instead of just the one release build.
  • ReportCard now also offers "Conserver ce commit" / "Retirer l'épinglage du commit", keyed by report.commit_sha, backed by the new PinnedCommit endpoints.
  • Hidden entirely for a report with no commit_sha (e.g. a source stream), and while the pin status hasn't loaded yet; a failed pin/unpin shows an inline error without hiding the button.

Depends on the backend companion PR (argus/backend#52).

Closes #40

Test plan

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

🤖 Generated with Claude Code

https://claude.ai/code/session_014HiJrn6J6vhyFfC2qyY4uh

## Summary - RefDetailView's existing ref-level pin toggle protects a whole (ref_kind, ref_value) -- but a release/devel-snapshot upload shares its branch's ref with every regular CI push (see argus/backend#51/#52), so that toggle would freeze the entire branch's history instead of just the one release build. - ReportCard now also offers "Conserver ce commit" / "Retirer l'épinglage du commit", keyed by `report.commit_sha`, backed by the new `PinnedCommit` endpoints. - Hidden entirely for a report with no `commit_sha` (e.g. a `source` stream), and while the pin status hasn't loaded yet; a failed pin/unpin shows an inline error without hiding the button. Depends on the backend companion PR (argus/backend#52). Closes #40 ## Test plan - [x] vitest (127/127) - [x] vue-tsc -b clean - [x] vite build clean 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014HiJrn6J6vhyFfC2qyY4uh
feature: pin-this-commit toggle on ReportCard
All checks were successful
ci / unit (pull_request) Successful in 2m3s
ci / publish (pull_request) Has been skipped
19f990e8b6
RefDetailView's ref-level pin toggle protects a whole (ref_kind, ref_value) --
but a release/devel-snapshot upload shares its branch's ref with every
regular CI push (see argus/backend#51), so that toggle would freeze the
entire branch's history instead of just the one build.

ReportCard now also offers "Conserver ce commit" / "Retirer l'épinglage du
commit", keyed by report.commit_sha, backed by the new PinnedCommit
endpoints. Hidden for a report with no commit_sha (e.g. a source stream).

Closes #40

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/41)
Gilles merged commit def0245821 into master 2026-10-30 17:02:18 +00:00
Gilles deleted branch feat/pin-release-commits 2026-10-30 17:02:18 +00:00
Sign in to join this conversation.
No description provided.