diff --git a/web/src/people.ts b/web/src/people.ts index cb30fb1c5c..04eb46ac93 100644 --- a/web/src/people.ts +++ b/web/src/people.ts @@ -55,6 +55,8 @@ export let INACCESSIBLE_USER_NAME: string; export let WELCOME_BOT: User; export let EMAIL_GATEWAY_BOT: User; +export const MAX_USER_NAME_LENGTH = 100; + // We have an init() function so that our automated tests // can easily clear data. export function init(): void { diff --git a/web/src/settings.ts b/web/src/settings.ts index c779ac5a8a..54be0e8e4e 100644 --- a/web/src/settings.ts +++ b/web/src/settings.ts @@ -151,6 +151,7 @@ export function build_page(): void { information_density.get_string_display_value_for_line_height( user_settings.web_line_height_percent, ), + max_user_name_length: people.MAX_USER_NAME_LENGTH, }); $(".settings-box").html(rendered_settings_tab); diff --git a/web/templates/settings/profile_settings.hbs b/web/templates/settings/profile_settings.hbs index 5df9145529..9ac8bf1c3e 100644 --- a/web/templates/settings/profile_settings.hbs +++ b/web/templates/settings/profile_settings.hbs @@ -10,7 +10,7 @@