WIP: Dioxus Bootstrap migration — hero_auth #7

Draft
mik-tf wants to merge 29 commits from development_dioxus_bootstrap into development
Owner

DO NOT MERGE

Dioxus WASM frontend migration per lhumina_code/home#26

## DO NOT MERGE Dioxus WASM frontend migration per https://forge.ourworld.tf/lhumina_code/home/issues/26
Add Dioxus WASM frontend crate for Bootstrap migration
Some checks failed
Build and Test / build (pull_request) Failing after 22s
f10613bebf
- Create hero_auth_ui_wasm crate with dioxus 0.7 + dioxus-bootstrap-css 0.1.6
- Implement all 9 templates as Dioxus components (admin panel, login, register,
  setup, user table, stats, oauth test, rpc console, api docs, mcp docs)
- Add JSON-RPC client (rpc.rs) and serde types (types.rs)
- Feature-gate askama in server crate (default = ["askama"])
- Add --dist CLI arg for serving WASM dist directory
- Add /assets/{*path} route for WASM dist static files
- Index/login/register/setup handlers try dist/index.html first, fall back to askama
- Add workspace with hero_auth_ui_wasm member
- Both native and wasm32-unknown-unknown targets compile successfully
refactor: convert hero_auth_ui_wasm to archipelago library crate
Some checks failed
Build and Test / build (pull_request) Failing after 25s
ccf8cc3687
fix: set default features to ["web"] for hero_os_app integration
Some checks failed
Build and Test / build (pull_request) Failing after 24s
3b657e9b26
fix: add hero_archipelagos_core/web to web feature
Some checks failed
Build and Test / build (pull_request) Failing after 24s
df36d98274
Ensure hero_archipelagos_core web feature is activated when the crate's
web feature is enabled, so it works correctly as a git dependency.
fix: use single-segment route params for Axum 0.7 compat
Some checks failed
Build and Test / build (pull_request) Failing after 42s
20a5b15dcd
fix: RPC routing + conditional BootstrapHead for hero_os integration
Some checks failed
Build and Test / build (pull_request) Failing after 37s
efaaa3c389
fix: synchronous RPC base init (before first render)
Some checks failed
Build and Test / build (pull_request) Failing after 37s
1ac0f5abd7
fix: unconditional RPC base init
Some checks failed
Build and Test / build (pull_request) Failing after 29s
9e614951df
Fix auth UI loading forever by adding 5s timeout to initial RPC call
Some checks failed
Build and Test / build (pull_request) Failing after 24s
204b8a52fb
When the auth backend is down or unreachable, the stats RPC call would
hang indefinitely, showing a spinner forever and freezing the hero_os
app. Now the RPC call races against a 5-second timeout. On failure or
timeout, an error alert is shown instead of an infinite spinner.
fix: pin futures correctly for wasm32 compilation
Some checks failed
Build and Test / build (pull_request) Failing after 21s
941c53abae
fix(auth): remove blocking mount call, skip login when embedded
Some checks failed
Build and Test / build (pull_request) Failing after 22s
de444a42a2
When embedded in hero_os (context provided), go directly to Admin page
without any RPC calls blocking mount. Load stats in background with
spawn. Remove futures-util dependency (select timeout approach removed).
Standalone mode keeps existing login/setup flow.
fix(auth): use correct field name context_name for embedded detection
Some checks failed
Build and Test / build (pull_request) Failing after 21s
223d8a83f4
fix: non-blocking mount, skip login when embedded
Some checks failed
Build and Test / build (pull_request) Failing after 25s
8f2c751289
chore: bump dioxus-bootstrap-css to 0.1.7
Some checks failed
Build and Test / build (pull_request) Failing after 54s
3b50d4c41d
refactor: pure dioxus-bootstrap-css 0.1.8 — TabList, Card header_class
Some checks failed
Build and Test / build (pull_request) Failing after 32s
70dcbe742a
chore: bump dioxus-bootstrap-css to 0.1.8
Some checks failed
Build and Test / build (pull_request) Failing after 45s
02915e650b
Convert raw HTML div/table/button elements to proper dioxus-bootstrap-css
components (Card, Table, Button, Row, Col) for pixel-perfect Bootstrap 5.3.
refactor: convert raw button elements to Button component
Some checks failed
Build and Test / build (pull_request) Failing after 34s
6e113e31d8
Convert remaining button { class: "btn..." } to Button { color, outline, size }
using dioxus-bootstrap-css components.
chore: bump dioxus-bootstrap-css to 0.1.9
Some checks failed
Build and Test / build (pull_request) Failing after 44s
5dd9395545
chore: bump dioxus-bootstrap-css to 0.2.0 (extends GlobalAttributes)
Some checks failed
Build and Test / build (pull_request) Failing after 28s
57c4ec4bfb
chore: bump dioxus-bootstrap-css to 0.2.1
Some checks failed
Build and Test / build (pull_request) Failing after 56s
1b8b534839
fix: add rpc_base prefixing to post_form, post_json, get_json
Some checks failed
Build and Test / build (pull_request) Failing after 51s
0dc594c0a3
All REST helper functions now prepend the rpc_base() path so
API calls route correctly when embedded behind hero_proxy.
refactor: convert raw Bootstrap HTML to dioxus-bootstrap-css components
Some checks failed
Build and Test / build (pull_request) Failing after 43s
d0ef717fea
fix: add top padding to container for consistent spacing in hero_os window
Some checks failed
Build and Test / build (pull_request) Failing after 45s
88b2871024
refactor: convert link-buttons to Button { href } (dioxus-bootstrap-css 0.2.2)
Some checks failed
Build and Test / build (pull_request) Failing after 26s
4f1ab82dcc
refactor: use Button { href, target, download } (dioxus-bootstrap-css 0.2.3)
Some checks failed
Build and Test / build (pull_request) Failing after 23s
7bbac43892
fix: tighten sidebar card padding via CSS (Bootstrap specificity override)
Some checks failed
Build and Test / build (pull_request) Failing after 21s
1c32478326
fix: use Bootstrap CSS variables for compact sidebar card padding
Some checks failed
Build and Test / build (pull_request) Failing after 38s
cfa34a23ad
Some checks failed
Build and Test / build (pull_request) Failing after 23s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin development_dioxus_bootstrap:development_dioxus_bootstrap
git switch development_dioxus_bootstrap

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch development
git merge --no-ff development_dioxus_bootstrap
git switch development_dioxus_bootstrap
git rebase development
git switch development
git merge --ff-only development_dioxus_bootstrap
git switch development_dioxus_bootstrap
git rebase development
git switch development
git merge --no-ff development_dioxus_bootstrap
git switch development
git merge --squash development_dioxus_bootstrap
git switch development
git merge --ff-only development_dioxus_bootstrap
git switch development
git merge development_dioxus_bootstrap
git push origin development
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_auth!7
No description provided.