Engineering/AI documentation
Screens Gallery
Screens displays generated interface screens and previews for review.
Concepts: wcag
Implementation Summary
Screens displays generated interface screens and previews for review in the active project.
Frontend Surface
frontend/src/components/interfaces/ScreensGalleryTab.tsxfrontend/src/components/interfaces/ScreenPreview.tsxbackend/app/api/routes/interfaces_screens.pyfrontend/src/stores/interfacesStore.ts
State, API, And Backend Contracts
Stores
frontend/src/stores/interfacesStore.ts
API And Backend
backend/app/api/routes/interfaces_screens.py
Architecture Notes
- The feature is mounted through
frontend/src/components/interfaces/ScreensGalleryTab.tsxand the UI navigation path recorded in the inventory. GET /api/interfaces/screensrequires an explicitproject_id, checks project viewer access, and filtersDesignScreen.project_idat the database query.- Screen list/get/generation/edit/variant payloads are hydrated with
source_finding_detailsand a content-freeresearch_validitysummary so researchers can see whether a screen is backed by accepted Research Spine evidence or only provisional design context. - Imported or generated screens remain design artifacts; they do not become report evidence and their linked findings must pass source-grounded coding, reliability/reconciliation, and Done-task gates before downstream claims can be trusted.
- The frontend store clears stale screens when fetching a new project, and
ScreensGalleryTabdefensively renders only screens whoseproject_idequals the active project id. - The frontmatter and manifest entries are the durable contract for agents updating this page after code changes.
- When the referenced component, store, route, agent, skill, or test behavior changes, regenerate and validate the feature documentation.
Agents, Skills, LLM, MCP, And Permissions
- No direct agent, skill, LLM, or MCP behavior is asserted beyond the cited source files.
Tests And Verification
tests/test_interfaces.pytests/test_project_scope_contracts.py
Related Features
Related Concepts
Compass Evidence
- Spec/task: CF-SPEC-53 / CF-657; CF-SPEC-60 / CF-763
- Inventory source:
docs/features/inventory.json
When To Update
- Update this page whenever the listed UI components, stores, routes, model behavior, permissions, or tests change.
- Regenerate the site and machine manifests with
python scripts/feature_docs.py --seed-missing --generate-site --check.