Standardize dashboard notices on a shared, token-driven banner shell. - Add a reusable Banner primitive with consistent tones, layouts, actions, and dismissal behavior. - Migrate dashboard notification banners away from bespoke shells and left accent borders. - Document and test banner styling invariants, including token-only CSS lengths and colors. - Add a patch changeset for the published dashboard bundle. Files changed: .changeset/fn-9202-banner-style-unification.md | 7 ++ docs/dashboard-guide.md | 4 + .../app/__tests__/banner-style-consistency.test.ts | 25 ++++ .../app/components/ApprovalNotificationBanner.css | 10 -- .../app/components/ApprovalNotificationBanner.tsx | 5 +- packages/dashboard/app/components/Banner.css | 81 ++++++++++++ packages/dashboard/app/components/Banner.tsx | 78 ++++++++++++ .../app/components/CapacityRiskBanner.css | 50 +------- .../app/components/CapacityRiskBanner.tsx | 39 +++--- .../app/components/CliBinaryInstallBanner.css | 126 ++----------------- .../app/components/CliBinaryInstallBanner.tsx | 14 +-- .../app/components/DbCorruptionBanner.css | 18 +-- .../app/components/DbCorruptionBanner.tsx | 5 +- .../app/components/EngineStatusBanner.css | 94 ++------------ .../app/components/EngineStatusBanner.tsx | 48 +++---- .../app/components/EngineUnavailableBanner.css | 42 +------ .../app/components/EngineUnavailableBanner.tsx | 21 ++-- .../app/components/MergeAdvanceNotice.css | 129 +++---------------- .../app/components/MergeAdvanceNotice.tsx | 36 +++--- .../app/components/MigrationInProgressBanner.css | 25 ---- .../app/components/MigrationInProgressBanner.tsx | 19 +-- .../app/components/OAuthReloginBanner.css | 53 +------- .../app/components/OAuthReloginBanner.tsx | 26 +--- .../app/components/SessionNotificationBanner.css | 16 +-- .../app/components/SessionNotificationBanner.tsx | 5 +- .../app/components/SetupWarningBanner.css | 106 +--------------- .../app/components/SetupWarningBanner.tsx | 31 +---- .../app/components/SqliteMigrationBanner.css | 40 +----- .../app/components/SqliteMigrationBanner.tsx | 33 ++--- .../app/components/TaskIdIntegrityBanner.css | 18 +-- .../app/components/TaskIdIntegrityBanner.tsx | 5 +- .../dashboard/app/components/TestModeBanner.css | 18 --- .../dashboard/app/components/TestModeBanner.tsx | 12 +- .../app/components/UpdateAvailableBanner.css | 139 +++------------------ .../app/components/UpdateAvailableBanner.tsx | 22 ++-- .../app/components/__tests__/Banner.test.tsx | 48 +++++++ 36 files changed, 450 insertions(+), 998 deletions(-) Fusion-Task-Id: FN-9202 Fusion-Task-Lineage: 14762201-55e5-4124-a897-9667c3a1ab84 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
85 lines
1.7 KiB
CSS
85 lines
1.7 KiB
CSS
/* === TaskIdIntegrityBanner === */
|
|
.task-id-integrity-banner { box-shadow: var(--shadow-md); }
|
|
.task-id-integrity-banner > .banner__copy { display: flex; flex-direction: column; gap: var(--space-md); }
|
|
|
|
.task-id-integrity-banner__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.task-id-integrity-banner__headline-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.task-id-integrity-banner__headline {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.task-id-integrity-banner__body,
|
|
.task-id-integrity-banner__footer,
|
|
.task-id-integrity-banner__error,
|
|
.task-id-integrity-banner__item-detail {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-id-integrity-banner__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
margin: 0;
|
|
padding-inline-start: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.task-id-integrity-banner__item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.task-id-integrity-banner__item-title {
|
|
color: var(--text);
|
|
}
|
|
|
|
.task-id-integrity-banner__ids {
|
|
font-family: var(--font-mono);
|
|
color: var(--text);
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh-icon--spinning {
|
|
animation: status-dot-pulse var(--duration-slow) ease-in-out infinite;
|
|
}
|
|
|
|
.task-id-integrity-banner__error {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.task-id-integrity-banner__header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|