Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ A dashboard for tracking GitHub issues, PRs, and Actions workflow runs across ma

**Live demo:** https://gh.gordoncode.dev

![Dashboard](docs/dashboard-screenshot.png)
<table>
<tr>
<td align="center"><strong>Comfortable</strong></td>
<td align="center"><strong>Compact</strong></td>
</tr>
<tr>
<td><img src="docs/dashboard-screenshot.png" alt="Dashboard — comfortable view"></td>
<td><img src="docs/dashboard-screenshot-compact.png" alt="Dashboard — compact view"></td>
</tr>
</table>

## Documentation

Expand Down
Binary file added docs/dashboard-screenshot-compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dashboard-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 31 additions & 7 deletions e2e/capture-screenshot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,39 @@ test("capture dashboard screenshot", async ({ page }) => {
await page.getByRole("tab", { name: /pull requests/i }).click();
await page.getByRole("tab", { name: /pull requests/i, selected: true }).waitFor();

// Wait for repo group headers to render (visible even when collapsed)
await page.getByText("acme-corp/web-platform").first().waitFor();
// Expand several repo groups for a richer screenshot
const reposToExpand = ["acme-corp/web-platform", "openstack/nova", "acme-corp/api-gateway"];

// Expand a repo group by clicking its header button (scoped to avoid notification bell)
const repoGroupBtn = page.getByRole("button", { expanded: false }).filter({ hasText: "acme-corp/web-platform" });
if (await repoGroupBtn.isVisible()) {
await repoGroupBtn.click();
await page.getByRole("button", { expanded: true }).filter({ hasText: "acme-corp/web-platform" }).waitFor();
await page.getByText("acme-corp/web-platform").first().waitFor();
for (const repo of reposToExpand) {
const btn = page.getByRole("button", { expanded: false }).filter({ hasText: repo });
if (await btn.isVisible()) {
await btn.click();
await page.getByRole("button", { expanded: true }).filter({ hasText: repo }).waitFor();
}
}

await page.screenshot({ path: "docs/dashboard-screenshot.png" });

// Switch to compact density via settings UI (client-side nav to preserve store state)
await page.getByRole("link", { name: "Settings" }).click();
await page.getByRole("button", { name: /view density: compact/i }).waitFor();
await page.getByRole("button", { name: /view density: compact/i }).click();
await page.getByRole("button", { name: /view density: compact/i, pressed: true }).waitFor();

// Navigate back to dashboard (client-side, no full reload)
await page.getByRole("link", { name: "Back to dashboard" }).click();
await page.getByRole("tablist").waitFor();
await page.getByRole("tab", { name: /pull requests/i }).click();
await page.getByRole("tab", { name: /pull requests/i, selected: true }).waitFor();
await page.getByText("acme-corp/web-platform").first().waitFor();
for (const repo of reposToExpand) {
const btn = page.getByRole("button", { expanded: false }).filter({ hasText: repo });
if (await btn.isVisible()) {
await btn.click();
await page.getByRole("button", { expanded: true }).filter({ hasText: repo }).waitFor();
}
}

await page.screenshot({ path: "docs/dashboard-screenshot-compact.png" });
});