Remove the admin's dashboard and rename the crate to _web #229

Merged
AhmedHanafy725 merged 9 commits from development_hanafy into development 2026-06-24 08:07:57 +00:00
No description provided.
The web heroservice.json advertised 'admin dashboard at /admin/', which is
the legacy Askama admin being retired in favour of the hero_components Dioxus
admin. Trim to 'Collaborative visual whiteboard' so the sidebar/discovery no
longer points at the old path.
The Askama admin dashboard is replaced by the hero_components Dioxus admin
(/hero_components/admin/?service=hero_whiteboard). Remove the /admin routes and
all admin-only code: IndexTemplate, the admin discovery + merged-OpenRPC + index
+ static handlers, the StaticAssets embed, and the admin templates/static assets
(index.html, base.html, dashboard.js/css, vendored shared/, favicon).

The end-user Konva whiteboard (/, /board, /s/{token}, /ws) is unchanged and
still proxies RPC via /call (rpc_translate). Verified: / -> 200, /admin -> 404,
/call works.
The crate no longer hosts an admin dashboard (retired to hero_components), so
rename it to the skill-compliant end-user UI name (hero_service_check §2:
end-user web UI = _<svc>_ui/_web; _admin is for an admin dashboard, which this
no longer is). Changes: crate dir, Cargo package + [[bin]], service.toml
crate_name/binary (kind admin->web), workspace members, and all module/log/
identity references (SERVICE_NAME, log src whiteboard.ui, RUST_LOG filter,
health service name, discovery title).

Socket kept as hero_whiteboard/admin.sock so the router keeps serving the
whiteboard at /hero_whiteboard/ui/ (verified 200; /admin -> 404).

Docs: README, PURPOSE, SPECIFICATIONS and the crate docs/* updated to the new
name and to note the admin dashboard now lives in hero_components.
Follow hero_sockets/hero_service_check: the end-user Askama (Konva) UI crate is
_web, served on web.sock. Rename the crate (dir, Cargo package + [[bin]],
service.toml crate_name/binary, workspace members) and switch the socket from
admin.sock to the canonical hero_whiteboard/web.sock (socket_type=web).

hero_router serves it at /hero_whiteboard/web/ (verified 200, real whiteboard
HTML); /ui/ and /admin/ remain working aliases to the same socket, so no links
break. Updated identity strings (SERVICE_NAME, log src whiteboard.web, RUST_LOG,
health service name) and all md docs (README/PURPOSE/SPECIFICATIONS + crate
docs) to the new name and web.sock path. lab infocheck: clean.
A web UI socket must advertise protocol "web" per hero_sockets §4; the stale
"ui" value is non-standard. Keeps discovery/classification correct.
These are build artifacts emitted from the oschema by openrpc_server!'s
save_openrpc_dir; nothing consumes the committed copies (the spec is embedded
in the binary and the SDK generates from the oschema). Untrack them and ignore
the dir so the committed snapshot can't drift from the schema.
_beta/hero_whiteboard_app was a standalone Dioxus admin experiment, not in the
workspace and superseded by the shared hero_components admin — remove it (and
its stray .hero_builder_backup). Drop the README link to the deleted
INSTRUCTIONS_TECH.md.
board_list's workspace_id param is optional, so the generated BoardListInput
field is Option<i64>; the example/test passed a bare 1. Wrap in Some(1).
Verified: crate compiles (lib+examples+tests) and both examples run against the
live server (health -> ping true; basic_usage lists workspaces/boards).
AhmedHanafy725 merged commit 3f2a615e58 into development 2026-06-24 08:07:57 +00:00
AhmedHanafy725 deleted branch development_hanafy 2026-06-24 08:08:00 +00:00
Sign in to join this conversation.
No reviewers
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_whiteboard!229
No description provided.