Skip to content

Commit 464fb23

Browse files
authored
feat: add "Open ClickHouse" button to portal (#2041)
## Summary - Adds an "Open ClickHouse" to the dev portal that opens the ClickHouse web UI. ### Screenshots or video <img width="334" height="168" alt="Screenshot 2026-04-02 at 12 29 59" src="https://github.com/user-attachments/assets/1482044a-f7ff-4b42-a05e-49fd6b4f50ca" /> ### How to test locally or on Vercel 1. Run the dev portal. 2. Check the "Open ClickHouse" button appears for all instances of the stack, and opens the web UI when clicked.
1 parent 777cf3d commit 464fb23

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎scripts/dev-portal/index.html‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ <h2>No stacks running</h2>
412412
devStack &&
413413
devStack.services.find(s => s.name === 'app' && s.status === 'up');
414414
const appUrl = appService ? appService.url : null;
415+
const chService =
416+
devStack &&
417+
devStack.services.find(
418+
s => s.name === 'clickhouse' && s.status === 'up',
419+
);
420+
const chUrl = chService ? `http://localhost:${chService.port}` : null;
415421

416422
// Flatten all services from every env into one table.
417423
// Insert a separator row before each env group.
@@ -447,6 +453,7 @@ <h2>No stacks running</h2>
447453
<div class="worktree">${escapeHtml(header.worktree)}</div>
448454
</div>
449455
<div class="stack-actions">
456+
${chUrl ? `<a href="${chUrl}" target="_blank" class="open-btn open-btn-secondary">Open ClickHouse</a>` : ''}
450457
${appUrl ? `<a href="${appUrl}" target="_blank" class="open-btn">Open App</a>` : ''}
451458
</div>
452459
</div>

‎scripts/dev-portal/styles.css‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ body {
304304
opacity: 0.85;
305305
}
306306

307+
.stack-header .open-btn.open-btn-secondary {
308+
background: transparent;
309+
color: var(--accent);
310+
border: 1px solid var(--accent);
311+
}
312+
307313
.services-table {
308314
width: 100%;
309315
border-collapse: collapse;

0 commit comments

Comments
 (0)