v0.3.0-dev — Admin dashboard: settings parse error, missing OSIS types, data seeding #15
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Admin Dashboard Remaining Issues
Problem
The admin dashboard at
dev-admin.projectmycelium.orgloads and all 10 sidebar tabs navigate correctly, but several tabs show errors or empty state due to:Settings page parse error — "Could not load system info: Parse error: invalid type: string "", expected struct SystemInfo". The settings page calls
user.listas a health check but tries to deserialize asSystemInfo.Missing OSIS types — Some types the admin expects don't exist on the generated RPC server:
messagethread— not in schema (messaging tab falls back to empty)service— not in schema (services tab usesservicerequestinstead)message,cart,pool,wallet,wallettransaction— not in generated serverEmpty data — All tabs show 0 items because the RPC server's OSIS datastore has no seeded data. Need to run
seed_marketplace.rhaiagainst the RPC server.Deliverables
user.listresponse correctly (returns SID string, not SystemInfo)cargo run --bin marketplace_rhai -- scripts/rhai/seed_marketplace.rhaiCurrent test results
References
projectmycelium_marketplace_admin/src/rpc_client.rs(hasrpc_listhelper for OSIS two-step pattern)projectmycelium_marketplace_backend/schemas/marketplace.oschemaprojectmycelium_marketplace_backend/scripts/rhai/seed_marketplace.rhaiIssue #15 — Admin Dashboard Fixes
Changes
SystemInfoContentwas deserializinguser.listresponse (newline-delimited SID string) asSystemInfostruct. Now correctly deserializes asString, counts SIDs, and displays RPC connectivity status + user count.messagethread(doesn't exist in schema) toconversation(matches the OSchemaConversationroot object).Files changed
src/pages/settings.rs— replaced SystemInfo deserialization with String + SID countsrc/pages/messaging.rs—messagethread→conversationTest results
cargo check --lib --target wasm32-unknown-unknown— passhttps://dev-admin.projectmycelium.org/— HTTP 200Remaining
seed_marketplace.rhaistill needed to populate OSIS datastore (all tabs will show 0 counts until seeded)-- mik-tf
Revised Assessment — Admin fixes done, but broader SPA gaps remain
What was fixed (deployed)
SystemInfoContentnow deserializesuser.listas SID string, shows RPC status + user countmessagethread→conversationWhat still blocks
seed_marketplace.rhaimessage,cart,pool,wallet,wallettransactiondon't exist in schema. These tabs will show empty state gracefullyDependency on #14
The admin dashboard depends on the same backend data as the SPA frontend. Seeding data (Phase 1 of #14 plan) will fix both issues simultaneously.
-- mik-tf
Closing — admin dashboard fixes deployed (settings parse, messaging type). SPA dashboard fully working with auth, data, and all sections.
Release: v0.3.0-dev
Signed-off-by: mik-tf