Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lbwexler opened this issue Jan 7, 2025 · 0 comments
Open

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

lbwexler opened this issue Jan 7, 2025 · 0 comments

Comments

@lbwexler
Copy link
Member

lbwexler commented Jan 7, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant