feat(dashboard): Phase 4 — Jobs tab rewrite (migration banner, issues card, editor, override/unfork)#220
Open
JKHeadley wants to merge 1 commit into
Open
feat(dashboard): Phase 4 — Jobs tab rewrite (migration banner, issues card, editor, override/unfork)#220JKHeadley wants to merge 1 commit into
JKHeadley wants to merge 1 commit into
Conversation
Implements INSTAR-JOBS-AS-AGENTMD spec §Dashboard UX + §Operator Experience. Existing Jobs tab extended with the spec's named surfaces. Frontend (dashboard/index.html): - Migration banner: reads /jobs/migration-status, renders confirm or roll-back buttons. - Issues card: reads /jobs/reconcile, severity-sorted, per-class filter, per-item dismiss. - Namespace badges (instar/user/fork) and lockTrust warning on rows. - Two new filter chips: Instar defaults, Your jobs. - Override + Edit + Unfork buttons in detail panel with ELI16 copy. - Editor modal with frontmatter form + body textarea + manifestVersion OCC. 409 → reload-or-lose modal. Backend (src/server/routes.ts): - POST /jobs/:slug/save (atomic two-rename via AgentMdAtomicSave; refuses instar/ writes; 409 on stale OCC token) - POST /jobs/:slug/disable (stampDisabledAtBodyHash) - POST /jobs/:slug/enable (clearDisabledAtBodyHash) - POST /jobs/:slug/override (copy instar→user, idempotent) - POST /jobs/:slug/unfork (archive to .unfork-backups + restore default) - GET /jobs/:slug/unfork-backups (list newest-first) - GET /jobs extended with hasUserFork - pruneUnforkBackups helper: 30-day OR last-10-per-slug retention. Tests: 5 integration cases in tests/integration/jobs-phase4-mutation-endpoints.test.ts. Lint + type-check + build pass. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Ships the Phase 4 Dashboard rewrite from INSTAR-JOBS-AS-AGENTMD spec §Dashboard UX + §Operator Experience. The existing Jobs tab is extended in-place with the spec's named surfaces.
Frontend: migration banner, Issues card (sort by severity, filter by class, per-item dismiss), namespace badges (instar / user / fork), lockTrust warning indicator, Override / Edit / Unfork action buttons with ELI16 confirmation copy, editor modal with manifestVersion OCC token.
Backend: 6 new endpoints —
/jobs/:slug/save,/disable,/enable,/override,/unfork,/unfork-backups.GET /jobsextended withhasUserFork. Unfork-backups retention: 30 days OR last 10 per slug.5 integration tests pass.
Not in this PR
Test plan
🤖 Generated with Claude Code