Role-aware in-context developer mode
Proposed experience
A developer/admin toolbar appears inside the SaaS application. It can toggle between live preview and edit canvas, select a simulated user role, edit the page/component tree, and save the resulting JSON layout.
Role-aware components
Components can carry presentation metadata such as allowedRoles. During editing, components hidden from the simulated role may remain visible in a dimmed/annotated state so the developer can understand why they disappear. In preview, they hide normally.
Security rule
Role simulation and component visibility are testing/presentation features only. Production data access must still be enforced by the server-side authorization layer before data reaches the renderer.