feat(orchestrator): add card height mode config for workflow run page#2386
feat(orchestrator): add card height mode config for workflow run page#2386lokanandaprabhu wants to merge 2 commits intoredhat-developer:mainfrom
Conversation
Expose a workflow instance page option to switch between fixed card heights and content-based sizing, with a new hook and changeset entry. Co-authored-by: Cursor <cursoragent@cursor.com>
Changed Packages
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
...tor/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowInstancePageContent.tsx
Outdated
Show resolved
Hide resolved
...tor/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowInstancePageContent.tsx
Outdated
Show resolved
Hide resolved
workspaces/orchestrator/plugins/orchestrator/src/hooks/useWorkflowInstanceCardHeightMode.ts
Show resolved
Hide resolved
Refactor the workflow instance layout to reuse card components and rename the height mode flag for clarity, and warn when config values are unexpected before falling back to fixed mode. Made-with: Cursor
|



User description
Hey, I just made a Pull Request!
Fixes:
https://issues.redhat.com/browse/RHDHBUGS-2676
Summary
orchestrator.workflowInstancePage.cardHeightModeconfig (fixed vs content)fixed(current layout)✔️ Checklist
PR Type
Enhancement
Description
Add configurable card height mode for workflow instance page
Introduce
useWorkflowInstanceCardHeightModehook to read configSupport "fixed" (current layout) and "content" (expandable) modes
Restructure layout dynamically based on selected height mode
Diagram Walkthrough
File Walkthrough
config.d.ts
Add card height mode configuration interfaceworkspaces/orchestrator/plugins/orchestrator-common/config.d.ts
workflowInstancePageconfiguration section to orchestrator configcardHeightModeproperty with "fixed" or "content" optionsuseWorkflowInstanceCardHeightMode.ts
New hook for card height mode configurationworkspaces/orchestrator/plugins/orchestrator/src/hooks/useWorkflowInstanceCardHeightMode.ts
orchestrator.workflowInstancePage.cardHeightModeconfigWorkflowInstanceCardHeightModetype with "fixed" and "content"values
WorkflowInstancePageContent.tsx
Dynamic layout based on card height modeworkspaces/orchestrator/plugins/orchestrator/src/components/WorkflowInstancePage/WorkflowInstancePageContent.tsx
useWorkflowInstanceCardHeightModehook to determinelayout mode
uses nested columns
appropriate styling
workflow-instance-card-height.md
Changeset entry for card height featureworkspaces/orchestrator/.changeset/workflow-instance-card-height.md
packages
layouts