feature/IO-3225-Notifications-1.5: Final Refactoring / Optimization

This commit is contained in:
Dave Richer
2025-05-06 14:19:22 -04:00
parent 8a8bc5a6ed
commit b539111be8
2 changed files with 8 additions and 10 deletions

View File

@@ -182,12 +182,13 @@ const NotificationSettingsForm = ({ currentUser }) => {
title={t("notifications.labels.notificationscenarios")}
extra={
<Space>
<Typography.Text type="secondary">{t("notifications.labels.auto-add")}</Typography.Text>
<Switch
checked={autoAddEnabled}
onChange={handleAutoAddToggle}
loading={savingAutoAdd}
checkedChildren={t("notifications.labels.auto-add-on")}
unCheckedChildren={t("notifications.labels.auto-add-off")}
// checkedChildren={t("notifications.labels.auto-add-on")}
// unCheckedChildren={t("notifications.labels.auto-add-off")}
/>
<Button type="default" onClick={handleReset} disabled={!isDirty && !isAutoAddDirty}>
{t("general.actions.clear")}
@@ -200,7 +201,6 @@ const NotificationSettingsForm = ({ currentUser }) => {
>
<Table dataSource={dataSource} columns={columns} pagination={false} bordered rowKey="key" />
<Divider />
<Typography.Paragraph type="secondary">{t("notifications.labels.auto-add-description")}</Typography.Paragraph>
</Card>
</Form>
);

View File

@@ -652,7 +652,7 @@
"notifications": {
"description": "Select employees to automatically follow new jobs and receive notifications for job updates.",
"placeholder": "Search for employees",
"invalid_followers": "Invalid followers. Please select valid employees."
"invalid_followers": "Invalid selection. Please select valid employees."
}
},
"labels": {
@@ -735,7 +735,7 @@
"task-presets": "Task Presets",
"workingdays": "Working Days",
"notifications": {
"followers": "Notification Followers"
"followers": "Notifications"
}
},
"operations": {
@@ -2449,11 +2449,9 @@
"fcm": "Push"
},
"labels": {
"auto-add-on": "Unfollow",
"auto-add-off": "Follow",
"auto-add-success": "Follow status successfully changed.",
"auto-add-failure": "Something went wrong updating your Follow status.",
"auto-add-description": "When enabled, the Follow setting automatically adds you as a watcher to new jobs, ensuring you receive notifications for job updates.",
"auto-add": "Automatically watch Jobs I import",
"auto-add-success": "Auto watcher status successfully changed.",
"auto-add-failure": "Something went wrong updating your auto watcher status.",
"add-watchers": "Add Watchers",
"add-watchers-team": "Add Team Members",
"employee-search": "Search for an Employee",