|
| 1 | +# 07 — Design Methodology for New Surfaces |
| 2 | + |
| 3 | +When adding or redesigning a GUI page, CLI wizard, or user-facing flow in opencodex, |
| 4 | +follow the PABCD Catalog Discovery stage ordering (CATALOG-DESIGN-FIRST-01): |
| 5 | + |
| 6 | +1. **Design/UX decisions first** (Product-Personality-Selection): mood, density, lightness, |
| 7 | + shape, typography, motion. Decide visual direction before functional layout. |
| 8 | +2. **Domain-specific config semantics** second: what entities does this surface manage |
| 9 | + (providers, models, accounts, sidecars)? |
| 10 | +3. **Backend wiring derived last**: API endpoints, data structures, and state management |
| 11 | + are consequences of the above, not independent decisions. |
| 12 | + |
| 13 | +This is the design-first invariant from the PABCD Initiative |
| 14 | +(`pabcd_initiative/skills/dev-pabcd/references/catalog-discovery.yaml`). It ensures |
| 15 | +design coherence across surfaces without requiring a runtime interview engine — opencodex |
| 16 | +is infrastructure plumbing, not a product-creation tool, so this is process discipline |
| 17 | +for contributors, not a runtime feature. |
| 18 | + |
| 19 | +## Existing surfaces and their design direction |
| 20 | + |
| 21 | +| Surface | Current design | Notes | |
| 22 | +|---|---|---| |
| 23 | +| Dashboard | Data-dense, light, rounded, sans-serif | Default Bun/React template aesthetic | |
| 24 | +| `ocx init` CLI | Flat numbered menu, no personality | Could benefit from staged approach | |
| 25 | +| Add Provider modal | Functional form | Minimal styling | |
| 26 | +| Logs page | Dense table, monospace | Appropriate for log viewing | |
| 27 | + |
| 28 | +When next touching these surfaces, apply the Stage 1 design dials (mood, lightness, |
| 29 | +density, shape, typography, motion) before restructuring functional layout. For new |
| 30 | +surfaces, run through all 3 stages in order. |
| 31 | + |
| 32 | +## Reference |
| 33 | + |
| 34 | +- Canonical source: `pabcd_initiative/skills/dev-pabcd/references/catalog-discovery.yaml` |
| 35 | +- Design methodology: Product-Personality-Selection (dev-uiux-design §1) |
| 36 | +- 6 design dials: mood, lightness, density, shape, typography, motion |
| 37 | +- 7 axes total: design → domain → feature/data/security/ops/cost (derived) |
0 commit comments