generated from john/python-template
37 lines
1.0 KiB
Markdown
37 lines
1.0 KiB
Markdown
# Settings Page Contract
|
|
|
|
## Purpose
|
|
|
|
Settings manages installation-local registries and editable text assets from one route.
|
|
|
|
## Route
|
|
|
|
| Route | Purpose |
|
|
| --- | --- |
|
|
| `/settings` | Manage Document Types, Person Roles, Tags, Prompts, and Home Page Text. |
|
|
|
|
## Behavior
|
|
|
|
- The page title is **Settings**.
|
|
- Configuration surfaces are grouped as tabs:
|
|
- **Document Types**
|
|
- **Person Roles**
|
|
- **Tags**
|
|
- **Prompts**
|
|
- **Home Page Text**
|
|
- Document Types, Person Roles, and Tags support Add/Edit/Delete with existing guardrails.
|
|
- Prompts exposes only `transcribe_document.md` for editing and restore-from-backup.
|
|
- Home Page Text edits the same Markdown content rendered on `/homepage`.
|
|
|
|
## Acceptance Checklist
|
|
|
|
- `/ui/settings` renders all five tabs.
|
|
- Registry and prompt workflows keep existing validation and error handling.
|
|
- Saving Home Page Text persists content for the homepage view.
|
|
|
|
## Implementation Anchors
|
|
|
|
- `src/transcription/ui/pages/settings_page.py`
|
|
- `src/transcription/ui/homepage_store.py`
|
|
- `tests/ui/test_pages_registration.py`
|