feat: Adds level field to rooms, updates urls to point to public mirror of the project.
Some checks failed
CI / Linux Tests (push) Failing after 15s

This commit is contained in:
2026-02-10 12:07:44 -05:00
parent 980d99e40b
commit dc9f51c04f
28 changed files with 464 additions and 104 deletions

View File

@@ -1,5 +1,6 @@
import Elementary
import Foundation
import Validations
public struct ResultView<ValueView, ErrorView>: HTML where ValueView: HTML, ErrorView: HTML {
@@ -69,7 +70,11 @@ public struct ErrorView: HTML, Sendable {
div {
h1(.class("text-xl font-bold text-error")) { "Oops: Error" }
p {
"\(error.localizedDescription)"
if let validationError = (error as? ValidationError) {
"\(validationError.debugDescription)"
} else {
"\(error.localizedDescription)"
}
}
}
}