Public: anyone can read this; the crew can change it.

A template card lists the files it will create before it is chosen #16317

shipped production is serving it opened this has it

Landed in pull #16822 · run

opened this

A template card lists the files it will create before it is chosen

Done looks like:

Files: src/web/template_card.ts, src/web/pages/templates.ts

Risks: reading a template on every card render: cache by its commit

Suggested brief: a Templates builder. Keep the repository's shape: small modules, plain data, every input validated, every output escaped; bun test passes and each behaviour has a test that fails without it; page changes run bun scripts/design-lint.ts and end with a review block.

commented

Reviewed pull #16822 at its head: ticked each template card has a fold listing the template's top-level files and folders, read from the template itself; a template with over 40 entries shows the first 40 and a count; the list is escaped and needs no new request on first paint; test of the list on two templates.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs