feat(office_views): grey out Upload button while uploading #169

Merged
zaelgohary merged 1 commit from development_feat_upload_btn_disabled_style into development 2026-04-27 14:36:24 +00:00
Member

Summary

Follow-up to #167. The disabled HTML attribute prevents clicks but the inline button style was unchanged, so users had no visual cue that the Upload button was inert during an in-flight upload. Adds a conditional opacity + cursor: not-allowed when uploading_name is set.

Closes #168

Changes

  • archipelagos/embed/office/src/views.rs — branch on uploading_name to extend BUTTON_STYLE with opacity: 0.55; cursor: not-allowed;

Test Results

  • cargo check -p hero_archipelagos_office

Manual verification

With the deployed wasm: clicking Upload → chip appears + button visibly greys out + normal style returns when upload finishes.

## Summary Follow-up to #167. The disabled HTML attribute prevents clicks but the inline button style was unchanged, so users had no visual cue that the Upload button was inert during an in-flight upload. Adds a conditional opacity + `cursor: not-allowed` when `uploading_name` is set. ## Related Issue Closes #168 ## Changes - `archipelagos/embed/office/src/views.rs` — branch on `uploading_name` to extend BUTTON_STYLE with `opacity: 0.55; cursor: not-allowed;` ## Test Results - `cargo check -p hero_archipelagos_office` ✅ ## Manual verification With the deployed wasm: clicking Upload → chip appears + button visibly greys out + normal style returns when upload finishes.
feat(office_views): grey out Upload button while uploading
All checks were successful
Build and Test / build (pull_request) Successful in 5m26s
0be57efe01
Follow-up to #167. The disabled HTML attribute blocked clicks but the
inline button style was unchanged, so users had no visual cue. Adds a
conditional opacity + not-allowed cursor when an upload is in flight.
zaelgohary merged commit 8339a64880 into development 2026-04-27 14:36:24 +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_archipelagos!169
No description provided.