diff --git a/modules/site/MANIFEST.yaml b/modules/site/MANIFEST.yaml index d9507101..1189bfef 100644 --- a/modules/site/MANIFEST.yaml +++ b/modules/site/MANIFEST.yaml @@ -46,10 +46,6 @@ provides: [] # CI compares it with the contracts this module's files read: one read and not declared # fails (B1), one declared and never read is reported (B4), one nobody provides fails (B6). consumes: - # The landing promises the export's formats (Markdown, HTML, Word, subtitles): exporting/v1's (D114). - - contract: exporting - version: v1 - module: export # - contract: identity-api # version: v1 # module: identity diff --git a/modules/site/src/lib/landing.mjs b/modules/site/src/lib/landing.mjs index 2969c550..174d274d 100644 --- a/modules/site/src/lib/landing.mjs +++ b/modules/site/src/lib/landing.mjs @@ -98,7 +98,7 @@ const raw = { ["transcript", "Client call", "Find what the client said.", "One search across all your meetings takes you to the exact passage."], ["lock", "Lawyers, doctors, advisers", "Confidential stays in the room.", "One switch, and the call goes through no online service."], ["mic", "Job interview", "Watch the candidate, not your notes.", "Every answer is transcribed and the minutes keep what matters to compare interviews. Tell the candidate you are recording."], - ["export", "Export", "As Markdown, HTML, Word or subtitles."], + ["export", "Export", "As Markdown."], ["play", "Play back a passage", "Click a line of the transcript to hear that moment again."], ["search", "Your files, at home", "Each meeting stays in Documents/Kitokey, with its recording, its transcript and its minutes."]], fr: [["summary", "Lancement de projet", "Repartez avec le plan.", "Qui fait quoi, et pour quand. Les actions sont dans le compte rendu et leurs dates vont dans votre agenda."], @@ -106,10 +106,10 @@ const raw = { ["transcript", "Appel client", "Retrouvez ce que le client a dit.", "Une recherche dans toutes vos réunions vous ramène au passage exact."], ["lock", "Avocat, médecin, conseil", "Le secret reste au cabinet.", "Un interrupteur, et l’appel ne passe par aucun service en ligne."], ["mic", "Entretien de recrutement", "Regardez le candidat, pas vos notes.", "Chaque réponse est transcrite et le compte rendu en garde l’essentiel pour comparer les entretiens. Annoncez au candidat que vous enregistrez."], - ["export", "Exportez", "En Markdown, HTML, Word ou sous-titres."], + ["export", "Exportez", "En Markdown."], ["play", "Réécoutez un passage", "Cliquez sur une phrase de la transcription pour réentendre ce moment."], ["search", "Vos fichiers, chez vous", "Chaque réunion reste dans Documents/Kitokey, avec son enregistrement, sa transcription et son compte rendu."]], - keeps: "minutes/v5's actions and D113's dates; D116, the send; docs/store/listing.md, one search; D110, the confidential switch; exporting/v1, md html docx srt vtt; D26, play from a line; docs/privacy.md, the meetings folder", + keeps: "minutes/v5's actions and D113's dates; D116, the send; docs/store/listing.md, one search; D110, the confidential switch; the window's export, Markdown alone (D108); D26, play from a line; docs/privacy.md, the meetings folder", }, systems: { en: ["Systems & price", "Free on Linux. One payment elsewhere.", "No account, no subscription. Linux today, Windows and macOS next.", "No subscription. The price will be announced at launch."], diff --git a/modules/site/tests/landing.test.mjs b/modules/site/tests/landing.test.mjs index 6c385256..4e213197 100644 --- a/modules/site/tests/landing.test.mjs +++ b/modules/site/tests/landing.test.mjs @@ -144,3 +144,17 @@ test("each hardware card says, in both languages, the figures README.md gives it }); } }); + +// The export's card promises only what the window offers today: Markdown, the one format the shell asks the +// export for; HTML, Word, subtitles and PDF come back to the page with the screen that offers them (D121). The +// site declares no contract of the export's (D108). +test("the export card promises Markdown alone, the one format the window offers", () => { + for (const [language, said] of [["en", "As Markdown."], ["fr", "En Markdown."]]) { + const card = landing.cases[language].find(([icon]) => icon === "export"); + assert.equal(card[2], said, language); + for (const format of ["HTML", "Word", "subtitles", "sous-titres", "PDF"]) { + assert.ok(!card.join(" ").includes(format), `${language}: ${format}`); + } + } + assert.ok(!/docx|srt|vtt/.test(landing.cases.keeps), landing.cases.keeps); +});