Plan 5a: Customizations page#15
Merged
theaboutbox merged 6 commits intoadmin-overhaulfrom Apr 30, 2026
Merged
Conversation
Walk custom/ directory, categorize files as pipeline/step/provider/other, detect upstream shadows, and return sorted entries with stat metadata. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Wire GET /api/customizations to listCustomizations() behind existing session auth, and add two tests (401 + 200 shape) to admin.test.ts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
HTML section with table of custom/ files, badges for category/status, size + modified columns. Script uses window.api/window.esc only, const/let only, 60s auto-refresh, registers via window.registerPage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Import and inject customizationsHtml/Script into the admin shell. Remove the 'customizations' stub entry from stubs.ts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Five assertions: expected IDs present, route registration, API call, window.api/esc-only usage, no var declarations. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Plan 5a of 5. Replaces the
customizationsroute stub with a real page that walkscustom/and reports which files shadow upstream and which are additive.listCustomizations()helper insrc/customizations.ts— pure filesystem read; categorizes pipeline / step / provider / other; checks upstream presence viafs.existsSync; skipsREADME.md,.gitkeep, dotfiles; usesreaddirSync({ withFileTypes: true })so symlinks are silently skipped (no loop risk).GET /api/customizationsreturns{ customRoot, customizations }.src/admin-ui/pages/customizations.ts— info banner aboutcustom/, table with Path / Category / Status / Upstream / Size / Modified, empty + error states, 60s auto-refresh.Plan:
docs/superpowers/plans/2026-04-30-admin-customizations.md. PR base:admin-overhaul.Test plan
#customizationslists every file undercustom/(e.g.,custom/steps/hello.ts)README.mdand.gitkeepfiles are not showncustom/files) shows the empty state🤖 Generated with Claude Code