logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.31k stars 406 forks source link

refactor(console): block page navigation when uploading custom ui assets #6342

Closed charIeszhao closed 1 month ago

charIeszhao commented 1 month ago

Summary

Block page navigation when uploading custom UI assets in sign-in experience page. In order to achieve this, the following refactoring are needed:

Testing

Locally tested

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +3.05 KB

Diff by File |Name|Diff| |---|---| |packages/console/src/components/CustomUiAssetsUploader/index.module.scss|:chart_with_upwards_trend: +1.11 KB| |packages/console/src/components/CustomUiAssetsUploader/index.tsx|:chart_with_upwards_trend: +2.9 KB| |packages/console/src/components/ImageInputs/index.tsx|:chart_with_upwards_trend: +5 Bytes| |packages/console/src/components/SubmitFormChangesActionBar/index.tsx|:chart_with_upwards_trend: +105 Bytes| |packages/console/src/ds-components/Uploader/FileUploader/index.tsx|:chart_with_upwards_trend: +257 Bytes| |packages/console/src/ds-components/Uploader/ImageUploaderField/index.tsx|:chart_with_upwards_trend: +5 Bytes| |packages/console/src/hooks/use-api.ts|:chart_with_upwards_trend: +64 Bytes| |packages/console/src/pages/EnterpriseSsoDetails/Experience/LogosUploader/index.tsx|:chart_with_upwards_trend: +10 Bytes| |packages/console/src/pages/SignInExperience/PageContent/Branding/CustomUiForm/index.tsx|:chart_with_upwards_trend: +23 Bytes| |packages/console/src/pages/SignInExperience/PageContent/index.tsx|:chart_with_upwards_trend: +457 Bytes| |packages/console/src/pages/SignInExperience/components/CustomUiAssetsUploader/index.module.scss|:chart_with_upwards_trend: +1.11 KB| |packages/console/src/pages/SignInExperience/components/CustomUiAssetsUploader/index.tsx|:chart_with_upwards_trend: +3.6 KB| |packages/console/src/pages/SignInExperience/contexts/SignInExperienceContextProvider/index.tsx|:chart_with_upwards_trend: +1.26 KB| |packages/console/src/pages/SignInExperience/index.tsx|:chart_with_upwards_trend: +183 Bytes|