feat: Initial duct sizing view and calculations, need to add supply and return trunk sizing.

This commit is contained in:
2026-01-09 12:43:56 -05:00
parent 30fddb9dce
commit 7083178844
15 changed files with 402 additions and 15 deletions

View File

@@ -152,6 +152,7 @@ extension SiteRoute.View.ProjectRoute {
public enum DetailRoute: Equatable, Sendable {
case index(tab: Tab = .default)
case componentLoss(ComponentLossRoute)
case ductSizing(DuctSizingRoute)
case equipment(EquipmentInfoRoute)
case equivalentLength(EquivalentLengthRoute)
case frictionRate(FrictionRateRoute)
@@ -169,6 +170,9 @@ extension SiteRoute.View.ProjectRoute {
Route(.case(Self.componentLoss)) {
ComponentLossRoute.router
}
Route(.case(Self.ductSizing)) {
DuctSizingRoute.router
}
Route(.case(Self.equipment)) {
EquipmentInfoRoute.router
}
@@ -670,6 +674,19 @@ extension SiteRoute.View.ProjectRoute {
}
}
public enum DuctSizingRoute: Equatable, Sendable {
case index
static let rootPath = "duct-sizing"
static let router = OneOf {
Route(.case(Self.index)) {
Path { rootPath }
Method.get
}
}
}
}
extension SiteRoute.View {