Skip to content

Support suppressOptions argument to XH.confirm() and XH.alert() #3890

@lbwexler

Description

@lbwexler

FROM ATM

WDYT about adding an option to XH.confirm() that would include a standardized “don’t ask me again for this session” checkbox?
I’m imagining that arg could take a dev-defined key (arbitrary string) - something like suppressForSessionKey or snoozeForSessionKey as a cuter option.
Another option would be to take a PersistOptions object that would also support a more permanent snooze option via prefs or localStorage, but that gets a bit more complicated with a need to spec a suitable prompt and all that.

FROM LEE

maybe a suppress: SuppressOpts with

key: string
type?: 'session'|'localStorage' (default session)
label?: string (default something standard, sensitive to type)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions