* refactor: started with draft, done until new tabs for draft
* refactor: change the query and added the screen for draft
* added condition for fetching draft for channel delete or not
* refactor: added draft screen
* linter fixes
* Added draft post component
* added avatar and header display name for the draft post list
* added channel info component
* channel info completed
* proper naming
* added image file markdown acknowledgement support
* draft actions
* Fix the draft receiver in drafts
* separated send message handler
* Done with send drafts
* done with delete drafts
* change save to send draft
* handle lengthy message with show more button
* done with persistent message edit, send and delete drafts
* added alert for sending message
* added update at time for the drafts
* en.json extract fix
* Updated dependencies for useCallback
* refactor: added drafts list to animated list
* added swipeable component and delete conformation for drafts
* done with rendering of images in markdown for drafts
* en.json issue fixed
* fix en.json issue
* refactor: en.json fix
* addressed review comments
* updated image metadata handling code
* linter fixes
* added the empty draft screen
* linter fix
* style fix
* back button an android takes to the channel list page
* en.json fix
* draft actions theme compatible
* CSS fix for draft channel_info and avatar component
* removed the badge icon and change font style drafts
* fix send alert sender name for GMs
* updated snapshot
* added testId to the drafts components
* updated send draft test id
* clicking on draft takes to the channel
* Added toptip for draft tours
* intl extract
* Rebase to main and reverted local testing changes
* Added tooltip for drafts
* addressed review comments
* reset navigation when click on a draft in draft tabs
* fix the theme issue and navigation issue
* reverted back the draft click navigation changes
* observing draft when hitting back button
* removed the unwanted animiation
* updated regex for parsing markdown
* removed unnecessary checks and change folder name
* removed react memo and merge unwanted observes function
* removed unnecessary comments
* changed the name for observing and querying draft function
* removed memo from component level
* Text to FormattedText component
* Text to formatted text, change image name
* added confirmation modal for deleting draft from bottomsheet
* using common send_handler for both draft and post
* removed magic number for tooltip and bottomsheet
* renamed channel_info to draft_post_header
* text to formattedText for Edit drafts
* removed unnecessary changes
* minor fixes
* mounting draft only when there is draft
* map to reduce
* renamed SwipeableDraft to DraftSwipeAction
* name fixes
* isValidUrl to isParsableUrl and added test
* added test and addressed minor review comments
* added inline component for the duplicate code
* inlt fixes
* clearDraft is not optional
* optimised categories_list.tsx component
* Swipeable to ReanimatedSwipeable, TouchableWithoutFeedback to Pressable and folder name changes
* Added comment and disabled eslint rule for showing warning
* fixed component file name
* minor'
* Removed deprecated Animated createAnimatedComponent flatlist
* added test for missing protocol check
* import change for SwipeableMethod
* active tab for tablet view
* Updated the drafts icons
* Updated compass-icon version to v0.1.48
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
(cherry picked from commit 84eded1bde)
Co-authored-by: Rajat Dabade <rajatdabade1997@gmail.com>
204 lines
6.1 KiB
TypeScript
204 lines
6.1 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export const ABOUT = 'About';
|
|
export const ACCOUNT = 'Account';
|
|
export const APPS_FORM = 'AppForm';
|
|
export const BOTTOM_SHEET = 'BottomSheet';
|
|
export const BROWSE_CHANNELS = 'BrowseChannels';
|
|
export const CALL = 'Call';
|
|
export const CALL_PARTICIPANTS = 'CallParticipants';
|
|
export const CALL_HOST_CONTROLS = 'CallHostControls';
|
|
export const CHANNEL = 'Channel';
|
|
export const CHANNEL_ADD_MEMBERS = 'ChannelAddMembers';
|
|
export const CHANNEL_FILES = 'ChannelFiles';
|
|
export const CHANNEL_INFO = 'ChannelInfo';
|
|
export const CHANNEL_NOTIFICATION_PREFERENCES = 'ChannelNotificationPreferences';
|
|
export const CODE = 'Code';
|
|
export const CONVERT_GM_TO_CHANNEL = 'ConvertGMToChannel';
|
|
export const CREATE_DIRECT_MESSAGE = 'CreateDirectMessage';
|
|
export const CREATE_OR_EDIT_CHANNEL = 'CreateOrEditChannel';
|
|
export const CREATE_TEAM = 'CreateTeam';
|
|
export const CUSTOM_STATUS = 'CustomStatus';
|
|
export const CUSTOM_STATUS_CLEAR_AFTER = 'CustomStatusClearAfter';
|
|
export const DRAFT = 'Draft';
|
|
export const DRAFT_OPTIONS = 'DraftOptions';
|
|
export const EDIT_POST = 'EditPost';
|
|
export const EDIT_PROFILE = 'EditProfile';
|
|
export const EDIT_SERVER = 'EditServer';
|
|
export const EMOJI_PICKER = 'EmojiPicker';
|
|
export const FIND_CHANNELS = 'FindChannels';
|
|
export const FORGOT_PASSWORD = 'ForgotPassword';
|
|
export const GALLERY = 'Gallery';
|
|
export const GLOBAL_DRAFTS = 'GlobalDrafts';
|
|
export const GLOBAL_THREADS = 'GlobalThreads';
|
|
export const HOME = 'Home';
|
|
export const INTEGRATION_SELECTOR = 'IntegrationSelector';
|
|
export const INTERACTIVE_DIALOG = 'InteractiveDialog';
|
|
export const INVITE = 'Invite';
|
|
export const IN_APP_NOTIFICATION = 'InAppNotification';
|
|
export const JOIN_TEAM = 'JoinTeam';
|
|
export const LATEX = 'Latex';
|
|
export const LOGIN = 'Login';
|
|
export const MANAGE_CHANNEL_MEMBERS = 'ManageChannelMembers';
|
|
export const MENTIONS = 'Mentions';
|
|
export const MFA = 'MFA';
|
|
export const ONBOARDING = 'Onboarding';
|
|
export const PERMALINK = 'Permalink';
|
|
export const PINNED_MESSAGES = 'PinnedMessages';
|
|
export const POST_OPTIONS = 'PostOptions';
|
|
export const POST_PRIORITY_PICKER = 'PostPriorityPicker';
|
|
export const REACTIONS = 'Reactions';
|
|
export const REVIEW_APP = 'ReviewApp';
|
|
export const SAVED_MESSAGES = 'SavedMessages';
|
|
export const SEARCH = 'Search';
|
|
export const SELECT_TEAM = 'SelectTeam';
|
|
export const SERVER = 'Server';
|
|
export const SETTINGS = 'Settings';
|
|
export const SETTINGS_ADVANCED = 'SettingsAdvanced';
|
|
export const SETTINGS_DISPLAY = 'SettingsDisplay';
|
|
export const SETTINGS_DISPLAY_CLOCK = 'SettingsDisplayClock';
|
|
export const SETTINGS_DISPLAY_CRT = 'SettingsDisplayCRT';
|
|
export const SETTINGS_DISPLAY_THEME = 'SettingsDisplayTheme';
|
|
export const SETTINGS_DISPLAY_TIMEZONE = 'SettingsDisplayTimezone';
|
|
export const SETTINGS_DISPLAY_TIMEZONE_SELECT = 'SettingsDisplayTimezoneSelect';
|
|
export const SETTINGS_NOTIFICATION = 'SettingsNotification';
|
|
export const SETTINGS_NOTIFICATION_AUTO_RESPONDER = 'SettingsNotificationAutoResponder';
|
|
export const SETTINGS_NOTIFICATION_EMAIL = 'SettingsNotificationEmail';
|
|
export const SETTINGS_NOTIFICATION_MENTION = 'SettingsNotificationMention';
|
|
export const SETTINGS_NOTIFICATION_PUSH = 'SettingsNotificationPush';
|
|
export const SETTINGS_NOTIFICATION_CALL = 'SettingsNotificationCall';
|
|
export const SHARE_FEEDBACK = 'ShareFeedback';
|
|
export const SNACK_BAR = 'SnackBar';
|
|
export const SSO = 'SSO';
|
|
export const TABLE = 'Table';
|
|
export const TEAM_SELECTOR_LIST = 'TeamSelectorList';
|
|
export const TERMS_OF_SERVICE = 'TermsOfService';
|
|
export const THREAD = 'Thread';
|
|
export const THREAD_FOLLOW_BUTTON = 'ThreadFollowButton';
|
|
export const THREAD_OPTIONS = 'ThreadOptions';
|
|
export const USER_PROFILE = 'UserProfile';
|
|
export const CHANNEL_BOOKMARK = 'ChannelBookmarkAddOrEdit';
|
|
export const GENERIC_OVERLAY = 'GenericOverlay';
|
|
|
|
export default {
|
|
ABOUT,
|
|
ACCOUNT,
|
|
APPS_FORM,
|
|
BOTTOM_SHEET,
|
|
BROWSE_CHANNELS,
|
|
CALL,
|
|
CALL_PARTICIPANTS,
|
|
CALL_HOST_CONTROLS,
|
|
CHANNEL,
|
|
CHANNEL_ADD_MEMBERS,
|
|
CHANNEL_BOOKMARK,
|
|
CHANNEL_FILES,
|
|
CHANNEL_INFO,
|
|
CHANNEL_NOTIFICATION_PREFERENCES,
|
|
CODE,
|
|
CONVERT_GM_TO_CHANNEL,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_OR_EDIT_CHANNEL,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
CUSTOM_STATUS_CLEAR_AFTER,
|
|
DRAFT_OPTIONS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
EMOJI_PICKER,
|
|
FIND_CHANNELS,
|
|
FORGOT_PASSWORD,
|
|
GALLERY,
|
|
GLOBAL_DRAFTS,
|
|
GLOBAL_THREADS,
|
|
HOME,
|
|
INTEGRATION_SELECTOR,
|
|
INTERACTIVE_DIALOG,
|
|
INVITE,
|
|
IN_APP_NOTIFICATION,
|
|
JOIN_TEAM,
|
|
LATEX,
|
|
LOGIN,
|
|
MANAGE_CHANNEL_MEMBERS,
|
|
MENTIONS,
|
|
MFA,
|
|
ONBOARDING,
|
|
PERMALINK,
|
|
PINNED_MESSAGES,
|
|
POST_OPTIONS,
|
|
POST_PRIORITY_PICKER,
|
|
REACTIONS,
|
|
REVIEW_APP,
|
|
SAVED_MESSAGES,
|
|
SEARCH,
|
|
SELECT_TEAM,
|
|
SERVER,
|
|
SETTINGS,
|
|
SETTINGS_ADVANCED,
|
|
SETTINGS_DISPLAY,
|
|
SETTINGS_DISPLAY_CLOCK,
|
|
SETTINGS_DISPLAY_CRT,
|
|
SETTINGS_DISPLAY_THEME,
|
|
SETTINGS_DISPLAY_TIMEZONE,
|
|
SETTINGS_DISPLAY_TIMEZONE_SELECT,
|
|
SETTINGS_NOTIFICATION,
|
|
SETTINGS_NOTIFICATION_AUTO_RESPONDER,
|
|
SETTINGS_NOTIFICATION_EMAIL,
|
|
SETTINGS_NOTIFICATION_MENTION,
|
|
SETTINGS_NOTIFICATION_PUSH,
|
|
SETTINGS_NOTIFICATION_CALL,
|
|
SHARE_FEEDBACK,
|
|
SNACK_BAR,
|
|
SSO,
|
|
TABLE,
|
|
TEAM_SELECTOR_LIST,
|
|
TERMS_OF_SERVICE,
|
|
THREAD,
|
|
THREAD_FOLLOW_BUTTON,
|
|
THREAD_OPTIONS,
|
|
USER_PROFILE,
|
|
GENERIC_OVERLAY,
|
|
} as const;
|
|
|
|
export const MODAL_SCREENS_WITHOUT_BACK = new Set<string>([
|
|
BROWSE_CHANNELS,
|
|
CHANNEL_INFO,
|
|
CHANNEL_ADD_MEMBERS,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
FIND_CHANNELS,
|
|
GALLERY,
|
|
MANAGE_CHANNEL_MEMBERS,
|
|
INVITE,
|
|
PERMALINK,
|
|
]);
|
|
|
|
export const SCREENS_WITH_TRANSPARENT_BACKGROUND = new Set<string>([
|
|
PERMALINK,
|
|
REVIEW_APP,
|
|
SNACK_BAR,
|
|
GENERIC_OVERLAY,
|
|
]);
|
|
|
|
export const SCREENS_AS_BOTTOM_SHEET = new Set<string>([
|
|
BOTTOM_SHEET,
|
|
DRAFT_OPTIONS,
|
|
EMOJI_PICKER,
|
|
POST_OPTIONS,
|
|
POST_PRIORITY_PICKER,
|
|
THREAD_OPTIONS,
|
|
REACTIONS,
|
|
USER_PROFILE,
|
|
CALL_PARTICIPANTS,
|
|
CALL_HOST_CONTROLS,
|
|
]);
|
|
|
|
export const NOT_READY = [
|
|
CREATE_TEAM,
|
|
];
|