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)
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: SuppressOptswithkey: string
type?: 'session'|'localStorage' (default session)
label?: string (default something standard, sensitive to type)