* MM-21368 Notify user when editing message that's too long * Disable 'Save' button to prevent edits from being posted * Display error message specific to the message size and allows max, instead of the current, default "Invalid Message" error. * Split message length error into text (left justified) and counts (right justified) UX guidance from PR review * UX Review: Wrap for longer error text + spacing adjustment * UX Review: Align split messages to top + add spacing in-between * UX Review: Align error message box padding with content Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
12 lines
623 B
JavaScript
12 lines
623 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export const ACCESSORIES_CONTAINER_NATIVE_ID = 'channelAccessoriesContainer';
|
|
export const CHANNEL_POST_TEXTBOX_CURSOR_CHANGE = 'onChannelTextBoxCursorChange';
|
|
export const CHANNEL_POST_TEXTBOX_VALUE_CHANGE = 'onChannelTextBoxValueChange';
|
|
export const ICON_SIZE = 24;
|
|
export const INSERT_TO_COMMENT = 'insert_to_comment';
|
|
export const INSERT_TO_DRAFT = 'insert_to_draft';
|
|
export const IS_REACTION_REGEX = /(^\+:([^:\s]*):)$/i;
|
|
export const MAX_FILE_COUNT = 5;
|
|
export const MAX_MESSAGE_LENGTH_FALLBACK = 4000;
|