feat: Adds result view to better handle errors, integrates it into project view.

This commit is contained in:
2026-01-10 18:27:45 -05:00
parent a356aa2a13
commit 20065ebf10
20 changed files with 342 additions and 152 deletions

View File

@@ -7,7 +7,9 @@ import Styleguide
struct DuctSizingView: HTML, Sendable {
let projectID: Project.ID
@Environment(ProjectViewValue.$projectID) var projectID
// let projectID: Project.ID
let rooms: [DuctSizing.RoomContainer]
var body: some HTML {

View File

@@ -74,7 +74,7 @@ struct RectangularSizeForm: HTML, Sendable {
form(
.class("space-y-4"),
.hx.post(route),
.hx.target("body"),
.hx.target("closest tr"),
.hx.swap(.outerHTML)
) {
input(.class("hidden"), .name("register"), .value(register))