The goal is to explain the real user scenario, the expected flow, what must never happen, and what developers should protect when changing the feature.
Page Structure
Every portal feature page should use this order:Real-World Examples
Good examples should feel like this:ABC Collections imports 1,000 consumer accounts. Jane accepts an offer and makes a payment. The dashboard count changes, payment metrics update, and Jane eventually moves from open activity to completed activity.Avoid examples like this:
The dashboard updates when data changes.The second example is true, but it does not help a person understand the product.
Visual Flow Colors
Use the same color meaning everywhere. Keep the legend compact so it supports the page instead of taking over the page.Documentation Workflow
When product behavior changes, update the matching documentation page in the same work cycle.Naming Rules
- Mirror the app sidebar as folders and files.
- Use lowercase kebab-case file names.
- Use the readable product label as the page title.
- Prefer one page per menu item.
- Keep
index.mdpages for navigation and portal summaries.
Developer Notes
AddDeveloper Notes when a feature has hidden behavior, background jobs, payment effects, cache counts, access rules, or status transitions.
Examples:
- Sidebar badges depend on cached counts.
- Payment retries should not duplicate charges.
- Consumer data must stay scoped to the creditor and sub-account.
- A page appears only for parent accounts or only when setup is incomplete.
Related App Areas
AddRelated App Areas when developers need a source starting point, but keep it light.
Good:
Screenshots
Screenshots are useful only when a visual state helps developers, QA, or product understand behavior that is hard to explain with text and Mermaid alone. Use screenshots for:- Dense list or dashboard pages where tabs, filters, badges, and row actions matter.
- Multi-step flows where the UI state affects the next system action.
- Detail pages where several backend resources appear in one screen.
Definition Of Done
A docs page is ready when:- A non-technical reader can understand the feature.
- A developer can understand the behavior they must preserve.
- The real-world example uses a concrete portal situation.
- The visual flow shows the main path and important risks.
- The should/should-not lists are specific enough to catch regressions.

