Skip to content

D127c — shell: a meeting not named by its user titled from its summary's first highlight, marked as Kitokey's beside its date - #1418

Open
kitokey-ines[bot] wants to merge 7 commits into
mainfrom
d127c3-title-from-highlight
Open

kitokey-ines[bot] wants to merge 7 commits into
mainfrom
d127c3-title-from-highlight

Conversation

@kitokey-ines

@kitokey-ines kitokey-ines Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Head: 713dc9e. For the decider, in one sentence: a meeting you did not name now takes a title from its summary — the summary's own title, or else its first highlight's first sentence — marked « ✦ Titre proposé par Kitokey » beside its date; the name you type wins and removes the mark.

Before (main) After
A summary with no title: the row and the page named by the date alone the list, fr light
the list, fr dark
the page, fr

Deliverable: D127
Closes #1240

Module

shell, exactly one:

  • src/minutes.rs: highlight, the first section's first paragraph or item, as a title;

  • src/sessions.rs: title_of (the user's name, else the summary's title, else its highlight) and Listed.guessed;

  • src/main.rs: a notification names the meeting through title_of, as the list does;

  • src/words.rs: title_guessed, fr and en;

  • ui/window.js, ui/window.css: the mark beside the date, in the row and on the page; it goes when the user names the meeting;

  • tests/titled.rs (new), tests/minutes.rs; scripts/e2e_window.py: DL titled_from_highlight, AL and DG following the criterion;

  • MANIFEST.yaml: highlight among pulldown-cmark's readers.

  • This pull request touches a single module

Deliverable

D127, criterion 3: « Given a meeting without a title of its own, when its summary exists, then its row and its page take a title from the summary's first highlight, marked as Kitokey's, the date as its subtitle; the user's own title wins; held by the e2e ». Criterion 1 was #1400. Criterion 2, the 500 meetings, is still open: D127 is not delivered by this PR.

What it changes

Element Behaviour
A meeting's name the user's (title.txt), else the summary's title: (D48), else its first highlight. With neither, the date, as before
The first highlight the first section's first paragraph or list item, its markup aside, its first sentence (a period ending a word of one or two letters — « M. », « Mr. », « p. ex. » — ends none), a trailing [mm:ss] and the final period left out; cut on a word with « … » within the contract's 80 characters
The mark on every title the user did not type, the summary's title: included (the coordinator's decision, 2026-12-01: a title the model wrote is a guess, #1240). In the row: the sparkles icon (D126's), role=img, named and in its tooltip « Titre proposé par Kitokey ». On the page: the icon and those words beside the date, with no tooltip repeating them
The user names it their name wins, the mark goes from the page at once and from the row; emptied, the guess comes back
Notifications name the meeting as the list does (meeting_said through title_of). Deliberate and not held by a test of its own: title_of is held by tests/titled.rs, its call in main.rs by none (#1418 review, nora)

Conventions followed. The icon is the design system's own (D126). The mark has an accessible name, is never interactive and takes no tab stop. The date stays one line of text (D89's check). No market reference is given here: none was read and dated for this PR.

Kept: one rule for every guessed title, and the date kept as the subtitle. Left out: a title written back to the summary, a « confirm this title » action, and a title asked of the model when it gave none.

Oracle

  • Red at de3cb36 (the e2e alone, on main's product): i-d127c3-red-de3cb367 (titled_from_highlight,meeting_named,found_by_what_was_said): 57 ok, 6 FAIL — DL's (no title from the highlight, no cut, no mark in the row, none on the page) and AL's two checks the criterion changes (a minutes/v1 without a title named by its date). DG passes on main.
  • Green at d75bdbd: i-d127c3-green2-d75bdbd5 (titled_from_highlight,meeting_named,found_by_what_was_said,meeting_renamed,pages_seen,store_shots,palette_used): 240 ok, 5 FAIL. Two real defects, fixed in ee69690: the page's mark, an inline-flex, read as two more lines of the date by pages_seen (D89), and it stayed on the page after the user named the meeting.
  • Green at ee69690: i-d127c3-green3-ee696902 (titled_from_highlight,pages_seen,meeting_renamed,meeting_named): 157 ok, 0 FAIL.
  • After nora's review at ee69690: tests/titled.rs red on « M. Dupont présente le budget. » (got « M »), then green at 701945e/713dc9e9 (titled 4/4, minutes 24/24); the page's mark loses its repeated tooltip.
  • Green at the head 713dc9e: i-d127c3-green4-713dc9e9 (titled_from_highlight): 19 ok, 0 FAIL.
  • cargo test --locked --offline --no-fail-fast (shell), at e1d67a7: 608 passed and 1 failed (tests/minutes.rs, which the criterion changes), then that test updated: 24/24. look and design again at ee69690: 34/34. No « NOT RUN ». clippy -D warnings and cargo fmt --check clean.

Tests changed by the criterion, none loosened:

  • AL meeting_named: a minutes/v1 without a title is now titled by its first highlight, « Le budget », the date beneath it; a meeting without a summary keeps its date.
  • DG found_by_what_was_said: its summarised meeting takes a title: of other words (« Point du mois »), so it stays found by its summary and not by a title; a summary's result names its meeting as its row does.
  • tests/minutes.rs a_session_listed_says_its_minutes_title: « old » and « long » (no title, or one out of bounds) now take their first highlight.

Kind of oracle: the window's e2e with axe-core on the list and the page, and the shell's tests (tests/titled.rs).

Review budget

git diff --stat from main: 10 files, 336 lines added and 16 removed, 130 of them the new test file. The oracle first, then the product.

  • Within budget

Contracts

  • No contract affected: minutes/v1–v5 are read as before; nothing is written to them.

Definition of Done

  • Oracle red, then green
  • Lint, format
  • The attest
  • The test sheet run by a verifier
  • Accessibility: the mark named (role=img and its label in the row, words on the page), not interactive, axe clean on the list and on the page

Test sheet

Verifier: (the coordinator names one)

# Given · when · then Kind Result Evidence Commit Confirmed
T1 Given the head, when DL runs, then a meeting with no name of its own is titled by its summary's title or its first highlight (first sentence, no period, its time left out, cut on a word within 80 characters), marked in its row and on its page, the user's name winning and the mark going at once; axe clean automated not verified
T2 Given the head, when meeting_named, meeting_renamed, found_by_what_was_said, pages_seen, store_shots and palette_used run, then they pass automated not verified
T3 Given the shell's tests (cargo test --locked -- --nocapture), when they run, then all pass, with no « NOT RUN » automated not verified
T4 Given mutants of the verifier's own (the first sentence not cut; the time kept; the cut not on a word; the user's name marked as a guess; the mark not removed on renaming; the row's mark without a name), when DL and tests/titled.rs run, then each fails automated not verified
T5 Given the window by the keyboard alone, with a screen reader's names, when the list and a meeting's page are read, then the mark is read with each guessed title and adds no tab stop explored not verified

Summary

DONE

  • A meeting with no name of its own is titled by its summary's title or its first highlight.
  • That title is marked as Kitokey's beside its date, in the row and on the page; the user's name wins and removes the mark.
  • Notifications name the meeting as the list does.

VERIFIED

  • Red at de3cb36 (6 FAIL, DL's and AL's changed checks). Green at the head ee69690 (157 ok, 0 FAIL); store_shots, palette_used and found_by_what_was_said green at d75bdbd.
  • The shell's tests: 608 passed, 1 failed (tests/minutes.rs, which the criterion changes); that test updated, 24/24. look and design at ee69690: 34/34. clippy and fmt clean.

ASSUMED

  • « First highlight » is the summary's first section's first block, whatever the structure (minutes/v5's first section included).

NOT VERIFIED

  • A real screen reader (Orca) reading the mark.
  • store_shots, palette_used and found_by_what_was_said at the head: ee69690 changes the mark's CSS and the rename path only; the attest runs them.

RISKS

  • A two-letter word ending a real sentence (« Il y va. ») is read as an abbreviation: the title then runs on to the next stop or is cut at 80 characters with « … ».
  • meeting_said in main.rs is not held by a test (see above).
  • The Store's screenshots now show the mark on every meeting the user did not rename (accepted by the coordinator).

🤖 Generated with Claude Code

kitokey-ines Bot and others added 7 commits November 30, 2026 23:50
…ht, marked as Kitokey's, the date beneath, the user's name winning; AL and DG follow (D127 criterion 3)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rst highlight, marked as Kitokey's beside its date; the user's name wins (D127 criterion 3)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…127 criterion 3)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et reference (D127 criterion 3)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t once; the mark sits on the date's line of text (D127 criterion 3)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ex. » keeps its first sentence whole (#1418 review, nora)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rk said once, its tooltip in the row alone (#1418 review, nora)

Agent-Session: cabe12ee-7978-42b1-82ad-5090c4cba137
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.

shell: the list's rows titled from the summary's first highlight, the date under it

0 participants