Skip to content

fix(tree-compare): restore A/B details drawer on row click - #2081

Open
felipebergamin wants to merge 4 commits into
kernelci:mainfrom
profusion:fix/2060/ab-comparison-drawer
Open

felipebergamin wants to merge 4 commits into
kernelci:mainfrom
profusion:fix/2060/ab-comparison-drawer

Conversation

@felipebergamin

@felipebergamin felipebergamin commented Sep 1, 2026

Copy link
Copy Markdown
Member

Compare rows had no build/test IDs after AB shipped, so the side-by-side log sheet never opened. Return id_a/id_b from the diff APIs and open the drawer without the duplicate status chip.

Closes #2060


Visual reference

image

@felipebergamin
felipebergamin marked this pull request as ready for review September 8, 2026 18:50
Comment thread dashboard/src/pages/TreeCompare/components/CompareDetailSheet.tsx
Comment thread dashboard/src/pages/TreeCompare/TreeComparePage.tsx Outdated
Compare rows had no build/test IDs after AB shipped, so the side-by-side log sheet never opened. Return id_a/id_b from the diff APIs and open the drawer without the duplicate status chip.

Closes kernelci#2060

Signed-off-by: Felipe Bergamin <felipebergamin@profusion.mobi>
PR kernelci#2069 widened compare rows to CompareRowChange, adding 'unchanged',
but CompareDetailItem still pinned change to CompareChangeType, so the
merge with main failed typecheck. Derive it from CompareFailureRow so
the drawer follows the row classification instead of duplicating it.

Signed-off-by: Felipe Bergamin <felipebergamin@profusion.mobi>
Next/prev used the change-filter list, so table search was ignored. Own the sheet in each table and share LogSheetPanel with the existing log drawer.
@felipebergamin
felipebergamin force-pushed the fix/2060/ab-comparison-drawer branch from 601227a to ee6bd2e Compare September 14, 2026 18:01

@alanpeixinho alanpeixinho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

nextItem: onNext,
hasPrevious,
hasNext,
isLoading: false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shouldnt we get the isLoading state from the data fetch?

Use the log queries' isLoading instead of a hardcoded false so keyboard next/prev waits until both sides have loaded.

This branch has not been deployed

No deployments
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.

[AB Comparison] Clicking on a test in comparison details is not opening the drawer

2 participants