Skip to content

[Request]: Wire UI customization into composed auth/admin scaffolds and document the AI authoring path #217

Closed

Description

@jimhoyd

Problem or use case

Reviewing project-level customization and AI-first declarative use at d5a14cf. A consumer should be able to initialize ui/auth/admin and customize their screens without forking packages or discovering missing host wiring.

Proposed behavior and alternatives

Make urlcode init site --with ui,auth,admin register auth/admin templates and the auth catalogue with createUiExtension, and pass the returned ui object to authExtension/adminExtension when ui is selected. Preserve standalone configurations. Add a generated-consumer regression that demonstrates a local template/copy override reaching an auth and admin screen.

Observed source evidence:

  • packages/ui/src/host/scaffold.ts creates ui with sources: [] and no extension templates.
  • packages/auth/src/scaffold.ts emits authExtension({service, csrfKey, projectSha256}) without ui.
  • packages/admin/src/scaffold.ts emits adminExtension({service, csrfKey, projectSha256, authMount: '/account'}) without ui.
  • packages/auth/README.md Presentation and packages/admin/README.md Presentation document the necessary manual wiring.
  • packages/ui/README.md incorrectly says auth/admin have not adopted the kit. Documentation drift is also tracked in [Request]: Remove remaining monorepo ownership, release and documentation drift #200.

For AI authors, document the complete supported composition and override paths in root docs, linked from AI-AUTHORING and llms.txt. Distinguish declarative configuration from project functions used for lifecycle hooks and TypeScript required to implement a new extension. Existing get_extensions exposes config/policy schemas; hook input, verdict, timing and failure semantics still require package-specific documentation. Avoid suggesting unsupported YAML rule syntax.

Validation limits

Source and documentation inspection only; no generated consumer or runtime test was executed for this report. This does not claim published package behavior matches the checkout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions