@oss-autopilot/core 0.42.1 → 0.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -715,23 +715,23 @@ program
715
715
  });
716
716
  // Dismiss command
717
717
  program
718
- .command('dismiss <issue-url>')
719
- .description('Dismiss issue reply notifications (resurfaces on new activity)')
718
+ .command('dismiss <url>')
719
+ .description('Dismiss notifications for an issue or PR (resurfaces on new activity)')
720
720
  .option('--json', 'Output as JSON')
721
- .action(async (issueUrl, options) => {
721
+ .action(async (url, options) => {
722
722
  try {
723
723
  const { runDismiss } = await import('./commands/dismiss.js');
724
- const data = await runDismiss({ issueUrl });
724
+ const data = await runDismiss({ url });
725
725
  if (options.json) {
726
726
  outputJson(data);
727
727
  }
728
728
  else if (data.dismissed) {
729
- console.log(`Dismissed: ${issueUrl}`);
730
- console.log('Issue reply notifications are now muted.');
729
+ console.log(`Dismissed: ${url}`);
730
+ console.log('Notifications are now muted.');
731
731
  console.log('New responses after this point will resurface automatically.');
732
732
  }
733
733
  else {
734
- console.log('Issue is already dismissed.');
734
+ console.log('Already dismissed.');
735
735
  }
736
736
  }
737
737
  catch (err) {
@@ -740,22 +740,22 @@ program
740
740
  });
741
741
  // Undismiss command
742
742
  program
743
- .command('undismiss <issue-url>')
744
- .description('Undismiss an issue (re-enable reply notifications)')
743
+ .command('undismiss <url>')
744
+ .description('Undismiss an issue or PR (re-enable notifications)')
745
745
  .option('--json', 'Output as JSON')
746
- .action(async (issueUrl, options) => {
746
+ .action(async (url, options) => {
747
747
  try {
748
748
  const { runUndismiss } = await import('./commands/dismiss.js');
749
- const data = await runUndismiss({ issueUrl });
749
+ const data = await runUndismiss({ url });
750
750
  if (options.json) {
751
751
  outputJson(data);
752
752
  }
753
753
  else if (data.undismissed) {
754
- console.log(`Undismissed: ${issueUrl}`);
755
- console.log('Issue reply notifications are active again.');
754
+ console.log(`Undismissed: ${url}`);
755
+ console.log('Notifications are active again.');
756
756
  }
757
757
  else {
758
- console.log('Issue was not dismissed.');
758
+ console.log('Was not dismissed.');
759
759
  }
760
760
  }
761
761
  catch (err) {
@@ -16,7 +16,6 @@ export { computeRepoSignals, groupPRsByRepo, assessCapacity, collectActionableIs
16
16
  */
17
17
  export interface DailyCheckResult {
18
18
  digest: DailyDigest;
19
- updates: unknown[];
20
19
  capacity: CapacityAssessment;
21
20
  summary: string;
22
21
  briefSummary: string;
@@ -327,14 +327,16 @@ function generateDigestOutput(digest, activePRs, shelvedPRs, commentedIssues, fa
327
327
  const issueResponses = filteredCommentedIssues.filter((i) => i.status === 'new_response');
328
328
  const summary = formatSummary(digest, capacity, issueResponses);
329
329
  const snoozedUrls = new Set(Object.keys(stateManager.getState().config.snoozedPRs ?? {}).filter((url) => stateManager.isSnoozed(url)));
330
- const actionableIssues = collectActionableIssues(activePRs, snoozedUrls);
330
+ // Filter dismissed PR URLs from actionable issues (#416)
331
+ const dismissedUrls = new Set(Object.keys(stateManager.getState().config.dismissedIssues ?? {}));
332
+ const nonDismissedPRs = activePRs.filter((pr) => !dismissedUrls.has(pr.url));
333
+ const actionableIssues = collectActionableIssues(nonDismissedPRs, snoozedUrls);
331
334
  digest.summary.totalNeedingAttention = actionableIssues.length;
332
335
  const briefSummary = formatBriefSummary(digest, actionableIssues.length, issueResponses.length);
333
336
  const actionMenu = computeActionMenu(actionableIssues, capacity, filteredCommentedIssues);
334
337
  const repoGroups = groupPRsByRepo(activePRs);
335
338
  return {
336
339
  digest,
337
- updates: [],
338
340
  capacity,
339
341
  summary,
340
342
  briefSummary,
@@ -356,7 +358,6 @@ function generateDigestOutput(digest, activePRs, shelvedPRs, commentedIssues, fa
356
358
  function toDailyOutput(result) {
357
359
  return {
358
360
  digest: deduplicateDigest(result.digest),
359
- updates: result.updates,
360
361
  capacity: result.capacity,
361
362
  summary: result.summary,
362
363
  briefSummary: result.briefSummary,
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Reusable HTML component generators for the dashboard:
3
+ * SVG icons, truncateTitle, renderHealthItems, titleMeta.
4
+ */
5
+ import type { FetchedPR } from '../core/types.js';
6
+ /** SVG path constants for health item icons. */
7
+ export declare const SVG_ICONS: {
8
+ comment: string;
9
+ edit: string;
10
+ xCircle: string;
11
+ conflict: string;
12
+ checklist: string;
13
+ file: string;
14
+ checkCircle: string;
15
+ clock: string;
16
+ lock: string;
17
+ infoCircle: string;
18
+ refresh: string;
19
+ box: string;
20
+ bell: string;
21
+ gitMerge: string;
22
+ };
23
+ export declare function truncateTitle(title: string, max?: number): string;
24
+ /**
25
+ * Render health status items. labelFn output is automatically HTML-escaped.
26
+ * metaFn output is injected raw — callers must ensure metaFn returns safe HTML
27
+ * (use escapeHtml for any user-controlled content within metaFn).
28
+ *
29
+ * Accepts both full FetchedPR objects and lightweight ShelvedPRRef objects.
30
+ */
31
+ export declare function renderHealthItems<T extends Pick<FetchedPR, 'repo' | 'title' | 'url' | 'number'>>(prs: T[], cssClass: string, svgPaths: string, labelFn: string | ((pr: T) => string), metaFn: (pr: T) => string): string;
32
+ /** Default meta: truncated PR title (works for both FetchedPR and ShelvedPRRef). */
33
+ export declare function titleMeta(pr: Pick<FetchedPR, 'title'>): string;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Reusable HTML component generators for the dashboard:
3
+ * SVG icons, truncateTitle, renderHealthItems, titleMeta.
4
+ */
5
+ import { escapeHtml } from './dashboard-formatters.js';
6
+ /** SVG path constants for health item icons. */
7
+ export const SVG_ICONS = {
8
+ comment: '<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>',
9
+ edit: '<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>',
10
+ xCircle: '<circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/>',
11
+ conflict: '<path d="M8 3v3a2 2 0 0 1-2 2H3"/><path d="M21 8h-3a2 2 0 0 1-2-2V3"/><path d="M3 16h3a2 2 0 0 1 2 2v3"/><path d="M16 21v-3a2 2 0 0 1 2-2h3"/>',
12
+ checklist: '<path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/>',
13
+ file: '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="12" y1="18" x2="12" y2="12"/><line x1="9" y1="15" x2="15" y2="15"/>',
14
+ checkCircle: '<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/>',
15
+ clock: '<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>',
16
+ lock: '<rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',
17
+ infoCircle: '<circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/>',
18
+ refresh: '<polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/>',
19
+ box: '<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/>',
20
+ bell: '<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/>',
21
+ gitMerge: '<circle cx="7" cy="18" r="3"/><circle cx="7" cy="6" r="3"/><circle cx="17" cy="12" r="3"/><line x1="7" y1="9" x2="7" y2="15"/><path d="M7 9c0 4 10 3 10 3"/>',
22
+ };
23
+ export function truncateTitle(title, max = 50) {
24
+ const truncated = title.length <= max ? title : title.slice(0, max) + '...';
25
+ return escapeHtml(truncated);
26
+ }
27
+ /**
28
+ * Render health status items. labelFn output is automatically HTML-escaped.
29
+ * metaFn output is injected raw — callers must ensure metaFn returns safe HTML
30
+ * (use escapeHtml for any user-controlled content within metaFn).
31
+ *
32
+ * Accepts both full FetchedPR objects and lightweight ShelvedPRRef objects.
33
+ */
34
+ export function renderHealthItems(prs, cssClass, svgPaths, labelFn, metaFn) {
35
+ return prs
36
+ .map((pr) => {
37
+ const rawLabel = typeof labelFn === 'string' ? labelFn : labelFn(pr);
38
+ const label = escapeHtml(rawLabel);
39
+ return `
40
+ <div class="health-item ${cssClass}" data-status="${cssClass}" data-repo="${escapeHtml(pr.repo)}" data-title="${escapeHtml(pr.title.toLowerCase())}">
41
+ <div class="health-icon">
42
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
43
+ ${svgPaths}
44
+ </svg>
45
+ </div>
46
+ <div class="health-content">
47
+ <div class="health-title"><a href="${escapeHtml(pr.url)}" target="_blank">${escapeHtml(pr.repo)}#${pr.number}</a> - ${label}</div>
48
+ <div class="health-meta">${metaFn(pr)}</div>
49
+ </div>
50
+ </div>`;
51
+ })
52
+ .join('');
53
+ }
54
+ /** Default meta: truncated PR title (works for both FetchedPR and ShelvedPRRef). */
55
+ export function titleMeta(pr) {
56
+ return truncateTitle(pr.title);
57
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Dashboard data formatting helpers: escapeHtml, DashboardStats, and stats builder.
3
+ */
4
+ import type { DailyDigest, AgentState } from '../core/types.js';
5
+ export interface DashboardStats {
6
+ activePRs: number;
7
+ shelvedPRs: number;
8
+ mergedPRs: number;
9
+ closedPRs: number;
10
+ mergeRate: string;
11
+ }
12
+ /**
13
+ * Escape HTML special characters to prevent XSS when interpolating
14
+ * user-controlled content (e.g. PR titles, comment bodies, author names) into HTML.
15
+ * Note: This escapes HTML entity characters only. It does not sanitize URL schemes
16
+ * (e.g., javascript:) — callers placing values in href attributes should validate
17
+ * the URL scheme if the source is untrusted. GitHub API URLs are trusted.
18
+ */
19
+ export declare function escapeHtml(text: string): string;
20
+ export declare function buildDashboardStats(digest: DailyDigest, state: Readonly<AgentState>): DashboardStats;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dashboard data formatting helpers: escapeHtml, DashboardStats, and stats builder.
3
+ */
4
+ /**
5
+ * Escape HTML special characters to prevent XSS when interpolating
6
+ * user-controlled content (e.g. PR titles, comment bodies, author names) into HTML.
7
+ * Note: This escapes HTML entity characters only. It does not sanitize URL schemes
8
+ * (e.g., javascript:) — callers placing values in href attributes should validate
9
+ * the URL scheme if the source is untrusted. GitHub API URLs are trusted.
10
+ */
11
+ export function escapeHtml(text) {
12
+ return text
13
+ .replace(/&/g, '&amp;')
14
+ .replace(/</g, '&lt;')
15
+ .replace(/>/g, '&gt;')
16
+ .replace(/"/g, '&quot;')
17
+ .replace(/'/g, '&#39;');
18
+ }
19
+ export function buildDashboardStats(digest, state) {
20
+ const summary = digest.summary || {
21
+ totalActivePRs: 0,
22
+ totalMergedAllTime: 0,
23
+ mergeRate: 0,
24
+ totalNeedingAttention: 0,
25
+ };
26
+ return {
27
+ activePRs: summary.totalActivePRs,
28
+ shelvedPRs: (digest.shelvedPRs || []).length,
29
+ mergedPRs: summary.totalMergedAllTime,
30
+ closedPRs: Object.values(state.repoScores || {}).reduce((sum, s) => sum + (s.closedWithoutMergeCount || 0), 0),
31
+ mergeRate: `${(summary.mergeRate ?? 0).toFixed(1)}%`,
32
+ };
33
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Client-side JavaScript for the dashboard: theme toggle, filtering, Chart.js charts.
3
+ */
4
+ import type { DailyDigest, AgentState } from '../core/types.js';
5
+ import type { DashboardStats } from './dashboard-formatters.js';
6
+ /** Generate the Chart.js JavaScript for the dashboard. */
7
+ export declare function generateDashboardScripts(stats: DashboardStats, monthlyMerged: Record<string, number>, monthlyClosed: Record<string, number>, monthlyOpened: Record<string, number>, digest: DailyDigest, state: Readonly<AgentState>): string;
@@ -0,0 +1,281 @@
1
+ /**
2
+ * Client-side JavaScript for the dashboard: theme toggle, filtering, Chart.js charts.
3
+ */
4
+ /** Static client-side JS: theme toggle + filter/search logic. */
5
+ const THEME_AND_FILTER_SCRIPT = `
6
+ // === Theme Toggle ===
7
+ (function() {
8
+ var html = document.documentElement;
9
+ var toggle = document.getElementById('themeToggle');
10
+ var sunIcon = document.getElementById('themeIconSun');
11
+ var moonIcon = document.getElementById('themeIconMoon');
12
+ var label = document.getElementById('themeLabel');
13
+
14
+ function getEffectiveTheme() {
15
+ try {
16
+ var stored = localStorage.getItem('oss-dashboard-theme');
17
+ if (stored === 'light' || stored === 'dark') return stored;
18
+ } catch (e) { /* localStorage unavailable (private browsing) */ }
19
+ return window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
20
+ }
21
+
22
+ function applyTheme(theme) {
23
+ html.setAttribute('data-theme', theme);
24
+ if (theme === 'light') {
25
+ sunIcon.style.display = 'none';
26
+ moonIcon.style.display = 'block';
27
+ label.textContent = 'Dark';
28
+ } else {
29
+ sunIcon.style.display = 'block';
30
+ moonIcon.style.display = 'none';
31
+ label.textContent = 'Light';
32
+ }
33
+ }
34
+
35
+ applyTheme(getEffectiveTheme());
36
+
37
+ toggle.addEventListener('click', function() {
38
+ var current = html.getAttribute('data-theme');
39
+ var next = current === 'dark' ? 'light' : 'dark';
40
+ try { localStorage.setItem('oss-dashboard-theme', next); } catch (e) { /* private browsing */ }
41
+ applyTheme(next);
42
+ });
43
+ })();
44
+
45
+ // === Filtering & Search ===
46
+ (function() {
47
+ var searchInput = document.getElementById('searchInput');
48
+ var statusFilter = document.getElementById('statusFilter');
49
+ var repoFilter = document.getElementById('repoFilter');
50
+ var filterCount = document.getElementById('filterCount');
51
+
52
+ function applyFilters() {
53
+ var query = searchInput.value.toLowerCase().trim();
54
+ var status = statusFilter.value;
55
+ var repo = repoFilter.value;
56
+ var allItems = document.querySelectorAll('.health-item[data-status], .pr-item[data-status]');
57
+ var visible = 0;
58
+ var total = allItems.length;
59
+
60
+ allItems.forEach(function(item) {
61
+ var itemStatus = item.getAttribute('data-status') || '';
62
+ var itemRepo = item.getAttribute('data-repo') || '';
63
+ var itemTitle = item.getAttribute('data-title') || '';
64
+
65
+ var matchesStatus = (status === 'all') || (itemStatus === status);
66
+ var matchesRepo = (repo === 'all') || (itemRepo === repo);
67
+ var matchesSearch = !query || itemTitle.indexOf(query) !== -1;
68
+
69
+ if (matchesStatus && matchesRepo && matchesSearch) {
70
+ item.setAttribute('data-hidden', 'false');
71
+ visible++;
72
+ } else {
73
+ item.setAttribute('data-hidden', 'true');
74
+ }
75
+ });
76
+
77
+ // Show/hide parent sections if all children are hidden
78
+ var sections = document.querySelectorAll('.health-section, .pr-list-section');
79
+ sections.forEach(function(section) {
80
+ var items = section.querySelectorAll('.health-item[data-status], .pr-item[data-status]');
81
+ if (items.length === 0) return; // sections without filterable items (e.g. empty state)
82
+ var anyVisible = false;
83
+ items.forEach(function(item) {
84
+ if (item.getAttribute('data-hidden') !== 'true') anyVisible = true;
85
+ });
86
+ section.style.display = anyVisible ? '' : 'none';
87
+ });
88
+
89
+ var isFiltering = (status !== 'all' || repo !== 'all' || query.length > 0);
90
+ filterCount.textContent = isFiltering ? (visible + ' of ' + total + ' items') : '';
91
+ }
92
+
93
+ searchInput.addEventListener('input', applyFilters);
94
+ statusFilter.addEventListener('change', applyFilters);
95
+ repoFilter.addEventListener('change', applyFilters);
96
+ })();
97
+ `;
98
+ /** Generate the Chart.js JavaScript for the dashboard. */
99
+ export function generateDashboardScripts(stats, monthlyMerged, monthlyClosed, monthlyOpened, digest, state) {
100
+ // === Status Doughnut ===
101
+ const statusChart = `
102
+ Chart.defaults.color = '#6e7681';
103
+ Chart.defaults.borderColor = 'rgba(48, 54, 61, 0.4)';
104
+ Chart.defaults.font.family = "'Geist', sans-serif";
105
+ Chart.defaults.font.size = 11;
106
+
107
+ // === Status Doughnut ===
108
+ new Chart(document.getElementById('statusChart'), {
109
+ type: 'doughnut',
110
+ data: {
111
+ labels: ['Active', 'Shelved', 'Merged', 'Closed'],
112
+ datasets: [{
113
+ data: [${stats.activePRs}, ${stats.shelvedPRs}, ${stats.mergedPRs}, ${stats.closedPRs}],
114
+ backgroundColor: ['#3fb950', '#6e7681', '#a855f7', '#484f58'],
115
+ borderColor: 'rgba(8, 11, 16, 0.8)',
116
+ borderWidth: 2,
117
+ hoverOffset: 8
118
+ }]
119
+ },
120
+ options: {
121
+ responsive: true,
122
+ maintainAspectRatio: false,
123
+ cutout: '65%',
124
+ plugins: {
125
+ legend: {
126
+ position: 'bottom',
127
+ labels: { padding: 16, usePointStyle: true, pointStyle: 'circle', font: { size: 11 } }
128
+ }
129
+ }
130
+ }
131
+ });`;
132
+ // === Repository Breakdown ===
133
+ const repoChart = (() => {
134
+ // Filter helper: exclude repos matching excludeRepos/excludeOrgs or below minStars (#216)
135
+ const { excludeRepos: exRepos = [], excludeOrgs: exOrgs, minStars } = state.config;
136
+ const starThreshold = minStars ?? 50;
137
+ const shouldExcludeRepo = (repo) => {
138
+ const repoLower = repo.toLowerCase();
139
+ if (exRepos.some((r) => r.toLowerCase() === repoLower))
140
+ return true;
141
+ if (exOrgs?.some((o) => o.toLowerCase() === repoLower.split('/')[0]))
142
+ return true;
143
+ const score = (state.repoScores || {})[repo];
144
+ // Fail-open: repos without cached star data are shown (not excluded).
145
+ // Unlike issue-discovery (fail-closed), the dashboard shows the user's own
146
+ // contribution history — hiding repos just because a star fetch failed would be confusing.
147
+ if (score?.stargazersCount !== undefined && score.stargazersCount < starThreshold)
148
+ return true;
149
+ return false;
150
+ };
151
+ // Sort repos by total PRs (merged + active + closed) and build "Other" bucket
152
+ const allRepoEntries = Object.entries(
153
+ // Rebuild from full prsByRepo to get all repos, not just top 10
154
+ (() => {
155
+ const all = {};
156
+ for (const pr of digest.openPRs || []) {
157
+ if (shouldExcludeRepo(pr.repo))
158
+ continue;
159
+ if (!all[pr.repo])
160
+ all[pr.repo] = { active: 0, merged: 0, closed: 0 };
161
+ all[pr.repo].active++;
162
+ }
163
+ for (const [repo, score] of Object.entries(state.repoScores || {})) {
164
+ if (shouldExcludeRepo(repo))
165
+ continue;
166
+ if (!all[repo])
167
+ all[repo] = { active: 0, merged: 0, closed: 0 };
168
+ all[repo].merged = score.mergedPRCount;
169
+ all[repo].closed = score.closedWithoutMergeCount;
170
+ }
171
+ return all;
172
+ })()).sort((a, b) => {
173
+ const totalA = a[1].merged + a[1].active + a[1].closed;
174
+ const totalB = b[1].merged + b[1].active + b[1].closed;
175
+ return totalB - totalA;
176
+ });
177
+ const displayRepos = allRepoEntries.slice(0, 10);
178
+ const otherRepos = allRepoEntries.slice(10);
179
+ const grandTotal = allRepoEntries.reduce((sum, [, d]) => sum + d.merged + d.active + d.closed, 0);
180
+ if (otherRepos.length > 0) {
181
+ const otherData = otherRepos.reduce((acc, [, d]) => ({
182
+ active: acc.active + d.active,
183
+ merged: acc.merged + d.merged,
184
+ closed: acc.closed + d.closed,
185
+ }), { active: 0, merged: 0, closed: 0 });
186
+ displayRepos.push(['Other', otherData]);
187
+ }
188
+ const repoLabels = displayRepos.map(([repo]) => (repo === 'Other' ? 'Other' : repo.split('/')[1] || repo));
189
+ const mergedData = displayRepos.map(([, d]) => d.merged);
190
+ const activeData = displayRepos.map(([, d]) => d.active);
191
+ const closedData = displayRepos.map(([, d]) => d.closed);
192
+ return `
193
+ new Chart(document.getElementById('reposChart'), {
194
+ type: 'bar',
195
+ data: {
196
+ labels: ${JSON.stringify(repoLabels)},
197
+ datasets: [
198
+ { label: 'Merged', data: ${JSON.stringify(mergedData)}, backgroundColor: '#a855f7', borderRadius: 3 },
199
+ { label: 'Active', data: ${JSON.stringify(activeData)}, backgroundColor: '#3fb950', borderRadius: 3 },
200
+ { label: 'Closed', data: ${JSON.stringify(closedData)}, backgroundColor: '#484f58', borderRadius: 3 }
201
+ ]
202
+ },
203
+ options: {
204
+ responsive: true,
205
+ maintainAspectRatio: false,
206
+ scales: {
207
+ x: { stacked: true, grid: { display: false }, ticks: { font: { size: 10 } } },
208
+ y: { stacked: true, grid: { color: 'rgba(48, 54, 61, 0.3)' }, ticks: { stepSize: 1 } }
209
+ },
210
+ plugins: {
211
+ legend: { position: 'bottom', labels: { padding: 16, usePointStyle: true, pointStyle: 'circle', font: { size: 11 } } },
212
+ tooltip: {
213
+ callbacks: {
214
+ afterBody: function(context) {
215
+ const idx = context[0].dataIndex;
216
+ const total = ${JSON.stringify(mergedData)}[idx] + ${JSON.stringify(activeData)}[idx] + ${JSON.stringify(closedData)}[idx];
217
+ const pct = ${grandTotal} > 0 ? ((total / ${grandTotal}) * 100).toFixed(1) : '0.0';
218
+ return pct + '% of all PRs';
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ });`;
225
+ })();
226
+ // === Contribution Timeline ===
227
+ const timelineChart = (() => {
228
+ // Generate a contiguous range of the last 6 months from today
229
+ // This avoids gaps when historical data spans years (e.g. 2019 and 2026)
230
+ const now = new Date();
231
+ const allMonths = [];
232
+ for (let offset = 5; offset >= 0; offset--) {
233
+ const d = new Date(now.getFullYear(), now.getMonth() - offset, 1);
234
+ allMonths.push(`${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}`);
235
+ }
236
+ return `
237
+ const timelineMonths = ${JSON.stringify(allMonths)};
238
+ const openedData = ${JSON.stringify(monthlyOpened)};
239
+ const mergedData = ${JSON.stringify(monthlyMerged)};
240
+ const closedData = ${JSON.stringify(monthlyClosed)};
241
+ new Chart(document.getElementById('monthlyChart'), {
242
+ type: 'bar',
243
+ data: {
244
+ labels: timelineMonths,
245
+ datasets: [
246
+ {
247
+ label: 'Opened',
248
+ data: timelineMonths.map(m => openedData[m] || 0),
249
+ backgroundColor: '#58a6ff',
250
+ borderRadius: 3
251
+ },
252
+ {
253
+ label: 'Merged',
254
+ data: timelineMonths.map(m => mergedData[m] || 0),
255
+ backgroundColor: '#a855f7',
256
+ borderRadius: 3
257
+ },
258
+ {
259
+ label: 'Closed',
260
+ data: timelineMonths.map(m => closedData[m] || 0),
261
+ backgroundColor: '#484f58',
262
+ borderRadius: 3
263
+ }
264
+ ]
265
+ },
266
+ options: {
267
+ responsive: true,
268
+ maintainAspectRatio: false,
269
+ scales: {
270
+ x: { grid: { display: false } },
271
+ y: { grid: { color: 'rgba(48, 54, 61, 0.3)' }, beginAtZero: true, ticks: { stepSize: 1 } }
272
+ },
273
+ plugins: {
274
+ legend: { position: 'bottom', labels: { padding: 16, usePointStyle: true, pointStyle: 'circle', font: { size: 11 } } }
275
+ },
276
+ interaction: { intersect: false, mode: 'index' }
277
+ }
278
+ });`;
279
+ })();
280
+ return THEME_AND_FILTER_SCRIPT + statusChart + '\n' + repoChart + '\n' + timelineChart;
281
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Dashboard CSS styles: theme variables, layout, component styles.
3
+ * Extracted from dashboard-templates.ts for maintainability.
4
+ */
5
+ export declare const DASHBOARD_CSS = "\n :root, [data-theme=\"dark\"] {\n --bg-base: #080b10;\n --bg-surface: rgba(22, 27, 34, 0.65);\n --bg-elevated: rgba(28, 33, 40, 0.8);\n --border: rgba(48, 54, 61, 0.6);\n --border-muted: rgba(33, 38, 45, 0.5);\n --text-primary: #e6edf3;\n --text-secondary: #8b949e;\n --text-muted: #6e7681;\n --accent-merged: #a855f7;\n --accent-merged-dim: rgba(168, 85, 247, 0.12);\n --accent-open: #3fb950;\n --accent-open-dim: rgba(63, 185, 80, 0.12);\n --accent-warning: #d29922;\n --accent-warning-dim: rgba(210, 153, 34, 0.12);\n --accent-error: #f85149;\n --accent-error-dim: rgba(248, 81, 73, 0.10);\n --accent-conflict: #da3633;\n --accent-info: #58a6ff;\n --accent-info-dim: rgba(88, 166, 255, 0.08);\n --chart-border: rgba(8, 11, 16, 0.8);\n --chart-grid: rgba(48, 54, 61, 0.3);\n --scrollbar-track: rgba(28, 33, 40, 0.8);\n --scrollbar-thumb: rgba(48, 54, 61, 0.6);\n }\n\n [data-theme=\"light\"] {\n --bg-base: #f6f8fa;\n --bg-surface: rgba(255, 255, 255, 0.85);\n --bg-elevated: rgba(246, 248, 250, 0.95);\n --border: rgba(208, 215, 222, 0.6);\n --border-muted: rgba(216, 222, 228, 0.5);\n --text-primary: #1f2328;\n --text-secondary: #656d76;\n --text-muted: #8b949e;\n --accent-merged: #8250df;\n --accent-merged-dim: rgba(130, 80, 223, 0.1);\n --accent-open: #1a7f37;\n --accent-open-dim: rgba(26, 127, 55, 0.1);\n --accent-warning: #9a6700;\n --accent-warning-dim: rgba(154, 103, 0, 0.1);\n --accent-error: #cf222e;\n --accent-error-dim: rgba(207, 34, 46, 0.08);\n --accent-conflict: #cf222e;\n --accent-info: #0969da;\n --accent-info-dim: rgba(9, 105, 218, 0.08);\n --chart-border: rgba(255, 255, 255, 0.8);\n --chart-grid: rgba(208, 215, 222, 0.4);\n --scrollbar-track: rgba(246, 248, 250, 0.95);\n --scrollbar-thumb: rgba(208, 215, 222, 0.6);\n }\n\n @media (prefers-color-scheme: light) {\n :root:not([data-theme=\"dark\"]) {\n --bg-base: #f6f8fa;\n --bg-surface: rgba(255, 255, 255, 0.85);\n --bg-elevated: rgba(246, 248, 250, 0.95);\n --border: rgba(208, 215, 222, 0.6);\n --border-muted: rgba(216, 222, 228, 0.5);\n --text-primary: #1f2328;\n --text-secondary: #656d76;\n --text-muted: #8b949e;\n --accent-merged: #8250df;\n --accent-merged-dim: rgba(130, 80, 223, 0.1);\n --accent-open: #1a7f37;\n --accent-open-dim: rgba(26, 127, 55, 0.1);\n --accent-warning: #9a6700;\n --accent-warning-dim: rgba(154, 103, 0, 0.1);\n --accent-error: #cf222e;\n --accent-error-dim: rgba(207, 34, 46, 0.08);\n --accent-conflict: #cf222e;\n --accent-info: #0969da;\n --accent-info-dim: rgba(9, 105, 218, 0.08);\n --chart-border: rgba(255, 255, 255, 0.8);\n --chart-grid: rgba(208, 215, 222, 0.4);\n --scrollbar-track: rgba(246, 248, 250, 0.95);\n --scrollbar-thumb: rgba(208, 215, 222, 0.6);\n }\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;\n background: var(--bg-base);\n color: var(--text-primary);\n min-height: 100vh;\n line-height: 1.5;\n overflow-x: hidden;\n }\n\n body::before {\n content: '';\n position: fixed;\n top: -20%; left: -10%;\n width: 60%; height: 60%;\n background: radial-gradient(ellipse, rgba(88, 166, 255, 0.06) 0%, transparent 70%);\n pointer-events: none;\n z-index: 0;\n }\n\n body::after {\n content: '';\n position: fixed;\n bottom: -20%; right: -10%;\n width: 50%; height: 50%;\n background: radial-gradient(ellipse, rgba(168, 85, 247, 0.05) 0%, transparent 70%);\n pointer-events: none;\n z-index: 0;\n }\n\n [data-theme=\"light\"] body::before,\n [data-theme=\"light\"] body::after {\n display: none;\n }\n\n .container {\n max-width: 1400px;\n margin: 0 auto;\n padding: 2rem;\n position: relative;\n z-index: 1;\n }\n\n .header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1.5rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid var(--border-muted);\n }\n\n .header-left {\n display: flex;\n align-items: center;\n gap: 1rem;\n }\n\n .logo {\n width: 44px;\n height: 44px;\n background: linear-gradient(135deg, var(--accent-info) 0%, var(--accent-merged) 50%, #f778ba 100%);\n border-radius: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.5rem;\n box-shadow: 0 0 24px rgba(168, 85, 247, 0.3), 0 0 48px rgba(88, 166, 255, 0.15);\n }\n\n .header h1 {\n font-size: 1.75rem;\n font-weight: 600;\n letter-spacing: -0.02em;\n background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n background-clip: text;\n }\n\n .header-subtitle {\n font-family: 'Geist Mono', monospace;\n font-size: 0.75rem;\n color: var(--text-muted);\n text-transform: uppercase;\n letter-spacing: 0.1em;\n }\n\n .timestamp {\n font-family: 'Geist Mono', monospace;\n font-size: 0.8rem;\n color: var(--text-muted);\n display: flex;\n align-items: center;\n gap: 0.5rem;\n }\n\n .timestamp::before {\n content: '';\n width: 8px;\n height: 8px;\n background: var(--accent-open);\n border-radius: 50%;\n animation: pulse 2s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(35, 134, 54, 0.4); }\n 50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(35, 134, 54, 0); }\n }\n\n .stats-grid {\n display: flex;\n background: var(--bg-surface);\n border: 1px solid var(--border-muted);\n border-radius: 12px;\n margin-bottom: 1.5rem;\n overflow: hidden;\n }\n\n @media (max-width: 768px) {\n .stats-grid { flex-wrap: wrap; }\n .stat-card { flex: 1 1 33%; }\n }\n\n .stat-card {\n flex: 1;\n padding: 1rem 1.25rem;\n position: relative;\n transition: background 0.2s ease;\n }\n\n .stat-card + .stat-card {\n border-left: 1px solid var(--border-muted);\n }\n\n .stat-card:hover {\n background: rgba(255, 255, 255, 0.02);\n }\n\n .stat-card::after {\n content: '';\n position: absolute;\n bottom: 0; left: 0.75rem; right: 0.75rem;\n height: 2px;\n background: var(--accent-color, var(--border));\n border-radius: 2px;\n opacity: 0.7;\n }\n\n .stat-card.active { --accent-color: var(--accent-open); }\n .stat-card.merged { --accent-color: var(--accent-merged); }\n .stat-card.closed { --accent-color: var(--text-muted); }\n .stat-card.rate { --accent-color: var(--accent-info); }\n\n .stat-value {\n font-family: 'Geist Mono', monospace;\n font-size: 1.75rem;\n font-weight: 600;\n line-height: 1;\n margin-bottom: 0.25rem;\n }\n\n .stat-card.active .stat-value { color: var(--accent-open); }\n .stat-card.merged .stat-value { color: var(--accent-merged); }\n .stat-card.closed .stat-value { color: var(--text-muted); }\n .stat-card.rate .stat-value { color: var(--accent-info); }\n\n .stat-label {\n font-size: 0.7rem;\n color: var(--text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n }\n\n .health-section {\n background: var(--bg-surface);\n border: 1px solid var(--border-muted);\n border-radius: 10px;\n padding: 1.25rem;\n margin-bottom: 1.25rem;\n }\n\n .health-header {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n margin-bottom: 1rem;\n }\n\n .health-header h2 {\n font-size: 1rem;\n font-weight: 600;\n color: var(--text-primary);\n }\n\n .health-badge {\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n padding: 0.25rem 0.5rem;\n border-radius: 4px;\n background: var(--accent-error-dim);\n color: var(--accent-error);\n }\n\n .health-items {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n gap: 0.75rem;\n }\n\n .health-item {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n background: var(--bg-elevated);\n border-radius: 8px;\n border-left: 3px solid;\n transition: transform 0.15s ease;\n }\n\n .health-item:hover { transform: translateX(4px); }\n\n .health-item.ci-failing {\n border-left-color: var(--accent-error);\n background: var(--accent-error-dim);\n }\n\n .health-item.conflict {\n border-left-color: var(--accent-conflict);\n background: rgba(218, 54, 51, 0.1);\n }\n\n .health-item.incomplete-checklist {\n border-left-color: var(--accent-info);\n }\n .health-item.needs-response,\n .health-item.needs-changes {\n border-left-color: var(--accent-warning);\n background: var(--accent-warning-dim);\n }\n\n .health-item.changes-addressed,\n .health-item.waiting-maintainer {\n border-left-color: var(--accent-info);\n background: var(--accent-info-dim);\n }\n\n .health-item.ci-not-running {\n border-left-color: var(--text-muted);\n background: rgba(110, 118, 129, 0.1);\n }\n\n .health-item.missing-files {\n border-left-color: var(--accent-warning);\n background: var(--accent-warning-dim);\n }\n\n .health-item.ci-blocked {\n border-left-color: var(--text-muted);\n background: rgba(110, 118, 129, 0.1);\n }\n\n .health-item.needs-rebase {\n border-left-color: var(--accent-warning);\n background: var(--accent-warning-dim);\n }\n\n .health-item.shelved {\n border-left-color: var(--text-muted);\n background: rgba(110, 118, 129, 0.06);\n opacity: 0.6;\n }\n\n .health-item.shelved .health-icon { background: rgba(110, 118, 129, 0.12); color: var(--text-muted); }\n\n .health-item.auto-unshelved {\n border-left-color: var(--accent-info);\n background: var(--accent-info-dim);\n }\n\n .health-item.auto-unshelved .health-icon { background: var(--accent-info-dim); color: var(--accent-info); }\n\n .stat-card.shelved { --accent-color: var(--text-muted); }\n .stat-card.shelved .stat-value { color: var(--text-muted); }\n\n .waiting-section {\n border-color: rgba(88, 166, 255, 0.2);\n }\n\n .health-icon {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1rem;\n flex-shrink: 0;\n }\n\n .health-item.ci-failing .health-icon { background: var(--accent-error-dim); color: var(--accent-error); }\n .health-item.conflict .health-icon { background: rgba(218, 54, 51, 0.15); color: var(--accent-conflict); }\n .health-item.incomplete-checklist .health-icon { background: var(--accent-info-dim); color: var(--accent-info); }\n .health-item.needs-response .health-icon,\n .health-item.needs-changes .health-icon { background: var(--accent-warning-dim); color: var(--accent-warning); }\n .health-item.changes-addressed .health-icon,\n .health-item.waiting-maintainer .health-icon { background: var(--accent-info-dim); color: var(--accent-info); }\n .health-item.ci-not-running .health-icon { background: rgba(110, 118, 129, 0.15); color: var(--text-muted); }\n .health-item.missing-files .health-icon { background: var(--accent-warning-dim); color: var(--accent-warning); }\n .health-item.ci-blocked .health-icon { background: rgba(110, 118, 129, 0.15); color: var(--text-muted); }\n .health-item.needs-rebase .health-icon { background: var(--accent-warning-dim); color: var(--accent-warning); }\n\n .health-content { flex: 1; min-width: 0; }\n\n .health-title {\n font-size: 0.85rem;\n font-weight: 500;\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .health-title a { color: inherit; text-decoration: none; }\n .health-title a:hover { color: var(--accent-info); }\n\n .health-meta {\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n color: var(--text-muted);\n }\n\n .health-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2rem;\n color: var(--text-muted);\n font-size: 0.9rem;\n }\n\n .health-empty::before {\n content: '\\2713';\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: var(--accent-open-dim);\n color: var(--accent-open);\n border-radius: 50%;\n margin-right: 0.75rem;\n font-weight: bold;\n }\n\n .main-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 1.25rem;\n margin-bottom: 1.25rem;\n }\n\n @media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } }\n\n .card {\n background: var(--bg-surface);\n border: 1px solid var(--border-muted);\n border-radius: 10px;\n overflow: hidden;\n }\n\n .card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.75rem 1.125rem;\n border-bottom: 1px solid var(--border-muted);\n }\n\n .card-title {\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n\n .card-body { padding: 1rem 1.125rem; }\n\n .chart-container {\n position: relative;\n height: 260px;\n }\n\n .pr-list-section {\n background: var(--bg-surface);\n border: 1px solid var(--border-muted);\n border-radius: 10px;\n overflow: hidden;\n }\n\n .pr-list-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.75rem 1.125rem;\n border-bottom: 1px solid var(--border-muted);\n }\n\n .pr-list-title {\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n\n .pr-count {\n font-family: 'Geist Mono', monospace;\n font-size: 0.75rem;\n padding: 0.25rem 0.5rem;\n background: var(--accent-open-dim);\n color: var(--accent-open);\n border-radius: 4px;\n }\n\n .pr-list {\n max-height: 600px;\n overflow-y: auto;\n }\n\n .pr-list::-webkit-scrollbar { width: 6px; }\n .pr-list::-webkit-scrollbar-track { background: var(--scrollbar-track, var(--bg-elevated)); }\n .pr-list::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb, var(--border)); border-radius: 3px; }\n\n .pr-item {\n display: flex;\n align-items: flex-start;\n gap: 1rem;\n padding: 1rem 1.25rem;\n border-bottom: 1px solid var(--border-muted);\n transition: background 0.15s ease;\n }\n\n .pr-item:last-child { border-bottom: none; }\n .pr-item:hover { background: var(--bg-elevated); }\n\n .pr-status-indicator {\n width: 40px;\n height: 40px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n font-size: 1.1rem;\n background: var(--accent-open-dim);\n color: var(--accent-open);\n }\n\n .pr-item.has-issues .pr-status-indicator {\n background: var(--accent-error-dim);\n color: var(--accent-error);\n animation: attention-pulse 2s ease-in-out infinite;\n }\n\n .pr-item.stale .pr-status-indicator {\n background: var(--accent-warning-dim);\n color: var(--accent-warning);\n }\n\n @keyframes attention-pulse {\n 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.4); }\n 50% { box-shadow: 0 0 0 6px rgba(248, 81, 73, 0); }\n }\n\n .pr-content { flex: 1; min-width: 0; }\n\n .pr-title-row {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.25rem;\n }\n\n .pr-title {\n font-size: 0.9rem;\n font-weight: 500;\n color: var(--text-primary);\n text-decoration: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .pr-title:hover { color: var(--accent-info); }\n\n .pr-repo {\n font-family: 'Geist Mono', monospace;\n font-size: 0.75rem;\n color: var(--text-muted);\n flex-shrink: 0;\n }\n\n .pr-badges {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n }\n\n .badge {\n font-family: 'Geist Mono', monospace;\n font-size: 0.65rem;\n font-weight: 500;\n padding: 0.2rem 0.5rem;\n border-radius: 4px;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n .badge-ci-failing { background: var(--accent-error-dim); color: var(--accent-error); }\n .badge-conflict { background: rgba(218, 54, 51, 0.15); color: var(--accent-conflict); }\n .badge-needs-response { background: var(--accent-warning-dim); color: var(--accent-warning); }\n .badge-stale { background: var(--accent-warning-dim); color: var(--accent-warning); }\n .badge-passing { background: var(--accent-open-dim); color: var(--accent-open); }\n .badge-pending { background: var(--accent-info-dim); color: var(--accent-info); }\n .badge-days { background: var(--bg-elevated); color: var(--text-muted); }\n .badge-changes-requested { background: var(--accent-warning-dim); color: var(--accent-warning); }\n .badge-changes-addressed { background: var(--accent-info-dim); color: var(--accent-info); }\n\n .pr-activity {\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n color: var(--text-muted);\n margin-left: auto;\n text-align: right;\n flex-shrink: 0;\n }\n\n .empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 3rem;\n color: var(--text-muted);\n }\n\n .empty-state-icon {\n font-size: 2.5rem;\n margin-bottom: 1rem;\n opacity: 0.5;\n }\n\n .footer {\n text-align: center;\n padding-top: 1.5rem;\n border-top: 1px solid var(--border-muted);\n margin-top: 1.5rem;\n }\n\n .footer p {\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n color: var(--text-muted);\n }\n\n @keyframes fadeInUp {\n from { opacity: 0; transform: translateY(12px); }\n to { opacity: 1; transform: translateY(0); }\n }\n\n .stats-grid, .health-section, .pr-list-section {\n animation: fadeInUp 0.35s ease;\n }\n\n .theme-toggle {\n background: var(--bg-elevated);\n border: 1px solid var(--border-muted);\n border-radius: 8px;\n padding: 0.4rem 0.6rem;\n cursor: pointer;\n color: var(--text-secondary);\n display: flex;\n align-items: center;\n gap: 0.4rem;\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n transition: background 0.2s ease, color 0.2s ease;\n }\n\n .theme-toggle:hover {\n background: var(--bg-surface);\n color: var(--text-primary);\n }\n\n .theme-toggle svg { flex-shrink: 0; }\n\n .header-controls {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n }\n\n .filter-toolbar {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n background: var(--bg-surface);\n border: 1px solid var(--border-muted);\n border-radius: 10px;\n margin-bottom: 1.25rem;\n flex-wrap: wrap;\n }\n\n .filter-toolbar label {\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n color: var(--text-muted);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n flex-shrink: 0;\n }\n\n .filter-search {\n flex: 1;\n min-width: 180px;\n padding: 0.4rem 0.75rem;\n background: var(--bg-elevated);\n border: 1px solid var(--border-muted);\n border-radius: 6px;\n color: var(--text-primary);\n font-family: 'Geist', sans-serif;\n font-size: 0.8rem;\n outline: none;\n transition: border-color 0.2s ease;\n }\n\n .filter-search:focus {\n border-color: var(--accent-info);\n }\n\n .filter-search::placeholder {\n color: var(--text-muted);\n }\n\n .filter-select {\n padding: 0.4rem 0.75rem;\n background: var(--bg-elevated);\n border: 1px solid var(--border-muted);\n border-radius: 6px;\n color: var(--text-primary);\n font-family: 'Geist', sans-serif;\n font-size: 0.8rem;\n outline: none;\n cursor: pointer;\n transition: border-color 0.2s ease;\n }\n\n .filter-select:focus {\n border-color: var(--accent-info);\n }\n\n .filter-count {\n font-family: 'Geist Mono', monospace;\n font-size: 0.7rem;\n color: var(--text-muted);\n margin-left: auto;\n flex-shrink: 0;\n }\n\n .pr-item[data-hidden=\"true\"],\n .health-item[data-hidden=\"true\"] {\n display: none;\n }\n";