Files
Momento/.agent/skills/wds-4-ux-design/templates/instructions/data-api.instructions.md
Antigravity bd495be965
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 12s
feat: design system overhaul — sidebar, AI chats, settings, brainstorm, color cleanup
- Sidebar: dynamic brand-accent colors, brainstorm section restyled
- AI chat general: popup panel with expand/collapse, hides when contextual AI open
- AI chat contextual: tabs reordered (Actions first), X close button, height fix
- Settings: all tabs restyled, 6 new color presets (sage, terracotta, iron, etc.)
- Global color cleanup: emerald/orange hardcoded → brand-accent dynamic
- Brainstorm page: orange → brand-accent throughout
- PageEntry animation component added to key pages
- Floating AI button: bg-brand-accent instead of hardcoded black
- i18n: all 15 locales updated with new AI/billing keys
- Billing: freemium quota tracking, BYOK, stripe subscription scaffolding
- Admin: integrated into new design
- AGENTS.md + CLAUDE.md project rules added
2026-05-16 12:59:30 +00:00

1.3 KiB

Data & API Requirements

Include when: Page requires data from APIs or external sources


Data Sources

Data Element Source Type Required Notes
{data-field} {API / static / localStorage} {string / number / array} {yes/no} {notes}

API Endpoints

{Endpoint Name}

Property Value
Method {GET / POST / PUT / DELETE}
Path /api/{path}
Purpose {What this endpoint does}
Auth {Required / Optional / None}

Request:

{
  "field": "value"
}

Response (Success):

{
  "data": {}
}

Response (Error):

{
  "error": "message",
  "code": "ERR_XXX"
}

Error Codes:

Code Meaning User Message
{code} {technical meaning} {user-friendly message}

Loading States

State Duration UI
Initial load {expected ms} {skeleton / spinner / etc.}
Refresh {expected ms} {indicator type}
Background {expected ms} {silent / toast}

Caching Strategy

Data Cache Duration Invalidation
{data type} {duration} {when to refresh}