mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
3acb3ad2c2
**Upgrade to React v18 for Unleash v6. Here's why I think it's a good time to do it:** - Command Bar project: We've begun work on the command bar project, and there's a fantastic library we want to use. However, it requires React v18 support. - Straightforward Upgrade: I took a look at the upgrade guide https://react.dev/blog/2022/03/08/react-18-upgrade-guide and it seems fairly straightforward. In fact, I was able to get React v18 running with minimal changes in just 10 minutes! - Dropping IE Support: React v18 no longer supports Internet Explorer (IE), which is no longer supported by Microsoft as of June 15, 2022. Upgrading to v18 in v6 would be a good way to align with this change. TS updates: * FC children has to be explicit: https://stackoverflow.com/questions/71788254/react-18-typescript-children-fc * forcing version 18 types in resolutions: https://sentry.io/answers/type-is-not-assignable-to-type-reactnode/ Test updates: * fixing SWR issue that we have always had but it manifests more in new React (https://github.com/vercel/swr/issues/2373) --------- Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
105 lines
4.4 KiB
TypeScript
105 lines
4.4 KiB
TypeScript
/* NAVIGATION */
|
|
export const NAVIGATE_TO_CREATE_FEATURE = 'NAVIGATE_TO_CREATE_FEATURE';
|
|
export const NAVIGATE_TO_CREATE_GROUP = 'NAVIGATE_TO_CREATE_GROUP';
|
|
export const NAVIGATE_TO_CREATE_SEGMENT = 'NAVIGATE_TO_CREATE_SEGMENT';
|
|
export const CREATE_API_TOKEN_BUTTON = 'CREATE_API_TOKEN_BUTTON';
|
|
|
|
/* CREATE FEATURE */
|
|
export const CF_NAME_ID = 'CF_NAME_ID';
|
|
export const CF_TYPE_ID = 'CF_TYPE_ID';
|
|
export const CF_DESC_ID = 'CF_DESC_ID';
|
|
export const CF_CREATE_BTN_ID = 'CF_CREATE_BTN_ID';
|
|
|
|
/* CREATE GROUP */
|
|
export const UG_NAME_ID = 'UG_NAME_ID';
|
|
export const UG_DESC_ID = 'UG_DESC_ID';
|
|
export const UG_USERS_ID = 'UG_USERS_ID';
|
|
export const UG_USERS_ADD_ID = 'UG_USERS_ADD_ID';
|
|
export const UG_CREATE_BTN_ID = 'UG_CREATE_BTN_ID';
|
|
export const UG_SAVE_BTN_ID = 'UG_SAVE_BTN_ID';
|
|
export const UG_EDIT_BTN_ID = 'UG_EDIT_BTN_ID';
|
|
export const UG_DELETE_BTN_ID = 'UG_DELETE_BTN_ID';
|
|
export const UG_EDIT_USERS_BTN_ID = 'UG_EDIT_USERS_BTN_ID';
|
|
export const UG_REMOVE_USER_BTN_ID = 'UG_REMOVE_USER_BTN_ID';
|
|
export const PROJECT_ENVIRONMENT_ACCORDION = 'PROJECT_ENVIRONMENT_ACCORDION';
|
|
|
|
/* PROJECT ACCESS */
|
|
export const PA_ASSIGN_BUTTON_ID = 'PA_ASSIGN_BUTTON_ID';
|
|
export const PA_USERS_GROUPS_ID = 'PA_USERS_GROUPS_ID';
|
|
export const PA_ROLE_ID = 'PA_ROLE_ID';
|
|
export const PA_ASSIGN_CREATE_ID = 'PA_ASSIGN_CREATE_ID';
|
|
export const PA_USERS_GROUPS_TITLE_ID = 'PA_USERS_GROUPS_TITLE_ID';
|
|
export const PA_EDIT_BUTTON_ID = 'PA_EDIT_BUTTON_ID';
|
|
export const PA_REMOVE_BUTTON_ID = 'PA_REMOVE_BUTTON_ID';
|
|
|
|
/* SEGMENT */
|
|
export const SEGMENT_NAME_ID = 'SEGMENT_NAME_ID';
|
|
export const SEGMENT_DESC_ID = 'SEGMENT_DESC_ID';
|
|
export const SEGMENT_NEXT_BTN_ID = 'SEGMENT_NEXT_BTN_ID';
|
|
export const SEGMENT_CREATE_BTN_ID = 'SEGMENT_CREATE_BTN_ID';
|
|
export const SEGMENT_SAVE_BTN_ID = 'SEGMENT_SAVE_BTN_ID';
|
|
export const SEGMENT_DELETE_BTN_ID = 'SEGMENT_DELETE_BTN_ID';
|
|
export const SEGMENT_DIALOG_NAME_ID = 'SEGMENT_DIALOG_NAME_ID';
|
|
|
|
/* LOGIN */
|
|
export const LOGIN_EMAIL_ID = 'LOGIN_EMAIL_ID';
|
|
export const LOGIN_BUTTON = 'LOGIN_BUTTON';
|
|
export const LOGIN_PASSWORD_ID = 'LOGIN_PASSWORD_ID';
|
|
export const SSO_LOGIN_BUTTON = 'SSO_LOGIN_BUTTON';
|
|
export const FORGOTTEN_PASSWORD_FIELD = 'FORGOTTEN_PASSWORD_FIELD';
|
|
export const INVALID_TOKEN_BUTTON = 'INVALID_TOKEN_BUTTON';
|
|
|
|
/* STRATEGY */
|
|
export const FEATURE_ENVIRONMENT_ACCORDION = 'FEATURE_ENVIRONMENT_ACCORDION';
|
|
export const ADD_NEW_STRATEGY_ID = 'ADD_NEW_STRATEGY_ID';
|
|
export const ROLLOUT_SLIDER_ID = 'ROLLOUT_SLIDER_ID';
|
|
export const DIALOGUE_CONFIRM_ID = 'DIALOGUE_CONFIRM_ID';
|
|
export const FLEXIBLE_STRATEGY_STICKINESS_ID =
|
|
'FLEXIBLE_STRATEGY_STICKINESS_ID';
|
|
export const FLEXIBLE_STRATEGY_GROUP_ID = 'FLEXIBLE_STRATEGY_GROUP_ID';
|
|
export const SELECT_ITEM_ID = 'SELECT_ITEM_ID';
|
|
export const STRATEGY_INPUT_LIST = 'STRATEGY_INPUT_LIST';
|
|
export const ADD_TO_STRATEGY_INPUT_LIST = 'ADD_TO_STRATEGY_INPUT_LIST';
|
|
export const STRATEGY_FORM_SUBMIT_ID = 'STRATEGY_FORM_SUBMIT_ID';
|
|
export const STRATEGY_FORM_REMOVE_ID = 'STRATEGY_FORM_REMOVE_ID';
|
|
export const STRATEGY_FORM_COPY_ID = 'STRATEGY_FORM_COPY_ID';
|
|
export const STRATEGY_REMOVE_MENU_BTN = 'STRATEGY_REMOVE_MENU_BTN';
|
|
export const MENU_STRATEGY_REMOVE = 'MENU_STRATEGY_REMOVE';
|
|
|
|
/* SPLASH */
|
|
export const CLOSE_SPLASH = 'CLOSE_SPLASH';
|
|
|
|
/* GENERAL */
|
|
export const INPUT_ERROR_TEXT = 'INPUT_ERROR_TEXT';
|
|
export const HEADER_USER_AVATAR = 'HEADER_USER_AVATAR';
|
|
export const SIDEBAR_MODAL_ID = 'SIDEBAR_MODAL_ID';
|
|
export const AUTH_PAGE_ID = 'AUTH_PAGE_ID';
|
|
export const ANNOUNCER_ELEMENT_TEST_ID = 'ANNOUNCER_ELEMENT_TEST_ID';
|
|
export const INSTANCE_STATUS_BAR_ID = 'INSTANCE_STATUS_BAR_ID';
|
|
export const TOAST_TEXT = 'TOAST_TEXT';
|
|
export const LARGE_NUMBER_PRETTIFIED = 'LARGE_NUMBER_PRETTIFIED';
|
|
|
|
/* EXPORT/IMPORT FEATURES */
|
|
export const IMPORT_BUTTON = 'IMPORT_BUTTON';
|
|
export const CODE_EDITOR_TAB = 'CODE_EDITOR_TAB';
|
|
export const IMPORT_ENVIRONMENT = 'IMPORT_ENVIRONMENT';
|
|
export const CODE_TEXT_FIELD = 'CODE_TEXT_FIELD';
|
|
export const VALIDATE_BUTTON = 'VALIDATE_BUTTON';
|
|
export const IMPORT_CONFIGURATION_BUTTON = 'IMPORT_CONFIGURATION_BUTTON';
|
|
|
|
/* NOTIFICATIONS FEATURES */
|
|
export const NOTIFICATIONS_BUTTON = 'NOTIFICATIONS_BUTTON';
|
|
|
|
/* TABLE */
|
|
export const SEARCH_INPUT = 'SEARCH_INPUT';
|
|
|
|
/* BATCH UPDATES */
|
|
export const BATCH_ACTIONS_BAR = 'BATCH_ACTIONS_BAR';
|
|
export const BATCH_SELECTED_COUNT = 'BATCH_SELECTED_COUNT';
|
|
export const BATCH_SELECT = 'BATCH_SELECT';
|
|
export const MORE_BATCH_ACTIONS = 'MORE_BATCH_ACTIONS';
|
|
|
|
/* FILTERS */
|
|
export const FILTERS_MENU = 'FILTERS_MENU';
|
|
export const FILTER_ITEM = 'FILTER_ITEM';
|