Proposer l'installation de l'app au bon moment (lot 3d)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-18 15:17:39 +01:00
co-authored by Claude Opus 5.5
parent 888aec1003
commit 84b4027796
7 changed files with 461 additions and 4 deletions
+2
View File
@@ -16,6 +16,7 @@ import { proposalCard } from "../proposal-card.js";
import { estimatedMinutes } from "../../domain/progression.js";
import { hud } from "../game.js";
import { toast } from "../feedback.js";
import { installOffer, strengthSessions } from "../install.js";
/** @typedef {import("../../domain/state.js").State} State */
/** @typedef {import("../../domain/planning.js").Slot} Slot */
@@ -163,6 +164,7 @@ function homeContent(store, nav, today, synced) {
hud(state, today),
h("header", { class: "visually-hidden" }, h("h1", null, program.name)),
todayBlock,
installOffer("home", { hasProgram: true, sessions: strengthSessions(state) }),
oneOffs.length > 0 && [
h("h2", { class: "tape" }, "WOD proposé", h("span", { class: "tape__hint" }, "hors rotation")),