Add a since-you-last-looked summary, 30-day uptime ribbons, a maintenance timeline and hover timestamps

- Dashboard card on what changed since the user pressed Got it (users.last_looked_at,
  migration 0021), folding each problem and its recovery into one line.
- Uptime ribbons on servers and integrations, built from the audit log; integrations'
  failing/working-again moments are now recorded.
- Timeline of running and scheduled maintenance windows on the Maintenance page.
- TimeAgo component: relative times with the exact time in the chosen format on hover.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-16 21:55:04 +02:00
1 parent 3945c60681
commit 906220040e
32 files changed
+3380 -15

No files matched your search

+153
View File
@@ -492,6 +492,159 @@ main:focus {
border-bottom: 0;
}
/* ── Uptime ribbon: one bar per day for the last 30 days. ── */
.uptime {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
max-width: 260px;
}
/* The bars share whatever width there is, so the strip fits a narrow card as well as a table cell. */
.uptime-ribbon {
display: flex;
flex: 1 1 auto;
min-width: 60px;
gap: 1px;
height: 18px;
align-items: stretch;
}
.uptime-ribbon > i {
display: block;
flex: 1 1 0;
min-width: 1px;
border-radius: 1px;
}
.table .uptime {
min-width: 190px;
}
.uptime-up {
background: var(--tblr-green);
}
.uptime-some {
background: var(--tblr-yellow);
}
.uptime-down {
background: var(--tblr-red);
}
.uptime-none {
background: var(--tblr-border-color);
}
.uptime-percent {
font-size: 0.8125rem;
white-space: nowrap;
color: var(--tblr-secondary);
}
/* ── Maintenance timeline: windows along a time axis, one row per target. ── */
.timeline-scroll {
overflow: auto;
max-height: 420px;
}
.timeline {
min-width: 640px;
}
.timeline-row {
display: flex;
align-items: center;
min-height: 28px;
border-bottom: 1px solid var(--tblr-border-color);
}
.timeline-label {
flex: 0 0 160px;
padding-right: 0.75rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.8125rem;
position: sticky;
left: 0;
z-index: 2;
background: var(--tblr-card-bg, var(--tblr-bg-surface));
}
.timeline-track {
position: relative;
flex: 1;
height: 28px;
}
.timeline-axis {
position: sticky;
top: 0;
z-index: 3;
background: var(--tblr-card-bg, var(--tblr-bg-surface));
}
.timeline-axis .timeline-track {
height: 22px;
}
.timeline-tick {
position: absolute;
top: 4px;
padding-left: 3px;
font-size: 0.7rem;
color: var(--tblr-secondary);
white-space: nowrap;
}
.timeline-grid {
position: absolute;
top: 0;
bottom: 0;
width: 1px;
background: var(--tblr-border-color);
}
.timeline-bar,
.timeline-key {
border-radius: 3px;
}
.timeline-bar {
position: absolute;
top: 6px;
bottom: 6px;
min-width: 3px;
}
.timeline-key {
display: inline-block;
width: 1.25rem;
height: 0.7rem;
vertical-align: middle;
}
.timeline-bar-running {
background-color: var(--tblr-blue);
}
.timeline-bar-scheduled {
background-color: color-mix(in srgb, var(--tblr-blue) 25%, transparent);
border: 1px solid var(--tblr-blue);
}
.timeline-bar-union {
background-color: var(--tblr-orange);
}
/* Windows mirrored from Uptime Kuma's own schedule get diagonal stripes on top of their colour. */
.timeline-bar-mirrored {
background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0 3px, transparent 3px 6px);
}
/* ── The wall display: a full-screen status board, big enough to read across a room. ── */
.wall {
display: flex;