PromucFlow_constructor/app/client/src/pages/Editor
Ankita Kinger 35b9e0b544
chore: Refactoring header actions on datasource page to support reusable queries on EE (#29442)
## Description

Refactoring header actions on datasource page to support reusable
queries on EE

#### PR fixes following issue(s)
Fixes [#28568](https://github.com/appsmithorg/appsmith/issues/28568)

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing

#### How Has This Been Tested?
- [x] Manual
- [ ] JUnit
- [ ] Jest
- [x] Cypress

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] 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 header action management system in the data source
editor, allowing for dynamic action button generation based on user
permissions and editor type.
- Implemented a new editor type detection hook to improve editor
experience.

- **Improvements**
- Streamlined the data source editor interface by removing unused
permissions checks and simplifying action button logic.
- Enhanced the editor's routing system with additional constants for
deprecated paths.

- **Refactor**
- Refactored the `DSFormHeader` component to utilize the new
`useHeaderActions` hook for a cleaner and more maintainable codebase.
- Updated Redux state management to include a new action handler for
resetting editor state.

- **Style**
- Adjusted the layout of the `LeftPaneContainer` by removing the
`min-width` property for a more responsive design.

- **Chores**
- Cleaned up imports and unused variables across multiple files to
improve code clarity and maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-08 17:12:14 +05:30
..
__tests__ feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
APIEditor chore: action response view refactor (#29031) 2023-11-24 11:34:06 +05:30
AppSettingsPane chore: Create a separate theme settings panel for WDS (#29196) 2023-12-01 15:39:21 +03:00
CanvasLayoutConversion chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
CanvasPropertyPane chore: Add an extra feature flag to control App sidebar rollout (#28876) 2023-11-15 16:49:41 +05:30
commons chore: Add IDE side pane and manage navigation (#28063) 2023-10-18 12:44:10 +05:30
CommunityTemplates/Modals fix: scroll issue and improve select component (#28695) 2023-11-14 17:58:27 +05:30
DataSourceEditor chore: Refactoring header actions on datasource page to support reusable queries on EE (#29442) 2023-12-08 17:12:14 +05:30
DatasourceInfo chore: Split explorer hooks to support module instances (#29040) 2023-11-23 10:55:15 +05:30
EditorName fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
EntityNavigation chore: Custom widget (alpha) (#27571) 2023-11-14 10:03:37 +05:30
Explorer chore: Adding a tooltip conditionally on submenu options for query creation (#29273) 2023-12-07 10:54:02 +05:30
FirstTimeUserOnboarding feat: replace blank canvas with starter templates. (#28284) 2023-10-30 11:15:05 +05:30
GeneratePage chore: add analytics event for query failure post schema fetch pass (#28574) 2023-11-07 16:27:19 +05:30
gitSync fix: git azure url special char support (#29319) 2023-12-06 11:42:09 +05:30
GlobalHotKeys chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
GuidedTour chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
IDE chore: Refactoring header actions on datasource page to support reusable queries on EE (#29442) 2023-12-08 17:12:14 +05:30
IntegrationEditor feat: rest, graphql and curl fixed for onboarding (#29377) 2023-12-07 16:12:22 +05:30
JSEditor chore: Action execution changes for modules (#29357) 2023-12-07 00:48:52 +05:30
MultiSelectPropertyPane changes in evaluation for EE - split (#27144) 2023-09-12 17:21:39 +05:30
NavigationSettings chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
PropertyPane chore: Experimental JS toggle based on feature flag (#29118) 2023-11-27 15:00:20 +05:30
QueryEditor feat: Anthropic AI Plugin (#29095) 2023-12-05 16:03:27 +05:30
SaaSEditor chore: Refactoring header actions on datasource page to support reusable queries on EE (#29442) 2023-12-08 17:12:14 +05:30
ThemePropertyPane chore: Create a separate theme settings panel for WDS (#29196) 2023-12-01 15:39:21 +03:00
WDSThemePropertyPane chore: Create a separate theme settings panel for WDS (#29196) 2023-12-01 15:39:21 +03:00
WidgetsEditor fix: Anvil fixes and enhancements post R0 (#28711) 2023-11-15 18:01:54 +05:30
ActionSettings.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
AppsmithLink.tsx chore: Refactoring code for entity explorer on app editor to support package editor (#27844) 2023-10-11 19:41:07 +05:30
Canvas.tsx chore: Create a separate theme settings panel for WDS (#29196) 2023-12-01 15:39:21 +03:00
EditorHeader.tsx chore: Add an extra feature flag to control App sidebar rollout (#28876) 2023-11-15 16:49:41 +05:30
EditorSaveIndicator.tsx chore: Refactoring editor app name component for modules (#28055) 2023-10-16 14:37:39 +05:30
EditorShareButton.tsx chore: Refactoring code for entity explorer on app editor to support package editor (#27844) 2023-10-11 19:41:07 +05:30
EntityNotFoundPane.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
FormConfig.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
FormControl.tsx changes in evaluation for EE - split (#27144) 2023-09-12 17:21:39 +05:30
HelpBarInHeader.tsx feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30
HelpButton.tsx feat: remove cloudHosting conditional check, change version name (#28086) 2023-10-15 02:11:29 +05:30
index.tsx chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
loader.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
MainContainerWidthToggles.test.tsx chore: Rename and cleanup of editor components (#26944) 2023-09-12 19:44:02 +05:30
MainContainerWidthToggles.tsx chore: Rename and cleanup of editor components (#26944) 2023-09-12 19:44:02 +05:30
Popper.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
PropertyPaneHelpButton.tsx chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
RealtimeAppEditors.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
RequestConfirmationModal.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
ShareApplicationForm.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
ToggleModeButton.tsx chore: update preview button to make use of toggle (#26822) 2023-08-31 14:44:50 +05:30
utils.ts chore: action response view refactor (#29031) 2023-11-24 11:34:06 +05:30
WidgetCard.tsx fix: Anvil Editor issues with Resizer in safari (#28361) 2023-10-26 10:07:06 +05:30
WidgetCardsPane.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
WidgetsEditorEntityExplorer.tsx [Chore]: App Sidebar Library Pane (#28332) 2023-11-03 10:54:58 +05:30
WidgetSidebarWithTags.tsx chore: skip signposting discovery test (#27892) 2023-10-17 17:32:05 +05:30