PromucFlow_constructor/app/client/src/actions/globalSearchActions.ts
Hetu Nandu 02bd42003a
chore: Sunset Omnibar Documentation and Snippets (#24787)
## Description

We are removing the documentation and snippets that used to be shown in
the omnibar. These features are not being maintained and usage is pretty
low.

#### PR fixes following issue(s)
Fixes #24278
Fixes #24279
Fixes #24280


#### Type of change

- Breaking change (fix or feature that would cause existing
functionality to not work as expected)

## Testing

#### How Has This Been Tested?

- [x] Manual
- [x] Cypress

#### Test Plan

https://github.com/appsmithorg/appsmith/pull/24787#issuecomment-1611180354

#### Issues raised during DP testing

https://github.com/appsmithorg/appsmith/pull/24787#issuecomment-1611475323

## 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:
- [x] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [x] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [x] Test plan has been peer reviewed by project stakeholders and other
QA members
- [x] Manually tested functionality on DP
- [x] 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
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-06-30 15:51:08 +05:30

52 lines
1.4 KiB
TypeScript

import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
import type {
RecentEntity,
SearchCategory,
} from "components/editorComponents/GlobalSearch/utils";
import {
filterCategories,
SEARCH_CATEGORY_ID,
} from "components/editorComponents/GlobalSearch/utils";
export const setGlobalSearchQuery = (query: string) => ({
type: ReduxActionTypes.SET_GLOBAL_SEARCH_QUERY,
payload: query,
});
export const toggleShowGlobalSearchModal = () => ({
type: ReduxActionTypes.TOGGLE_SHOW_GLOBAL_SEARCH_MODAL,
});
export const setGlobalSearchCategory = (
category: SearchCategory = filterCategories[SEARCH_CATEGORY_ID.INIT],
) => ({
type: ReduxActionTypes.SET_GLOBAL_SEARCH_CATEGORY,
payload: category,
});
export const setGlobalSearchFilterContext = (payload: any) => ({
type: ReduxActionTypes.SET_SEARCH_FILTER_CONTEXT,
payload,
});
export const restoreRecentEntitiesRequest = (payload: {
applicationId: string;
branch?: string;
}) => ({
type: ReduxActionTypes.RESTORE_RECENT_ENTITIES_REQUEST,
payload,
});
export const restoreRecentEntitiesSuccess = () => ({
type: ReduxActionTypes.RESTORE_RECENT_ENTITIES_SUCCESS,
});
export const resetRecentEntities = () => ({
type: ReduxActionTypes.RESET_RECENT_ENTITIES,
});
export const setRecentEntities = (payload: Array<RecentEntity>) => ({
type: ReduxActionTypes.SET_RECENT_ENTITIES,
payload,
});