Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
notifications: Add help link for "Followed topics" in triggers table.
vivek-tripathi-9005d3ac1d5cb199
diff --git a/web/src/settings_config.ts b/web/src/settings_config.tsindex 76aab5c44bb..2a1f2a3951b 100644--- a/web/src/settings_config.ts+++ b/web/src/settings_config.ts@@ -834,7 +834,11 @@ export function get_notifications_table_row_data(}export type AllNotifications = {- general_settings: {label: string; notification_settings: NotificationSettingCheckbox[]}[];+ general_settings: {+ label: string;+ notification_settings: NotificationSettingCheckbox[];+ help_link?: string;+ }[];settings: {desktop_notification_settings: string[];mobile_notification_settings: string[];@@ -870,6 +874,7 @@ export const all_notifications = (settings_object: Settings): AllNotifications =followed_topic_notification_settings,settings_object,),+ help_link: "/help/follow-a-topic",},],settings: {diff --git a/web/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbsindex 4f654086f92..1a69ecd4335 100644--- a/web/templates/settings/notification_settings.hbs+++ b/web/templates/settings/notification_settings.hbs@@ -29,7 +29,12 @@<tbody>{{#each general_settings}}<tr>- <td>{{ this.label }}</td>+ <td>+ {{ this.label }}+ {{#if this.help_link}}+ {{> ../help_link_widget link=this.help_link }}+ {{/if}}+ </td>{{#each this.notification_settings}}{{> notification_settings_checkboxessetting_name=this.setting_namediff --git a/web/tests/settings_config.test.cjs b/web/tests/settings_config.test.cjsindex f7c01f84351..d96762f1674 100644--- a/web/tests/settings_config.test.cjs+++ b/web/tests/settings_config.test.cjs@@ -119,6 +119,7 @@ run_test("all_notifications", ({override}) => {},{label: "translated: Followed topics",+ help_link: "/help/follow-a-topic",notification_settings: [{is_checked: false,