Skip to content

Align audit template and add premises profile wizard#3

Draft
jonbur wants to merge 1 commit into
mainfrom
cursor/premises-profile-wizard-af56
Draft

Align audit template and add premises profile wizard#3
jonbur wants to merge 1 commit into
mainfrom
cursor/premises-profile-wizard-af56

Conversation

@jonbur

@jonbur jonbur commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

Aligns the audit seed with the official Scout Association September 2025 template and delivers the premises profile wizard (build step 2 from CONTEXT.md).

Audit template alignment

  • 25 sections using Appendix A titles (Organisation of safety and management, Fire, Gas, etc.)
  • 100 check items (4 per section) with scope: all | extended
  • Sections 18 & 21 filled as Safeguarding and Sleeping Accommodation (not separately named in SA template)

Premises profile wizard

  • 5-step guided flow at /premises/[id]/profile
  • Saves PremisesProfile and recomputes applicableSections on every save
  • lib/sections.ts — profile-driven section filtering (e.g. no gas → exclude Gas section)
  • API: GET/PUT /api/premises/[id]/profile returns { data, error }

Dev setup

npm run docker:up && npm run db:seed
npm run dev
# → http://localhost:3000/premises/dev-premises-hut/profile

Tested

  • Build passes
  • Profile PUT returns correct applicable sections for sample hut (gas + grounds → 19 sections)
  • Health check still reports 25 template sections
Open in Web Open in Cursor 

- Rewrite audit seed with official September 2025 section titles (25 sections, 100 items)
- Add lib/sections.ts to compute applicableSections from profile flags
- Add 5-step premises profile wizard at /premises/[id]/profile
- Add profile GET/PUT API with organisation-scoped access
- Seed dev organisation and premises for local testing

Co-authored-by: jonbur <jonbur@users.noreply.github.com>
@cursor cursor Bot force-pushed the cursor/premises-profile-wizard-af56 branch from 6120ba0 to 62d9a2b Compare July 1, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants