PromucFlow_constructor/app/client
sneha122 f36bcf2a6c
feat: query creation dumb templates replaced with smart templates (#24234)
## Description
 
This PR replaces dumb template that is shown on new query creation with
smart templates. With current implementation whenever we create a new DB
query, we see this template before writing the query, when we select any
of the template options, it shows us template query like `SELECT * FROM
users ORDER BY id LIMIT 10;` Since its a template query, users table may
not exist in user's actual database, thus leading them to error results.
<img width="1174" alt="Screenshot 2023-06-09 at 2 45 40 PM"
src="https://github.com/appsmithorg/appsmith/assets/30018882/4dede184-439f-4064-abe0-faf7b236748e">

With new implementation, we are removing this template page, instead if
we have the structure of the datasource available, we would simply get
the first table from the structure, and create select query using that.
This way we are populating query editor with user's actual table names
rather than dumb table name like `users`. Thus leading users to create
successful query

Note: This change is done only for sql plugins like MySQL, MSSQL,
PostgreSQL, Redshift, Oracle, Snowflake.

#### PR fixes following issue(s)
Fixes #23960 
> 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
- New feature (non-breaking change which adds functionality)
>
>
>
## 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
- [x] Manual
- [ ] Jest
- [x] Cypress
>
>
#### Test Plan
> Create a Connection on the DB 
> Create a Query from the established Query
> Ensure the 1st table data is placed when Add Query button is clicked
from the Review page
> If the query is created from Entity explorer ensure the right table
name is been added

#### Issues raised during DP testing
> Link issues raised during DP testing for better visibility and
tracking (copy link from comments dropped on this PR)
>
>
>
## 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
- [x] 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/Test-plan-implementation#speedbreaker-features-to-consider-for-every-change)
have been covered
- [x] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans/_edit#areas-of-interest)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [x] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [x] Cypress test cases have been added and approved by SDET/manual QA
- [x] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed

---------

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-06-19 15:23:34 +05:30
..
.husky
.yarn chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
cypress feat: query creation dumb templates replaced with smart templates (#24234) 2023-06-19 15:23:34 +05:30
docker chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
generators chore: Add missing autocomplete definition declarations (#23726) 2023-06-02 16:22:27 +05:30
packages chore: Breakdown semantic options for button (#24416) 2023-06-15 16:21:54 +03:00
perf
public chore: Move zippy setup after the script injection. (#23978) 2023-06-02 14:00:56 +05:30
src feat: query creation dumb templates replaced with smart templates (#24234) 2023-06-19 15:23:34 +05:30
test feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
typings fix: display name validation (client) (#22938) 2023-05-04 18:29:57 +05:30
.babelrc feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
.dockerignore
.editorconfig
.eslintrc.base.json fix(eslint): fix direct remixicon imports in packages/design-system/* (#24010) 2023-06-09 12:44:58 +03:00
.eslintrc.js fix(eslint): fix direct remixicon imports in packages/design-system/* (#24010) 2023-06-09 12:44:58 +03:00
.gitignore chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.lintstagedrc
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
build.sh chore: separation of client build steps (#24506) 2023-06-16 09:03:56 +03:00
craco.build.config.js perf: merge all icons into three major chunks (#24382) 2023-06-16 11:38:08 +05:30
craco.common.config.js perf: merge all icons into three major chunks (#24382) 2023-06-16 11:38:08 +05:30
craco.dev.config.js chore : disable react overlay for warnings/error in dev mode (#23620) 2023-05-23 14:54:41 +05:30
cypress_ci-toremove.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
cypress_ci.config.ts test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
cypress.config.ts test: Cypress | Local config file syntax fix (#24500) 2023-06-15 20:02:20 +05:30
Dockerfile
download-assets.js
jest.config.js feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +05:30
package.json test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
README.md
README.old.md
start-https.sh chore: Fail when backend has a trailing slash (#23437) 2023-05-17 13:56:23 +05:30
tailwind.config.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
tsconfig.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
tsconfig.path.json
vercel.json
yarn.lock test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide