WIP: Changes main page to not include sidebar, that moves to project view.

This commit is contained in:
2026-01-03 16:24:53 -05:00
parent 1d155546ae
commit 1aeb6144d5
15 changed files with 383 additions and 236 deletions

View File

@@ -44,6 +44,7 @@ extension SiteRoute {
extension SiteRoute.View {
public enum ProjectRoute: Equatable, Sendable {
case create(Project.Create)
case detail(Project.ID)
case form(dismiss: Bool = false)
case index
case page(page: Int = 1, limit: Int = 25)
@@ -65,6 +66,13 @@ extension SiteRoute.View {
.map(.memberwise(Project.Create.init))
}
}
Route(.case(Self.detail)) {
Path {
rootPath
Project.ID.parser()
}
Method.get
}
Route(.case(Self.form)) {
Path {
rootPath
@@ -97,7 +105,7 @@ extension SiteRoute.View {
extension SiteRoute.View {
public enum RoomRoute: Equatable, Sendable {
case form(dismiss: Bool = false)
case index
case index(Project.ID)
static let rootPath = "rooms"
@@ -115,6 +123,9 @@ extension SiteRoute.View {
Route(.case(Self.index)) {
Path { rootPath }
Method.get
Query {
Field("projectID") { Project.ID.parser() }
}
}
}
}