Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-1978]: improve UX for end-of-onboarding (#1974)
This pull request to `frontend/webapp/containers/main/destinations/add-destination/index.tsx` includes changes to improve the user experience by addressing loading states and preventing double-click issues. The most important changes include adding a loading spinner, modifying button states, and adjusting modal behavior. Loading state improvements: * Added `FadeLoader` and `CenterThis` to display a loading spinner during asynchronous operations. * Introduced `isLoading` state to manage and display loading status, replacing the previous `sourcesLoading` and `destinationsLoading` states. [[1]](diffhunk://#diff-a5ff632e01d3e161b70dce2f959db69fd1893edb484af12b7849810487347001L42-R48) [[2]](diffhunk://#diff-a5ff632e01d3e161b70dce2f959db69fd1893edb484af12b7849810487347001R58-R59) Button and modal behavior adjustments: * Updated button `disabled` property to use `isLoading` state, preventing user interactions during loading. [[1]](diffhunk://#diff-a5ff632e01d3e161b70dce2f959db69fd1893edb484af12b7849810487347001L75-R93) [[2]](diffhunk://#diff-a5ff632e01d3e161b70dce2f959db69fd1893edb484af12b7849810487347001L103-R123) * Modified modal visibility to depend on `isLoading` state, ensuring it does not open during loading.
- Loading branch information