# The bring list (poll type 5)

Status: **Beta, open to every account** (product owner, 31 Oct 2026; in testing for Alpha and Admin accounts from 23 Oct 2026). Drafts: the design canvas
"kulibri Bringliste – Entwurf".

## What it is

A poll of its own type for "who brings what, who helps?": a school or kindergarten party, a club celebration, an outing.
Nobody is asked whether they come; the owner lists what is needed, everyone enters what they bring. Optionally a date
and a place, with the guest list's fields (one choice with start, end and location), shown as information only.

## How it is built

- **Type 5**, served only by the new UI (`UiVersionResolver::BRING_LIST_TYPE`, reason `poll-bringlist`); classic hands
  it over when it meets one (`pollBelongsToNewUi`).
- **Positions are the poll's tasks.** Three additive columns (migration `2026_10_23_090000`):
  - `tasks.unit`: what is counted ("Schüsseln", "1,5-l-Flaschen", "Personen"); empty = pieces;
  - `tasks.sort`: the owner's order;
  - `resources.amount`: how many one participant brings (default 1).
  `tasks.resource_count` is the target; **0 means no limit**. One assignment per participant and position; the stepper
  changes its amount. A task in a date poll is unchanged: its assignments count 1.
- **Capacity on the server**: an assignment never brings more than is free (`ResourceController`, 422 `task.full` with
  `free`). Before, nothing checked a task's capacity (finding 1 of the tasks spec).
- **Every owner** may make a poll a bring list, and the new UI shows the tile "Bringliste" to everybody, with the Beta
  label (31 Oct 2026). Until then only Alpha and Admin owners could (`postDetails` answered 403 `bringList.notAllowed`).
- **The answer bar** is the one of the date view (`k-date-submitbar k-answerbar`, "Meine Auswahl bestätigen"), right under
  the card; on a phone it is fixed to the bottom of the screen (31 Oct 2026).

## The new UI

- `utils/bringList.ts`: the rules (sums, what is free, status, the writes for a choice and for the editor's positions).
- `composables/useBringList.ts`: the only caller of `api` for it.
- `components/bringlist/BringListView.vue`: the page for the admin and participants (instead of tabs and grid in
  `PollDetailView`): positions with what is still needed, a stepper, a note ("Was bringst du mit?"), "Wer bringt was?",
  one bar to confirm. A visitor without a row gives name and address on the first confirm (since 3 Nov 2026 as the poll's
  participant settings say: the address only with "E-Mail-Adresse abfragen", else optional; the fields for participants
  are asked; self sign-up with an address, a participant of the poll without one; the server
  mails the personal link).
- `components/bringlist/BringListPositions.vue`: the editor's section "Positionen" (name, unit, "Gebraucht", order),
  written when the editor saves, after the poll's details.
- Comments ("Kommentare erlauben", on by default) sit under the list, in a slot of `BringListView` filled by
  `PollDetailView` (`components/poll/PollComments.vue`, the list shared with the other poll types). They are gone while
  the answer bar is up, as on the other poll types; a send or delete would also reload the poll and drop the choice.
- Dashboard: the card is labelled "Bringliste" and shows participants like a text poll.
- Excel export (`utils/excelExport.ts`): a matrix, who brings something down, the positions across ("Kuchen
  (Portionen)"), "Gebraucht" under the heads, the amounts as numbers, a column "Notizen", then "Zugesagt" and "Fehlt
  noch". The positions are read fresh from the server on export.
- No design switch, no "Klassische Ansicht" in the user menu, and in the editor none of: tasks, "Ändern von Antworten
  nicht erlauben", hidden mode, the poll's view for participants (product owner, 23 Oct 2026: a bring list is open
  to all, so nobody brings the same twice).

## Participants add positions

When the owner switches on "Teilnehmende dürfen Positionen ergänzen" (`options.bringListOpen`, editor section
"Positionen"), the page offers "Etwas anderes mitbringen": what, unit, amount, note. It becomes a position without a
limit with the participant's assignment (`POST /api/poll/{pollId}/bring-item`, `BringListController`), marked "ergänzt
von <Name>" (`tasks.created_by_participant_id`); others may join it. The participant removes it while only they bring to
it (`DELETE .../bring-item/{taskId}/{participantId}`); the owner edits and removes it like any position. A new visitor
gives name and address first. The server refuses it unless the poll is a bring list with the switch on and the
participant belongs to the poll.

## Not yet (decide before it leaves testing)

- An address that takes part already: the visitor is told to use their personal link; the email code flow of the poll
  page is not wired in.
- The 10 free tasks per account are not applied to positions.
- Dashboard numbers ("3 von 5 komplett", helpers) need the tasks in the dashboard response.
- Mails: an assignment still sends the task mails ("hat Aufgabe … übernommen").
- As an option of the guest list.
