# Browser checks for the new UI (QA)

What the QA team has to check in a browser before the first users get the new UI. The status of every function is in the checklist
(`V3-PARITY-PLAN.md`, section 5); this page lists only the checks that need a person, taken from the rows of the phase *Run*
and their notes. Automated tests cover the logic; they missed real defects before (images from the wrong host, a doubled header, a
double-encoded URL), so a person has to look at the screens, with a real account, on a real phone width.

## How to test

- **Which UI.** `?ui=v3` and `?ui=legacy` switch the UI for the visitor and stick (cookie; for a signed-in user also stored in
  the account). `?classic=1` shows classic for that request only and changes nothing. Every response carries the headers
  `X-Kulibri-UI` (`legacy` or `v3`) and `X-Kulibri-UI-Reason` (why). Look at them first: two "identical" screenshots were once both classic.
- **Compare with classic** on the same poll, with `?classic=1`, whenever a row says "compare".
- **Accounts.** A free owner and a Premium owner; an owner with the Beta or Admin role (poll modes); a participant with an account,
  one without an account, and one who came through an invitation link.
- **Sizes and languages.** A desktop window (about 1280 px) and a phone width (about 390 px), in German and in English
  (language switch in the user menu). Keep the network panel open and watch for failed requests and for requests to the wrong host.
- **Record each check** as *Pass* or *Gap*; for a gap add the address, the two header values, what you did, what you expected and a
  screenshot. The result goes into the row of the checklist.

## Checks by area

Start with the date poll (3.1): it is the first poll type to switch on.

### A · Poll types and answering
| Row | Check |
|---|---|
| 3.1 Date poll | Create, answer (grid, date list, participant view), change an answer, as owner, as participant with and without an account. The row being edited shows one answer column per option; the admin views show a compact answer bar. |
| 3.3 Text poll, 3.2 Guest list | The same flows. Guest list: counting rule (PO-26), guests per entry (3.12), "Who is already in?" |
| 3.5 Answer options | Yes, no, if needed, don't know, "no answer" (clears a cell), and the waitlist mark. Compare the symbols with classic. |
| 3.9, 3.10 | One choice per participant; limits per option (per slot, all, per day): the error when a limit is exceeded on every save path of date polls and of the course planner (9.4). |
| 3.15 Option types | Tick off every option type of classic's `Create/` components (time ranges, days plus text) in the editor. |
| 3.17 Mobile layout | Every view at phone width: poll page (grid, date list, participants, comments, tasks), invite, edit participant, the editor. |
| Large polls | A poll with hundreds of participants and dozens of dates loads in parts: scroll, sort, search. |

### B · Participants, comments, tasks
| Row | Check |
|---|---|
| 4.1 | Add, rename, delete a participant; change answers (as admin, and for the own row). |
| 4.2 Custom fields | The guard `KULIBRI_UI_V3_FEATURE_GUARD` is **off** (decision 16 Oct), so polls with custom participant fields are served by the new UI during the test. Check every field type, each as mandatory, optional and admin-only, in the sign-up dialog, in the edit dialog and in the admin's add dialog, for every poll type (date, guest list, text, course). Compare with `?classic=1`. A gap means the guard goes back on (`KULIBRI_UI_V3_FEATURE_GUARD=true`, then `php artisan config:clear`) until it is fixed, so no data is quietly left out. |
| 4.3 Comments | Write, delete; in a hidden poll a participant sees only their own messages to the admin, and only the admin reads them all. |
| 4.5, 4.6 Tasks | Create, assign, take on; the limit of 10 free tasks. |

### C · Invite and share
| Row | Check |
|---|---|
| 5.1 Invite by email | The `{link}` placeholder (the send button stays off without it) and the limit of 50 recipients for a free account. |
| 5.2, invite from another project | Pick from contacts; pick a project, then its people (Premium). |
| 5.4 Personal link | Open the link of an invited participant and of one without an invitation, in both UIs. |
| 5.5 Admin link | After the first save the mail with the link for managing the poll arrives (check the inbox). |
| QR code, share page | Show, download, copy the links. |

### D · Editor and appearance
| Row | Check |
|---|---|
| 6.1 Editor | Create and edit with the live preview on the poll page; the description in the header (2 lines, "more"). Also without an account (`/pr/new`). |
| 6.2 Deadline | The effect of a deadline on answering and editing; remove it with one click; reminders. |
| 6.3, 6.13 Close and open | Close, choose final options, open again; the banner texts. |
| 6.4 Delete, 6.11 Copy | Delete asks first; a copy has the settings and no participants. |
| 6.6 Background | Defaults, upload, delete an own image, the limit of 3 free images. |
| 6.9, 6.10, P3 | Dark mode of a poll; admin notifications; own logo (PREMIUM badge, a free owner may preview but not save) and saving a design. |

### E · Dashboard, export, feedback
| Row | Check |
|---|---|
| 7.1 Dashboard | Own and invited polls, search, filter, the guest-list counts as classic. |
| Archive per user | The archive button is on every poll, own and invited; archiving asks first; "Show archived only" lists it; restore. A poll archived in one UI is archived in the other. |
| 7.5 Excel export | Per poll type; compare with classic's file (cell colours are not expected). Premium only. |
| 7.7 Feedback | Send from the user menu and from the poll page; the mail reaches support (`mail.admin_email` on the test server); on a phone the floating buttons step aside while the page shows a bar of its own at the bottom. |

### F · Links, routes, rollout
| Row | Check |
|---|---|
| 1.12, 9.5 Old link formats | Public key, legacy admin key, three-part link, invitation id: each opens the right poll with the right role. |
| 1.8, H1 Poll gone | A deleted poll and a removed participant's link (and an unknown second segment) show the right notice, in both languages. |
| H2 `/pr/new` | Without an account: create, name and email at the first save. Reloading the editor of a poll still being created. |
| Poll modes | For a Beta or Admin owner: the dialog at the first save (cancel returns to the editor), the row "View for participants", the keys survive a later save, a switchable poll opens both ways (link in each UI), a participant without an account, phone width. |
| `?classic=1` | One-off classic on a poll link and on the dashboard; "Try the new kulibri" and "Classic kulibri" in the menus. |
| 7.11 Design toggle | The pill "New kulibri / Classic" in the header of the poll page and the dashboard, in both UIs: signed in, anonymous (no menu), on a switchable poll and one fixed to classic or new (classic hides it); the choice sticks after a reload; phone width, light and dark design. |
| Welcome dialog (docs/notices.md) | Needs the migration `user_notices`. Sign in and open the new dashboard: "Willkommen im neuen kulibri" opens once. Reload: it does not come again. Sign in with the same account in another browser or a private window: it does not open there either (it is remembered on the account). A user menu entry "Was ist neu" still opens it. An account that saw it before this change (browser key `kulibri.whatsNewSeen`) is not shown it again. |
| 9.2 Address already takes part | Needs the migration `email_challenges` on the server. In the new UI, sign up through the public link with an address that already takes part: no row is created, a six-digit code arrives by mail (de and en text), the dialog accepts it and offers the existing participants and "new participant"; a wrong code, five wrong codes, an expired code (15 min) and the limit of 3 codes an hour show the right messages. A second participant with the same address (a child) can be added after the code. Not asked: with the personal link of a row with the address, when signed in with the address, and as admin. After the sign-up or the code, the same browser can add another participant with the address without a new code (cookie `kulibri_rows`, HttpOnly, one year); a private window or another browser asks for the code again. Classic still shows its own dialog. |

### G · Account and session
| Row | Check |
|---|---|
| 1.5, 1.6 | Profile, change password, delete account (the texts need the PO's confirmation, PO-08). |
| Session expiry (419) | In both UIs: delete only the session cookie, keep the `remember_web_…` cookie, then write (add a comment). It must succeed. |

### H · Premium
Compare a free and a Premium owner, in both UIs. The lock must show a notice in place (no dead button, no spinner) and the server must refuse (402).
Hidden mode (P5), Excel export (P6), more than 50 invitation recipients (P7), messages to participants (P8), own logo and designs (P3),
background images beyond 3 and tasks beyond 10 (P2), the sub-admin toggle.

### I · Language (row 1.10)
Read every screen in English and in German: dashboard, new poll, the editor (all four poll types), the poll page with all views and
panels, share, invite, contacts, the course planner, account pages, feedback, the "poll gone" pages. Look for: wording that reads
wrong, text that no longer fits (English is often longer), German text that is not data (poll titles, names and options are
the owner's own and stay as typed), weekday names, dates and times. Force the error texts too: an empty name in the add-participant
dialog, a network error. The temporary participant reads "Your answer" in English.

## Not for this round
Functions that are not built are listed in the checklist (status *Partial*, *Missing*, *Classic*, *Decision*); sign-in, registration,
password reset and Google sign-in stay in classic until phase 3. Do not report them as defects of the new UI.
