Repository navigation
chore(dev-portal): show ClickHouse version, add expand/collapse all, improve pill contrast - #3834
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 2950c34 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review
2 finding(s): 🔴 0 P0/P1 · 🟡 1 P2 · 🔵 1 P3 1 posted as inline comment(s) on the changed lines. 1 P3 folded at the bottom. 🔵 1 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
Deep Review✅ No critical issues found. This is low-risk local dev-portal tooling plus a debug-report addition. Reviewers verified the happy paths and the main adversarial inputs hold: 🟡 P2 — recommended
🔵 P3 nitpicks (3)
Reviewers (10): correctness, testing, maintainability, project-standards, kieran-typescript, julik-frontend-races, adversarial, previous-comments, agent-native, learnings-researcher. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
E2E Test Results✅ All tests passed • 479 passed • 1 skipped • 1243s
Tests ran across 4 shards in parallel. |
|
Looks good! Could we also add the CH version to the debug info? under packages/app/src/hdxDebug.ts: |
@jordan-simonovski pushed! |
| // Fetched when the Help menu opens rather than on click: awaiting before the | ||
| // clipboard write would drop the user gesture Safari requires for it. | ||
| // getServerVersion is cached per connection, so this is usually free. | ||
| React.useEffect(() => { |
There was a problem hiding this comment.
🟡 P2 — ClickHouse versions only load once the Help menu has been opened, so window.hdx.report()/copy() leave them out, and a fast first click can too
Move this effect into AppNav.tsx, next to the setHdxIdentity effect (~line 224), which is always mounted. Right now it sits in AppNavVersionItem, which only mounts while Menu.Dropdown is open. So the console API from installHdxDebug (packages/app/src/hdxDebug.ts) has no clickhouse: lines until the menu has been opened at least once. Also, Promise.all only writes once the slowest connection answers, so clicking Copy right after opening the menu (cache still cold) gives a report with no ClickHouse lines at all. Write each connection's result as it arrives, or fetch on nav mount, so one slow connection doesn't hold back the others.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2950c34. Configure here.
| )?.join('.'), | ||
| })), | ||
| ).then(setHdxClickHouseVersions); | ||
| }, [connections]); |
There was a problem hiding this comment.
Debug copy can miss versions
Low Severity
Copy debug info reads clickhouseVersions immediately, while the Help-menu effect still fetches them. The first copy can omit the clickhouse: lines when getServerVersion is not already cached. In-flight results also write module state with no cancellation, so an older request can replace newer connection data.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 2950c34. Configure here.


Summary
Follow-up to #3827: show each stack's ClickHouse version, add an expand/collapse all button, and fix low-contrast pill text on the dev portal.
ClickHouse 26.10.3.7) next to the slot badge, read from the container's image tag thatdocker psalready returns, so there are no extra queries. Distinct versions across a worktree's environments are listed together.Screenshots or video
To be added by author.
Note
Low Risk
Changes are limited to debug reporting, dev-tooling UI, and stylesheet tokens; no auth, billing, or query-path logic.
Overview
Copy debug info now adds one
clickhouse:line per saved connection (name + server version), placed after the backend line. Versions are prefetched when the Help menu’s debug item is mounted (using cachedgetServerVersionper connection) so clipboard copy still works under Safari’s user-gesture rules.setHdxClickHouseVersionsholds the data until versions are known; tests cover omission vs. listing.Dev portal stacks API now attaches a parsed Docker image tag as each container’s
version; Live cards show distinct ClickHouse versions in the header beside the slot badge. The Live tab gets Expand all / Collapse all, with state persisted like per-card toggles. Badge/pill colors use dedicated--pill-*tokens so slot, env, and type labels meet ~4.5:1 contrast in light and dark themes.Reviewed by Cursor Bugbot for commit 2950c34. Bugbot is set up for automated code reviews on this repo. Configure here.