Skip to content

refactor: Move history header to separate component#1057

Merged
Assem-Uber merged 7 commits intocadence-workflow:masterfrom
Assem-Uber:refactor/15953/move-history-header-to-separate-component
Oct 31, 2025
Merged

refactor: Move history header to separate component#1057
Assem-Uber merged 7 commits intocadence-workflow:masterfrom
Assem-Uber:refactor/15953/move-history-header-to-separate-component

Conversation

@Assem-Uber
Copy link
Contributor

Summary
Moving workflow history header component to its own component in preparation for adding sticky vs none sticky behaviour.

Changes

  • Moved header logic into a separate component
  • Aligned spacing between filters in different pages

Screenshots
Screenshot 2025-10-28 at 07 31 46
Screenshot 2025-10-28 at 07 31 56
Screenshot 2025-10-28 at 07 32 14
Screenshot 2025-10-28 at 07 32 26
Screenshot 2025-10-28 at 07 33 08
Screenshot 2025-10-28 at 07 32 57

Assem-Uber and others added 5 commits October 26, 2025 03:09
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the workflow history header by extracting it into a separate component (WorkflowHistoryHeader), preparing for future sticky/non-sticky behavior. It also standardizes filter spacing across different pages by introducing consistent container wrappers.

Key Changes:

  • Extracted workflow history header logic into a dedicated WorkflowHistoryHeader component
  • Standardized filter field spacing by wrapping them in containers with consistent top margins
  • Added comprehensive test coverage for the new header component

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/views/workflow-history/workflow-history.tsx Replaced inline header with WorkflowHistoryHeader component and simplified state management
src/views/workflow-history/workflow-history.styles.ts Removed header-related styles (moved to new component) and adjusted content section margin
src/views/workflow-history/workflow-history-header/workflow-history-header.types.ts Defined prop types for the new header component
src/views/workflow-history/workflow-history-header/workflow-history-header.tsx New component containing extracted header logic with timeline chart and filter toggles
src/views/workflow-history/workflow-history-header/workflow-history-header.styles.ts Styles for the new header component including container, header, and actions sections
src/views/workflow-history/workflow-history-header/__tests__/workflow-history-header.test.tsx Comprehensive test suite for the new header component
src/views/workflow-history/__tests__/workflow-history.test.tsx Updated tests to use mocked header component
src/views/domains-page/domains-page-filters/domains-page.filters.styles.ts Added bottom margin styling for domains page filters
src/views/domains-page/domains-page-filters/domains-page-filters.tsx Wrapped filters in styled container for consistent spacing
src/views/domain-workflows-basic/domain-workflows-basic-filters/domain-workflows-basic-filters.tsx Added FiltersContainer wrapper for consistent spacing
src/views/domain-workflows-basic/domain-workflows-basic-filters/domain-workflows-basic-filters.styles.ts Added FiltersContainer style definition
src/components/page-filters/page-filters.tsx Wrapped filter fields in container for consistent spacing
src/components/page-filters/page-filters.styles.ts Removed bottom margin from search container, added FiltersContainer style
src/components/page-filters/page-filters-fields/page-filters-fields.styles.ts Removed bottom margin (handled by parent container)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +44 to +49
BaseButton: {
style: ({ $theme }: { $theme: Theme }) => ({
paddingLeft: $theme.sizing.scale500,
paddingRight: $theme.sizing.scale500,
}),
},
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The override key should be 'Root' instead of 'BaseButton' for Button component overrides. BaseUI Button components use 'Root' as the primary override key.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not true

Assem-Uber and others added 2 commits October 31, 2025 14:58
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
@Assem-Uber Assem-Uber merged commit d303118 into cadence-workflow:master Oct 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants