feat(web): SPA skeleton embedded in the binary
ci / web (pull_request) Failing after 34s
ci / rust (pull_request) Successful in 1m46s
e2e / e2e (pull_request) Successful in 1m20s

Vite + TypeScript, no framework. One health board page proves the
whole path: fetch /api/health, render per-upstream verdicts. Biome
and tsc join the just ci gate; dev mode proxies /api to the daemon.

arr-daemon embeds web/dist via include_dir: build.rs runs pnpm when
available, accepts ARR_WEB_DIST prebuilt, and falls back to a
placeholder only in debug so the node-less CI rust job keeps working.

Closes #6

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-08-22 20:34:12 +01:00
co-authored by Claude Fable 5
parent 58827da647
commit f025b2529d
20 changed files with 2275 additions and 1 deletions
Generated
+37
View File
@@ -55,6 +55,8 @@ version = "0.1.0"
dependencies = [
"arr-api",
"axum",
"include_dir",
"mime_guess",
"reqwest",
"serde",
"tempfile",
@@ -966,6 +968,25 @@ dependencies = [
"icu_properties",
]
[[package]]
name = "include_dir"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd"
dependencies = [
"include_dir_macros",
]
[[package]]
name = "include_dir_macros"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75"
dependencies = [
"proc-macro2",
"quote",
]
[[package]]
name = "indexmap"
version = "2.14.0"
@@ -1115,6 +1136,16 @@ version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
[[package]]
name = "mime_guess"
version = "2.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"
dependencies = [
"mime",
"unicase",
]
[[package]]
name = "mio"
version = "1.2.2"
@@ -2354,6 +2385,12 @@ version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
[[package]]
name = "unicase"
version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"
[[package]]
name = "unicode-bidi"
version = "0.3.18"