[ADD] badges: sheet model from the retained plan or a chosen proposal
Badges hang on guests' necks: their content must be exact and stable. The
model builds one badge per non-excluded person, from the retained plan or,
on demand, from a proposal, which always prints as a draft. Each round says
table, seat when seats are assigned, and a title only where a reservation
makes the person its holder there; a constant itinerary takes one line.
Names sort by code point, never by locale; namesakes carry their id, and a
reprint gives the same texts. Without any placement it refuses, pointing at
the proposals.
Checked: red first; 3343 node tests green from the index alone.
--- FR ---
[ADD] badges : modèle de planche, du retenu ou d'une proposition choisie
Les badges pendent au cou des invités : leur contenu doit être exact et
stable. Le modèle fait un badge par personne non exclue, depuis le retenu
ou, sur demande, une proposition, toujours imprimée en brouillon. Chaque
tour dit la table, le siège sous attribution, et un titre seulement là où
une réservation en fait la personne titulaire ; un itinéraire constant tient
en une ligne. Les noms se classent par points de code, jamais selon la
locale ; les homonymes portent leur identifiant, et une réédition rend les
mêmes textes. Sans aucun placement, il refuse et renvoie aux propositions.
Vérifié : rouge d'abord ; 3343 node verts depuis l'index seul.
Assisted-by: Claude Opus 5.5
2026-10-09 13:03:04 -04:00
|
|
|
|
// © 2026 TechnoLibre (http://www.technolibre.ca)
|
[UPD] licence: dual AGPL-3.0-or-later or LiLiQ-R+, SPDX headers
The project is offered under either licence, at the user's choice. Every
source header now carries the SPDX expression in place of the AGPL line;
the copyright line is unchanged. LICENSES/ holds both published texts,
pinned by SHA-256 and identical to the copies the page ships. The root
LICENSE becomes a short notice: the full AGPL text there would make
forges and licence scanners report the AGPL alone.
Checked: 685 header lines swapped and nothing else; node 6264, guards
207, build test 8, browser 1420, documentation verifier 0 faults.
--- FR ---
[UPD] licence : double AGPL-3.0-or-later ou LiLiQ-R+, en-têtes SPDX
Le projet est offert sous l'une ou l'autre licence, au choix de
l'utilisateur. Chaque en-tête de source porte l'expression SPDX à la place
de la ligne AGPL ; la ligne de copyright ne change pas. LICENSES/ garde les
deux textes publiés, épinglés par SHA-256 et identiques aux copies que la
page livre. LICENSE devient une courte notice : le texte AGPL entier y
ferait annoncer l'AGPL seule par les forges et les détecteurs de licence.
Vérifié : 685 lignes d'en-tête remplacées, rien d'autre ; node 6264,
gardes 207, construction 8, navigateur 1420, documentation 0 faute.
Assisted-by: Claude Opus 5.5
2026-10-20 09:02:17 -04:00
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later OR LiLiQ-Rplus-1.1
|
[ADD] badges: sheet model from the retained plan or a chosen proposal
Badges hang on guests' necks: their content must be exact and stable. The
model builds one badge per non-excluded person, from the retained plan or,
on demand, from a proposal, which always prints as a draft. Each round says
table, seat when seats are assigned, and a title only where a reservation
makes the person its holder there; a constant itinerary takes one line.
Names sort by code point, never by locale; namesakes carry their id, and a
reprint gives the same texts. Without any placement it refuses, pointing at
the proposals.
Checked: red first; 3343 node tests green from the index alone.
--- FR ---
[ADD] badges : modèle de planche, du retenu ou d'une proposition choisie
Les badges pendent au cou des invités : leur contenu doit être exact et
stable. Le modèle fait un badge par personne non exclue, depuis le retenu
ou, sur demande, une proposition, toujours imprimée en brouillon. Chaque
tour dit la table, le siège sous attribution, et un titre seulement là où
une réservation en fait la personne titulaire ; un itinéraire constant tient
en une ligne. Les noms se classent par points de code, jamais selon la
locale ; les homonymes portent leur identifiant, et une réédition rend les
mêmes textes. Sans aucun placement, il refuse et renvoie aux propositions.
Vérifié : rouge d'abord ; 3343 node verts depuis l'index seul.
Assisted-by: Claude Opus 5.5
2026-10-09 13:03:04 -04:00
|
|
|
|
|
|
|
|
|
|
// Le témoin de la planche (§ 15.1, § 11.5) : 260 personnes inventées,
|
|
|
|
|
|
// « Témoin 001 » à « Témoin 260 », dont 3 exclues, sur la salle de la grande
|
|
|
|
|
|
// démonstration — 33 tables, 29 de 8 sièges et 4 de 7 —, 4 tours, et un
|
|
|
|
|
|
// placement retenu, daté, sur un plan retenu. Les 257 badges qu'il produit
|
|
|
|
|
|
// donnent 65 planches A4 et 129 planches Lettre (§ 15.1).
|
|
|
|
|
|
//
|
|
|
|
|
|
// Chaque personne porte un courriel, des notes et un titre pressenti, que le
|
|
|
|
|
|
// badge ne doit jamais imprimer (§ 11.4), et une personne sur cinq une
|
[REF] organisation: rename appartenance everywhere, file keys included
The group that separates people who already know each other is called
organisation throughout: screens, printed lists, settings
separerOrganisations and varierOrganisations, the participant key of the
format-3 file, identifiers, file names and documentation. The CSV header is
organisation; a column still titled appartenance imports as before, and the
label guard refuses the old word. Demos, plan fixtures and engine
fingerprints are byte-identical once the names are swapped back.
Checked: node 6259, guards 207, long 138, doc 0 faults; browser reds are
the 49 capture mismatches and their cascade, until make captures.
--- FR ---
[REF] organisation : « appartenance » renommée partout, clés comprises
Le groupe qui sépare les gens qui se connaissent déjà s'appelle partout
organisation : écrans, listes imprimées, réglages separerOrganisations et
varierOrganisations, clé du participant au format 3, identifiants, noms de
fichiers et documentation. L'en-tête CSV est organisation ; une colonne
encore intitulée appartenance s'importe comme avant, et la garde des
libellés refuse l'ancien mot. Démos, fixtures de plan et empreintes du
moteur sont identiques à l'octet, les noms remis.
Vérifié : node 6259, gardes 207, longues 138, doc 0 faute ; rouges
navigateur : 49 écarts de captures et leur cascade, jusqu'à make captures.
Assisted-by: Claude Opus 5.5
2026-10-20 17:34:24 -04:00
|
|
|
|
// organisation. Le plan du tour r range les 257 présentes à partir du rang
|
[ADD] badges: sheet model from the retained plan or a chosen proposal
Badges hang on guests' necks: their content must be exact and stable. The
model builds one badge per non-excluded person, from the retained plan or,
on demand, from a proposal, which always prints as a draft. Each round says
table, seat when seats are assigned, and a title only where a reservation
makes the person its holder there; a constant itinerary takes one line.
Names sort by code point, never by locale; namesakes carry their id, and a
reprint gives the same texts. Without any placement it refuses, pointing at
the proposals.
Checked: red first; 3343 node tests green from the index alone.
--- FR ---
[ADD] badges : modèle de planche, du retenu ou d'une proposition choisie
Les badges pendent au cou des invités : leur contenu doit être exact et
stable. Le modèle fait un badge par personne non exclue, depuis le retenu
ou, sur demande, une proposition, toujours imprimée en brouillon. Chaque
tour dit la table, le siège sous attribution, et un titre seulement là où
une réservation en fait la personne titulaire ; un itinéraire constant tient
en une ligne. Les noms se classent par points de code, jamais selon la
locale ; les homonymes portent leur identifiant, et une réédition rend les
mêmes textes. Sans aucun placement, il refuse et renvoie aux propositions.
Vérifié : rouge d'abord ; 3343 node verts depuis l'index seul.
Assisted-by: Claude Opus 5.5
2026-10-09 13:03:04 -04:00
|
|
|
|
// 64 × (r − 1), en boucle, et remplit les tables dans l'ordre de leurs
|
|
|
|
|
|
// identifiants : chaque tour est une partition, les trois sièges libres
|
|
|
|
|
|
// tombent à la dernière table. Aucune réservation, aucun titre. Chaque appel
|
|
|
|
|
|
// rend une charge neuve.
|
|
|
|
|
|
import { creerCharge } from '../../../src/stockage/document.js';
|
|
|
|
|
|
import { H_RETENU, personne, placementDe, table } from './cas.js';
|
|
|
|
|
|
|
|
|
|
|
|
/** Les comptes du témoin, que les épreuves lisent plutôt que de les écrire. */
|
|
|
|
|
|
export const FORME_TEMOIN = Object.freeze({
|
|
|
|
|
|
participants: 260,
|
|
|
|
|
|
exclus: 3,
|
|
|
|
|
|
produits: 257,
|
|
|
|
|
|
tables: 33,
|
|
|
|
|
|
tours: 4,
|
|
|
|
|
|
planchesA4: 65,
|
|
|
|
|
|
planchesLettre: 129,
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/** Les identifiants des trois personnes exclues. */
|
|
|
|
|
|
export const EXCLUS_TEMOIN = Object.freeze([50, 150, 250]);
|
|
|
|
|
|
|
|
|
|
|
|
const DECALAGE_PAR_TOUR = 64;
|
|
|
|
|
|
|
|
|
|
|
|
/** Le numéro d'une personne du témoin, sur trois chiffres. */
|
|
|
|
|
|
export const numeroTemoin = (id) => String(id).padStart(3, '0');
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* La charge du témoin, état retenu, retenu daté de H_RETENU.
|
|
|
|
|
|
*
|
|
|
|
|
|
* @returns {import('../../../src/stockage/types.js').Charge}
|
|
|
|
|
|
*/
|
|
|
|
|
|
export function chargeTemoin() {
|
|
|
|
|
|
const { participants, tables, tours } = FORME_TEMOIN;
|
|
|
|
|
|
const charge = creerCharge({ id: 'evt-temoin', nom: 'Soirée des Lucioles', date: '2031-05-17', siegesParDefaut: 8, tours });
|
|
|
|
|
|
charge.evenement.etat = 'retenu';
|
|
|
|
|
|
charge.participants = Array.from({ length: participants }, (_, rang) => {
|
|
|
|
|
|
const id = rang + 1;
|
|
|
|
|
|
const n = numeroTemoin(id);
|
|
|
|
|
|
return personne(id, null, `Témoin ${n}`, {
|
[REF] organisation: rename appartenance everywhere, file keys included
The group that separates people who already know each other is called
organisation throughout: screens, printed lists, settings
separerOrganisations and varierOrganisations, the participant key of the
format-3 file, identifiers, file names and documentation. The CSV header is
organisation; a column still titled appartenance imports as before, and the
label guard refuses the old word. Demos, plan fixtures and engine
fingerprints are byte-identical once the names are swapped back.
Checked: node 6259, guards 207, long 138, doc 0 faults; browser reds are
the 49 capture mismatches and their cascade, until make captures.
--- FR ---
[REF] organisation : « appartenance » renommée partout, clés comprises
Le groupe qui sépare les gens qui se connaissent déjà s'appelle partout
organisation : écrans, listes imprimées, réglages separerOrganisations et
varierOrganisations, clé du participant au format 3, identifiants, noms de
fichiers et documentation. L'en-tête CSV est organisation ; une colonne
encore intitulée appartenance s'importe comme avant, et la garde des
libellés refuse l'ancien mot. Démos, fixtures de plan et empreintes du
moteur sont identiques à l'octet, les noms remis.
Vérifié : node 6259, gardes 207, longues 138, doc 0 faute ; rouges
navigateur : 49 écarts de captures et leur cascade, jusqu'à make captures.
Assisted-by: Claude Opus 5.5
2026-10-20 17:34:24 -04:00
|
|
|
|
organisation: id % 5 === 0 ? 'Club des Merles' : null,
|
[ADD] badges: sheet model from the retained plan or a chosen proposal
Badges hang on guests' necks: their content must be exact and stable. The
model builds one badge per non-excluded person, from the retained plan or,
on demand, from a proposal, which always prints as a draft. Each round says
table, seat when seats are assigned, and a title only where a reservation
makes the person its holder there; a constant itinerary takes one line.
Names sort by code point, never by locale; namesakes carry their id, and a
reprint gives the same texts. Without any placement it refuses, pointing at
the proposals.
Checked: red first; 3343 node tests green from the index alone.
--- FR ---
[ADD] badges : modèle de planche, du retenu ou d'une proposition choisie
Les badges pendent au cou des invités : leur contenu doit être exact et
stable. Le modèle fait un badge par personne non exclue, depuis le retenu
ou, sur demande, une proposition, toujours imprimée en brouillon. Chaque
tour dit la table, le siège sous attribution, et un titre seulement là où
une réservation en fait la personne titulaire ; un itinéraire constant tient
en une ligne. Les noms se classent par points de code, jamais selon la
locale ; les homonymes portent leur identifiant, et une réédition rend les
mêmes textes. Sans aucun placement, il refuse et renvoie aux propositions.
Vérifié : rouge d'abord ; 3343 node verts depuis l'index seul.
Assisted-by: Claude Opus 5.5
2026-10-09 13:03:04 -04:00
|
|
|
|
courriel: `temoin${n}@exemple.test`,
|
|
|
|
|
|
titrePressenti: `pressenti ${n}`,
|
|
|
|
|
|
notes: `note confidentielle ${n}`,
|
|
|
|
|
|
exclu: EXCLUS_TEMOIN.includes(id),
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
charge.tables = Array.from({ length: tables }, (_, rang) => table(rang + 1, rang + 1, rang < 29 ? null : 7));
|
|
|
|
|
|
const presents = charge.participants.filter(({ exclu }) => !exclu).map(({ id }) => id);
|
|
|
|
|
|
const plan = Array.from({ length: tours }, (_, r) => {
|
|
|
|
|
|
const debut = (DECALAGE_PAR_TOUR * r) % presents.length;
|
|
|
|
|
|
const ordre = [...presents.slice(debut), ...presents.slice(0, debut)];
|
|
|
|
|
|
let rang = 0;
|
|
|
|
|
|
const sieges = charge.tables.map((enregistrement) => {
|
|
|
|
|
|
const liste = ordre.slice(rang, rang + (enregistrement.sieges ?? 8));
|
|
|
|
|
|
rang += liste.length;
|
|
|
|
|
|
return liste;
|
|
|
|
|
|
});
|
|
|
|
|
|
return { sieges };
|
|
|
|
|
|
});
|
|
|
|
|
|
charge.prochainsIds = { participant: participants + 1, table: tables + 1, proposition: 2 };
|
|
|
|
|
|
charge.retenu = { proposition: 1, ...placementDe(charge, plan), horodatage: H_RETENU };
|
|
|
|
|
|
return charge;
|
|
|
|
|
|
}
|