We want the workflow versions and executions to be accessible in record table and show page.
But we do not want them to always be displayed in the navigation bar to the left.
We want these entities to be displayed only when the user clicks on "See versions" or "See executions" from the parent workflow.
This is not possible with the current design. Either an entity is system and is not displayed to the left, but also cannot be accessed through record table. Either an entity is not system and will always be in the navigation bar.
To achieve this, we will stop relying on wether an entity is system or not to display it in the navigation menu.
Instead, we will add a favorite entity linked to the object views we want to see on the left. Those will be "Workspace Favorites" because they do not have a workspace member associated, as regular favorites. It will allow to:
set versions and runs as non system objects
avoid seeing them on the left, since no favorite will be attached to their views
later, we will be able to see other current system objects in tables (workspace members, timeline activities...)
need to also create those favorites during new workspace creation. In prefillWorkspaceWithStandardObjects function
remove feature flag
=> as V1 we do not create a workspace favorite for each object view. We simply create one for the "All view". Then we retrieve all object views to display. Later will we allow to avoid adding all views in navigation bar.
2/ Set versions and runs as non system objects. Create "All" views associated but without favorites
3/ When the entity displayed in the record table do not have favorite, there will be no tab to be selected on the left menu. To avoid this, we will display a temporary tab on the left with the object name.
We want the workflow versions and executions to be accessible in record table and show page. But we do not want them to always be displayed in the navigation bar to the left. We want these entities to be displayed only when the user clicks on "See versions" or "See executions" from the parent workflow. This is not possible with the current design. Either an entity is system and is not displayed to the left, but also cannot be accessed through record table. Either an entity is not system and will always be in the navigation bar.
To achieve this, we will stop relying on wether an entity is system or not to display it in the navigation menu. Instead, we will add a favorite entity linked to the object views we want to see on the left. Those will be "Workspace Favorites" because they do not have a workspace member associated, as regular favorites. It will allow to:
Steps to achieve this:
1/ Create favorites associated to the active object views https://github.com/twentyhq/twenty/pull/6904
prefillWorkspaceWithStandardObjects
function2/ Set versions and runs as non system objects. Create "All" views associated but without favorites
3/ When the entity displayed in the record table do not have favorite, there will be no tab to be selected on the left menu. To avoid this, we will display a temporary tab on the left with the object name.