Add a Command Center operator path to backfill exact GitHub source-issue close times. - Add a dashboard API client for the paginated GitHub source-issue closed-at backfill endpoint. - Add a GitHub Command Center button, progress/error/result state, and styling for manual backfills. - Cover backfill success, empty, error, and pagination behavior with area tests and document the operator flow. Files changed: .../fn-6675-github-closed-at-backfill-dashboard.md | 5 + docs/dashboard-guide.md | 4 +- docs/storage.md | 2 +- packages/dashboard/app/api/legacy.ts | 25 ++++ .../components/command-center/CommandCenter.css | 39 ++++++ .../components/command-center/areas/GithubArea.tsx | 117 ++++++++++++++++- .../command-center/areas/__tests__/areas.test.tsx | 140 ++++++++++++++++++++- 7 files changed, 326 insertions(+), 6 deletions(-) Fusion-Task-Id: FN-6675 Fusion-Task-Lineage: 09e43b60-b9db-421f-a131-740a0d3164fe
479 lines
11 KiB
CSS
479 lines
11 KiB
CSS
/*
|
|
FNXC:CommandCenterStyling 2026-06-17-18:46:
|
|
The FN-4286 dashboard text-token guard requires command-center secondary copy to use --text-muted, not the deprecated secondary text token or raw color fallbacks.
|
|
*/
|
|
|
|
/* Command Center shell.
|
|
* Animation durations use --duration-* tokens only (never --transition-*).
|
|
*/
|
|
|
|
.command-center {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
min-height: 0;
|
|
inline-size: 100%;
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
/*
|
|
FNXC:CommandCenter 2026-06-17-00:00:
|
|
The Command Center must remain scrollable on mobile inside the overflow-hidden .project-content flex parent. Keep the header and tablist pinned while .cc-tabpanel owns vertical scrolling and safe-area bottom clearance.
|
|
*/
|
|
.cc-header {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.cc-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
margin: 0;
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
/* ---- Tabs ---- */
|
|
.cc-tablist {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-1);
|
|
border-bottom: var(--border-width) solid var(--border-subtle);
|
|
}
|
|
|
|
.cc-tab {
|
|
appearance: none;
|
|
background: none;
|
|
border: none;
|
|
border-bottom: var(--border-width-thick) solid transparent;
|
|
color: var(--text-muted);
|
|
padding: var(--space-2) var(--space-3);
|
|
cursor: pointer;
|
|
font-size: var(--font-size-sm);
|
|
transition: color var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.cc-tab:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.cc-tab.active {
|
|
color: var(--text-primary);
|
|
border-bottom-color: var(--color-accent);
|
|
}
|
|
|
|
.cc-tabpanel {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-inline-size: 0;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
outline: none;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.cc-tabpanel {
|
|
padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0) + var(--standalone-bottom-gap));
|
|
}
|
|
}
|
|
|
|
/* ---- Overview ---- */
|
|
.cc-overview {
|
|
min-inline-size: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.cc-stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
/*
|
|
FNXC:CommandCenterStyling 2026-06-18-00:00:
|
|
Command Center chart/stat surfaces share one tokenized card rhythm so new chart areas do not drift in border, radius, or spacing when Team/System/agent-runs render together (FN-6664).
|
|
*/
|
|
.cc-stat-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
min-inline-size: 0;
|
|
padding: var(--space-3);
|
|
border: var(--border-width) solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface-1);
|
|
}
|
|
|
|
.cc-stat-label {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cc-stat-value {
|
|
font-size: var(--font-size-xl);
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.cc-stat-card--gauge {
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
/*
|
|
FNXC:CommandCenterGithub 2026-06-18-19:27:
|
|
The GitHub closed-at backfill control lives inside the existing Fixed by Fusion card and must use tokenized spacing/status colors so the operator result row stays readable on desktop and mobile without creating a separate layout surface.
|
|
*/
|
|
.cc-github-backfill-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.cc-github-backfill-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-xs);
|
|
}
|
|
|
|
.cc-github-backfill-status--error {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.cc-github-backfill-status--warning {
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.cc-github-backfill-actions {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cc-github-backfill-actions .btn {
|
|
justify-content: center;
|
|
inline-size: 100%;
|
|
}
|
|
}
|
|
|
|
/*
|
|
FNXC:CommandCenterStyling 2026-06-18-00:00:
|
|
Command Center live/chart containers must shrink inside the mobile tabpanel without creating a second scroll owner or clipping chart height (FN-6664).
|
|
*/
|
|
.cc-live-strip {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: minmax(10rem, 1fr) minmax(16rem, 2fr) minmax(10rem, 1fr);
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-3);
|
|
border: var(--border-width) solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
background:
|
|
linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent),
|
|
var(--surface-1);
|
|
box-shadow: 0 0 var(--space-4) color-mix(in srgb, var(--color-accent) 18%, transparent);
|
|
overflow: hidden;
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.cc-live-strip::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 24%, transparent), transparent);
|
|
opacity: 0.45;
|
|
transform: translateX(-100%);
|
|
animation: cc-live-signal-sweep calc(var(--duration-slow) * 8) linear infinite;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cc-live-strip-heading,
|
|
.cc-live-strip-metrics,
|
|
.cc-live-trend {
|
|
min-inline-size: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.cc-live-strip-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.cc-live-strip-label {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cc-live-strip-metrics {
|
|
min-inline-size: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.cc-live-metric {
|
|
min-inline-size: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
min-inline-size: 0;
|
|
padding: var(--space-2);
|
|
border-radius: var(--radius-sm);
|
|
background: color-mix(in srgb, var(--surface-2) 70%, transparent);
|
|
animation: cc-live-signal-pulse calc(var(--duration-slow) * 6) ease-in-out infinite;
|
|
}
|
|
|
|
.cc-live-metric-value {
|
|
color: var(--text-primary);
|
|
font-size: var(--font-size-lg);
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/*
|
|
FNXC:CommandCenterTokens 2026-06-18-15:14:
|
|
Overview token totals now live-poll and should visibly count up on change in both the stat card and live strip. The animation is decorative and must be disabled for reduced-motion users.
|
|
*/
|
|
.cc-token-count-live {
|
|
animation: cc-token-count-pop var(--duration-normal) ease-out both;
|
|
}
|
|
|
|
@keyframes cc-token-count-pop {
|
|
from {
|
|
transform: translateY(var(--space-1));
|
|
opacity: 0.7;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.cc-live-metric-label,
|
|
.cc-live-trend-label {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-xs);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.cc-live-trend {
|
|
min-inline-size: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.cc-live-trend .cc-sparkline {
|
|
block-size: var(--space-10);
|
|
}
|
|
|
|
.cc-live-trend .cc-sparkline-bar {
|
|
box-shadow: 0 0 var(--space-2) color-mix(in srgb, var(--color-accent) 28%, transparent);
|
|
animation: cc-live-signal-pulse calc(var(--duration-slow) * 5) ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes cc-live-signal-sweep {
|
|
from {
|
|
transform: translateX(-100%);
|
|
}
|
|
to {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
|
|
@keyframes cc-live-signal-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 0.78;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cc-live-strip::before,
|
|
.cc-live-metric,
|
|
.cc-live-trend .cc-sparkline-bar,
|
|
.cc-token-count-live {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/*
|
|
FNXC:CommandCenterStyling 2026-06-18-00:00:
|
|
Overview charts must use dashboard tokens only and keep motion decorative; animations use --duration-* values and are disabled for reduced-motion users so the graph-rich snapshot does not violate accessibility or the mobile scroll contract.
|
|
*/
|
|
.cc-overview-charts {
|
|
min-inline-size: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: var(--space-3);
|
|
align-items: stretch;
|
|
}
|
|
|
|
.cc-overview-chart-card {
|
|
min-inline-size: 0;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
min-inline-size: 0;
|
|
padding: var(--space-3);
|
|
border: var(--border-width) solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
background:
|
|
linear-gradient(145deg, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent),
|
|
var(--surface-1);
|
|
box-shadow: 0 0 var(--space-4) color-mix(in srgb, var(--color-accent) 12%, transparent);
|
|
overflow: hidden;
|
|
animation: cc-overview-chart-rise var(--duration-normal) ease-out both;
|
|
}
|
|
|
|
.cc-overview-chart-card--trend {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.cc-overview-chart-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
animation: cc-overview-chart-sheen calc(var(--duration-slow) * 7) ease-in-out infinite;
|
|
}
|
|
|
|
.cc-overview-chart-header {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.cc-overview-chart-header p {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.cc-overview-chart-card .cc-bar-chart,
|
|
.cc-overview-chart-card .cc-sparkline {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.cc-overview-chart-card .cc-sparkline {
|
|
block-size: var(--space-16);
|
|
}
|
|
|
|
.cc-overview-chart-card .cc-bar-fill,
|
|
.cc-overview-chart-card .cc-sparkline-bar {
|
|
box-shadow: 0 0 var(--space-2) color-mix(in srgb, var(--color-accent) 30%, transparent);
|
|
}
|
|
|
|
@keyframes cc-overview-chart-rise {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(var(--space-2));
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes cc-overview-chart-sheen {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateX(-100%);
|
|
}
|
|
45%,
|
|
55% {
|
|
opacity: 0.35;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cc-overview-chart-card,
|
|
.cc-overview-chart-card::before {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.cc-live-strip {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.cc-live-strip-metrics {
|
|
min-inline-size: 0;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.cc-overview-charts {
|
|
min-inline-size: 0;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.cc-overview-chart-card--trend {
|
|
grid-column: auto;
|
|
}
|
|
}
|
|
|
|
/* ---- States ---- */
|
|
.cc-loading,
|
|
.cc-error,
|
|
.cc-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-2);
|
|
padding: var(--space-6);
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.cc-error {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.cc-loading .cc-chart-skeleton {
|
|
block-size: var(--space-4);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface-2);
|
|
animation: cc-shell-pulse var(--duration-slow) ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes cc-shell-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 0.4;
|
|
}
|
|
50% {
|
|
opacity: 0.9;
|
|
}
|
|
}
|