refactor(web): share locale page pairs as components #338
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web!338
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "refactor/locale-page-components"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
Merge the per-locale page pairs (
src/pages/*.astroandsrc/pages/en/*.astro) into shared components that takelang. Each page is now a thin wrapper.Stacked on the #312 and #313 branches. Merge those first, then rebase this onto main.
Shared components
All in
src/components/pages/:legal-page(about, contact, privacy, terms, trial-terms, security)home-page,not-found-pagedocs-index-page,faq-page,guide-pagenews-index-page,news-post-pageaccount-page,signup-page,welcome-page,checkout-return-pagePages keep what Astro needs at page level: response headers and status, redirects and rewrites,
Astro.cache.set(false), and the[slug]entry lookup (so the 404 rewrite still works).Left split
pricingstays as two files. The two versions carry different prose and tables, so a shared component would only be alangternary around two copies.Verification
URLs and the English-URL rule are unchanged. No content change.
node dist/server/entry.mjs.cancelled, unknown paths and unknown slugs).SIGNUPS_OPEN=false(account 404 rewrite, signup redirect).One bug caught by this:
getRelativeLocaleUrladds a trailing slash, which changed thereturn_tovalue on the account login redirect. The literal/accountand/en/accountare kept.pnpm check,pnpm lint,pnpm test,pnpm buildpass.Version bumped to 1.31.1.