Skip to main content

Module permission_prompt

Module permission_prompt 

Expand description

Inline permission prompt — the bar that pops in at the top of the active strip when a sandboxed app requests a capability.

App icon + capability description + four-action button cluster: Allow (this request only), This session (until shell restart), Always allow (persists; owner-only), Deny (subsequent requests prompt again).

Render-only relative to the CRDT — its content is fed by a parent. The user’s choice is exposed via PermissionPrompt::pending_choice as a one-shot output; the parent drains it each frame and applies the resulting Capability grant.

Structs§

PermissionPrompt
Inline permission prompt widget.

Enums§

PromptChoice
Mirrors the variants of the shell’s consumer-facing quick_shell::shell::state::GrantScope plus an explicit PromptChoice::Deny for the negative path. Held one-shot on PermissionPrompt::pending_choice until the host drains it.

Constants§

PROMPT_HEIGHT

Functions§

button_label
Shared localized label for pointer and semantic permission decisions.