Web-UI capability editor
Stub — populated by Phase E. Source-of-truth files:
n1-cloud/packages/web/src/routes/admin/catalog/**/*andn1-cloud/packages/api-worker/src/admin/catalog/*.routes.ts.
Topics this page must cover (with deep-links to source on every claim):
- UI entry point + permission gate (
catalog:editcapability). - Form schema generated from the Zod contract that mirrors
capability.yaml. - Save flow: client → API → branch → commit → PR → return PR URL.
- Preview vs. publish (preview deploys to a staging branch).
- Conflict handling when two maintainers edit the same capability.
- Telemetry: PostHog events emitted on save / preview / publish.