Add opened section (#7265)
When object is not part of the workspace favorite list, we want to show it in the "opened section" while its record page is accessed. This PR: - adds a new component `NavigationDrawerOpenedSection` - makes workflow versions and runs not system object + creates a prefilled view index for these - do not create workspace favorites for these so these do not appear in the workspace section <img width="1129" alt="Capture d’écran 2024-09-26 à 11 45 25" src="https://github.com/user-attachments/assets/c84d773c-0bef-4dce-b66a-55d7d00b0fb6">
This commit is contained in:
+16
-8
@@ -9,6 +9,8 @@ import { opportunitiesByStageView } from 'src/engine/workspace-manager/standard-
|
||||
import { peopleAllView } from 'src/engine/workspace-manager/standard-objects-prefill-data/views/people-all.view';
|
||||
import { tasksAllView } from 'src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-all.view';
|
||||
import { tasksByStatusView } from 'src/engine/workspace-manager/standard-objects-prefill-data/views/tasks-by-status.view';
|
||||
import { workflowRunsAllView } from 'src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-runs-all.view';
|
||||
import { workflowVersionsAllView } from 'src/engine/workspace-manager/standard-objects-prefill-data/views/workflow-versions-all.view';
|
||||
import { workflowsAllView } from 'src/engine/workspace-manager/standard-objects-prefill-data/views/workflows-all.view';
|
||||
|
||||
export const viewPrefillData = async (
|
||||
@@ -18,14 +20,20 @@ export const viewPrefillData = async (
|
||||
isWorkflowEnabled: boolean,
|
||||
) => {
|
||||
const viewDefinitions = [
|
||||
await companiesAllView(objectMetadataMap),
|
||||
await peopleAllView(objectMetadataMap),
|
||||
await opportunitiesAllView(objectMetadataMap),
|
||||
await opportunitiesByStageView(objectMetadataMap),
|
||||
await notesAllView(objectMetadataMap),
|
||||
await tasksAllView(objectMetadataMap),
|
||||
await tasksByStatusView(objectMetadataMap),
|
||||
...(isWorkflowEnabled ? [await workflowsAllView(objectMetadataMap)] : []),
|
||||
companiesAllView(objectMetadataMap),
|
||||
peopleAllView(objectMetadataMap),
|
||||
opportunitiesAllView(objectMetadataMap),
|
||||
opportunitiesByStageView(objectMetadataMap),
|
||||
notesAllView(objectMetadataMap),
|
||||
tasksAllView(objectMetadataMap),
|
||||
tasksByStatusView(objectMetadataMap),
|
||||
...(isWorkflowEnabled
|
||||
? [
|
||||
workflowsAllView(objectMetadataMap),
|
||||
workflowVersionsAllView(objectMetadataMap),
|
||||
workflowRunsAllView(objectMetadataMap),
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
const viewDefinitionsWithId = viewDefinitions.map((viewDefinition) => ({
|
||||
|
||||
Reference in New Issue
Block a user