-
Notifications
You must be signed in to change notification settings - Fork 1.6k
chore(ui): Revamp test suite details page #25139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
...a-ui/src/main/resources/ui/src/pages/TestSuiteDetailsPage/TestSuiteDetailsPage.component.tsx
Outdated
Show resolved
Hide resolved
...a-ui/src/main/resources/ui/src/pages/TestSuiteDetailsPage/TestSuiteDetailsPage.component.tsx
Show resolved
Hide resolved
🔍 CI failure analysis for 12846cc: Two playwright CI jobs failed - one is infrastructure-related, but one is directly related to this PR's changes to the TestSuite page.IssueTwo separate playwright jobs have failed:
Root Cause for Job 59783740913 (Related to PR)The test Error: What changed: <DomainLabel
headerLayout
showDashPlaceholder // <-- This was added
domains={testSuite?.domains}
...
/>When DetailsTest location: Test helper: await expect(page.getByTestId('no-domain-text')).toContainText(
showDashPlaceholder ? '--' : 'No Domains'
);The test utility FixThe solution is to update the test in Alternatively, the test helper at Root Cause for Job 59783740856 (Unrelated)The
This job's failure is unrelated to the PR's UI changes to TestSuiteDetailsPage. Code Review ✅ ApprovedClean UI refactor that properly addresses previous findings. The description component extraction and dependency array corrections are implemented correctly. Resolved ✅ 2 resolvedCode Quality: Duplicated DescriptionV1 component block across tabs
Bug: Removed `testOwners` from dependency array - verify correctness
What Works WellGood use of Tip Comment OptionsAuto-apply is off Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | This comment will update automatically (Docs) |
|
There was a problem hiding this 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 revamps the test suite details page UI by restructuring the layout to improve consistency and visual organization. The description component is moved from page level into both the "Test Cases" and "Pipeline" tabs, metadata display is enhanced with a bordered container, and React hook dependencies are corrected.
Key Changes:
- Moved description component into tab content with card-style wrapping for consistent presentation
- Enhanced metadata header with bordered container styling and improved owner/domain labels
- Fixed React hook dependency arrays by removing stale
testOwnersreference and wrappingonDescriptionUpdatein useCallback
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| TestSuiteDetailsPage.component.tsx | Restructured component layout to move description into tabs, wrapped onDescriptionUpdate in useCallback, fixed dependency arrays for onUpdateOwner and handleDomainUpdate, and added responsive Grid layout with gutter spacing |
| test-suite-details-page.styles.less | Removed unused .test-suite-description styles, added .test-suite-header-metadata for bordered metadata container, added .test-suite-details-tabs for tab overflow handling, and added .test-suite-content-container for tab content styling with borders and padding |
| } | ||
| }; | ||
| }, | ||
| [testSuite] |
Copilot
AI
Jan 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The useCallback dependency array is missing the t function from useTranslation. The t function is used inside the callback (line 314) and should be included in the dependency array to comply with the exhaustive-deps ESLint rule. While the t function from react-i18next is typically stable across renders, it's a best practice to include all dependencies for consistency and to avoid potential stale closure issues.
| [testSuite] | |
| [testSuite, t] |



Describe your changes:
Fixes #23398
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
Test CasesandPipelinetabs withwrapInCardstyling for consistent card presentationrenderDescription()function to eliminate duplication across tabstest-suite-header-metadatawithDomainLabelusingheaderLayoutprop andOwnerLabelwith expanded displaytest-suite-content-containerclass with borders and padding for tab content areasRow/Colcomponents and 20px vertical gutter spacingonDescriptionUpdateinuseCallbackwith proper dependencies to prevent stale closurestabsuseMemoThis will update automatically on new commits.