revert: clean up datasource review page#34642
Conversation
This reverts commit ec5244c.
WalkthroughThe recent changes center around refining how feature flags are used and how buttons are displayed across different parts of the app. Specifically, modifications include reordering and updating imports, adjusting feature flag usage, and altering button display logic based on plugin permissions. Key changes involve eliminating reliance on the Changes
Poem
Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- app/client/src/ce/hooks/datasourceEditorHooks.tsx (4 hunks)
- app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx (2 hunks)
- app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx (2 hunks)
Additional comments not posted (5)
app/client/src/ce/hooks/datasourceEditorHooks.tsx (3)
1-1: Added Import: React.The import of React is necessary for JSX syntax.
2-2: Added Import: Button.The import of Button from the design-system is necessary for the new button logic.
102-103: Ensure proper initialization ofisNewQuerySecondaryButton.The initialization of
isNewQuerySecondaryButtonwith!!isPluginAllowedToPreviewDatais correct, but ensure thatisPluginAllowedToPreviewDatais always a boolean.app/client/src/pages/Editor/DatasourceInfo/DatasourceViewModeSchema.tsx (1)
Line range hint
51-51: Removed feature flag: releaseDragDropBuildingBlocks.The removal of the feature flag
releaseDragDropBuildingBlockssimplifies the logic forshowGeneratePageBtn.app/client/src/pages/Editor/DatasourceInfo/GoogleSheetSchema.tsx (1)
Line range hint
52-52: Removed feature flag: releaseDragDropBuildingBlocks.The removal of the feature flag
releaseDragDropBuildingBlockssimplifies the logic forshowGeneratePageBtn.
Reverts appsmithorg#34348 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced button display conditions based on plugin permissions in the Data Source Editor. - **Bug Fixes** - Corrected logic for feature flags in Data Source Editor to ensure consistent button behavior. - **Refactor** - Improved import structure and code readability in Data Source Editor components. - **Chores** - Removed outdated feature flag checks for `releaseDragDropBuildingBlocks` across multiple files. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Reverts #34348
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores
releaseDragDropBuildingBlocksacross multiple files.