PromucFlow_constructor/app/client/src
ashit-rath 1e8a962b8b
chore: Modify logic to detect and hide deep paths in autocomplete suggestions (#33966)
## Description
This PR modifies how the AutocompleteSortRules suppresses paths with
more than 2 level of nesting.

Example: `Table1.selectedRow.address`
A path like the above should be suppressed from autocomplete suggestion
but it should not suppress `.run` of a module instance with autocomplete
params

Example `QueryModule1.run({ limit: 10, user: appsmith.user.name })`
With the above completion, the AutocompleteSortRules's
NoDeepNestedSuggestionsRule check for the `text` property of the
completion and checked agains the value shared in the above example.
This resulted in suppression of the `QueryModule.run` for the
autocomplete list. Therefore the logic now shift from check the `text`
property which is what gets replaced on selection to `displayText` which
is what we see in the autocomplete suggestion.

Fixes https://github.com/appsmithorg/appsmith/issues/33959

## Automation

/ok-to-test tags="@tag.All"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9378147789>
> Commit: 62c4d96c18b2ed931dbe9d671f1eeaaa5c989059
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9378147789&attempt=3"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->













## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced autocomplete functionality by considering `displayText` for
more accurate suggestions.
- Improved code completion in the test suite by adding a new parameter
`name` with a default value referencing `appsmith.user.name`.

- **Tests**
- Updated test cases to reflect new autocomplete and code completion
features, including new declarations for `fieldEntityInformation`.

- **Refactor**
- Updated internal logic to handle new properties and ensure consistency
across the application.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-06 17:38:40 +05:30
..
actions fix: remove building blocks on canvas (#33761) 2024-05-31 11:22:34 +05:30
api chore: Remove unused eventData (#33730) 2024-05-28 09:50:12 +05:30
assets feat: implement dropping building blocks on canvas (#31857) 2024-04-16 09:41:09 +01:00
ce chore: Remove empty canvas prompts and improve widget editor header (#33993) 2024-06-06 14:29:41 +05:30
components chore: Modify logic to detect and hide deep paths in autocomplete suggestions (#33966) 2024-06-06 17:38:40 +05:30
constants fix: remove building blocks on canvas (#33761) 2024-05-31 11:22:34 +05:30
ee chore: add new custom linter for module inputs (#33940) 2024-06-05 21:09:12 +05:30
enterprise
entities chore: isAIAction uses the wrong interface (#33171) 2024-05-14 21:40:59 +05:30
globalStyles chore: add PROPERTY color constant in CodeEditorColors (#33699) 2024-06-05 00:37:56 +05:30
icons
IDE feat: Collapsible Bottom View (#33441) 2024-05-22 19:43:07 +05:30
layoutSystems fix: widget overflow behaviour in anvil (#33961) 2024-06-06 13:49:57 +03:00
mockComponentProps
mockResponses
mocks feat: Anvil DnD Polish(Refactor) (#32839) 2024-04-29 11:32:08 +05:30
navigation fix: [IDE] Page switch and State switch have deep links to entity to avoid interim load state (#32980) 2024-04-29 10:31:27 +05:30
pages fix: preview mode canvas cutoff (#33960) 2024-06-06 12:28:55 +03:00
plugins/Linting chore: add new custom linter for module inputs (#33940) 2024-06-05 21:09:12 +05:30
polyfills
reducers fix: remove building blocks on canvas (#33761) 2024-05-31 11:22:34 +05:30
reflow chore: update storybook (#32828) 2024-04-22 12:17:28 +03:00
sagas fix: drop of bbs inside container causing reflow (#33947) 2024-06-05 13:16:49 +05:30
selectors fix: remove building blocks on canvas (#33761) 2024-05-31 11:22:34 +05:30
templates
theme
transformers fix: self signed certificates value set in the props (#32474) 2024-04-08 14:34:53 +05:30
UITelemetry chore: Add deviceType and appMode to new relic telemetry data (#33735) 2024-05-31 09:25:01 +05:30
usagePulse chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
utils chore: Modify logic to detect and hide deep paths in autocomplete suggestions (#33966) 2024-06-06 17:38:40 +05:30
WidgetProvider feat: On Canvas UI Colors and Widget API to consume these colors (#33013) 2024-05-01 13:57:52 +05:30
WidgetQueryGenerators
widgets chore: Create a new datasource for WDS table (#33928) 2024-06-05 10:16:35 +05:30
workers chore: Add override context during runtime params eval (#33809) 2024-05-31 12:59:44 +05:30
App.css
AppErrorBoundry.tsx chore: Update analytics to pass the correct source information in identify user call (#32591) 2024-04-19 15:06:50 +05:30
config.d.ts
Globals.d.ts
index.css feat: font update - PT root UI medium (#33008) 2024-05-08 17:47:34 +05:30
index.tsx chore: Fix bugs in logic for capturing web vitals for client (#32371) 2024-04-09 14:25:46 +05:30
LandingScreen.tsx
preload-route-chunks.ts
react-app-env.d.ts
RouteChangeListener.tsx
serviceWorker.js chore: Prefetch consolidated api using service worker (#33306) 2024-05-16 18:03:28 +05:30
store.ts
wdyr.ts