mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-27 22:45:03 +00:00
Merge origin/main into issue-419-admin-work-orders-table (pull in #450 build fix)
This commit is contained in:
commit
d75bdf0ac4
5 changed files with 13538 additions and 1 deletions
17
src/app/db/migrations/0278_living_baron_strucker.sql
Normal file
17
src/app/db/migrations/0278_living_baron_strucker.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, as built' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 12 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 25 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 50 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 75 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 100 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 125 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 150 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 175 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 200 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 225 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 250 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 270 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 300 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 350 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 400 mm insulation' BEFORE 'Roof room(s), insulated';--> statement-breakpoint
|
||||
ALTER TYPE "public"."roof_type" ADD VALUE 'Pitched, sloping ceiling, 400+ mm insulation' BEFORE 'Roof room(s), insulated';
|
||||
13489
src/app/db/migrations/meta/0278_snapshot.json
Normal file
13489
src/app/db/migrations/meta/0278_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1940,6 +1940,13 @@
|
|||
"when": 1784801404980,
|
||||
"tag": "0277_woozy_prism",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 278,
|
||||
"version": "7",
|
||||
"when": 1784810497155,
|
||||
"tag": "0278_living_baron_strucker",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -130,6 +130,30 @@ export const RoofTypeValues: [string, ...string[]] = [
|
|||
"Pitched, 350 mm loft insulation",
|
||||
"Pitched, 400 mm loft insulation",
|
||||
"Pitched, 400+ mm loft insulation",
|
||||
// Pitched roof with a sloping ceiling — insulation sits at the rafter/slope
|
||||
// line, NOT a horizontal loft, so it is modelled explicitly rather than
|
||||
// flattened onto the "Pitched, N mm loft insulation" ladder. Depth ladder
|
||||
// mirrors the loft one (12 mm … 400+ mm); "as built" defers the insulation
|
||||
// assumption to the construction age band. Source EPC field is
|
||||
// "PitchedWithSlopingCeiling"; this canonical name is intentionally our own.
|
||||
// See Hestia-Homes/Model#1676 (roof overlay must model these at rafter level).
|
||||
"Pitched, sloping ceiling, as built",
|
||||
"Pitched, sloping ceiling, 12 mm insulation",
|
||||
"Pitched, sloping ceiling, 25 mm insulation",
|
||||
"Pitched, sloping ceiling, 50 mm insulation",
|
||||
"Pitched, sloping ceiling, 75 mm insulation",
|
||||
"Pitched, sloping ceiling, 100 mm insulation",
|
||||
"Pitched, sloping ceiling, 125 mm insulation",
|
||||
"Pitched, sloping ceiling, 150 mm insulation",
|
||||
"Pitched, sloping ceiling, 175 mm insulation",
|
||||
"Pitched, sloping ceiling, 200 mm insulation",
|
||||
"Pitched, sloping ceiling, 225 mm insulation",
|
||||
"Pitched, sloping ceiling, 250 mm insulation",
|
||||
"Pitched, sloping ceiling, 270 mm insulation",
|
||||
"Pitched, sloping ceiling, 300 mm insulation",
|
||||
"Pitched, sloping ceiling, 350 mm insulation",
|
||||
"Pitched, sloping ceiling, 400 mm insulation",
|
||||
"Pitched, sloping ceiling, 400+ mm insulation",
|
||||
"Roof room(s), insulated",
|
||||
"Roof room(s), insulated (assumed)",
|
||||
"Roof room(s), limited insulation",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { notFound } from "next/navigation";
|
||||
import { requireProjectAccess } from "../../../authz";
|
||||
import { requireProjectAccess } from "../../../guards";
|
||||
import { authorizeWorkstreamRequest } from "@/app/api/projects/[projectId]/workstreams/authorize";
|
||||
import { listWorkstreamOptions } from "@/app/api/projects/[projectId]/workstreams/queries";
|
||||
import {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue