Skip to content

feat(settings): answer time range per template and organization background colour - #95

Merged
micio86dev merged 5 commits into
developfrom
feature/org-background-color
Oct 16, 2026
Merged

micio86dev merged 5 commits into
developfrom
feature/org-background-color

Conversation

@micio86dev

Copy link
Copy Markdown
Owner

What

Two features on one stacked branch (native-review approved):

  1. Answer time range: the avatar template form edits answer_min_seconds and answer_max_seconds (defaults 90 and 150, integer 10..600, min < max) with client validation and per-reason server error copy. Both template pages key the form on every opened draft so the whole draft re-seeds.
  2. Background colour: Settings > Branding gets a background colour with Dark (#0f172a) and Light (#f1f5f9) presets, a free colour field and Clear (empty means the default dark candidate canvas). Candidate-only: the backoffice theme is unchanged.

API contract and generated types come from api feature/org-background-color.

Checks

  • Vitest: 240 files, 4177 passed. eslint, prettier, typecheck clean. Playwright avatar-templates-forecast and settings specs pass on chromium.

Admins set the good-answer window (answer_min_seconds, answer_max_seconds;
defaults 90/150, 10..600, min < max) in the avatar template form. Payload is
forwarded by both pages and composables; client validation and server error
mapping with it/en copy. Syncs openapi.json and regenerates types/api.ts.
Adds a background colour to the branding form: Dark/Light presets, native picker, hex field and clear (null = default dark canvas). Syncs the OpenAPI spec and regenerates the types.
…s opened

Both pages reused one AvatarTemplateForm instance across templates, keeping the previous name, config, persona and answer-range errors. Key the form on the template id so the whole draft re-seeds, and drop the partial answer-range watcher it made redundant.
@micio86dev
micio86dev merged commit 50d743d into develop Oct 16, 2026
4 checks passed
@micio86dev
micio86dev deleted the feature/org-background-color branch October 16, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant