Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused implementation satisfies the compact-row requirements and includes appropriate regression coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Adds compact, accessible Healthcheck status labels while preserving existing disclosure and assistant-action behavior.
Changes:
- Adds an icon-only
EntityStatus.Labelcompact view with tooltip and soft colors. - Updates Healthcheck issue rows for compact layout and long-title wrapping.
- Adds regression tests for status rendering, disclosure, and assistant actions.
| File | Description |
|---|---|
src/components/EntityStatus/EntityStatus.tsx |
Implements compact status labels. |
src/components/EntityStatus/EntityStatus.scss |
Styles compact labels. |
src/components/EntityStatus/__test__/EntityStatus.test.tsx |
Tests compact and default label behavior. |
src/containers/Tenant/Healthcheck/Healthcheck.scss |
Supports compact row layout and wrapping. |
src/containers/Tenant/Healthcheck/components/HealthcheckIssue.tsx |
Places compact status before issue titles. |
src/containers/Tenant/Healthcheck/components/__test__/HealthcheckIssue.test.tsx |
Tests disclosure and assistant-action behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| className?: string; | ||
| endContent?: React.ReactNode; | ||
| withStatusName?: boolean; | ||
| view?: 'default' | 'compact'; |
There was a problem hiding this comment.
view="compact" still accepts onClick, children, and endContent, but the compact branch ignores them. If a page switches a clickable status label to compact view, its click action stops working without a type error. Support those props or make the compact prop type reject them.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/EntityStatus/EntityStatus.tsx
Line: 54
Comment:
**Compact labels drop clicks**
`view="compact"` still accepts `onClick`, `children`, and `endContent`, but the compact branch ignores them. If a page switches a clickable status label to compact view, its click action stops working without a type error. Support those props or make the compact prop type reject them.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
No flows tested, and faced 2 obstacles. Obstacles faced
To reduce obstacles, configure your TREX environment. |
Keep compact labels noninteractive and reject content or click props that this view does not render. Preserve the default label API and add direct and spread compile-only contract checks.
Observe completed running-query list requests before asserting DOM visibility. Use a scoped observable workload and await its completion before disposing the request context, without increasing the test timeout or retry count.
Healthcheck currently puts a full status label below each issue title. This moves an icon-only status before the title, applies the soft label treatment from #4448 and keeps the existing actions, disclosure and details behavior.
EntityStatus.Labelgains an opt-inview="compact"; existing labels keep their current defaults.withStatusName={false}alone leaves an empty content wrapper, the detailed tooltip and the heavy critical style. Compact mode reuses the existing icons/status names and supplies the shorter tooltip, accessible name and soft colors together.The assistant connection already exists through
healthcheck.renderAssistantActionand is unchanged. This PR only changes the shared Healthcheck rows; button styling and AI Chat welcome changes are a separate task.Closes #4461. Parent: #4448. Assistant presentation follow-up: #4462.
Compact labels now reject unsupported click/content props at compile time, with direct and spread contract checks. Rendering is unchanged. The running-query E2E test also waits for the completed list response before checking the rendered row, uses an observable workload and awaits completion before disposing its request context.
Validation on the combined changes: lint, typecheck, 240 unit suites / 2,212 tests, package and embedded builds, and a disposable wrapper consumer typecheck passed. Compiled runtime files remain byte-identical; the compile-only fixture is excluded from the package. Browser checks passed: 20 target repetitions without retries, all 18 Queries tests, and all 116 tests in shard 6/8. Controlled checks reproduced the late-render failure before the fix and passed after it, including error and cleanup paths.
npm run unusedremains non-green: the same Knip version reports 403 findings on the unchanged baseline; the only added report is the intentional compile-only type fixture. No unrelated cleanup is included.The layout screenshots below use the previously verified local fixtures. These checks do not claim validation against a deployed service.
Before / after
Same local fixture data and unchanged assistant buttons on both sides; only the OSS package differs. The examples show collapsed and expanded issue rows. Status moves before the title, uses a soft icon-only label, and reduces a collapsed row from 82 px to 62 px.
Light theme
Dark theme
The PR appears safe to merge; the compact label prop contract is a non-blocking follow-up.
Fix with agent prompt
Summary
Healthcheck issue rows now show a compact status icon before each issue title, keeping the status name available in a tooltip and to screen readers. The shared status label gains an optional compact view, while default labels and row actions remain intact.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Issue[Healthcheck issue] --> Status[Compact status icon] Issue --> Title[Issue title] Issue --> Disclosure[Issue details] Issue -->|when available| Fix[Fix action]Reviews (1) · Last reviewed commit: "feat: compact Healthcheck issue rows"
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
😟 No changes in tests. 😕
Bundle Size: ✅
Current: 65.30 MB | Main: 65.30 MB
Diff: +2.94 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information