diff --git a/CLAUDE.md b/CLAUDE.md index 67383be4..c407c974 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -428,7 +428,7 @@ LOGIN_RATE_LIMIT_GLOBAL_MAX="100" # Max failed login attempts instance-wide « Aide » (`/help`, from the account menu) ships with the app, in French, English and European Portuguese. The articles are Markdown files in `app/features/help/content/{fr,en,pt-PT}/`, one per task, with a frontmatter block: `slug`, `title`, `summary`, `module`, `permission`, `keywords`, `related`, `order`. `permission` is the name of the `Permission` member the feature needs, several comma-separated when the feature opens to any of them, or `none`. `GroupLeader` among them opens the article to a group's overseer and assistant too, who hold no right for their group (`helpReaderFor` reads it from the account's record). A reader without it never sees the article, nor its search hits or links, and no permission is ever changed to show help. -A « ? » goes in the header's `help` slot (`} />`, or `SettingsHeader`), which puts it at the far right of the top bar and at the end of the title's row on a phone. Its page and every layout with a loader above it export `skipRevalidationForHelpPanel as shouldRevalidate` from `~/features/help`, so opening the panel fetches the article only. A page that writes its own `shouldRevalidate` starts it with `if (onlyHelpPanelChanged(args)) return false`. The publisher record draws its own title row (`RecordHeader`), so it takes the « ? » twice: in `PageTopbar`'s `help` and in `RecordHeader`'s, which shows on a phone only. The territory editor and « Créer en lot » do the same: `TerritoryEditor` and `TerritoryBatchCreator` take a `help` for their column's title row. +A « ? » goes in the header's `help` slot (`} />`, or `SettingsHeader`), which puts it at the far right of the top bar and at the end of the title's row on a phone. Its page and every layout with a loader above it export `skipRevalidationForHelpPanel as shouldRevalidate` from `~/features/help`, so opening the panel fetches the article only. A page that writes its own `shouldRevalidate` starts it with `if (onlyHelpPanelChanged(args)) return false`. The publisher record draws its own title row (`RecordHeader`), so it takes the « ? » twice: in `PageTopbar`'s `help` and in `RecordHeader`'s, which shows on a phone only. A page serving several rights may put a component of its own named `…Help` in the slot, choosing the article of the first right the reader holds (« Gérer le tableau »). The territory editor and « Créer en lot » do the same as the record: `TerritoryEditor` and `TerritoryBatchCreator` take a `help` for their column's title row. `app/features/help/entry-points.test.ts` is the authoritative wiring: it scans the app source for every `` and fails unless each one is pinned there and ships in every language. Keep this table in step with it. @@ -443,6 +443,10 @@ A « ? » goes in the header's `help` slot (` [{ title: `${m.sidebar_board_manage()} - Unitae` }] +export { skipRevalidationForHelpPanel as shouldRevalidate } from '~/features/help' + const READS_PARAM = /^(pdf|dynamic)-(\d+)$/ export function loader({ request, context }: Route.LoaderArgs) { @@ -108,6 +111,7 @@ export default function ManageBoardPage({ loaderData }: Route.ComponentProps) { <> } titleBadge={ {m.board_manage_count_documents({ count: total })} ·{' '} @@ -234,3 +238,11 @@ export default function ManageBoardPage({ loaderData }: Route.ComponentProps) { ) } + +/** The page serves several rights: its « ? » opens the task of the first one the reader holds. */ +function ManageHelp({ rights }: { rights: ManageRights }) { + if (rights.canUpload) return + if (rights.canManageDynamic) return + if (rights.canConfigureSections || rights.canOrganise) return + return +} diff --git a/app/features/display-board/routes/documents/new-dynamic.tsx b/app/features/display-board/routes/documents/new-dynamic.tsx index e49eb914..920aadc8 100644 --- a/app/features/display-board/routes/documents/new-dynamic.tsx +++ b/app/features/display-board/routes/documents/new-dynamic.tsx @@ -12,6 +12,7 @@ import { isSectionOfCongregation } from '~/features/display-board/server/documen import { listDynamicChoices, loadDynamicForm } from '~/features/display-board/server/dynamic-form.queries' import { BOARD_WEB_FONTS_HREF } from '~/features/display-board/ui/dynamic/board-web-fonts' import { DynamicDocumentForm } from '~/features/display-board/ui/forms/DynamicDocumentForm' +import { HelpEntryButton } from '~/features/help' import * as m from '~/i18n/paraglide/messages' import { congregationContext, @@ -31,6 +32,8 @@ import type { Route } from './+types/new-dynamic' export const meta: Route.MetaFunction = () => [{ title: `${m.board_new_dynamic_title()} - Unitae` }] +export { skipRevalidationForHelpPanel as shouldRevalidate } from '~/features/help' + export const links: Route.LinksFunction = () => [{ rel: 'stylesheet', href: BOARD_WEB_FONTS_HREF }] const TYPES: Record string; description: () => string }> = { @@ -154,6 +157,7 @@ export default function NewDynamicDocumentPage({ loaderData, actionData }: Route <> } subtitle={m.board_new_dynamic_subtitle()} breadcrumbs={[...trail, { label: m.board_new_dynamic_title() }]} /> @@ -168,6 +172,7 @@ export default function NewDynamicDocumentPage({ loaderData, actionData }: Route } breadcrumbs={[ ...trail, { label: m.board_new_dynamic_title(), to: '/board/documents/new-dynamic' }, diff --git a/app/features/display-board/routes/documents/new.tsx b/app/features/display-board/routes/documents/new.tsx index 25e896a1..f68b9354 100644 --- a/app/features/display-board/routes/documents/new.tsx +++ b/app/features/display-board/routes/documents/new.tsx @@ -15,6 +15,7 @@ import { import { FileValidationError, validateBoardFile } from '~/features/display-board/server/file-validation.server' import { thumbnailQueue } from '~/features/display-board/server/thumbnail-queue.server' import { PdfDocumentForm } from '~/features/display-board/ui/forms/PdfDocumentForm' +import { HelpEntryButton } from '~/features/help' import { notify } from '~/features/notifications/index.server' import * as m from '~/i18n/paraglide/messages' import { @@ -36,6 +37,8 @@ import type { Route } from './+types/new' export const meta: Route.MetaFunction = () => [{ title: `${m.board_form_new_title()} - Unitae` }] +export { skipRevalidationForHelpPanel as shouldRevalidate } from '~/features/help' + export function loader({ context }: Route.LoaderArgs) { const permissions = context.get(permissionsContext) if (!permissions.has(Permission.CanUploadBoardDocuments)) throw redirect('/') @@ -79,6 +82,7 @@ export default function NewDocumentPage({ loaderData, actionData }: Route.Compon } breadcrumbs={[ { label: m.board_page_title(), to: '/board' }, { label: m.sidebar_board_manage(), to: '/board/documents' }, diff --git a/app/features/display-board/routes/dynamic/edit.tsx b/app/features/display-board/routes/dynamic/edit.tsx index 53aec018..e24d8fc2 100644 --- a/app/features/display-board/routes/dynamic/edit.tsx +++ b/app/features/display-board/routes/dynamic/edit.tsx @@ -14,6 +14,7 @@ import { BOARD_WEB_FONTS_HREF } from '~/features/display-board/ui/dynamic/board- import { DynamicDocumentForm } from '~/features/display-board/ui/forms/DynamicDocumentForm' import { DeleteBoardItemDialog } from '~/features/display-board/ui/manage/DeleteBoardItemDialog' import { stateText } from '~/features/display-board/ui/manage/StateLabel' +import { HelpEntryButton } from '~/features/help' import * as m from '~/i18n/paraglide/messages' import { congregationContext, @@ -36,6 +37,8 @@ export const meta: Route.MetaFunction = ({ loaderData }) => [ { title: `${loaderData?.document.title ?? m.board_dynamic_edit_meta_title()} - Unitae` }, ] +export { skipRevalidationForHelpPanel as shouldRevalidate } from '~/features/help' + // The typeface samples and the preview are set in the board's faces. export const links: Route.LinksFunction = () => [{ rel: 'stylesheet', href: BOARD_WEB_FONTS_HREF }] @@ -85,6 +88,7 @@ export default function EditDynamicDocumentPage({ loaderData, actionData }: Rout } meta={ {stateText(state, loaderData.timeZone)} · {m.board_form_in_section({ section })} diff --git a/app/features/display-board/routes/sections/edit.tsx b/app/features/display-board/routes/sections/edit.tsx index b999d34b..02568da1 100644 --- a/app/features/display-board/routes/sections/edit.tsx +++ b/app/features/display-board/routes/sections/edit.tsx @@ -9,6 +9,7 @@ import { loadSectionForm } from '~/features/display-board/server/section-form.qu import { setSectionVisibilityRoles } from '~/features/display-board/server/section-visibility.server' import { SectionForm } from '~/features/display-board/ui/forms/SectionForm' import { DeleteSectionDialog } from '~/features/display-board/ui/manage/DeleteSectionDialog' +import { HelpEntryButton } from '~/features/help' import * as m from '~/i18n/paraglide/messages' import { currentAccountContext, @@ -30,6 +31,8 @@ export const meta: Route.MetaFunction = ({ loaderData }) => [ { title: `${loaderData?.section?.name ?? m.board_sections_edit_meta_title()} - Unitae` }, ] +export { skipRevalidationForHelpPanel as shouldRevalidate } from '~/features/help' + export function loader({ params, context }: Route.LoaderArgs) { const permissions = context.get(permissionsContext) requirePermission(permissions, Permission.CanConfigureBoardSections) @@ -54,6 +57,7 @@ export default function EditSectionPage({ loaderData, actionData }: Route.Compon } breadcrumbs={[ { label: m.board_page_title(), to: '/board' }, { label: m.sidebar_board_manage(), to: '/board/documents' }, diff --git a/app/features/display-board/routes/sections/new.tsx b/app/features/display-board/routes/sections/new.tsx index 87dd3d9e..202ce500 100644 --- a/app/features/display-board/routes/sections/new.tsx +++ b/app/features/display-board/routes/sections/new.tsx @@ -7,6 +7,7 @@ import { createBoardSection } from '~/features/display-board/server/board-sectio import { loadSectionForm } from '~/features/display-board/server/section-form.queries' import { setSectionVisibilityRoles } from '~/features/display-board/server/section-visibility.server' import { SectionForm } from '~/features/display-board/ui/forms/SectionForm' +import { HelpEntryButton } from '~/features/help' import * as m from '~/i18n/paraglide/messages' import { currentAccountContext, @@ -23,6 +24,8 @@ import type { Route } from './+types/new' export const meta: Route.MetaFunction = () => [{ title: `${m.board_section_form_new_title()} - Unitae` }] +export { skipRevalidationForHelpPanel as shouldRevalidate } from '~/features/help' + export function loader({ context }: Route.LoaderArgs) { const permissions = context.get(permissionsContext) requirePermission(permissions, Permission.CanConfigureBoardSections) @@ -44,6 +47,7 @@ export default function NewSectionPage({ loaderData, actionData }: Route.Compone } breadcrumbs={[ { label: m.board_page_title(), to: '/board' }, { label: m.sidebar_board_manage(), to: '/board/documents' }, diff --git a/app/features/help/content/captures.json b/app/features/help/content/captures.json index d4c957aa..21396e8f 100644 --- a/app/features/help/content/captures.json +++ b/app/features/help/content/captures.json @@ -55,11 +55,31 @@ "height": 43, "captured": "2026-11-17" }, + "board-dynamic-types": { + "width": 210, + "height": 47, + "captured": "2026-11-17" + }, + "board-pdf-display": { + "width": 728, + "height": 327, + "captured": "2026-11-18" + }, "board-read-filter": { "width": 248, "height": 108, "captured": "2026-11-17" }, + "board-reads-panel": { + "width": 398, + "height": 754, + "captured": "2026-11-18" + }, + "board-section-menu": { + "width": 830, + "height": 175, + "captured": "2026-11-18" + }, "board-versions-history": { "width": 684, "height": 196, @@ -217,11 +237,31 @@ "height": 43, "captured": "2026-11-17" }, + "board-dynamic-types": { + "width": 710, + "height": 291, + "captured": "2026-11-18" + }, + "board-pdf-display": { + "width": 728, + "height": 327, + "captured": "2026-11-18" + }, "board-read-filter": { "width": 233, "height": 108, "captured": "2026-11-17" }, + "board-reads-panel": { + "width": 398, + "height": 754, + "captured": "2026-11-18" + }, + "board-section-menu": { + "width": 830, + "height": 175, + "captured": "2026-11-18" + }, "board-versions-history": { "width": 684, "height": 196, @@ -379,11 +419,31 @@ "height": 43, "captured": "2026-11-18" }, + "board-dynamic-types": { + "width": 710, + "height": 291, + "captured": "2026-11-18" + }, + "board-pdf-display": { + "width": 728, + "height": 327, + "captured": "2026-11-18" + }, "board-read-filter": { "width": 249, "height": 108, "captured": "2026-11-18" }, + "board-reads-panel": { + "width": 398, + "height": 754, + "captured": "2026-11-18" + }, + "board-section-menu": { + "width": 830, + "height": 175, + "captured": "2026-11-18" + }, "board-versions-history": { "width": 684, "height": 216, diff --git a/app/features/help/content/en/board-add-pdf.md b/app/features/help/content/en/board-add-pdf.md new file mode 100644 index 00000000..1e8d76ec --- /dev/null +++ b/app/features/help/content/en/board-add-pdf.md @@ -0,0 +1,33 @@ +--- + +slug: board-add-pdf +title: How do I add a PDF to the information board? +summary: Upload the file, choose its section and when it shows. +module: board +permission: CanUploadBoardDocuments +keywords: add, upload, PDF, document, file, board, section, display, publish, take off, featured, schedule +related: board-sections, board-versions +order: 4 +--- + +A PDF document is added from **Manage the board**. It shows in a section of the board, to the people who see that section. + +## Add the PDF + +1. In the sidebar, open **Manage the board**, then click **Upload a PDF**. +2. Drop the file, or choose it: a PDF of 20 MB at most. Its name becomes the title, which you can change in **Title**. +3. Choose the **Section** it shows in. +4. In **Display**, choose when it shows: **Now**, **From a date**, or **Not yet** to keep it without showing it. In **Take it off on**, choose the day it goes; left empty, it stays on the board. + + ![The Display section: when the document shows, when it goes, and Featured](capture:board-pdf-display) + +5. Turn on **Featured** to put it at the top of the board, above the sections. +6. Click **Upload**. + +## If you upload without publishing + +If you can upload documents but not publish them, the **Display** section offers no dates: a board manager decides when your document shows. Until then, it is **Not published** in the list. You can still edit the documents you uploaded. + +## Replace a document + +To update a document, open it with **Edit**, then click **Replace the file**. The old file stays in the history, and those who had read the document see it as unread again. diff --git a/app/features/help/content/en/board-dynamic.md b/app/features/help/content/en/board-dynamic.md new file mode 100644 index 00000000..7fc66dec --- /dev/null +++ b/app/features/help/content/en/board-dynamic.md @@ -0,0 +1,36 @@ +--- + +slug: board-dynamic +title: How do I add a live document to the board? +summary: The program, the groups, the pioneers or the organization chart, kept up to date by the app. +module: board +permission: CanManageDynamicBoardDocuments +keywords: live document, dynamic, program, meetings, field service groups, pioneers, organization chart, appearance, layout, typeface, colour, board +related: board-sections, board-add-pdf +order: 5 +--- + +A live document is built from the congregation’s data: it changes by itself when the data changes. There is nothing to upload or replace. + +## The kinds of documents + +- **Program**: the coming meetings, with their parts or their services. You can add several, for instance one per kind of meeting. +- **Field service groups**: each group with its overseer, its assistant and its publishers. +- **Pioneers**: the current pioneers, by type. +- **Organization chart**: the congregation’s responsibilities, post by post. + +A kind is offered only when the congregation has that data: groups, pioneers, an organization chart. The groups, the pioneers and the organization chart can be added only once; when one is already on the board, its row says **Already added · Open**. + +## Add the document + +1. In **Manage the board**, click **Live document**. +2. Click the kind of document. + + ![The choice of kind: program, field service groups, pioneers and organization chart](capture:board-dynamic-types) + +3. Give it a **Title** and choose its **Section**. +4. For a program, choose in **Content** the meetings it shows, with their parts or their services, and their order. +5. In **Appearance**, choose the typeface, the accent colour and, depending on the kind, the layout. The preview shows the result, which stays readable printed, in colour or in black and white. +6. Choose when it shows, then click **Add to the board**. + +Readers see the document as a page, and download it as a PDF with the same layout. diff --git a/app/features/help/content/en/board-reads.md b/app/features/help/content/en/board-reads.md new file mode 100644 index 00000000..fee43fa8 --- /dev/null +++ b/app/features/help/content/en/board-reads.md @@ -0,0 +1,25 @@ +--- + +slug: board-reads +title: How do I see who has read a document? +summary: How many people read each document, and who has not read it yet. +module: board +permission: CanReviewBoardDocuments +keywords: read, reads, read by, readers, unread, not read yet, who read, follow up, document, board +related: board-sections, board-add-pdf +order: 7 +--- + +In **Manage the board**, the **Read by** column gives, for each document, how many people read it out of those who see it: for instance “12 of 40”. A document counts as read as soon as someone has opened it. + +## See who read it + +1. In **Manage the board**, click the number in the **Read by** column, or choose **Reads** in the document’s **…** menu. +2. The **Reads** panel opens beside the list. **Not read yet** and **Read** split the two lists, arranged by field service group. + + ![The Reads panel: who read the document and who has not read it yet, group by group](capture:board-reads-panel) + +## What is counted + +- Only the people who see the document’s section count, with an active account. +- When a PDF is replaced, or when a live document’s data changes, the document becomes unread again for those who had read it: they move to **Not read yet**, marked “read an earlier version”. diff --git a/app/features/help/content/en/board-sections.md b/app/features/help/content/en/board-sections.md new file mode 100644 index 00000000..7006fdfe --- /dev/null +++ b/app/features/help/content/en/board-sections.md @@ -0,0 +1,40 @@ +--- + +slug: board-sections +title: How do I organise the sections and the order of documents? +summary: Create the sections, say who sees them, and arrange the documents. +module: board +permission: CanConfigureBoardSections, CanOrganiseBoardDocuments +keywords: section, sections, order, arrange, organise, move, move up, move down, visibility, roles, featured, board +related: board-add-pdf, board-dynamic +order: 6 +--- + +The information board is made of sections, in the order **Manage the board** lists them. Each section says who sees it, and its documents show in the order of the list. + +## Create a section + +1. In **Manage the board**, click **Section**. +2. Give it a **Name**, as it shows on the board. +3. In **Visible to**, choose **Everyone**, or **Some roles** and the roles that see it. The form says how many people will see it. +4. Click **Create the section**. + +A section kept for some roles also hides its documents from everyone else. + +## Arrange the sections + +On a section’s row, **Edit section** changes its name and who sees it. Its **…** menu offers **Move up**, **Move down** and **Delete section**. + +![A section’s row, with Edit section and its menu: Move up, Move down and Delete section](capture:board-section-menu) + +To delete a section that holds documents, choose to move them to another section, or to delete them with it: their files and history too, with no way back. + +## Arrange the documents + +- Drag a row to change a document’s place in its section, or use **Move up** and **Move down** in its **…** menu. +- **Move to…** puts it in another section. +- Tick several documents to move or delete them together. + +**Make featured** puts a document at the top of the board, above the sections. For a PDF it takes the right to publish PDFs; for a live document, the right to manage live documents. + +Creating and arranging sections takes the right to configure sections; arranging documents, the right to organise them. diff --git a/app/features/help/content/fr/board-add-pdf.md b/app/features/help/content/fr/board-add-pdf.md new file mode 100644 index 00000000..2c4e5682 --- /dev/null +++ b/app/features/help/content/fr/board-add-pdf.md @@ -0,0 +1,33 @@ +--- + +slug: board-add-pdf +title: Comment ajouter un PDF au tableau d’affichage ? +summary: Téléverser le fichier, choisir sa section et quand il s’affiche. +module: board +permission: CanUploadBoardDocuments +keywords: ajouter, téléverser, déposer, PDF, document, fichier, tableau, section, afficher, publier, retirer, à la une, programmer +related: board-sections, board-versions +order: 4 +--- + +Un document PDF s’ajoute depuis **Gérer le tableau**. Il apparaît dans une section du tableau, pour les personnes qui la voient. + +## Ajouter le PDF + +1. Dans la barre latérale, ouvrez **Gérer le tableau**, puis cliquez sur **Téléverser un PDF**. +2. Déposez le fichier, ou choisissez-le : un PDF de 20 Mo au plus. Son nom devient le titre, que vous pouvez changer dans **Titre**. +3. Choisissez la **Section** où il apparaît. +4. Dans **Affichage**, choisissez quand il apparaît : **Dès maintenant**, **À partir d’une date**, ou **Pas encore** pour le garder sans le montrer. Dans **Retirer le**, choisissez le jour où il disparaît ; laissé vide, il reste sur le tableau. + + ![La section Affichage : quand le document apparaît, quand il disparaît, et À la une](capture:board-pdf-display) + +5. Activez **À la une** pour le mettre en tête du tableau, au-dessus des sections. +6. Cliquez sur **Téléverser**. + +## Si vous déposez sans publier + +Si vous pouvez déposer des documents mais pas les publier, la section **Affichage** ne propose pas de dates : un responsable du tableau décide quand votre document apparaît. D’ici là, il est **Non publié** dans la liste. Vous pouvez toujours modifier les documents que vous avez déposés. + +## Remplacer un document + +Pour mettre un document à jour, ouvrez-le avec **Modifier**, puis cliquez sur **Remplacer le fichier**. L’ancien fichier reste dans l’historique, et ceux qui avaient lu le document le voient de nouveau comme non lu. diff --git a/app/features/help/content/fr/board-dynamic.md b/app/features/help/content/fr/board-dynamic.md new file mode 100644 index 00000000..c7a39b45 --- /dev/null +++ b/app/features/help/content/fr/board-dynamic.md @@ -0,0 +1,36 @@ +--- + +slug: board-dynamic +title: Comment ajouter un document dynamique au tableau ? +summary: Le programme, les groupes, les pionniers ou l’organigramme, tenus à jour par l’application. +module: board +permission: CanManageDynamicBoardDocuments +keywords: document dynamique, dynamique, programme, réunions, groupes de prédication, pionniers, organigramme, apparence, mise en page, police, couleur, tableau +related: board-sections, board-add-pdf +order: 5 +--- + +Un document dynamique se construit avec les données de l’assemblée : il change de lui-même quand elles changent. Vous n’avez rien à téléverser ni à remplacer. + +## Les types de documents + +- **Programme** : les réunions à venir, avec leurs parties ou leurs services. Vous pouvez en ajouter plusieurs, par exemple un par type de réunion. +- **Groupes de prédication** : chaque groupe avec son responsable, son adjoint et ses proclamateurs. +- **Pionniers** : les pionniers du moment, par type. +- **Organigramme** : les responsabilités de l’assemblée, poste par poste. + +Un type n’est proposé que si l’assemblée a ces données : des groupes, des pionniers, un organigramme. Les groupes, les pionniers et l’organigramme ne s’ajoutent qu’une fois ; s’ils sont déjà sur le tableau, la ligne indique **Déjà ajouté · Ouvrir**. + +## Ajouter le document + +1. Dans **Gérer le tableau**, cliquez sur **Document dynamique**. +2. Cliquez sur le type de document. + + ![Le choix du type : programme, groupes de prédication, pionniers et organigramme](capture:board-dynamic-types) + +3. Donnez-lui un **Titre** et choisissez sa **Section**. +4. Pour un programme, choisissez dans **Contenu** les réunions qu’il montre, avec leurs parties ou leurs services, et leur ordre. +5. Dans **Apparence**, choisissez la police, la couleur d’accent et, selon le type, la mise en page. L’aperçu montre le résultat, qui reste lisible imprimé, en couleur comme en noir et blanc. +6. Choisissez quand il s’affiche, puis cliquez sur **Ajouter au tableau**. + +Les lecteurs voient le document comme une page, et le téléchargent en PDF avec la même mise en page. diff --git a/app/features/help/content/fr/board-reads.md b/app/features/help/content/fr/board-reads.md new file mode 100644 index 00000000..3968141d --- /dev/null +++ b/app/features/help/content/fr/board-reads.md @@ -0,0 +1,25 @@ +--- + +slug: board-reads +title: Comment savoir qui a lu un document ? +summary: Le nombre de lecteurs de chaque document, et qui ne l’a pas encore lu. +module: board +permission: CanReviewBoardDocuments +keywords: lu, lecture, lectures, lu par, lecteurs, non lu, pas encore lu, qui a lu, suivi, document, tableau +related: board-sections, board-add-pdf +order: 7 +--- + +Dans **Gérer le tableau**, la colonne **Lu par** donne, pour chaque document, le nombre de personnes qui l’ont lu sur celles qui le voient : par exemple « 12 sur 40 ». Un document compte comme lu dès qu’une personne l’a ouvert. + +## Voir qui l’a lu + +1. Dans **Gérer le tableau**, cliquez sur le nombre de la colonne **Lu par**, ou choisissez **Lectures** dans le menu **…** du document. +2. Le panneau **Lectures** s’ouvre à côté de la liste. **Pas encore lu** et **Lu** séparent les deux listes, rangées par groupe de prédication. + + ![Le panneau Lectures : qui a lu le document et qui ne l’a pas encore lu, groupe par groupe](capture:board-reads-panel) + +## Ce qui est compté + +- Seules comptent les personnes qui voient la section du document, avec un compte actif. +- Quand un PDF est remplacé, ou quand les données d’un document dynamique changent, le document redevient non lu pour ceux qui l’avaient lu : ils passent dans **Pas encore lu**, avec la mention « a lu une version précédente ». diff --git a/app/features/help/content/fr/board-sections.md b/app/features/help/content/fr/board-sections.md new file mode 100644 index 00000000..8eafc6a5 --- /dev/null +++ b/app/features/help/content/fr/board-sections.md @@ -0,0 +1,40 @@ +--- + +slug: board-sections +title: Comment organiser les sections et l’ordre des documents ? +summary: Créer les sections, dire qui les voit, et ranger les documents. +module: board +permission: CanConfigureBoardSections, CanOrganiseBoardDocuments +keywords: section, sections, rubrique, ordre, ranger, organiser, déplacer, monter, descendre, visibilité, rôles, à la une, tableau +related: board-add-pdf, board-dynamic +order: 6 +--- + +Le tableau d’affichage est fait de sections, dans l’ordre où **Gérer le tableau** les liste. Chaque section dit qui la voit, et ses documents s’affichent dans l’ordre de la liste. + +## Créer une section + +1. Dans **Gérer le tableau**, cliquez sur **Section**. +2. Donnez-lui un **Nom**, tel qu’il apparaît sur le tableau. +3. Dans **Visible par**, choisissez **Tout le monde**, ou **Certains rôles** et les rôles qui la voient. Le formulaire dit combien de personnes la verront. +4. Cliquez sur **Créer la section**. + +Une section réservée à certains rôles cache aussi ses documents aux autres. + +## Ranger les sections + +Sur la ligne d’une section, **Modifier la section** change son nom et qui la voit. Son menu **…** propose **Monter**, **Descendre** et **Supprimer la section**. + +![La ligne d’une section, avec Modifier la section et son menu : Monter, Descendre et Supprimer la section](capture:board-section-menu) + +Pour supprimer une section qui contient des documents, choisissez de les déplacer vers une autre section, ou de les supprimer avec elle : leurs fichiers et leur historique aussi, sans retour possible. + +## Ranger les documents + +- Glissez une ligne pour changer l’ordre d’un document dans sa section, ou utilisez **Monter** et **Descendre** dans son menu **…**. +- **Déplacer vers…** le met dans une autre section. +- Cochez plusieurs documents pour les déplacer ou les supprimer ensemble. + +**Mettre à la une** place un document en tête du tableau, au-dessus des sections. Il faut pouvoir publier les PDF pour un PDF, et gérer les documents dynamiques pour un document dynamique. + +Créer et ranger les sections demande le droit de configurer les sections ; ranger les documents, celui de les organiser. diff --git a/app/features/help/content/pt-PT/board-add-pdf.md b/app/features/help/content/pt-PT/board-add-pdf.md new file mode 100644 index 00000000..2e3242dd --- /dev/null +++ b/app/features/help/content/pt-PT/board-add-pdf.md @@ -0,0 +1,33 @@ +--- + +slug: board-add-pdf +title: Como adiciono um PDF ao quadro de anúncios? +summary: Carregar o ficheiro, escolher a secção e quando aparece. +module: board +permission: CanUploadBoardDocuments +keywords: adicionar, carregar, PDF, documento, ficheiro, quadro, secção, apresentação, publicar, retirar, em destaque, agendar +related: board-sections, board-versions +order: 4 +--- + +Um documento PDF adiciona-se em **Gerir o quadro de anúncios**. Aparece numa secção do quadro, para as pessoas que veem essa secção. + +## Adicionar o PDF + +1. Na barra lateral, abra **Gerir o quadro de anúncios** e clique em **Carregar um PDF**. +2. Largue o ficheiro, ou escolha-o: um PDF com 20 MB no máximo. O nome do ficheiro passa a ser o título, que pode alterar em **Título**. +3. Escolha a **Secção** onde aparece. +4. Em **Apresentação**, escolha quando aparece: **Agora**, **A partir de uma data**, ou **Ainda não** para o guardar sem o mostrar. Em **Retirar em**, escolha o dia em que desaparece; se ficar vazio, o documento continua no quadro. + + ![A secção Apresentação: quando o documento aparece, quando desaparece, e Em destaque](capture:board-pdf-display) + +5. Ative **Em destaque** para o pôr no topo do quadro, por cima das secções. +6. Clique em **Carregar**. + +## Se carregar sem publicar + +Se puder carregar documentos mas não os publicar, a secção **Apresentação** não tem datas: um responsável pelo quadro decide quando o seu documento aparece. Até lá, fica **Não publicado** na lista. Pode sempre editar os documentos que carregou. + +## Substituir um documento + +Para atualizar um documento, abra-o com **Editar** e clique em **Substituir o ficheiro**. O ficheiro anterior fica no histórico, e quem já tinha lido o documento volta a vê-lo como não lido. diff --git a/app/features/help/content/pt-PT/board-dynamic.md b/app/features/help/content/pt-PT/board-dynamic.md new file mode 100644 index 00000000..33fd5dcb --- /dev/null +++ b/app/features/help/content/pt-PT/board-dynamic.md @@ -0,0 +1,36 @@ +--- + +slug: board-dynamic +title: Como adiciono um documento dinâmico ao quadro? +summary: O programa, os grupos, os pioneiros ou o organigrama, atualizados pela aplicação. +module: board +permission: CanManageDynamicBoardDocuments +keywords: documento dinâmico, dinâmico, programa, reuniões, grupos de serviço de campo, pioneiros, organigrama, aspeto, disposição, tipo de letra, cor, quadro +related: board-sections, board-add-pdf +order: 5 +--- + +Um documento dinâmico é construído com os dados da congregação: muda sozinho quando os dados mudam. Não há nada para carregar nem para substituir. + +## Os tipos de documentos + +- **Programa**: as próximas reuniões, com as respetivas partes ou serviços. Pode adicionar vários, por exemplo um por tipo de reunião. +- **Grupos de serviço de campo**: cada grupo com o respetivo superintendente, ajudante e publicadores. +- **Pioneiros**: os pioneiros atuais, por tipo. +- **Organigrama**: as responsabilidades da congregação, cargo a cargo. + +Um tipo só é proposto se a congregação tiver esses dados: grupos, pioneiros, um organigrama. Os grupos, os pioneiros e o organigrama só se adicionam uma vez; se já estiverem no quadro, a linha indica **Já adicionado · Abrir**. + +## Adicionar o documento + +1. Em **Gerir o quadro de anúncios**, clique em **Documento dinâmico**. +2. Clique no tipo de documento. + + ![A escolha do tipo: programa, grupos de serviço de campo, pioneiros e organigrama](capture:board-dynamic-types) + +3. Dê-lhe um **Título** e escolha a **Secção**. +4. Para um programa, escolha em **Conteúdo** as reuniões que mostra, com as respetivas partes ou serviços, e a ordem. +5. Em **Aspeto**, escolha o tipo de letra, a cor de destaque e, conforme o tipo, a disposição. A pré-visualização mostra o resultado, que continua legível impresso, a cores ou a preto e branco. +6. Escolha quando aparece e clique em **Adicionar ao quadro de anúncios**. + +Os leitores veem o documento como uma página, e transferem-no em PDF com a mesma disposição. diff --git a/app/features/help/content/pt-PT/board-reads.md b/app/features/help/content/pt-PT/board-reads.md new file mode 100644 index 00000000..c7a6c587 --- /dev/null +++ b/app/features/help/content/pt-PT/board-reads.md @@ -0,0 +1,25 @@ +--- + +slug: board-reads +title: Como sei quem leu um documento? +summary: Quantas pessoas leram cada documento, e quem ainda não o leu. +module: board +permission: CanReviewBoardDocuments +keywords: lido, leitura, leituras, lido por, leitores, não lido, ainda não lido, quem leu, acompanhamento, documento, quadro +related: board-sections, board-add-pdf +order: 7 +--- + +Em **Gerir o quadro de anúncios**, a coluna **Lido por** indica, para cada documento, quantas pessoas o leram entre as que o veem: por exemplo, “12 de 40”. Um documento conta como lido assim que alguém o abre. + +## Ver quem o leu + +1. Em **Gerir o quadro de anúncios**, clique no número da coluna **Lido por**, ou escolha **Leituras** no menu **…** do documento. +2. O painel **Leituras** abre ao lado da lista. **Ainda não lido** e **Lido** separam as duas listas, organizadas por grupo de serviço de campo. + + ![O painel Leituras: quem leu o documento e quem ainda não o leu, grupo a grupo](capture:board-reads-panel) + +## O que é contado + +- Só contam as pessoas que veem a secção do documento, com uma conta ativa. +- Quando um PDF é substituído, ou quando os dados de um documento dinâmico mudam, o documento volta a ficar por ler para quem já o tinha lido: essas pessoas passam para **Ainda não lido**, com a indicação “leu uma versão anterior”. diff --git a/app/features/help/content/pt-PT/board-sections.md b/app/features/help/content/pt-PT/board-sections.md new file mode 100644 index 00000000..2daf172e --- /dev/null +++ b/app/features/help/content/pt-PT/board-sections.md @@ -0,0 +1,40 @@ +--- + +slug: board-sections +title: Como organizo as secções e a ordem dos documentos? +summary: Criar as secções, dizer quem as vê, e arrumar os documentos. +module: board +permission: CanConfigureBoardSections, CanOrganiseBoardDocuments +keywords: secção, secções, ordem, arrumar, organizar, mover, mover para cima, mover para baixo, visibilidade, funções, em destaque, quadro +related: board-add-pdf, board-dynamic +order: 6 +--- + +O quadro de anúncios é feito de secções, pela ordem em que **Gerir o quadro de anúncios** as lista. Cada secção indica quem a vê, e os seus documentos aparecem pela ordem da lista. + +## Criar uma secção + +1. Em **Gerir o quadro de anúncios**, clique em **Secção**. +2. Dê-lhe um **Nome**, tal como aparece no quadro. +3. Em **Visível para**, escolha **Todos**, ou **Algumas funções** e as funções que a veem. O formulário indica quantas pessoas a vão ver. +4. Clique em **Criar secção**. + +Uma secção reservada a algumas funções também esconde os seus documentos das outras pessoas. + +## Arrumar as secções + +Na linha de uma secção, **Editar secção** muda o nome e quem a vê. O menu **…** propõe **Mover para cima**, **Mover para baixo** e **Eliminar secção**. + +![A linha de uma secção, com Editar secção e o menu: Mover para cima, Mover para baixo e Eliminar secção](capture:board-section-menu) + +Para eliminar uma secção que tem documentos, escolha movê-los para outra secção, ou eliminá-los com ela: os ficheiros e o histórico também, sem possibilidade de recuperação. + +## Arrumar os documentos + +- Arraste uma linha para mudar a posição de um documento na secção, ou use **Mover para cima** e **Mover para baixo** no menu **…** do documento. +- **Mover para…** coloca-o noutra secção. +- Marque vários documentos para os mover ou eliminar de uma só vez. + +**Destacar** põe um documento no topo do quadro, por cima das secções. Para um PDF, é preciso poder publicar PDF; para um documento dinâmico, poder gerir os documentos dinâmicos. + +Criar e arrumar as secções exige a permissão de configurar as secções; arrumar os documentos, a de os organizar. diff --git a/app/features/help/entry-points.test.ts b/app/features/help/entry-points.test.ts index 8f4b383a..beba47e7 100644 --- a/app/features/help/entry-points.test.ts +++ b/app/features/help/entry-points.test.ts @@ -19,6 +19,18 @@ const PINS: Record = { 'features/territories/routes/attributions/territories.tsx': 'territory-attributions', 'features/territories/routes/stats/index.tsx': 'territory-stats', 'features/display-board/routes/index.tsx': 'board-read', + // « Gérer le tableau » serves several rights: the « ? » opens the task of the first one the reader holds. + 'features/display-board/routes/documents/list.tsx': [ + 'board-add-pdf', + 'board-dynamic', + 'board-sections', + 'board-reads', + ], + 'features/display-board/routes/documents/new.tsx': 'board-add-pdf', + 'features/display-board/routes/documents/new-dynamic.tsx': 'board-dynamic', + 'features/display-board/routes/dynamic/edit.tsx': 'board-dynamic', + 'features/display-board/routes/sections/new.tsx': 'board-sections', + 'features/display-board/routes/sections/edit.tsx': 'board-sections', 'features/territories/routes/campaigns/list.tsx': 'campaign-create', 'features/territories/routes/prospection/list.tsx': 'prospection', 'features/settings/routes/territories/settings.tsx': 'territories-settings', @@ -55,7 +67,8 @@ const LAYOUTS_ABOVE_ENTRY_POINTS = [ const APP_ROOT = resolve(import.meta.dirname, '../..') const ENTRY_POINT = /HelpEntryButton slug="([a-z0-9-]+)"/g -const HELP_SLOT = /help=\{ { expect(fr.get('split-territory')?.permission).toEqual(['CanManageTerritories']) // The page needs CanViewTerritories as well, but naming it would open the article to every reader of the list. expect(fr.get('batch-territories')?.permission).toEqual(['CanPlanTerritorySplits']) + expect(fr.get('board-add-pdf')?.permission).toEqual(['CanUploadBoardDocuments']) + expect(fr.get('board-dynamic')?.permission).toEqual(['CanManageDynamicBoardDocuments']) + expect(fr.get('board-sections')?.permission).toEqual(['CanConfigureBoardSections', 'CanOrganiseBoardDocuments']) + expect(fr.get('board-reads')?.permission).toEqual(['CanReviewBoardDocuments']) expect(fr.get('territory-stats')?.permission).toEqual(['CanManageTerritories']) for (const slug of [ 'my-parts', diff --git a/public/help-captures/en/board-dynamic-types.dark.webp b/public/help-captures/en/board-dynamic-types.dark.webp new file mode 100644 index 00000000..29994e6e Binary files /dev/null and b/public/help-captures/en/board-dynamic-types.dark.webp differ diff --git a/public/help-captures/en/board-dynamic-types.webp b/public/help-captures/en/board-dynamic-types.webp new file mode 100644 index 00000000..7c794d8b Binary files /dev/null and b/public/help-captures/en/board-dynamic-types.webp differ diff --git a/public/help-captures/en/board-pdf-display.dark.webp b/public/help-captures/en/board-pdf-display.dark.webp new file mode 100644 index 00000000..5ec214ae Binary files /dev/null and b/public/help-captures/en/board-pdf-display.dark.webp differ diff --git a/public/help-captures/en/board-pdf-display.webp b/public/help-captures/en/board-pdf-display.webp new file mode 100644 index 00000000..2160840e Binary files /dev/null and b/public/help-captures/en/board-pdf-display.webp differ diff --git a/public/help-captures/en/board-reads-panel.dark.webp b/public/help-captures/en/board-reads-panel.dark.webp new file mode 100644 index 00000000..4de4ac93 Binary files /dev/null and b/public/help-captures/en/board-reads-panel.dark.webp differ diff --git a/public/help-captures/en/board-reads-panel.webp b/public/help-captures/en/board-reads-panel.webp new file mode 100644 index 00000000..c101c7dd Binary files /dev/null and b/public/help-captures/en/board-reads-panel.webp differ diff --git a/public/help-captures/en/board-section-menu.dark.webp b/public/help-captures/en/board-section-menu.dark.webp new file mode 100644 index 00000000..9b70cb50 Binary files /dev/null and b/public/help-captures/en/board-section-menu.dark.webp differ diff --git a/public/help-captures/en/board-section-menu.webp b/public/help-captures/en/board-section-menu.webp new file mode 100644 index 00000000..dd2a6429 Binary files /dev/null and b/public/help-captures/en/board-section-menu.webp differ diff --git a/public/help-captures/fr/board-dynamic-types.dark.webp b/public/help-captures/fr/board-dynamic-types.dark.webp new file mode 100644 index 00000000..52973885 Binary files /dev/null and b/public/help-captures/fr/board-dynamic-types.dark.webp differ diff --git a/public/help-captures/fr/board-dynamic-types.webp b/public/help-captures/fr/board-dynamic-types.webp new file mode 100644 index 00000000..1951b82f Binary files /dev/null and b/public/help-captures/fr/board-dynamic-types.webp differ diff --git a/public/help-captures/fr/board-pdf-display.dark.webp b/public/help-captures/fr/board-pdf-display.dark.webp new file mode 100644 index 00000000..0d5734fd Binary files /dev/null and b/public/help-captures/fr/board-pdf-display.dark.webp differ diff --git a/public/help-captures/fr/board-pdf-display.webp b/public/help-captures/fr/board-pdf-display.webp new file mode 100644 index 00000000..74a35a09 Binary files /dev/null and b/public/help-captures/fr/board-pdf-display.webp differ diff --git a/public/help-captures/fr/board-reads-panel.dark.webp b/public/help-captures/fr/board-reads-panel.dark.webp new file mode 100644 index 00000000..bbebe811 Binary files /dev/null and b/public/help-captures/fr/board-reads-panel.dark.webp differ diff --git a/public/help-captures/fr/board-reads-panel.webp b/public/help-captures/fr/board-reads-panel.webp new file mode 100644 index 00000000..f35e0935 Binary files /dev/null and b/public/help-captures/fr/board-reads-panel.webp differ diff --git a/public/help-captures/fr/board-section-menu.dark.webp b/public/help-captures/fr/board-section-menu.dark.webp new file mode 100644 index 00000000..b0bc37e3 Binary files /dev/null and b/public/help-captures/fr/board-section-menu.dark.webp differ diff --git a/public/help-captures/fr/board-section-menu.webp b/public/help-captures/fr/board-section-menu.webp new file mode 100644 index 00000000..13f20a25 Binary files /dev/null and b/public/help-captures/fr/board-section-menu.webp differ diff --git a/public/help-captures/pt-PT/board-dynamic-types.dark.webp b/public/help-captures/pt-PT/board-dynamic-types.dark.webp new file mode 100644 index 00000000..71c23df7 Binary files /dev/null and b/public/help-captures/pt-PT/board-dynamic-types.dark.webp differ diff --git a/public/help-captures/pt-PT/board-dynamic-types.webp b/public/help-captures/pt-PT/board-dynamic-types.webp new file mode 100644 index 00000000..e929290f Binary files /dev/null and b/public/help-captures/pt-PT/board-dynamic-types.webp differ diff --git a/public/help-captures/pt-PT/board-pdf-display.dark.webp b/public/help-captures/pt-PT/board-pdf-display.dark.webp new file mode 100644 index 00000000..d3e5507a Binary files /dev/null and b/public/help-captures/pt-PT/board-pdf-display.dark.webp differ diff --git a/public/help-captures/pt-PT/board-pdf-display.webp b/public/help-captures/pt-PT/board-pdf-display.webp new file mode 100644 index 00000000..48360007 Binary files /dev/null and b/public/help-captures/pt-PT/board-pdf-display.webp differ diff --git a/public/help-captures/pt-PT/board-reads-panel.dark.webp b/public/help-captures/pt-PT/board-reads-panel.dark.webp new file mode 100644 index 00000000..7320fe94 Binary files /dev/null and b/public/help-captures/pt-PT/board-reads-panel.dark.webp differ diff --git a/public/help-captures/pt-PT/board-reads-panel.webp b/public/help-captures/pt-PT/board-reads-panel.webp new file mode 100644 index 00000000..c862ac73 Binary files /dev/null and b/public/help-captures/pt-PT/board-reads-panel.webp differ diff --git a/public/help-captures/pt-PT/board-section-menu.dark.webp b/public/help-captures/pt-PT/board-section-menu.dark.webp new file mode 100644 index 00000000..23630bbd Binary files /dev/null and b/public/help-captures/pt-PT/board-section-menu.dark.webp differ diff --git a/public/help-captures/pt-PT/board-section-menu.webp b/public/help-captures/pt-PT/board-section-menu.webp new file mode 100644 index 00000000..fd031792 Binary files /dev/null and b/public/help-captures/pt-PT/board-section-menu.webp differ diff --git a/scripts/help-captures/README.md b/scripts/help-captures/README.md index 6b954611..9898a02c 100644 --- a/scripts/help-captures/README.md +++ b/scripts/help-captures/README.md @@ -35,7 +35,7 @@ cp -R /tmp/help-captures-uploads/. /tmp/help-captures-uploads-pt/ ``` `stage-demo.sql` adds what some captures need beyond the seed, each line saying which capture it is for: a BANO -file, a document with two versions. The English copy exists because names, parts, sections and document titles are +file, a document with two versions, a document some people have read. The English copy exists because names, parts, sections and document titles are data, not messages; it points at the same files, hence the copied uploads. The European Portuguese copy is made the same way. The SQL files refuse a database whose name does not say `captures`. `docker-postgres-1` is an example: `docker ps` shows the name of your Postgres diff --git a/scripts/help-captures/shots.ts b/scripts/help-captures/shots.ts index a1665299..d154ae07 100644 --- a/scripts/help-captures/shots.ts +++ b/scripts/help-captures/shots.ts @@ -462,6 +462,65 @@ export const HELP_SHOTS: HelpShot[] = [ ], viewport: { width: 1100 }, }, + { + // board-add-pdf: « Affichage » on the upload form: when it shows, when it goes, « À la une ». + id: 'board-pdf-display', + account: MARC, + path: '/board/documents/new', + frame: (page, locale) => [section(page, m.board_form_display_title({}, { locale }))], + margin: 8, + viewport: { width: 1000, height: 1000 }, + }, + { + // board-dynamic: the kinds of live document, on « Document dynamique ». + id: 'board-dynamic-types', + account: MARC, + path: '/board/documents/new-dynamic', + frame: (page, locale) => [ + page.locator('ul').filter({ has: page.getByText(m.board_dynamic_type_programme_description({}, { locale })) }), + ], + margin: -1, + viewport: { width: 1000 }, + }, + { + // board-sections: a section's « … » menu on « Gérer le tableau ». + id: 'board-section-menu', + account: MARC, + path: '/board/documents', + prepare: async (page, locale) => { + const prefix = m.board_manage_section_more({ name: '' }, { locale }) + // The second section: the first one cannot move up. + const row = page + .locator('tr') + .filter({ has: page.getByRole('button', { name: new RegExp(`^${prefix}`) }) }) + .nth(1) + // Scrolled under the top bar first: the open menu would not follow the page when the framing scrolls it. + const box = await row.boundingBox() + if (box != null) await page.evaluate(by => window.scrollBy(0, by), box.y - 72) + await row.getByRole('button', { name: new RegExp(`^${prefix}`) }).click() + // Framed once in place: the menu opens at the window's corner, then moves under its button. + const menu = page.getByRole('menu') + await menu.waitFor() + await menu.evaluate(element => Promise.all(element.getAnimations().map(({ finished }) => finished))) + }, + // The section's row, with its name and who sees it, and the menu below it. + frame: page => [page.locator('tr:has(button[aria-haspopup="menu"][data-state="open"])'), page.getByRole('menu')], + margin: 10, + viewport: { width: 1100 }, + }, + { + // board-reads: the « Lectures » panel of a document, opened from its « Lu par » figure. + id: 'board-reads-panel', + account: MARC, + path: '/board/documents', + prepare: async page => { + await page.locator('a[href*="lectures="]:visible').first().click() + await settledPanel(page) + }, + frame: page => [sidePanel(page)], + margin: -1, + viewport: { width: 1600, height: 900 }, + }, ] /** Waits for the docked side panel to finish sliding in: framed before, the crop would cut its right side. */ diff --git a/scripts/help-captures/stage-demo.sql b/scripts/help-captures/stage-demo.sql index 0b3993fe..f9c11a7c 100644 --- a/scripts/help-captures/stage-demo.sql +++ b/scripts/help-captures/stage-demo.sql @@ -45,3 +45,15 @@ WITH midweek AS ( INSERT INTO "Attendance" ("eventId", "inPerson", "inPersonById", "inPersonAt", "congregationId", "updatedAt") SELECT meeting.id, 84, u.id, now() - interval '5 minutes', meeting."congregationId", now() FROM meeting JOIN "UserAccount" u ON u.email = 'maxime.mensah@demo.unitae.app'; + +-- board-reads-panel: about two readers in three have opened « Changement d’horaire des réunions », the first document of +-- « Gérer le tableau », so its « Lectures » panel shows both lists. +INSERT INTO "BoardDocumentView" ("documentId", "userId", "viewedAt", "congregationId") +SELECT d.id, u.id, now() - interval '1 day', d."congregationId" +FROM "BoardDocument" d +JOIN "UserAccount" u ON u."congregationId" = d."congregationId" +WHERE d.title IN ('Changement d’horaire des réunions', 'Change of meeting times', 'Mudança do horário das reuniões') + AND u.id % 3 <> 0 + -- Not the capture accounts: their own unread counts show in other captures (board-read-filter). + AND u.email NOT IN ('marc.dupont@demo.unitae.app', 'maxime.mensah@demo.unitae.app') +ON CONFLICT ("documentId", "userId") DO NOTHING;