Fix active navigation tab + quick workflows fixes (#8567)

- Active navigation tab hovered in show page
- remove timeline tab + rename workflow tab
- remove {{variable}} placeholder
- fix margin
- Workflow Runs and Versions show page title

<img width="807" alt="Capture d’écran 2024-11-18 à 18 23 12"
src="https://github.com/user-attachments/assets/688dfc67-362e-4f04-b436-3ff94d7e3e4a">
This commit is contained in:
Thomas Trompette
2024-11-19 11:55:25 +01:00
committed by GitHub
parent c17e18b1e9
commit cdf0240ccb
7 changed files with 22 additions and 12 deletions

View File

@ -131,7 +131,7 @@ export const useRecordShowContainerTabs = (
},
[CoreObjectNameSingular.Workflow]: {
workflow: {
title: 'Workflow',
title: 'Flow',
position: 0,
Icon: IconSettings,
cards: [{ type: CardType.WorkflowCard }],
@ -144,6 +144,7 @@ export const useRecordShowContainerTabs = (
ifRelationsMissing: [],
},
},
timeline: null,
},
[CoreObjectNameSingular.WorkflowVersion]: {
workflowVersion: {
@ -160,6 +161,7 @@ export const useRecordShowContainerTabs = (
ifRelationsMissing: [],
},
},
timeline: null,
},
[CoreObjectNameSingular.WorkflowRun]: {
workflowRunOutput: {
@ -190,6 +192,7 @@ export const useRecordShowContainerTabs = (
ifRelationsMissing: [],
},
},
timeline: null,
},
};

View File

@ -141,7 +141,7 @@ export const useRecordShowPagePagination = (
const rankFoundInFiew = rankInView > -1;
const objectLabel = capitalize(objectMetadataItem.namePlural);
const objectLabel = capitalize(objectMetadataItem.labelPlural);
const totalCount = Math.max(1, totalCountBefore, totalCountAfter);