feat: offer the code of sign-in and verification mails for copying in the list and the reader

This commit is contained in:
Linus Rath
2026-10-29 03:15:09 +01:00
parent cc21317b5a
commit b1550f143b
8 changed files with 1107 additions and 0 deletions
@@ -32,6 +32,7 @@ export function ReadingSettings() {
const deleteAction = useSettingsStore((s) => s.deleteAction);
const permanentlyDeleteJunk = useSettingsStore((s) => s.permanentlyDeleteJunk);
const showPreview = useSettingsStore((s) => s.showPreview);
const showVerificationCodes = useSettingsStore((s) => s.showVerificationCodes);
const clearSearchOnFolderChange = useSettingsStore((s) => s.clearSearchOnFolderChange);
const disableThreading = useSettingsStore((s) => s.disableThreading);
const includeGroupInUnified = useSettingsStore((s) => s.includeGroupInUnified);
@@ -193,6 +194,10 @@ export function ReadingSettings() {
<ToggleSwitch checked={showPreview} onChange={(v) => update('showPreview', v)} />
</SettingItem>
<SettingItem label={t('settings.email_behavior.show_verification_codes.label', "Show Verification Codes")} description={t('settings.email_behavior.show_verification_codes.description', "Offer the code from sign-in and confirmation emails for one-click copying, in the list for a day and in the message")}>
<ToggleSwitch checked={showVerificationCodes} onChange={(v) => update('showVerificationCodes', v)} />
</SettingItem>
<SettingItem label={t('settings.email_behavior.disable_threading.label', "Disable Conversation Grouping")} description={t('settings.email_behavior.disable_threading.description', "Show emails as individual messages instead of grouped by conversation")}>
<ToggleSwitch checked={disableThreading} onChange={(v) => update('disableThreading', v)} />
</SettingItem>