* Activating screens * Registering the screen * Adding default themes for components * Porting items rows, WIP * WIP Custom List * Pasting old code to integration_selector, WIP * No TS errors on components * Adding selector options * fix types * Adding state with hooks * Page loading with no results * fix search timeout * Getting channels, not painting them yet * searching for profiles * tuning user and channel remote calls * Fix radioButton error * channels being loaded * rendering options * Rendering users * Preparing search results * Added onPress events for everybody! * single select working for all selectors * Remove dirty empty data fix * remove unused data on custom list row * fic touchableOpacity styling * Adding extra info to userlistRow * Search results (channels and users) * filter options! * Adding i18n * Adding username as name * move code to effects * fix typing onRow * multiselect selection working, missing a "Done" button * commenting out the selector icons, moving selected options to func * Added button for multiselect submit * Fixing data types on selector * 💄 data sources check * cleaning custom_list_row * Fix onLoadMore bug * ordering setLoading * eslinting all the things * more eslint * multiselect * fix autocomplete format * FIx eslint * fix renderIcon * fix section type * actions not being used * now we have user avatars * Fix icon checks on multiselect * handling select for multiple selections * Moving to its respective folders * components should render * Added some test cases * Multiple fixes from @mickmister feedback * changing lock icon to padlock on channel row * Fix children lint errors * fix useEffect function eslint error * Adding useCallback to profiles, channels and multiselections * Fixing @larkox suggestions * type checking fixes * Fix onLoadMore * Multiple hook and functionality fixes * 🔥 extraData and setting loading channels better * fix teammate display * Fix multiselect button selection * Fix returning selection to autocomplete selector * Using typography * Updating snapshots due to typography changes * removing UserListRow, modifying the existing one * Extract key for data sources * Multiselect selection refactor * fix setNext loop * refactoring searchprofiles and channels * Using refs for next and page * Callback and other fixes * Multiple fixes * Add callback to multiselect selected items * integration selector fixes * Filter option search * fix useCallback, timeout * Remove initial page, fix selection data type Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
162 lines
4.6 KiB
TypeScript
162 lines
4.6 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 CHANNEL = 'Channel';
|
|
export const CHANNEL_ADD_PEOPLE = 'ChannelAddPeople';
|
|
export const CHANNEL_INFO = 'ChannelInfo';
|
|
export const CHANNEL_MENTION = 'ChannelMention';
|
|
export const CODE = 'Code';
|
|
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 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_THREADS = 'GlobalThreads';
|
|
export const HOME = 'Home';
|
|
export const INTEGRATION_SELECTOR = 'IntegrationSelector';
|
|
export const INTERACTIVE_DIALOG = 'InteractiveDialog';
|
|
export const IN_APP_NOTIFICATION = 'InAppNotification';
|
|
export const LATEX = 'Latex';
|
|
export const LOGIN = 'Login';
|
|
export const MENTIONS = 'Mentions';
|
|
export const MFA = 'MFA';
|
|
export const PERMALINK = 'Permalink';
|
|
export const PINNED_MESSAGES = 'PinnedMessages';
|
|
export const POST_OPTIONS = 'PostOptions';
|
|
export const REACTIONS = 'Reactions';
|
|
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_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 SNACK_BAR = 'SnackBar';
|
|
export const SSO = 'SSO';
|
|
export const TABLE = 'Table';
|
|
export const THREAD = 'Thread';
|
|
export const THREAD_FOLLOW_BUTTON = 'ThreadFollowButton';
|
|
export const THREAD_OPTIONS = 'ThreadOptions';
|
|
export const USER_PROFILE = 'UserProfile';
|
|
|
|
export default {
|
|
ABOUT,
|
|
ACCOUNT,
|
|
APPS_FORM,
|
|
BOTTOM_SHEET,
|
|
BROWSE_CHANNELS,
|
|
CALL,
|
|
CHANNEL,
|
|
CHANNEL_ADD_PEOPLE,
|
|
CHANNEL_INFO,
|
|
CHANNEL_MENTION,
|
|
CODE,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_OR_EDIT_CHANNEL,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
CUSTOM_STATUS_CLEAR_AFTER,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
EMOJI_PICKER,
|
|
FIND_CHANNELS,
|
|
FORGOT_PASSWORD,
|
|
GALLERY,
|
|
GLOBAL_THREADS,
|
|
HOME,
|
|
INTEGRATION_SELECTOR,
|
|
INTERACTIVE_DIALOG,
|
|
IN_APP_NOTIFICATION,
|
|
LATEX,
|
|
LOGIN,
|
|
MENTIONS,
|
|
MFA,
|
|
PERMALINK,
|
|
PINNED_MESSAGES,
|
|
POST_OPTIONS,
|
|
REACTIONS,
|
|
SAVED_MESSAGES,
|
|
SEARCH,
|
|
SELECT_TEAM,
|
|
SERVER,
|
|
SETTINGS,
|
|
SETTINGS_ADVANCED,
|
|
SETTINGS_DISPLAY,
|
|
SETTINGS_DISPLAY_CLOCK,
|
|
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,
|
|
SNACK_BAR,
|
|
SSO,
|
|
TABLE,
|
|
THREAD,
|
|
THREAD_FOLLOW_BUTTON,
|
|
THREAD_OPTIONS,
|
|
USER_PROFILE,
|
|
};
|
|
|
|
export const MODAL_SCREENS_WITHOUT_BACK = new Set<string>([
|
|
BROWSE_CHANNELS,
|
|
CHANNEL_INFO,
|
|
CREATE_DIRECT_MESSAGE,
|
|
CREATE_TEAM,
|
|
CUSTOM_STATUS,
|
|
EDIT_POST,
|
|
EDIT_PROFILE,
|
|
EDIT_SERVER,
|
|
EMOJI_PICKER,
|
|
FIND_CHANNELS,
|
|
GALLERY,
|
|
PERMALINK,
|
|
REACTIONS,
|
|
]);
|
|
|
|
export const SCREENS_WITH_TRANSPARENT_BACKGROUND = new Set<string>([
|
|
BOTTOM_SHEET,
|
|
POST_OPTIONS,
|
|
THREAD_OPTIONS,
|
|
PERMALINK,
|
|
REACTIONS,
|
|
SNACK_BAR,
|
|
USER_PROFILE,
|
|
]);
|
|
|
|
export const OVERLAY_SCREENS = new Set<string>([
|
|
IN_APP_NOTIFICATION,
|
|
GALLERY,
|
|
SNACK_BAR,
|
|
]);
|
|
|
|
export const NOT_READY = [
|
|
CHANNEL_ADD_PEOPLE,
|
|
CHANNEL_MENTION,
|
|
CREATE_TEAM,
|
|
];
|