Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
19817ff
Merge pull request #119 from SimplicityApp/dev
ShuhaoZQGG Nov 2, 2026
0b449bb
content(tabletopics): +60 questions for 2026-11-02
claude Nov 2, 2026
12379bc
Merge pull request #121 from SimplicityApp/content/tt-questions-2026-…
ShuhaoZQGG Nov 2, 2026
642f716
Merge pull request #123 from SimplicityApp/dev
ShuhaoZQGG Nov 3, 2026
1d1c5ce
ci(factory): add the factory workflows and templates to master
ShuhaoZQGG Nov 8, 2026
b4d3e74
Merge pull request #133 from SimplicityApp/chore/factory-workflows-ma…
ShuhaoZQGG Nov 9, 2026
3b7c527
content(tabletopics): +60 questions for 2026-11-09
claude Nov 9, 2026
678500d
Merge pull request #134 from SimplicityApp/content/tt-questions-2026-…
ShuhaoZQGG Nov 10, 2026
e742f45
ci(factory): run the cloud stations on Opus 5.5 at high effort
ShuhaoZQGG Nov 10, 2026
b903f08
Merge pull request #137 from SimplicityApp/chore/factory-opus-master
ShuhaoZQGG Nov 10, 2026
6fd3713
Merge pull request #150 from SimplicityApp/dev
ShuhaoZQGG Nov 14, 2026
45595b3
ci(factory): let cloud stations run node/npm on the bot's own factory…
ShuhaoZQGG Nov 15, 2026
022aa4a
content(tabletopics): +60 questions for 2026-11-16
claude Nov 16, 2026
ded935c
Merge pull request #162 from SimplicityApp/content/tt-questions-2026-…
ShuhaoZQGG Nov 18, 2026
0485756
Merge pull request #158 from SimplicityApp/chore/factory-trust-bot-pr…
ShuhaoZQGG Nov 18, 2026
e026cce
ci(factory): give the build station the job token, which outlives the…
ShuhaoZQGG Nov 22, 2026
be03b9b
Merge pull request #172 from SimplicityApp/chore/factory-build-job-to…
ShuhaoZQGG Nov 22, 2026
b736d8c
ci(factory): print how Claude ended when a build runs (master)
ShuhaoZQGG Nov 22, 2026
70ec0a1
Merge pull request #174 from SimplicityApp/chore/factory-build-last-m…
ShuhaoZQGG Nov 22, 2026
1af15ef
content(tabletopics): +60 questions for 2026-11-23
claude Nov 23, 2026
9690ff0
Merge pull request #175 from SimplicityApp/content/tt-questions-2026-…
ShuhaoZQGG Nov 25, 2026
fbb534a
content(tabletopics): +60 questions for 2026-11-30
claude Nov 30, 2026
aa6c1dd
Merge pull request #182 from SimplicityApp/content/tt-questions-2026-…
ShuhaoZQGG Nov 30, 2026
417f81a
ci(factory): install WebKit in the build station (master)
ShuhaoZQGG Dec 2, 2026
a140bff
Merge pull request #190 from SimplicityApp/chore/factory-build-webkit…
ShuhaoZQGG Dec 2, 2026
ececa6e
Merge master into dev: five weeks of Table Topics questions
ShuhaoZQGG Dec 3, 2026
718aae9
content(tabletopics): theme tags for the 60 questions of 2026-11-30
ShuhaoZQGG Dec 3, 2026
4622f92
test(tabletopics): the abstract-theme test allows a question that say…
ShuhaoZQGG Dec 3, 2026
51f5e92
fix(agenda): the paste box no longer loses speakers without saying so
ShuhaoZQGG Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,530 changes: 1,515 additions & 15 deletions apps/table-topics/content/questions.json

Large diffs are not rendered by default.

62 changes: 61 additions & 1 deletion apps/table-topics/content/tags.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion apps/table-topics/test/themeMatch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ describe('quick match with theme tags', () => {
it('finds abstract themes the text rarely names: a full list for gratitude and second chances', () => {
expect(shortlist('gratitude', {}).filter((q) => q.source !== 'general').length).toBeLessThan(SHORTLIST_SIZE);
expect(shortlist('gratitude').every((q) => q.source === 'tag')).toBe(true);
expect(shortlist('second chances', {}).filter((q) => q.source !== 'general')).toEqual([]);
// The wording may name "second chance" in a question or two, but never enough to fill a list.
const byText = shortlist('second chances', {}).filter((q) => q.source !== 'general');
expect(byText.length).toBeLessThan(SHORTLIST_SIZE);
expect(shortlist('second chances').filter((q) => q.source === 'tag').length).toBeGreaterThan(byText.length);
expect(shortlist('second chances').filter((q) => q.source === 'tag').length).toBeGreaterThanOrEqual(5);
});

Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/AgendaTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export default memo(function AgendaTab({ onSwitchToLive }) {
// AI read or an upload. The web session is a cookie, so the read needs no token.
const aiAccess = useAgendaAiAccess();
const matchImport = useCallback((text) => {
const { ok, items, leftOut } = readAgendaText(text, roleOptions);
const { ok, items, leftOut, unused } = readAgendaText(text, roleOptions);
// Counted the way importAgendaText will store the rows: the role the agenda names, else the role as written.
const needs = (item) => agendaItemNeedsRole({ role: item.role ?? item.roleText ?? '' }, roleOptions);
return { recognised: ok, count: items.length, needsRole: items.filter(needs).length, leftOut };
return { recognised: ok, count: items.length, needsRole: items.filter(needs).length, leftOut, unused };
}, [roleOptions]);
// A row the Worker read has a role only when it names one of this user's roles.
const readRowNeedsRole = useCallback((item) => !roleOptions.includes(item.role), [roleOptions]);
Expand Down
4 changes: 2 additions & 2 deletions apps/zoom-app/src/hooks/useAgendaEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ export function useAgendaEditor({ onSwitchToLive } = {}) {
const aiAccess = useAgendaAiAccess();
const matchImport = useCallback(
(text) => {
const { ok, items, leftOut } = readAgendaText(text, roleOptions);
const { ok, items, leftOut, unused } = readAgendaText(text, roleOptions);
// Counted the way importAgendaText will store the rows: the role the agenda names, else the role as written.
const needs = (item) => agendaItemNeedsRole({ role: item.role ?? item.roleText ?? '' }, roleOptions);
return { recognised: ok, count: items.length, needsRole: items.filter(needs).length, leftOut };
return { recognised: ok, count: items.length, needsRole: items.filter(needs).length, leftOut, unused };
},
[roleOptions]
);
Expand Down
13 changes: 13 additions & 0 deletions e2e/zoom-client/agenda-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,19 @@ demo table: "Found 9 speakers. 9 need a role: you pick it after import. 5 left o
does not time those roles."). `verified_at` stays where it was: the next real-client run of
this spec (the release check lists it) covers IM-02, IM-07, IM-14 and IM-15.

Reviewed 2026-12-02 (fix/pre-master-blockers, lost speakers): the reader no longer takes
"1st Speaker - Sarah Chen" (a counted role, a spaced hyphen, a name) for a role line with no
name, so such lines read as their colon form does; and it counts the lines it took nothing from
and does not know for a header, a time or a speech's details (a second name under a role line,
a line of notes). When that count is above zero the line under the box ends "N line(s) not
used." and the dialog offers "Add each line as a speaker" under it, as it does for a text it
cannot read. A role line still takes one name. No step's paste has such a line (IM-02, IM-07,
IM-14 and IM-15 read with none unused), so no Do or Expect moves. Logic only, no Zoom-only
surface: not run in the real client. Stand-ins: `agendaReader.test.js` ("a counted role and a
name set apart by a spaced hyphen", "lines it takes nothing from") and `AgendaImport.test.jsx`
("says how many lines it did not use…"); the Playwright pastes in
`e2e/zoom.agenda-import.spec.js` and `e2e/web.agenda-import.spec.js` assert unchanged lines.

## Not covered
- Custom roles that come from Club Pro presets, or from older saved rules with no role
order. The PR now covers these too (`customRoleNames` comes from the dropdown, not from
Expand Down
72 changes: 70 additions & 2 deletions packages/shared/__tests__/agendaReader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const OWN_ONLY = ['Speech 5-7', 'Evaluation', 'General Evaluator', 'Grammarian',
/** What a text reads as: [name, role, role as written] per row. */
const rows = (text, roles = BUILT_INS, options) => readAgendaText(text, roles, options).items.map((item) => [item.name, item.role, item.roleText]);
const names = (text, roles = BUILT_INS) => readAgendaText(text, roles).items.map((item) => item.name);
const NOTHING = { ok: false, items: [], leftOut: 0 };
const NOTHING = { ok: false, items: [], leftOut: 0, unused: 0 };

describe('readAgendaText: the role a row gets', () => {
it('is the role in the user\'s list with the name the agenda uses, and no other', () => {
Expand Down Expand Up @@ -83,6 +83,7 @@ describe('readAgendaText: the role a row gets', () => {
ok: true,
items: [{ name: 'Alice', role: '1st Speaker', roleText: '1st Speaker' }],
leftOut: 0,
unused: 0,
});
});
});
Expand Down Expand Up @@ -123,6 +124,7 @@ describe('readAgendaText: one speaker per line, the role in brackets', () => {
expect(readAgendaText(LINES_DEMO, BUILT_INS)).toEqual({
ok: true,
leftOut: 0,
unused: 0,
items: [
{ name: 'Sarah Chen', role: 'Ice Breaker', roleText: 'Ice Breaker' },
{ name: 'James Wilson', role: 'Standard Speech', roleText: 'Standard Speech' },
Expand Down Expand Up @@ -323,6 +325,7 @@ describe('readAgendaText: one speaker per line, the role set off by anything els
expect(readAgendaText('Alice Johnson\nBob\n\nCarol - Ice Breaker', BUILT_INS)).toEqual({
ok: true,
leftOut: 0,
unused: 0,
items: [
{ name: 'Alice Johnson', role: null, roleText: '' },
{ name: 'Bob', role: null, roleText: '' },
Expand Down Expand Up @@ -362,6 +365,7 @@ describe('readAgendaText: a table of roles and names', () => {
expect(readAgendaText(TABLE_DEMO, BUILT_INS)).toEqual({
ok: true,
leftOut: 5,
unused: 0,
items: [
{ name: 'Priya Sharma', role: null, roleText: 'Grammarian' },
{ name: 'Sarah Chen', role: null, roleText: '1st Speaker' },
Expand Down Expand Up @@ -396,6 +400,7 @@ describe('readAgendaText: a table of roles and names', () => {
expect(readAgendaText(table, BUILT_INS)).toEqual({
ok: true,
leftOut: 1,
unused: 0,
items: [
{ name: 'Bob', role: null, roleText: 'Speaker 1' },
{ name: 'Carol', role: null, roleText: 'Speaker 2' },
Expand Down Expand Up @@ -631,6 +636,7 @@ describe('readAgendaText: roles the timer does not time', () => {
ok: true,
items: [{ name: 'G', role: null, roleText: 'Ah Counter' }],
leftOut: 6,
unused: 0,
});
});

Expand All @@ -645,6 +651,7 @@ describe('readAgendaText: roles the timer does not time', () => {
{ name: 'F', role: null, roleText: '1st Speaker' },
],
leftOut: 2,
unused: 0,
});
});

Expand All @@ -658,12 +665,14 @@ describe('readAgendaText: roles the timer does not time', () => {
ok: true,
items: [{ name: 'Bob', role: 'Ice Breaker', roleText: 'Ice Breaker' }],
leftOut: 1,
unused: 0,
});
expect(readAgendaText('Timer: Sam\nBob - Ice Breaker\nKim | sergeant at arms', BUILT_INS)).toMatchObject({ items: [{ name: 'Bob' }], leftOut: 2 });
expect(readAgendaText('Timer\nShuhao Zhang\nGrammarian\nPriya Sharma', BUILT_INS)).toEqual({
ok: true,
items: [{ name: 'Priya Sharma', role: null, roleText: 'Grammarian' }],
leftOut: 1,
unused: 0,
});
expect(readAgendaText('Rachel (Toastmaster)\nBob (Ice Breaker)', [...BUILT_INS, 'Toastmaster']).items.map((item) => item.role)).toEqual(['Toastmaster', 'Ice Breaker']);
});
Expand All @@ -676,7 +685,66 @@ describe('readAgendaText: roles the timer does not time', () => {
});

it('reads nobody from a text that has only such rows, and says what it left out', () => {
expect(readAgendaText('Toastmaster\tRachel Adams\nTimer\tSam Lee', BUILT_INS)).toEqual({ ok: true, items: [], leftOut: 2 });
expect(readAgendaText('Toastmaster\tRachel Adams\nTimer\tSam Lee', BUILT_INS)).toEqual({ ok: true, items: [], leftOut: 2, unused: 0 });
});
});

describe('readAgendaText: a counted role and a name set apart by a spaced hyphen', () => {
const ROLES_SEEN = ['Standard Speech', 'Ice Breaker', 'Table Topics Speech', 'Speech Evaluation', 'General Evaluation', 'Table Topics Master'];
const LINES = ['1st Speaker - Sarah Chen', '2nd Speaker - James Wilson', '1st Evaluator - Emily Brown', 'Grammarian - Priya Sharma'];

it('reads each line as the colon form reads it, and loses nobody', () => {
const colon = LINES.map((line) => line.replace(' - ', ': ')).join('\n');
expect(readAgendaText(LINES.join('\n'), ROLES_SEEN)).toEqual(readAgendaText(colon, ROLES_SEEN));
expect(rows(LINES.join('\n'), ROLES_SEEN)).toEqual([
['Sarah Chen', null, '1st Speaker'],
['James Wilson', null, '2nd Speaker'],
['Emily Brown', null, '1st Evaluator'],
['Priya Sharma', null, 'Grammarian'],
]);
});

it('reads the name first the same way, with the number before or after the role', () => {
expect(rows('Sarah Chen - 1st Speaker\nJames Wilson - Speaker 2')).toEqual([
['Sarah Chen', null, '1st Speaker'],
['James Wilson', null, 'Speaker 2'],
]);
});

it('still reads a counted role with a hyphen inside its own name', () => {
expect(rows('1st Table-Topics Speaker\nPat Lee\nWord-Master 2\nSam Lee')).toEqual([
['Pat Lee', null, '1st Table-Topics Speaker'],
['Sam Lee', null, 'Word-Master 2'],
]);
});
});

describe('readAgendaText: lines it takes nothing from', () => {
it('counts a line that is no row, no name under a role and no detail of a row', () => {
// A role heading takes one name: Bob Ray, on the next line, is not used, and the count says so.
const text = ['Ice Breaker', 'Sarah Chen', 'Table Topics Speech', 'Ann Lee', 'Bob Ray', 'General Evaluation', 'Michael Lee'].join('\n');
expect(readAgendaText(text, BUILT_INS)).toEqual({
ok: true,
items: [
{ name: 'Sarah Chen', role: 'Ice Breaker', roleText: 'Ice Breaker' },
{ name: 'Ann Lee', role: 'Table Topics Speech', roleText: 'Table Topics Speech' },
{ name: 'Michael Lee', role: 'General Evaluation', roleText: 'General Evaluation' },
],
leftOut: 0,
unused: 1,
});
expect(readAgendaText(['1st Speaker', 'Sarah Chen', 'My Journey', 'A talk about moving'].join('\n'), BUILT_INS).unused).toBe(2);
});

it('does not count the lines it knows: headers, untimed rows, role lines, a speech\'s details', () => {
expect(readAgendaText(TABLE_DEMO, BUILT_INS).unused).toBe(0);
expect(readAgendaText('Actual Meeting Roles\nRole\tCL\tPresenter\n1st Speaker\t\tSarah Chen', BUILT_INS).unused).toBe(0);
expect(readAgendaText('Grammarian\nToastmaster\nRachel\n1st Speaker\nAlice\n(5:00-7:00 min)\nDeliver a speech that does a thing', BUILT_INS).unused).toBe(0);
});

it('counts none in a list of speakers, where every line is a row', () => {
expect(readAgendaText(LINES_DEMO, BUILT_INS).unused).toBe(0);
expect(readAgendaText('Bob (Ice Breaker)\n(4-6 min)\nCarol (Standard Speech)', BUILT_INS).unused).toBe(0);
});
});

Expand Down
30 changes: 22 additions & 8 deletions packages/shared/agendaReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const TRAILING_NUMBER = /^\p{L}[\p{L}\p{N} '&-]*\s#?\d{1,2}$/u;
// What follows the number of any other counted role: a few plain words, with
// no mark among them ("3rd Table Topics Speaker", not "1st Speaker: Alice").
const SLOT_WORDS = /^\p{L}[\p{L}\p{N} '&-]*$/u;
// A hyphen beside a space sets two parts apart ("1st Speaker - Sarah Chen"): no
// slot is worded with one. A hyphen inside a word ("Table-Topics") is the role's own.
const SPACED_HYPHEN = /\s-|-\s/;
// A length in brackets ("4-6 min", "5:00-7:00 min", "3 min"): not a role.
const LENGTH = /^\d+(?::\d+)?\s*(?:(?:-|–|—|to)\s*\d+(?::\d+)?\s*)?min(?:ute)?s?\.?$/i;
// Words of the lines that describe a speech, under its speaker's row.
Expand All @@ -71,7 +74,7 @@ const HEAD_OTHER = new Set(['cl', 'time', 'length', 'notes', 'duration', 'min',
const SEPARATORS = new Set([':', '|', ';', ',', '/', '\\', '+', '*', '=', '<', '>', '~', '·', '•', '→', '–', '—', '[', ']', '{', '}', '(', ')', '\t']);
const isGap = (ch) => ch === ' ' || ch === '-' || SEPARATORS.has(ch);

const nothing = () => ({ ok: false, items: [], leftOut: 0 });
const nothing = () => ({ ok: false, items: [], leftOut: 0, unused: 0 });

/**
* Whether a line holds a Pathways project reference, "( ... #1 ... )": an
Expand Down Expand Up @@ -196,9 +199,9 @@ function roleBook(roleNames) {
if (KNOWN_KEYS.has(key)) return 'known';
if (rest !== text) {
if (key === 'speaker' || key === 'evaluator') return 'signature';
return SLOT_WORDS.test(rest) && rest.split(' ').length <= 6 ? 'slot' : null;
return SLOT_WORDS.test(rest) && !SPACED_HYPHEN.test(rest) && rest.split(' ').length <= 6 ? 'slot' : null;
}
return TRAILING_NUMBER.test(text) && text.split(' ').length <= 6 ? 'slot' : null;
return TRAILING_NUMBER.test(text) && !SPACED_HYPHEN.test(text) && text.split(' ').length <= 6 ? 'slot' : null;
};
/** Whether a row with this role is left out: untimed, and no role of the user's has the name. */
const untimed = (roleText) => !named(roleText) && UNTIMED_KEYS.has(roleKey(roleText.replace(ORDINAL, '')));
Expand Down Expand Up @@ -374,10 +377,15 @@ function tableOf(shapes) {
* or a role alone on its line with the name on a line under it. Every other
* line describes the row above it (a speech's title, its project, the people
* who evaluated the speaker before) and is passed over.
*
* `unused` counts the lines it took nothing from and does not know for a
* speech's details, a time or a header: a second name under a role line, a
* line of notes. The user is told, and can add each line as a speaker.
*/
function readTable(shapes, book, table) {
const items = [];
let leftOut = 0;
let unused = 0;
// The role of a role line that has no name yet.
let pending = null;
const add = (roleText, name) => {
Expand Down Expand Up @@ -423,9 +431,12 @@ function readTable(shapes, book, table) {
if (pending !== null && canBeName(shape, table)) {
add(pending, shape.text);
pending = null;
} else if (!describesRow(shape.text) && !describesSpeech(shape.text) && !hasClockTime(shape.text) && lineRow(shape, i, book)) {
// Not a time, nor only a length or a project in brackets: a line nobody was read from.
unused += 1;
}
}
return { items, leftOut };
return { items, leftOut, unused };
}

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -594,7 +605,8 @@ function readLines(allShapes, book, { everyLine = false } = {}) {
if (!everyLine && row.how !== 'plain' && book.untimed(row.roleText)) leftOut += 1;
else items.push(book.item(row.name, row.roleText));
}
return { items, leftOut };
// Every line is a row here, or only a length or a project in brackets.
return { items, leftOut, unused: 0 };
}

// ---------------------------------------------------------------------------
Expand All @@ -606,7 +618,9 @@ function readLines(allShapes, book, { everyLine = false } = {}) {
* `{name, role, roleText}`: `role` is the entry of `roleNames` the agenda
* names for that row, or null; `roleText` is the role as the agenda words it
* ('' when it gives none). `leftOut` counts the rows left out because the
* timer does not time their role. `ok` is false, with no items, when the
* timer does not time their role. `unused` counts the lines no row was read
* from that the reader does not know for a header, a time or a speech's
* details (readTable). `ok` is false, with no items, when the
* reader cannot tell the rows of the text.
*
* `strict` is for a text nobody is looking at: an uploaded file's, in the
Expand All @@ -619,7 +633,7 @@ function readLines(allShapes, book, { everyLine = false } = {}) {
* @param {string} text
* @param {string[]} [roleNames]
* @param {{strict?: boolean}} [options]
* @returns {{ok: boolean, items: Array<{name: string, role: string|null, roleText: string}>, leftOut: number}}
* @returns {{ok: boolean, items: Array<{name: string, role: string|null, roleText: string}>, leftOut: number, unused: number}}
*/
export function readAgendaText(text, roleNames = [], { strict = false } = {}) {
const book = roleBook(roleNames);
Expand All @@ -636,7 +650,7 @@ export function readAgendaText(text, roleNames = [], { strict = false } = {}) {
const withRole = read.items.filter((item) => item.role).length;
if (withRole === 0 || withRole * 2 < read.items.length || shapes.some((shape) => hasClockTime(shape.text))) return nothing();
}
return { ok: true, items: read.items, leftOut: read.leftOut };
return { ok: true, items: read.items, leftOut: read.leftOut, unused: read.unused };
}

/**
Expand Down
22 changes: 17 additions & 5 deletions packages/ui/AgendaImport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ import { useCallback, useId, useMemo, useRef, useState } from 'react';

const plural = (count) => `${count} ${count === 1 ? 'speaker' : 'speakers'}`;

const NOTHING_FOUND = { recognised: false, count: 0, needsRole: 0, leftOut: 0 };
const NOTHING_FOUND = { recognised: false, count: 0, needsRole: 0, leftOut: 0, unused: 0 };

/**
* @typedef {Object} AgendaImportOptions
* @property {(text: string) => {recognised: boolean, count: number, needsRole: number, leftOut: number}} match -
* @property {(text: string) => {recognised: boolean, count: number, needsRole: number, leftOut: number, unused?: number}} match -
* whether the reader can tell the rows of a text, how many speakers it holds, how many of them
* need a role, and how many rows it leaves out (roles the timer does not time)
* need a role, how many rows it leaves out (roles the timer does not time), and how many lines
* it took nothing from
* @property {(text: string) => {count: number, needsRole: number}} importText - add a text `match` recognised
* @property {(text: string) => {count: number, needsRole: number}} importLines - add every line as a speaker
* @property {(items: Object[], meta: Object) => {count: number, needsRole: number}} importItems - add rows the Worker read
Expand Down Expand Up @@ -297,8 +298,10 @@ function statusLine(flow, look) {
const need = found.needsRole > 0 ? ` ${found.needsRole === 1 ? '1 needs' : `${found.needsRole} need`} a role: you pick it after import.` : '';
// Rows for a role the timer does not time (the Toastmaster, the Timer) are left out, and said to be.
const out = found.leftOut > 0 ? ` ${found.leftOut} left out: the timer does not time ${found.leftOut === 1 ? 'that role' : 'those roles'}.` : '';
if (found.recognised && found.count > 0) return `Found ${plural(found.count)}.${need}${out}`;
if (found.recognised && found.leftOut > 0) return `Nobody to time here.${out}`;
// Lines the reader took nothing from (a second name under a role, a line of notes) are said to be, never dropped quietly.
const unused = found.unused > 0 ? ` ${found.unused} ${found.unused === 1 ? 'line' : 'lines'} not used.` : '';
if (found.recognised && found.count > 0) return `Found ${plural(found.count)}.${need}${out}${unused}`;
if (found.recognised && found.leftOut > 0) return `Nobody to time here.${out}${unused}`;
return "We don't recognise this format.";
}

Expand Down Expand Up @@ -474,6 +477,15 @@ export default function AgendaImportPanel({ flow, variant = 'modal', accept, onC
</div>
)}

{flow.recognised && flow.found.unused > 0 && !reading && (
// The lines not used may be people: they can still go in as they stand.
<p data-testid="agenda-import-unused" className={`${look.status} m-0`}>
<button type="button" onClick={flow.addLines} className={LINK}>
Add each line as a speaker
</button>
</p>
)}

{flow.recognised && aiUsable && !reading && (
<p className={`${look.status} m-0`}>
Not what you expected?{' '}
Expand Down
Loading
Loading