Page MenuHomePhabricator

D12664.diff
No OneTemporary

D12664.diff

diff --git a/lib/shared/thread-settings-notifications-utils.js b/lib/shared/thread-settings-notifications-utils.js
--- a/lib/shared/thread-settings-notifications-utils.js
+++ b/lib/shared/thread-settings-notifications-utils.js
@@ -18,7 +18,7 @@
const threadSettingsNotificationsCopy = {
BANNER_NOTIFS: 'Banner notifs',
- BADGE_COUNT: 'Badge count',
+ NOTIF_COUNT: 'Notif count',
IN_FOCUSED_TAB: 'Lives in Focused tab',
IN_BACKGROUND_TAB: 'Lives in Background tab',
FOCUSED: 'Focused (enabled)',
diff --git a/native/chat/settings/thread-settings-notifications.react.js b/native/chat/settings/thread-settings-notifications.react.js
--- a/native/chat/settings/thread-settings-notifications.react.js
+++ b/native/chat/settings/thread-settings-notifications.react.js
@@ -26,7 +26,7 @@
type NotificationDescriptionProps = {
+selected: boolean,
+bannerNotifsEnabled: boolean,
- +badgeCountEnabled: boolean,
+ +notifCountEnabled: boolean,
+livesInFocusedTab: boolean,
};
@@ -36,7 +36,7 @@
const {
selected,
bannerNotifsEnabled,
- badgeCountEnabled,
+ notifCountEnabled,
livesInFocusedTab,
} = props;
@@ -61,18 +61,18 @@
styles.notificationOptionDescriptionTextDisabledSelected,
]);
- const badgeCountDescriptionTextStyles = React.useMemo(() => {
+ const notifCountDescriptionTextStyles = React.useMemo(() => {
const style = [styles.notificationOptionDescriptionText];
- if (selected && !badgeCountEnabled) {
+ if (selected && !notifCountEnabled) {
style.push(styles.notificationOptionDescriptionTextDisabledSelected);
- } else if (!badgeCountEnabled) {
+ } else if (!notifCountEnabled) {
style.push(styles.notificationOptionDescriptionTextDisabled);
}
return style;
}, [
- badgeCountEnabled,
+ notifCountEnabled,
selected,
styles.notificationOptionDescriptionText,
styles.notificationOptionDescriptionTextDisabled,
@@ -86,11 +86,11 @@
bannerNotifsIconColor = colors.panelSecondaryForeground;
}
- let badgeCountIconColor = colors.panelForegroundSecondaryLabel;
- if (selected && !badgeCountEnabled) {
- badgeCountIconColor = colors.panelInputSecondaryForeground;
- } else if (!badgeCountEnabled) {
- badgeCountIconColor = colors.panelSecondaryForeground;
+ let notifCountIconColor = colors.panelForegroundSecondaryLabel;
+ if (selected && !notifCountEnabled) {
+ notifCountIconColor = colors.panelInputSecondaryForeground;
+ } else if (!notifCountEnabled) {
+ notifCountIconColor = colors.panelSecondaryForeground;
}
return (
@@ -107,12 +107,12 @@
</View>
<View style={styles.notificationOptionDescriptionListItem}>
<SWMansionIcon
- name={badgeCountEnabled ? 'check' : 'cross'}
+ name={notifCountEnabled ? 'check' : 'cross'}
size={12}
- color={badgeCountIconColor}
+ color={notifCountIconColor}
/>
- <Text style={badgeCountDescriptionTextStyles}>
- {threadSettingsNotificationsCopy.BADGE_COUNT}
+ <Text style={notifCountDescriptionTextStyles}>
+ {threadSettingsNotificationsCopy.NOTIF_COUNT}
</Text>
</View>
<View style={styles.notificationOptionDescriptionListItem}>
@@ -203,7 +203,7 @@
<NotificationDescription
selected={notificationSettings === 'focused'}
bannerNotifsEnabled={true}
- badgeCountEnabled={true}
+ notifCountEnabled={true}
livesInFocusedTab={true}
/>
),
@@ -215,7 +215,7 @@
<NotificationDescription
selected={notificationSettings === 'badge-only'}
bannerNotifsEnabled={false}
- badgeCountEnabled={true}
+ notifCountEnabled={true}
livesInFocusedTab={true}
/>
),
@@ -227,7 +227,7 @@
<NotificationDescription
selected={notificationSettings === 'background'}
bannerNotifsEnabled={false}
- badgeCountEnabled={false}
+ notifCountEnabled={false}
livesInFocusedTab={false}
/>
),
diff --git a/web/modals/threads/notifications/notifications-modal.react.js b/web/modals/threads/notifications/notifications-modal.react.js
--- a/web/modals/threads/notifications/notifications-modal.react.js
+++ b/web/modals/threads/notifications/notifications-modal.react.js
@@ -24,7 +24,7 @@
styleStatementBasedOnValidity: true,
},
{
- statement: threadSettingsNotificationsCopy.BADGE_COUNT,
+ statement: threadSettingsNotificationsCopy.NOTIF_COUNT,
isStatementValid: true,
styleStatementBasedOnValidity: true,
},
@@ -42,7 +42,7 @@
styleStatementBasedOnValidity: true,
},
{
- statement: threadSettingsNotificationsCopy.BADGE_COUNT,
+ statement: threadSettingsNotificationsCopy.NOTIF_COUNT,
isStatementValid: true,
styleStatementBasedOnValidity: true,
},
@@ -60,7 +60,7 @@
styleStatementBasedOnValidity: true,
},
{
- statement: threadSettingsNotificationsCopy.BADGE_COUNT,
+ statement: threadSettingsNotificationsCopy.NOTIF_COUNT,
isStatementValid: false,
styleStatementBasedOnValidity: true,
},

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 6, 10:27 PM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251162
Default Alt Text
D12664.diff (5 KB)

Event Timeline