mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Restore restorable surface modals through the initFw_end extension hook and keep right-canvas state in session storage for normal reloads. Fix Desktop host visibility after modal cleanup so preserved iframes reattach to real modal or canvas hosts, and remove the duplicate file-browser path icon overlay.
1.4 KiB
1.4 KiB
Canvas Components DOX
Purpose
- Own the right-canvas component surface and its state.
Ownership
right-canvas.htmlowns canvas markup.right-canvas-store.jsowns canvas state, surface registration, and actions.right-canvas.cssowns canvas-specific styling.
Local Contracts
- Keep registered surfaces compatible with WebUI extension hooks.
- Preserve responsive layout and avoid overlapping the chat/sidebar shells.
- Right-canvas rail and tab buttons are explicit canvas entry points above the mobile breakpoint; at mobile widths, keep the rail visible but route non-action surfaces into floating modals instead of the side canvas shell.
- Keep the right-canvas rail and docked shell hidden while the welcome screen is active; non-action surface opens during welcome must route into floating/modal surfaces instead of docking beside the welcome screen.
- Preserve docked canvas open state across same-tab reloads with session-scoped state, but do not treat it as durable cross-session UI state.
- In mobile mode, keep the rail below blocking modal layers and compact it on very narrow screens instead of letting it cover modal content.
Work Guidance
- Use existing surface and extension helpers before adding new canvas infrastructure.
Verification
- Smoke-test right-canvas open, close, resize, and registered surfaces after changes.
Child DOX Index
No child DOX files.