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:
@ -0,0 +1,9 @@
|
||||
import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids';
|
||||
|
||||
export const shouldSeedWorkspaceFavorite = (
|
||||
objectMetadataId,
|
||||
objectMetadataMap,
|
||||
): boolean =>
|
||||
objectMetadataId !==
|
||||
objectMetadataMap[STANDARD_OBJECT_IDS.workflowVersion].id &&
|
||||
objectMetadataId !== objectMetadataMap[STANDARD_OBJECT_IDS.workflowRun].id;
|
||||
Reference in New Issue
Block a user