Repository navigation
Annonce : ruban d'information global sur la boutique et gestion dans l'Administration (#1157) - #1161
Merged
Merged
Conversation
added 7 commits
November 27, 2026 15:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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"withcacheTag(ANNONCE_TAG)andNAVIGATION_CACHE_LIFE(matchinggetNavCategories()inBoutiqueLayout) so static 1-year routes like/faqkeeps-maxage=31536000while catalog/home/product/category/blog routes remain at15m / 1d./admin/annonceemitsannonce.regleethrough Après-écriture (zeroFaits, one non-durableinvalidation-cacheconsequence), expiresANNONCE_TAGimmediately viarevalidateTag(ANNONCE_TAG, { expire: 0 }), revalidates/admin/annonce, and runs a best-effort full-site Cloudflare Edge purge ({ kind: "tout" }) throughPortPurgeEdge.Verification
npm run lint— 0 errors (zero prose comments)npm run format:check— passednpm run typecheck— passednpm run build— passed (/faq1y / 1y,/15m / 1d)npm test— 398/398 test files passed (4142 tests)npm run test:e2e -- e2e/annonce.spec.ts— 2/2 passed in ChromiumCloses #1157
Closes #1158
Closes #1159
Closes #1160