Skip to content

fix: Autocomplete trigger changes#24025

Merged
Aishwarya-U-R merged 5 commits intoreleasefrom
fix/15429-fix-random-autocomplete
Jun 6, 2023
Merged

fix: Autocomplete trigger changes#24025
Aishwarya-U-R merged 5 commits intoreleasefrom
fix/15429-fix-random-autocomplete

Conversation

@arunvjn
Copy link
Copy Markdown
Contributor

@arunvjn arunvjn commented Jun 5, 2023

Description

PR to fix autocomplete trigger

  • Disables autocomplete trigger when ctrl/meta/alt is pressed except for (ctrl/meta)+space.
  • Disable autocomplete inside strings and comments

PR fixes following issue(s)

Fixes #15429

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing

How Has This Been Tested?

  • Manual
  • Jest
  • Cypress

Test Plan

  • Keyboard shortcut check for autocomplete
  • Copy paste action-based check
  • autocomplete suggestions inside strings and comments

Issues raised during DP testing

#24025 (comment)

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 have been covered
  • Test plan covers all impacted features and 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

- Disables autocomplete trigger when ctr/meta is pressed
- Disable autocomplete inside strings and comments
@github-actions github-actions bot added Autocomplete Issues related to the autocomplete Bug Something isn't working Javascript Product Issues related to users writing javascript in appsmith Medium Issues that frustrate users due to poor UX labels Jun 5, 2023
@arunvjn
Copy link
Copy Markdown
Contributor Author

arunvjn commented Jun 5, 2023

/ok-to-test sha=3358bfe

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 5, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/5176899410.
Workflow: Appsmith External Integration Test Workflow.
Commit: 3358bfe.
PR: 24025.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=24025&runId=5176899410_1

@arunvjn
Copy link
Copy Markdown
Contributor Author

arunvjn commented Jun 5, 2023

/build-deploy-preview env=release

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 5, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/5176909136.
Workflow: On demand build Docker image and deploy preview.
skip-tests: ``.
env: release.
PR: 24025.
recreate: .

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 5, 2023

Deploy-Preview-URL: https://appsmith-lm8bye8co-get-appsmith.vercel.app

ohansFavour
ohansFavour previously approved these changes Jun 5, 2023
Copy link
Copy Markdown
Contributor

@ohansFavour ohansFavour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 5, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5176899410.
Commit: 3358bfe.
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts

  2. cypress/e2e/Sanity/Datasources/AuthenticatedApiWithOAuth_spec.ts
To know the list of identified flaky tests - Refer here

@ramsaptami
Copy link
Copy Markdown
Contributor

ramsaptami commented Jun 5, 2023

  • Prettify using keyboard shortcut still brings up autocomplete at cursor position

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 5, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5176899410.
Commit: 3358bfe.
All cypress tests have passed 🎉

@arunvjn
Copy link
Copy Markdown
Contributor Author

arunvjn commented Jun 6, 2023

/ok-to-test sha=5b553f0

@arunvjn arunvjn requested a review from ohansFavour June 6, 2023 04:30
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 6, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/5184611285.
Workflow: Appsmith External Integration Test Workflow.
Commit: 5b553f0.
PR: 24025.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=24025&runId=5184611285_1

@arunvjn
Copy link
Copy Markdown
Contributor Author

arunvjn commented Jun 6, 2023

/build-deploy-preview env=release

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 6, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/5184614831.
Workflow: On demand build Docker image and deploy preview.
skip-tests: ``.
env: release.
PR: 24025.
recreate: .

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 6, 2023

Deploy-Preview-URL: https://appsmith-67vbxwdxv-get-appsmith.vercel.app

@arunvjn
Copy link
Copy Markdown
Contributor Author

arunvjn commented Jun 6, 2023

  • Prettify using keyboard shortcut still brings up autocomplete at cursor position

Windows use shift+alt+f to prettify and wasn't handled earlier. You can now verify the fix at https://appsmith-67vbxwdxv-get-appsmith.vercel.app/

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 6, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5184611285.
Commit: 5b553f0.
All cypress tests have passed 🎉

@ramsaptami
Copy link
Copy Markdown
Contributor

LGTM @arunvjn

@ramsaptami ramsaptami added the Test Plan Approved Manual/Cypress tests covers changes made on the PR. Else, add skip-testPlan label if not applicable label Jun 6, 2023
ohansFavour
ohansFavour previously approved these changes Jun 6, 2023
Copy link
Copy Markdown
Contributor

@Aishwarya-U-R Aishwarya-U-R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise cypress looks good.

});
});

it.only("10. Bug #10115 Autocomplete needs to show async await keywords instead of showing 'no suggestions'", () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove .only. Move case to different spec.

@arunvjn
Copy link
Copy Markdown
Contributor Author

arunvjn commented Jun 6, 2023

/ok-to-test sha=6cd2bc3

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 6, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/5186523300.
Workflow: Appsmith External Integration Test Workflow.
Commit: 6cd2bc3.
PR: 24025.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=24025&runId=5186523300_1

@Aishwarya-U-R Aishwarya-U-R merged commit e8243ad into release Jun 6, 2023
@Aishwarya-U-R Aishwarya-U-R deleted the fix/15429-fix-random-autocomplete branch June 6, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Autocomplete Issues related to the autocomplete Bug Something isn't working Javascript Product Issues related to users writing javascript in appsmith Medium Issues that frustrate users due to poor UX Test Plan Approved Manual/Cypress tests covers changes made on the PR. Else, add skip-testPlan label if not applicable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]-[350]:Random keystrokes trigger autocomplete to show up

4 participants