2024-08-06 14:52:22 +00:00
|
|
|
import { ReduxActionTypes } from "ee/constants/ReduxActionConstants";
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
|
2025-01-13 08:24:30 +00:00
|
|
|
export const initExplorerEntityNameEdit = (entityId: string) => {
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
return {
|
|
|
|
|
type: ReduxActionTypes.INIT_EXPLORER_ENTITY_NAME_EDIT,
|
|
|
|
|
payload: {
|
2025-01-13 08:24:30 +00:00
|
|
|
id: entityId,
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-01-13 08:24:30 +00:00
|
|
|
export const endExplorerEntityNameEdit = () => {
|
|
|
|
|
return {
|
|
|
|
|
type: ReduxActionTypes.END_EXPLORER_ENTITY_NAME_EDIT,
|
|
|
|
|
};
|
|
|
|
|
};
|
2021-11-23 08:01:46 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* action that make explorer pin/unpin
|
|
|
|
|
*
|
|
|
|
|
* @param shouldPin
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const setExplorerPinnedAction = (shouldPin: boolean) => {
|
|
|
|
|
return {
|
|
|
|
|
type: ReduxActionTypes.SET_EXPLORER_PINNED,
|
|
|
|
|
payload: {
|
|
|
|
|
shouldPin,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* action that make explorer active/inactive
|
|
|
|
|
* NOTE: active state is used to slide the sidebar in unpinned state on hover.
|
|
|
|
|
*
|
|
|
|
|
* @param shouldPin
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const setExplorerActiveAction = (active: boolean) => {
|
|
|
|
|
return {
|
|
|
|
|
type: ReduxActionTypes.SET_EXPLORER_ACTIVE,
|
|
|
|
|
payload: active,
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* action that updates explorer width
|
|
|
|
|
*
|
|
|
|
|
* @param shouldPin
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const updateExplorerWidthAction = (width: number | undefined) => {
|
|
|
|
|
return {
|
|
|
|
|
type: ReduxActionTypes.UPDATE_EXPLORER_WIDTH,
|
|
|
|
|
payload: {
|
|
|
|
|
width,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
};
|