PromucFlow_constructor/app/client/src/pages/Editor/DatasourceInfo
Aman Agarwal 0e99c8908e
fix: interchanged primary btn to gen crud from new query (#30007)
## Description
Earlier the `New query` button was primary and `Generate New Page`
button was secondary button but now this PR interchanges the UI for both
only for the preview data supported datasources i.e. Google sheet,
Mysql, Postgres, Mongo Mock db.

#### PR fixes following issue(s)
Fixes #29599 
> if no issue exists, please create an issue and ask the maintainers
about this first
>
>
#### 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
> Please delete options that are not relevant.
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- Chore (housekeeping or task changes that don't impact user perception)
- This change requires a documentation update
>
>
>
## 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 the ability to preview data within the data source editor
for supported plugins.

- **Enhancements**
- Improved user interface by changing certain buttons from secondary to
primary, enhancing visibility and interaction.

- **Refactor**
- Streamlined the logic for determining if a data source plugin supports
data preview.

- **Style**
- Updated button styles for a more consistent and prominent user
interface in the data source editor sections.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-05 13:54:18 +05:30
..
DatasorceTabs.tsx feat: manage env code split (#28215) 2023-11-07 12:04:47 +05:30
DatasourceEntity.tsx
DatasourceField.tsx
DatasourceStructure.tsx chore: Refactoring entity types and updating DS action create permission to fix some bugs on EE (#29573) 2023-12-14 20:14:30 +05:30
DatasourceStructureContainer.tsx fix: schema accordions don't open on search, placeholder for search input (#28785) 2023-11-13 12:38:04 +05:30
DatasourceStructureHeader.tsx fix: gsheet preview data UI using tabs for preview and configuration (#28318) 2023-11-03 19:15:00 +05:30
DatasourceStructureNotFound.tsx
DatasourceViewModeSchema.tsx fix: interchanged primary btn to gen crud from new query (#30007) 2024-01-05 13:54:18 +05:30
GoogleSheetSchema.tsx fix: interchanged primary btn to gen crud from new query (#30007) 2024-01-05 13:54:18 +05:30
ItemLoadingIndicator.tsx fix: gsheet preview data UI using tabs for preview and configuration (#28318) 2023-11-03 19:15:00 +05:30
QueryTemplates.tsx
RenderInterimDataState.tsx feat: updated loading, nodata, failed states on preview data screen (#28987) 2023-11-22 15:20:03 +05:30
SchemaViewModeCSS.tsx fix: gsheet preview data UI using tabs for preview and configuration (#28318) 2023-11-03 19:15:00 +05:30