Skip to content

Annonce : ruban d'information global sur la boutique et gestion dans l'Administration (#1157) - #1161

Merged
mustaphaelou merged 7 commits into
mainfrom
spec/1157-annonce
Nov 27, 2026
Merged

mustaphaelou merged 7 commits into
mainfrom
spec/1157-annonce

Conversation

@mustaphaelou

@mustaphaelou mustaphaelou commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements Annonce — a single, site-wide informational ribbon rendered directly below the Bandeau de navigation on every storefront page whenever active in the Administration under Configuration.

Key architectural notes

  • getAnnonceActive() uses "use cache: remote" with cacheTag(ANNONCE_TAG) and NAVIGATION_CACHE_LIFE (matching getNavCategories() in BoutiqueLayout) so static 1-year routes like /faq keep s-maxage=31536000 while catalog/home/product/category/blog routes remain at 15m / 1d.
  • Saving an Annonce in /admin/annonce emits annonce.reglee through Après-écriture (zero Faits, one non-durable invalidation-cache consequence), expires ANNONCE_TAG immediately via revalidateTag(ANNONCE_TAG, { expire: 0 }), revalidates /admin/annonce, and runs a best-effort full-site Cloudflare Edge purge ({ kind: "tout" }) through PortPurgeEdge.

Verification

  • npm run lint — 0 errors (zero prose comments)
  • npm run format:check — passed
  • npm run typecheck — passed
  • npm run build — passed (/faq 1y / 1y, / 15m / 1d)
  • npm test — 398/398 test files passed (4142 tests)
  • npm run test:e2e -- e2e/annonce.spec.ts — 2/2 passed in Chromium

Closes #1157
Closes #1158
Closes #1159
Closes #1160

@mustaphaelou
mustaphaelou marked this pull request as ready for review November 27, 2026 16:38
@mustaphaelou
mustaphaelou merged commit d20f59e into main Nov 27, 2026
8 of 12 checks passed
@mustaphaelou
mustaphaelou deleted the spec/1157-annonce branch November 27, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant