Skip to content
SprecherEast
Issue 1379

Toast fields in the whole-bill block

Back to our plan
Done
enhancementfrontendcmspriority: medium

Problem

A toast's wording and behavior should be the editor's, not typed in code (text is content too, #1162).

Proposed fix

A toast group on the whole-bill block: for each toast an id, type, message (with the usual {year} blanks), ending, fade seconds and accept label, with starting values typed once in billShareDefaults.ts. Code asks for a toast by id. The stored January note (rates.note) keeps working: it becomes the message of the rates toast.

Existing work compared

Mirrors how the rates title and note were added (#1351): rich-text JSON, so no migration.

Acceptance criteria

  • Not done: Editors can set type, wording, ending, fade seconds and accept label per toast; invalid blanks are refused as in the notes.
  • Not done: Blocks stored before the group existed show the defaults.
  • Not done: Mapper and block-config tests.
  • Not done: The CMS notes and README describe the fields.

Files likely touched

billShare.ts, billShareBlockConfig.ts, billShareDefaults.ts, editorialLimits.ts, tests, README.

Must not touch

UI kit components.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab