mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 16:06:32 +00:00
feat: add a switch for the quick reply box under composing settings
This commit is contained in:
@@ -14,6 +14,7 @@ export function ComposingSettings() {
|
||||
const styles = React.useMemo(() => makeStyles(c), [c]);
|
||||
const autoSelectReplyIdentity = useSettingsStore((s) => s.autoSelectReplyIdentity);
|
||||
const replyIdentityMatch = useSettingsStore((s) => s.replyIdentityMatch);
|
||||
const quickReplyEnabled = useSettingsStore((s) => s.quickReplyEnabled);
|
||||
const t = useLocaleStore((s) => s.t);
|
||||
const setAutoSelectReplyIdentity = useSettingsStore((s) => s.setAutoSelectReplyIdentity);
|
||||
const attachmentReminderEnabled = useSettingsStore((s) => s.attachmentReminderEnabled);
|
||||
@@ -104,6 +105,13 @@ export function ComposingSettings() {
|
||||
title={t('settings.composer.title', "Composer")}
|
||||
description={t('settings.composer.description', "Configure email composition settings")}
|
||||
>
|
||||
<SettingItem
|
||||
label={t('settings.email_behavior.quick_reply.label', 'Quick reply')}
|
||||
description={t('settings.email_behavior.quick_reply.description', 'Show the quick reply box below messages.')}
|
||||
>
|
||||
<ToggleSwitch checked={quickReplyEnabled} onChange={(v) => updateSetting('quickReplyEnabled', v)} />
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
label={t('settings.email_behavior.auto_select_reply_identity.label', "Reply From Received Address")}
|
||||
description={t('settings.email_behavior.auto_select_reply_identity.description_mobile', "Replies always come from the identity a message was sent to. With this on, a reply to another address on your domains (a catch-all alias) is sent from that address too.")}
|
||||
|
||||
@@ -122,6 +122,7 @@ describe('settings search index (English catalog)', () => {
|
||||
expect(labelsFor('notifications')).toContain('Parse email invitations');
|
||||
expect(labelsFor('calendar')).toContain('Show week numbers');
|
||||
expect(labelsFor('reading')).toContain('Clear search when switching folders');
|
||||
expect(labelsFor('composing')).toContain('Quick reply');
|
||||
expect(labelsFor('notifications')).toContain('Unread count on app icon');
|
||||
// Webmail-only settings are not offered.
|
||||
expect(labelsFor('calendar')).not.toContain('Free scrolling');
|
||||
|
||||
@@ -104,6 +104,7 @@ export const SETTINGS_SEARCH_PATHS: Record<SettingsTabId, string[]> = {
|
||||
'settings.email_behavior.clear_search_on_folder_change',
|
||||
],
|
||||
composing: [
|
||||
'settings.email_behavior.quick_reply',
|
||||
'settings.email_behavior.auto_select_reply_identity',
|
||||
'settings.email_behavior.reply_identity_match',
|
||||
'settings.email_behavior.plain_text_mode',
|
||||
|
||||
Reference in New Issue
Block a user