Skip to content

D120 2d — shell: every success said by the window's toast, never in place; a failure in place - #1352

Open
kitokey-lina[bot] wants to merge 7 commits into
mainfrom
d120-2d-export-said-by-toast
Open

kitokey-lina[bot] wants to merge 7 commits into
mainfrom
d120-2d-export-said-by-toast

Conversation

@kitokey-lina

@kitokey-lina kitokey-lina Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

For the decider, in one sentence: six successes that were still said where the action was (an export, a calendar file, a send, a destination added, a transcription service saved, space freed) are now said by the window's one toast, as #1329 did for the copies and « Enregistré »; each failure is still said in place.

flowchart LR
    A1["Partager › Exporter<br/>(#share-said)"]:::old --> S["say() — #toast<br/>role=status, 5 s"]:::new
    A2["Ajouter au calendrier › .ics<br/>(#dates-saved, removed)"]:::old --> S
    A3["Envoyer à …<br/>(#send-said)"]:::old --> S
    A4["Settings › destination added<br/>(#destination-said)"]:::old --> S
    A5["Settings › service saved<br/>(#transcription-said)"]:::old --> S
    A6["Faire de la place<br/>(#free-said)"]:::old --> S
    S --> M["a modal dialog open:<br/>inside it"]:::new
    E["A failure"]:::old --> P["said in place, as before"]:::old
Loading

Legend: green is new in this pull request; grey is on main.

Module

shell, exactly one: ui/window.js (the six sites, and say() in a modal dialog) and scripts/e2e_window.py.

  • This pull request touches a single module

Deliverable

Deliverable: D120

Cycle 12, criterion 4: a success is said by the window's toast, and no inline note remains. #1329 (D120 2c) moved the five copies and « Enregistré »; these six were left in place. The decider's rule, 2026-11-28, through the coordinator: the same rule everywhere, nothing exotic.

What it changes

The census, made with the explorer subagent over ui/window.js, ui/first-run.js and ui/index.html at main 17c4232: every word of words.rs that reads as a success or a confirmation, and every status element (role=status, aria-live) other than #toast. Six successes were said in place; every other status element says a failure, a progress or a state.

Action Was said in place, at main Now Its failure
Export to PDF or Markdown (D121) #share-said, window.js:3474 (export_done) say(), window.js:3477 in place, #share-said
Calendar file (.ics) #dates-saved, window.js:2704 (dates_saved); the element is removed say(), window.js:2706 in place, #dates-said
A summary sent #send-said, window.js:2364 (send_done): shown, or clipped for screen readers (.unseen) once listed say(), window.js:2372; its line under the summary stays in place, #send-said
A destination added #destination-said, window.js:4308 (destination_added) say(), window.js:4311 in place, #destination-said
A transcription service saved #transcription-said, window.js:4568–4573 (service_saved, service_saved_here), kept across a redraw say(), window.js:4578; nothing kept in place in place, as is « key not kept »
Space freed #free-said, window.js:6115 (free_done) say() once the page is drawn again, window.js:6127 in place, #free-said

Not changed: the list of sends (send_listed, a record), « Audio supprimé » (a state in the list), the Tester's answers and every progress line.

In a modal dialog. « Ajouter au calendrier » is a modal dialog: the page under it is inert, so a toast left in the page would be hidden behind it and not heard. say() now puts the toast inside the open dialog, and back in the page once none is open (window.js:1085–1089). This is libadwaita's convention: AdwDialog and AdwPreferencesDialog each have their own add_toast (the coordinator's validation, 2026-11-28). Toast in an open dialog: the decider's choice, 2026-11-28 (v5 silent). HTML's top layer makes everything outside a modal dialog inert (HTML Living Standard, showModal()).

Oracle

  • Red at 1d12c9e (main 17c4232 with this oracle alone): i-lina-120d-red-1d12c9e, the eight scenarios below: 26 FAIL, no exception. Each FAIL is a success the toast did not say; the export's, at df75c79, failed alone first (i-lina-120d-red-df75c79, 12 FAIL).
  • Green at 50106cb: i-lina-120d-green-50106cb, the eleven scenarios: 298 checks ok, 0 FAIL, no exception. Among them: each of the six said once by the toast, nothing in place, in fr and en where the scenario has both; the long file name whole in the toast at 1100 and 420 px; the .ics said inside its modal dialog, over it; the dialog closed, the next « Copié » said in the page, in sight; every failure still said in place.
  • Mutants: m-no-dialog-host (no toast in the dialog) at c09827c, dates_mentioned: 2 FAIL, « the toast over it and inside it », fr and en. m-no-way-back (the toast never back in the page) at 50106cb, dates_mentioned: 2 FAIL, « the dialog closed, the next success still said by the window's toast, in sight », fr and en: no toast in the document.
  • said_by_toast() is new: what the toast said beginning with some words, and where else the page shows them. TOAST_WATCH now sets aside a toast still shown from the action before, which read as said since and ended waits early (the first green, at c09827c, failed on that).
  • Scenario FD (freed_said) is new: « Faire de la place » done was only in P, in main()'s body, which a partial run does not reach.
  • A first version guarded the toast's way back with !toast.isConnected (4fb67f9). Its mutant lived: a removed dialog keeps the toast as its child, and toast.closest("dialog") already finds it. Reverted (50106cb).

Kind of oracle: the window's e2e (Z, BG, CM, FD, CK, CL, CN, ME; CY, AJ and AM for TOAST_WATCH).

Review budget

  • nstack pr-scope with MAX_LINES=800: 237 lines of the project's 800, 2 files of 15.

Contracts

  • No contract affected

Definition of Done

  • Oracle red, then green
  • Lint (pre-commit, ruff), node --check
  • The attest
  • The test sheet run by a verifier
  • Accessibility: every success heard through #toast (role=status), inside a modal dialog when one is open; the screenshots me-said-fr-light and me-said-long-fr read, the toast clear of the bar at 1100 and 420 px
  • Diff self-reviewed

Summary

DONE

  • Six successes said by the toast, not in place; #dates-saved removed.
  • say() puts the toast inside an open modal dialog.
  • The e2e asks each of them, plus FD, new.

VERIFIED

  • The red and green runs and the mutants above, by partial runs at the commits named.

ASSUMED

  • The send's « sent but not recorded » case is a success like the others (the coordinator's census rule): said by the toast, and not listed.

NOT VERIFIED

  • No screen reader (Orca) in the headless session: #toast inside the dialog is a role=status there, which is what Orca reads.
  • cargo test not run: no file under src/ changes.

RISKS

Test sheet

The verifier's section: shell is standard.

Verifier: (to be named by the coordinator)

# Given · when · then Kind Result Evidence Commit Confirmed
S1 Given a meeting, when it is exported to PDF and to Markdown, then « Exporté : « ». » is said once by the window's toast, never in place; a long name whole in the toast at 1100 and 420 px; the dialog closed, nothing said; a file refused, said in place, no toast (ME, meeting_exported) automated
S2 Given « Ajouter au calendrier » (a modal dialog), when the .ics is saved, then « Enregistré dans … » is said by a toast inside the dialog, over it; the dialog closed, the next success (« Copié ») still said by a toast in the page, in sight (CM, dates_mentioned) automated
S3 Given a summary sent, when it leaves, then « Envoyé à « … » à … » is said by the toast, never in place, its line in the list kept; a failure said in place with what to do; the record unwritable, still said sent by the toast (CL, summary_sent; CN, confidential_sent) automated
S4 Given Settings, when a destination is added, a transcription service saved (also while Tester asks), then each success is said by the toast, nothing in place; a refusal still said in place (CK, destinations_kept; Z, service_named; BG, transcription_guided) automated
S5 Given « Faire de la place », when the audio is freed, then « C’est fait : tout est dans la corbeille. » is said by the toast, never in place (FD, freed_said) automated
S6 Given TOAST_WATCH changed, when CY, AJ and AM run, then their toast checks hold as on main (toasts_said, minutes_copied, announced) automated
S7 Given a person with a screen reader (Orca), when a success inside the calendar dialog is said, then it is heard once human only — no screen reader in the headless session

🤖 Generated with Claude Code

kitokey-lina Bot and others added 7 commits November 28, 2026 19:27
…ace; its failure stays in place

Criterion 4 of D120: a success is said by the window's toast. « Exporté : « … ». » was still said in
#share-said (#1252); ME now asks it of the toast, once, nowhere in place, the long name whole in the
window at 1100 and 420 px; the dialog closed and a file refused say nothing by the toast.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ort, .ics, send, destination, service, freed

Criterion 4 of D120, everywhere (the decider, through the coordinator: one rule, nothing exotic).
said_by_toast() reads what the toast said and where else the page shows it; each success asked of it:
ME (export), dates_mentioned (.ics), summary_sent and confidential_sent (sent), destinations_kept
(destination kept), service_named and transcription_guided (service saved), and FD, new (space freed).
Failures stay asked in place, unchanged.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
« Ajouter au calendrier » is a modal dialog: the page under it is inert, so a toast left in the body
would be hidden behind it and unheard. dates_mentioned asks the toast at its centre on top, inside the
open dialog.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s failure stays in place

Criterion 4 of D120, everywhere: an export, a calendar file, a send, a destination kept, a transcription
service saved and space freed now say their success with say(), and #dates-saved is gone; each
failure is still said in place, what to do with it. A modal dialog open, the toast is said inside it,
the page under it being inert.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gone, the next success still toasted

The green run at c09827c read the toast still shown from the action before as said since TOAST_WATCH,
and so ended waits early (CL, CN, ME). TOAST_WATCH now sets that toast's words aside until a toast is
said anew; the sends wait for their own destination's words. Z's Tester checks ask the saved
sentence of the toast, nothing in place. dates_mentioned asks, once its dialog is gone with the toast
it held, that the next success is still said by a toast in sight.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A modal dialog removed takes the toast it held with it; say() now appends it to the page again when
it is no longer in the document.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
m-no-reconnect, that test removed, passed dates_mentioned at 4fb67f9: a dialog removed keeps the
toast as its child, and toast.closest("dialog") finds it, detached or not. Reverts 4fb67f9; the
check « the dialog closed, the next success still said » stays, held by that line.

Agent-Session: 44c23727-79e0-44b5-8ad6-25ac1f2730f5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

0 participants