Skip to content

feat(FR-2326): highlight failure steps with error color in scheduling history#6225

Draft
yomybaby wants to merge 1 commit intomainfrom
03-27-feat_fr-2326_highlight_failure_steps_with_error_color
Draft

feat(FR-2326): highlight failure steps with error color in scheduling history#6225
yomybaby wants to merge 1 commit intomainfrom
03-27-feat_fr-2326_highlight_failure_steps_with_error_color

Conversation

@yomybaby
Copy link
Copy Markdown
Member

@yomybaby yomybaby commented Mar 27, 2026

Resolves #6047(FR-2326)

Summary

  • Apply token.colorError (antd theme token) to the step name and result text columns when the scheduling result is FAILURE, EXPIRED, or GIVE_UP
  • Uses antd theme.useToken() so the error color automatically adapts to both dark and light mode
  • Only one file changed: BAISessionHistorySubStepNodes.tsx

Test plan

  • Open the scheduling history modal for a session with failed steps
  • Verify that the step name text is displayed in red for FAILURE/EXPIRED/GIVE_UP results
  • Verify that the result text is displayed in red for FAILURE/EXPIRED/GIVE_UP results
  • Verify that non-failure steps retain their default text color
  • Toggle between dark and light mode and confirm the error color adapts correctly

@github-actions github-actions bot added the size:XL 500~ LoC label Mar 27, 2026
Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage report for ./packages/backend.ai-ui

St.
Category Percentage Covered / Total
🟢 Statements 84.55% 427/505
🟡 Branches 70.98% 362/510
🟡 Functions 79.49% 93/117
🟢 Lines 86.28% 390/452

Test suite run success

319 tests passing in 13 suites.

Report generated by 🧪jest coverage report action from 8d3b0f5

@yomybaby yomybaby force-pushed the 03-27-feat_fr-2326_highlight_failure_steps_with_error_color branch from f42f204 to b4b3cd8 Compare March 27, 2026 04:33
@yomybaby yomybaby requested a review from Copilot March 27, 2026 04:53
Copy link
Copy Markdown
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 improves the scheduling history modal UX by highlighting failed sub-steps using Ant Design’s theme-aware error color, making failures easier to spot in both light and dark modes.

Changes:

  • Introduces a FAILURE_RESULTS list for failure-like scheduling outcomes.
  • Applies token.colorError styling to the sub-step name and result display when the sub-step result indicates failure.
  • Uses theme.useToken() so the highlight color follows the active Ant Design theme.

@yomybaby yomybaby force-pushed the 03-27-feat_fr-2326_highlight_failure_steps_with_error_color branch from b4b3cd8 to 8d3b0f5 Compare March 27, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight failure steps with error color in session scheduling history modal

2 participants