WIP: Working on friction rate worksheet views.

This commit is contained in:
2025-12-31 21:56:43 -05:00
parent 591875cf13
commit 24c87602e9
12 changed files with 326 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ extension SiteRoute.View {
extension SiteRoute.View {
public enum FrictionRateRoute: Equatable, Sendable {
case index
case form
case form(FormType, dismiss: Bool = false)
static let rootPath = "friction-rate"
@@ -104,7 +104,18 @@ extension SiteRoute.View {
"create"
}
Method.get
Query {
Field("type") { FormType.parser() }
Field("dismiss", default: false) { Bool.parser() }
}
}
}
}
}
extension SiteRoute.View.FrictionRateRoute {
public enum FormType: String, CaseIterable, Codable, Equatable, Sendable {
case equipmentInfo
case componentPressureLoss
}
}