UI Page README
When to use
- •User asks for a README for a page, route, or co-located component set.
- •User asks to “describe this page/section” in repo docs.
- •User asks for a README inside a
src/pages/*directory.
Required reads (before writing)
- •
docs/architecture.mdto align with runtime boundaries and system roles. - •If the page touches grant flow, also read
docs/260203-grant-connect-flow.md. - •If unrelated to grant flow, explicitly say so in the README.
Placement
- •Put
README.mdin the page’s folder (co-located with route components). - •This is an intentional exception to
doc-creation(noYYMMDD-*prefix).
Content checklist (keep it tight)
Use short sections; prefer bullets; no fluff.
- •What this is
- •One sentence purpose + what it owns.
- •Files
- •List co-located files and their roles.
- •Data flow
- •Key hooks/state sources + how data moves.
- •App integration
- •Route, entry points, integration with other flows.
- •Explicitly mention Tauri/IPC or Personal Server if used.
- •Behavior
- •Key user-visible behaviors and actions.
- •Notes
- •Constraints, edge cases, or gotchas.
Template
Use this structure:
code
# <Page name> ## What this is - <Purpose and boundary> ## Files - <file>: <role> ## Data flow - <source> → <transform> → <render> ## App integration - Route: <path> - Entry points: <where linked from> - Integration: <flows or systems touched> ## Behavior - <user-visible behavior> ## Notes - <constraints/edge cases>
Style rules
- •If the user asks for cross-repo/system docs, use
doc-creationinstead. - •Keep it under ~50 lines unless asked for more.
- •Use repo terminology (runs, grants, personal server).
- •Don’t invent flows; cite actual integrations only.