+ {item.question} +
+ {item.guidance ? ( ++ {item.guidance} +
+ ) : null} + + {isDateQuestion ? ( +{validationError}
+ ) : null} + + {showActionsPanel ? ( +diff --git a/app/(app)/layout.tsx b/app/(app)/layout.tsx new file mode 100644 index 0000000..3852ecb --- /dev/null +++ b/app/(app)/layout.tsx @@ -0,0 +1,21 @@ +import Link from "next/link"; + +export default function AppLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( +
+ No audit sections apply to the current premises profile. Update your + profile or start a new audit. +
+Annual safety audit
+{premises.address}
+ +Premises profile
+{premises.address}
++ Answer a few questions about your premises. We'll tailor the annual + safety audit to what applies to your building — usually about five + minutes. +
+ {premises.profile ? ( + + Go to annual audit → + + ) : null} ++
Compliance management for volunteer-run community buildings
+ {premises ? ( +
+ Run npm run db:seed{" "}
+ to create a demo premises.
+
+ We need to know about your building before we can tailor the audit + for {premisesName}. +
+ + Set up premises profile + ++ Work through the Scout Association premises audit section by section. + You can save your progress and come back later. +
+ + {draftAuditId ? ( ++ You have a draft audit in progress. +
+ ) : null} + + {error ? ( +{error}
+ ) : null} + ++ Template {overview.templateVersion} · Draft audit +
++ {overview.progress.completedSections} of{" "} + {overview.progress.totalSections} sections complete +
++ Section {activeSection.number} +
++ Answer each question below. Your responses are saved automatically. +
+Loading questions…
+ ) : sectionData ? ( ++ No follow-up actions for this question yet. +
+ ) : ( ++ {action.title} +
++ {PRIORITY_LABELS[action.priority]} ·{" "} + {STATUS_LABELS[action.status]} + {dueLabel ? ` · Due ${dueLabel}` : ""} +
+ {action.description ? ( ++ {action.description} +
+ ) : null} ++ {item.guidance} +
+ ) : null} + + {isDateQuestion ? ( +{validationError}
+ ) : null} + + {showActionsPanel ? ( ++ {group.guidance} +
+ ) : null} + ++ Step {stepIndex + 1} of {PROFILE_STEPS.length} +
+{currentStep.description}
+Your answers
++ {previewSections.length} audit sections will apply +
++ Based on your profile, we'll include the relevant sections + from the Scout Association September 2025 audit template. +
+{description}
+ ) : null} + onChange(event.target.value)} + onFocus={onFocus} + onBlur={onBlur} + className="mt-1 w-full max-w-xs rounded-lg border border-slate-300 px-3 py-2 text-sm text-slate-900" + /> +