PromucFlow_constructor/app/client/src/pages/common
ashit-rath e3f4fb49d4
chore: import export refactor for modules (#31086)
## Description
PR refactors and adds the following to prepare for reusing of the app
import modal for package imports in EE
- Refactors import modal to take methods and messages from hooks to
extend in EE (useMessage and useMethods hooks serves that purpose)
- Opens import modal in workspace home page when `openImportModal` query
param is present
- Refactor settings page

#### PR fixes following issue(s)

#### Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video
>
>
#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a new `ImportModal` component for improved application file
importing.
- Added custom hooks (`useMessages`, `useMethods`) to handle import
operations and messaging within the import modal.
- Implemented a notification system for missing modules in the editor
using `useMissingModuleNotification`.

- **Enhancements**
- Enhanced the import functionality across the application, streamlining
the process with updated component names and props.
- Refactored the `AppSettings` to use `EditorSettingsPaneContainer` for
better code readability and maintainability.

- **Bug Fixes**
- Removed unused imports and updated logic in `ImportModal` to fix
issues related to file uploading and import status tracking.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-02-13 17:39:07 +05:30
..
CustomizedDropdown chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
datasourceAuth feat: A/B test | flip primary and secondary CTAs in the datasource form (#30622) 2024-01-26 13:07:57 +05:30
ErrorPages chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
SearchBar chore: Show commit SHA instead of SNAPSHOT version (#30850) 2024-02-02 09:52:34 +05:30
ArtBoard.tsx
AvatarComponent.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
Disabler.tsx chore: refactor for convert query to module (#29970) 2024-01-03 15:42:35 +05:30
ErrorPage.tsx
ErrorPageHeader.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
ImportModal.tsx chore: import export refactor for modules (#31086) 2024-02-13 17:39:07 +05:30
Loader.tsx
LoginHeader.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
MobileSidebar.tsx feat: remove cloudHosting conditional check, change version name (#28086) 2023-10-15 02:11:29 +05:30
NotFound.tsx
PageHeader.tsx feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
PageLoadingBar.tsx
PageSectionDivider.tsx
PageSectionHeader.tsx
PageWrapper.tsx chore: Callout to Banner component migration for Billing Banner (#27910) 2023-10-15 13:46:58 +05:30
PaneWrapper.tsx
ProfileDropdown.tsx
ProfileImage.tsx
SearchSnippets.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
SharedUserList.tsx feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
SpinnerLoader.tsx
SuccessTick.tsx chore: update eslint and dependencies then fix revealed errors (#27908) 2023-10-11 10:14:38 +03:00
ThemeSwitcher.tsx