Skip to content

Plan 5b: Pipelines & steps page#16

Merged
theaboutbox merged 7 commits intoadmin-overhaulfrom
admin-overhaul-5b-pipelines-steps
Apr 30, 2026
Merged

Plan 5b: Pipelines & steps page#16
theaboutbox merged 7 commits intoadmin-overhaulfrom
admin-overhaul-5b-pipelines-steps

Conversation

@theaboutbox
Copy link
Copy Markdown
Contributor

Summary

Plan 5b. Replaces the pipelines (Configure-group) route stub with a read-only browser of pipeline YAML definitions and the step-module library.

  • New inspectPipelinesAndSteps() helper in src/inspect-pipeline-graph.ts — walks pipelines/, custom/pipelines/, src/pipeline/steps/, custom/steps/. Parses YAML; captures errors per pipeline so a single bad file doesn't 500 the endpoint.
  • New auth-protected GET /api/pipelines-steps returns { pipelines, steps }.
  • New page src/admin-ui/pages/pipelines-and-steps.ts<details> per pipeline (browser-native expand), step-module table with Override / Additive / Built-in status badges.
  • Stub removed.
  • Page module exports use distinct names (pipelinesAndStepsHtml/pipelinesAndStepsScript) to avoid colliding with the existing Pipelines/jobs page (pipelinesHtml/pipelinesScript). Sidebar route key is pipelines (Configure-group), distinct from jobs (Work-group).
  • 7 helper tests + 2 endpoint tests + 5 structural page tests.
  • 6 commits; 668 tests pass.

Plan: docs/superpowers/plans/2026-04-30-admin-pipelines-steps.md. PR base: admin-overhaul.

Test plan

  • #pipelines (Configure group) shows pipelines/autonomous.yml expanded; clicking the summary collapses
  • Status badges in the step-module table:
    • "Override" for steps that exist in both src/pipeline/steps/ AND custom/steps/
    • "Additive" for steps that exist only in custom/steps/ (e.g. hello.ts)
    • "Built-in" for steps that exist only in src/pipeline/steps/
  • Adding a malformed YAML to pipelines/ shows an "Error" badge and red callout, doesn't break the rest of the page
  • #jobs (Work group, the existing Pipelines/runs page) is untouched

🤖 Generated with Claude Code

theaboutbox and others added 7 commits April 30, 2026 14:09
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
A step that exists only under custom/steps/ is additive — there's no
built-in for it to shadow. The previous logic flagged every custom step
as hasCustomOverride: true, making the "Additive" branch in the
Pipelines & Steps page unreachable. Add a 7th unit test covering the
additive case.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@theaboutbox theaboutbox merged commit 698b0b9 into admin-overhaul Apr 30, 2026
1 of 2 checks passed
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