minty/src/app/hooks
Ajay Bura 20db27fa7e
feat: URL navigation in auth (#1603)
* bump to react 18 and install react-router-dom

* Upgrade to react 18 root

* update vite

* add cs api's

* convert state/auth to ts

* add client config context

* add auto discovery context

* add spec version context

* add auth flow context

* add background dot pattern css

* add promise utils

* init url based routing

* update auth route server path as effect

* add auth server hook

* always use server from discovery info in context

* login - WIP

* upgrade jotai to v2

* add atom with localStorage util

* add multi account sessions atom

* add default IGNORE res to auto discovery

* add error type in async callback hook

* handle password login error

* fix async callback hook

* allow password login

* Show custom server not allowed error in mxId login

* add sso login component

* add token login

* fix hardcoded m.login.password in login func

* update server input on url change

* Improve sso login labels

* update folds

* fix async callback batching state update in safari

* wrap async callback set state in queueMicrotask

* wip

* wip - register

* arrange auth file structure

* add error codes

* extract filed error component form password login

* add register util function

* handle register flow - WIP

* update unsupported auth flow method reasons

* improve password input styles

* Improve UIA flow next stage calculation
complete stages can have any order so we will look for first stage which is not in completed

* process register UIA flow stages

* Extract register UIA stages component

* improve register error messages

* add focus trap & step count in UIA stages

* add reset password path and path utils

* add path with origin hook

* fix sso redirect url

* rename register token query param to token

* restyle auth screen header

* add reset password component - WIP

* add reset password form

* add netlify rewrites

* fix netlify file indentation

* test netlify redirect

* fix vite to include netlify toml

* add more netlify redirects

* add splat to public and assets path

* fix vite base name

* add option to use hash router in config and remove appVersion

* add splash screen component

* add client config loading and error screen

* fix server picker bug

* fix reset password email input type

* make auth page small screen responsive

* fix typo in reset password screen
2024-01-21 18:20:56 +05:30
..
media Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
types.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useAccountData.js Manage ignored users (#814) 2022-09-05 08:30:45 +05:30
useAlive.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useAsyncCallback.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useAsyncSearch.ts Member drawer filter (#1457) 2023-10-19 17:43:16 +11:00
useAuthFlows.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useAuthServer.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useAutoDiscoveryInfo.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useCategorizedSpaces.js Add categorized spaces hook 2022-03-02 21:24:30 +05:30
useClientConfig.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useCommands.ts Editor Commands (#1450) 2023-10-18 07:45:30 +05:30
useCrossSigningStatus.js feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useDebounce.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useDeviceList.js Add support to manage cross-signing and key backup (#461) 2022-04-24 15:42:24 +05:30
useDocumentFocusChange.ts Fix auto read (#1466) 2023-10-21 12:44:21 +05:30
useFileDrop.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useFilePasteHandler.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useFilePicker.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useForceUpdate.js Implement sending read receipt in new pagination 2021-12-07 21:04:07 +05:30
useForceUpdate.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useImagePacks.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useIntersectionObserver.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
useKeyDown.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useMatrixClient.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useMatrixEventRenderer.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
useMemberEventParser.tsx Fix grammer in membership event messages (#1520) 2023-10-30 11:28:30 +05:30
usePan.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
useParsedLoginFlows.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
usePasswordEmail.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
usePathWithOrigin.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
usePermission.js Add Desktop notifications (#252) 2022-01-29 19:50:51 +05:30
usePowerLevels.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
usePowerLevelTags.ts Improve Members Right Panel (#1286) 2023-06-22 09:14:50 +10:00
useRecentEmoji.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useRegisterEmail.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useRelations.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
useResizeObserver.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
useRoomEventReaders.ts fix wrong following member count on message sent (#1464) 2023-10-20 14:09:47 +05:30
useRoomLatestRenderedEvent.ts fix thread fallback (#1478) 2023-10-23 21:43:07 +11:00
useRoomMembers.ts Improve Members Right Panel (#1286) 2023-06-22 09:14:50 +10:00
useRoomMsgContentRenderer.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30
useScreenSize.ts Improve Members Right Panel (#1286) 2023-06-22 09:14:50 +10:00
useSelectedSpace.js Refactor navigation 2022-01-26 17:03:26 +05:30
useSelectedTab.js Refactor navigation 2022-01-26 17:03:26 +05:30
useSpaceShortcut.js Move space shortcut from roomlist to accountdata 2022-02-27 17:02:03 +05:30
useSpecVersions.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useStateEvent.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useStateEventCallback.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useStateEvents.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useStore.js Added unread indicator (#67), reply link back to original (#96) 2021-12-03 18:32:10 +05:30
useThrottle.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useTypingStatusUpdater.ts Refactor state & Custom editor (#1190) 2023-06-12 16:45:23 +05:30
useUIAFlows.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
useVirtualPaginator.ts Fix-jump-latest-senstivity (#1440) 2023-10-08 00:09:43 +11:00
useZoom.ts Refactor timeline (#1346) 2023-10-06 08:14:06 +05:30