refactor(office island): route upload/delete through hero_office RPC #164
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos!164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_refactor_office_island_unified_rpc"
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?
Summary
Browser previously talked to two backends —
hero_officeforlist_documents, directhero_foundryREST for upload/delete. Unify onhero_office: route upload/delete through the newupload_document/delete_documentJSON-RPC methods (base64 payload). Browser now knows one backend.Related Issue
Pairs with
lhumina_code/hero_officePR adding the server-side RPCs. Must merge after that PR — the browser will call methods that do not yet exist on the server otherwise.Changes
archipelagos/embed/office/Cargo.toml—+ base64 = "0.22"archipelagos/embed/office/src/service.rs— singlerpc_callhelper;upload_file/delete_filenow POST to/hero_office/rpc; dropped thefile_urlhelper and the hero_foundry patharchipelagos/embed/office/src/views.rs— drive-by collapse of a single-armmatchflagged by clippy 1.93single_matchTest Results
cargo check --target wasm32-unknown-unknown -p hero_archipelagos_office✅cargo clippy --target wasm32-unknown-unknown -p hero_archipelagos_office -- -D warnings✅cargo fmt --checkon touched files ✅Manual verification
hero_osUI loads with the new browser code.tests/e2e/office_upload.spec.ts(the spec that exercises the Upload-button → file-list flow) ✅ — confirms the browser-side base64 path throughupload_documentworks end-to-end.tests/e2e/office_editor_real.spec.ts4/4 — editor still opens and saves for docs / sheets / presentations / pdf.