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
|
|
|
import React, { memo } from "react";
|
2019-11-13 07:00:25 +00:00
|
|
|
import WidgetFactory from "utils/WidgetFactory";
|
|
|
|
|
import { RenderModes } from "constants/WidgetConstants";
|
|
|
|
|
import { ContainerWidgetProps } from "widgets/ContainerWidget";
|
|
|
|
|
import { WidgetProps } from "widgets/BaseWidget";
|
2020-02-26 12:44:56 +00:00
|
|
|
import PropertyPane from "pages/Editor/PropertyPane";
|
2019-11-25 05:07:27 +00:00
|
|
|
import ArtBoard from "pages/common/ArtBoard";
|
2019-03-21 17:42:23 +00:00
|
|
|
|
2019-08-26 12:41:21 +00:00
|
|
|
interface CanvasProps {
|
2019-09-19 22:25:37 +00:00
|
|
|
dsl: ContainerWidgetProps<WidgetProps>;
|
2019-08-29 11:22:09 +00:00
|
|
|
}
|
|
|
|
|
|
2020-03-27 09:02:11 +00:00
|
|
|
// TODO(abhinav): get the render mode from context
|
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
|
|
|
const Canvas = memo((props: CanvasProps) => {
|
2019-11-26 10:45:46 +00:00
|
|
|
try {
|
|
|
|
|
return (
|
2021-04-28 10:28:39 +00:00
|
|
|
<>
|
2020-01-20 09:00:37 +00:00
|
|
|
<PropertyPane />
|
2021-05-18 18:29:39 +00:00
|
|
|
<ArtBoard
|
|
|
|
|
className="t--canvas-artboard"
|
|
|
|
|
data-testid="t--canvas-artboard"
|
|
|
|
|
width={props.dsl.rightColumn}
|
|
|
|
|
>
|
2020-01-20 09:00:37 +00:00
|
|
|
{props.dsl.widgetId &&
|
|
|
|
|
WidgetFactory.createWidget(props.dsl, RenderModes.CANVAS)}
|
|
|
|
|
</ArtBoard>
|
2021-04-28 10:28:39 +00:00
|
|
|
</>
|
2019-11-26 10:45:46 +00:00
|
|
|
);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log("Error rendering DSL", error);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
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
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Canvas.displayName = "Canvas";
|
2019-02-10 13:06:05 +00:00
|
|
|
|
2019-09-09 10:30:22 +00:00
|
|
|
export default Canvas;
|