PromucFlow_constructor/app/client/src/utils
Valera Melnikov 0e67bbc68c
chore: add hybrid search control (#39258)
## Description
Add hybrid search control for UQI forms.

![Снимок экрана 2025-02-14 в 10 06
28](https://github.com/user-attachments/assets/45167650-3646-4746-93eb-aa0322b68a58)

Example of usage:
```
{
  "isRequired": false,
  "configProperty": "actionConfiguration.formData.hybridSearch",
  "controlType": "HYBRID_SEARCH",
  "initialValue": {
      "isEnabled": true,
      "keywordWeight": 0.5,
      "semanticWeight": 0.5
  }
}
```

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

## Automation

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

### 🔍 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/13324291818>
> Commit: 9495722fe3224474db772890f31730becfa45d79
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13324291818&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Datasource`
> Spec:
> <hr>Fri, 14 Feb 2025 07:52:38 UTC
<!-- 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**
- Introduced a new hybrid search control in the form. Users can now
easily adjust search parameters with intuitive sliders for keyword and
semantic weights, along with a toggle to activate or deactivate hybrid
search.
- Added a new control type for hybrid search to the form control
registry, enhancing the flexibility of form configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-02-14 11:05:41 +03:00
..
Analytics chore: Update mixpanel masking classname (#38661) 2025-01-15 16:03:07 +05:30
autocomplete feat: update autocomplete sorting (#38690) 2025-01-17 16:30:52 +05:30
autoHeight chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
CallbackHandler chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
editor chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
FilterInternalProperties chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
formControl chore: add hybrid search control (#39258) 2025-02-14 11:05:41 +03:00
hooks chore: Move entities/IDE/constants (#39064) 2025-02-07 16:45:55 +05:30
migrations chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
NavigationSelector chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ProductRamps chore: added premium tags datasources for knowing users request to add new integrations (#38110) 2024-12-19 20:00:09 +05:30
validation chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ApiPaneUtils.test.ts chore: Migrate sub components into Plugin Action Editor (#36844) 2024-10-16 18:29:10 +05:30
ApiPaneUtils.tsx chore: Migrate sub components into Plugin Action Editor (#36844) 2024-10-16 18:29:10 +05:30
AppsmithConsole.ts chore: Separate files for Redux Types (#38559) 2025-01-10 10:21:54 +05:30
AppsmithUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
AppsmithUtils.tsx chore: Analytics util refactor (#38089) 2024-12-19 17:46:22 +05:30
AppUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
bootIntercom.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
boxHelpers.test.ts
boxHelpers.ts
BrandingUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
buildingBlockUtils.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
canvasStructureHelpers.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
canvasStructureHelpers.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
configTree.ts
CustomWidgetBuilderService.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
CustomWidgetBuilderService.ts chore: add custom widget to anvil (#37878) 2024-12-06 16:03:40 +05:30
dayJsUtils.ts
DynamicBindingUtils.test.ts fix: Separate Plugin Entity from Action (#38582) 2025-01-15 11:29:32 +05:30
DynamicBindingUtils.ts chore: update logic to calculate length of lint (#36548) 2024-11-19 13:25:44 +05:30
editorContextUtils.ts fix: Separate Plugin Entity from Action (#38582) 2025-01-15 11:29:32 +05:30
formhelpers.test.ts
formhelpers.ts chore: added premium tags datasources for knowing users request to add new integrations (#38110) 2024-12-19 20:00:09 +05:30
GenerateCrudUtil.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
GeneratePageUtils.ts chore: Updating generate page interaction to show it in a modal following the IDE 2.0 interaction pattern (#37414) 2024-11-19 12:05:10 +05:30
generators.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
getCodeMirrorNamespace.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
getPathAndValueFromActionDiffObject.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
getQueryParamsObject.test.ts fix: getQueryParamsFromString function updated to use URLSearchParams (#37559) 2024-11-19 21:33:09 +05:30
getQueryParamsObject.ts fix: getQueryParamsFromString function updated to use URLSearchParams (#37559) 2024-11-19 21:33:09 +05:30
helpers.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
helpers.tsx chore: add grafana faro sdk (CE) (#38301) 2024-12-26 10:37:41 +05:30
history.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
importUppy.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
JSPaneUtils.test.ts fix: Separate Plugin Entity from Action (#38582) 2025-01-15 11:29:32 +05:30
JSPaneUtils.tsx fix: JSObject diff error when actions are missing (#38572) 2025-01-18 09:48:04 +05:30
klona.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
lazyLottie.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
localStorage.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
localStorage.tsx chore: Move action redesign to GA (#38659) 2025-01-16 22:26:34 +05:30
MessageUtil.ts
metaWidgetState.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
PropertyControlFactory.tsx chore: Add documentation for property pane config (#36880) 2024-11-07 15:41:20 +05:30
PropertyControlRegistry.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ReducerUtils.ts chore: bypass immer for first evaluation, fixed cloneDeep issue and using mutative instead of immer (#38993) 2025-02-06 11:20:08 +05:30
reflowHookUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
replayHelpers.test.js
replayHelpers.tsx chore: [Plugin Action Editor] Combine Plugin Editor UI state (#36651) 2024-10-08 16:12:27 +05:30
resizeObserver.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
storage.ts chore: Move entities/IDE/constants (#39064) 2025-02-07 16:45:55 +05:30
SuccessfulBindingsMap.ts
testPropertyPaneConfig.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
treeUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
TypeHelpers.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
URLUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UseComposeRef.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetBlueprintUtils.ts chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
widgetEvalUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetFeatures.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetFeatures.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetLoadingStateUtils.test.ts fix: Separate Plugin Entity from Action (#38582) 2025-01-15 11:29:32 +05:30
WidgetLoadingStateUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetMigrationUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetMigrationUtils.ts
WidgetPropsUtils.test.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetPropsUtils.tsx chore: decouple widget-config.json from main chunk (#36924) 2024-10-17 20:48:39 +05:30
WidgetQueryGeneratorRegistry.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetQueryGeneratorRegistry.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgetRenderUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgetRenderUtils.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetSizeUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetSizeUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
workerInstances.ts chore: optimise first evaluation by adding worker scope cache (CE) (#38068) 2024-12-13 09:44:19 +05:30
WorkerUtil.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WorkerUtil.ts feat: Create a async execute trigger flow (#39009) 2025-02-04 10:38:40 +00:00