Import instead of code: panel forms (steps, choice lists, dates), layout, page route, GEO routes, links, section fields

- Forms: step and checkboxGroup field types (radio, date on), server validation for them,
  useBuilderForm (logic) + BuilderForm (unstyled default) + RenderForm (/rsc: rich text,
  bound action, public part of the form only — the Emails tab never reaches the browser)
- Notifications: next / back / stepOf texts
- createContentHelpers: getSiteShell, getFormTexts, getLinkOptions, resolveLink, resolveNav,
  resolvePageRedirect, one-line route handlers (llms, llms-full, md, mcp, health, indexnow, manifest)
- /rsc: SiteProviders, createPageRoute, createNotFoundPage
- resolveLink / resolveNav / homeSlugFrom, buildSectionHeaderField / buildSectionSettingsField
- Dev sandbox frontend built on these imports; tests (unit + real Payload)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-16 11:32:46 +02:00
co-authored by Claude Opus 5.5
parent 0cfd846dd1
commit 412bf953a8
44 changed files with 2015 additions and 20 deletions
+3
View File
@@ -7,10 +7,13 @@ import type { NotificationTexts } from './types.js'
*/
export const NOTIFICATION_FALLBACK: NotificationTexts = {
form: {
back: 'Back',
consent: 'Please accept the privacy policy to continue.',
error: 'Something went wrong. Please try again later.',
next: 'Next',
notFound: 'This form is no longer available.',
rateLimited: 'Too many attempts. Please wait a moment and try again.',
stepOf: 'Step {current} of {total}',
success: 'Thank you — your message has been sent.',
turnstile: 'Captcha verification failed. Please try again.',
validation: 'Please check the {field} field and try again.',
@@ -28,10 +28,13 @@ export async function getNotificationTexts({
return {
form: {
back: f.back || fb.back,
consent: f.consent || fb.consent,
error: f.error || fb.error,
next: f.next || fb.next,
notFound: f.notFound || fb.notFound,
rateLimited: f.rateLimited || fb.rateLimited,
stepOf: f.stepOf || fb.stepOf,
success: f.success || fb.success,
turnstile: f.turnstile || fb.turnstile,
validation: f.validation || fb.validation,
+6
View File
@@ -3,11 +3,17 @@
* `form` maps submitForm result codes to user-facing messages.
*/
export type FormNotificationTexts = {
/** Step-by-step forms: "Back" button. */
back: string
/** Shown when a required GDPR consent checkbox was left unchecked. */
consent: string
error: string
/** Step-by-step forms: "Next" button. */
next: string
notFound: string
rateLimited: string
/** Step-by-step forms: progress, with {current} and {total}. */
stepOf: string
success: string
turnstile: string
/** May contain the {field} placeholder — resolve with resolveValidationText. */