You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f6ce715
Browse filesBrowse the repository at this point in the historyBrowse files
feat(console): a settings toggle that declares confirmOffText asks before it is turned off
The settings page's toggle row reads SpecifierSchema.confirmOffText: turning
the switch from on to off opens a confirmation carrying the text (resolved
through settings.NAMESPACE.keys.KEY.confirmOffText, else the manifest
literal); Cancel leaves the switch on with nothing drafted, Continue drafts
false for the page's Save. Turning on asks nothing; a toggle without the key
is unchanged.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgX6EQZ4fi7BLKzhfLT
feat(console): a settings toggle that declares `confirmOffText` asks before it is turned off
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: semantic
9
+
10
+
A settings manifest's `toggle` specifier may declare `confirmOffText` (`SpecifierSchema`: "Confirm dialog text shown before a toggle's value changes to off (omit = no confirm)"), and the authentication manifest declares it on `email_password_enabled`. The Console's settings page did not read the key, so Setup turned email and password sign-in off without asking. Now turning such a toggle off opens a confirmation carrying that text, translated through `settings.NAMESPACE.keys.KEY.confirmOffText` when the locale has it (an inline locale map literal is picked for the page's language otherwise). Cancel leaves the toggle on and puts nothing in the page's unsaved changes, so nothing can be saved; Continue turns it off, and Save sends it like any other edit. Turning a toggle on asks nothing, and a toggle without the key changes at once, exactly as before.
0 commit comments