Nouveautés dans l'app, et « Tout effacer » synchronisé : cet appareil ou partout (2d)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-23 11:46:59 +01:00
co-authored by Claude Opus 5.5
parent 0ea0ea109f
commit 8ebdca0c30
21 changed files with 418 additions and 23 deletions
+3 -1
View File
@@ -25,6 +25,7 @@
* | {name: "weight", query: string}
* | {name: "data"}
* | {name: "profile"}
* | {name: "news"}
* | {name: "analysis", exercise: string|null}
* | {name: "proposal", id: string}
* | {name: "sync"}
@@ -75,7 +76,7 @@ export function parseRoute(hash) {
/** Écrans sans paramètre : adresse → nom. @type {Record<string, string>} */
const SIMPLE = {
bravo: "finish", progression: "progress", historique: "history",
donnees: "data", profil: "profile", synchro: "sync", relier: "pair",
donnees: "data", profil: "profile", synchro: "sync", relier: "pair", nouveautes: "news",
};
/** Écrans à chemin simple qui lisent leur requête : adresse → nom. @type {Record<string, string>} */
@@ -115,6 +116,7 @@ export const href = {
weight: (/** @type {string|null} */ period = null) => withParams("#/poids", { periode: period }, { periode: "3mois" }),
data: () => "#/donnees",
profile: () => "#/profil",
news: () => "#/nouveautes",
analysis: (/** @type {string|null} */ exercise = null) => "#/analyses" + (exercise ? "/" + enc(exercise) : ""),
proposal: (/** @type {string} */ id) => "#/proposition/" + enc(id),
sync: () => "#/synchro",