feat: store thumbnails in project mounts with legacy fallback
- Add thumbnail upload, lookup, deletion, and scratch-fetch helpers - Distinguish missing mounts from other listing failures
This commit is contained in:
1 parent
483a1a278b
commit
6aec03fb3d
16 files changed
+846
-126
No files matched your search
+329
-10
@@ -203,8 +203,10 @@ html[data-wide-layout='true'] .sc-header {
|
||||
}
|
||||
|
||||
/* The About item falls back to an <a> when no onAbout handler is wired, unlike the other
|
||||
button-based items - without this, the browser's default a:visited color (higher specificity
|
||||
than the class color above) makes it drift from the other dropdown items' color once clicked. */
|
||||
button-based items - without this, the browser's default a:link/a:visited color (higher
|
||||
specificity than the class color above) makes it drift from the other dropdown items' color,
|
||||
both before and after it's been clicked. */
|
||||
.sc-profile-menu-item:link,
|
||||
.sc-profile-menu-item:visited {
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
@@ -279,6 +281,12 @@ html[data-wide-layout='true'] .sc-header {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.sc-badge[data-variant="primary"] {
|
||||
color: var(--sc-primary-fg);
|
||||
background: var(--sc-primary);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.sc-badge[data-variant="success"] {
|
||||
color: var(--sc-success-fg);
|
||||
background: var(--sc-success);
|
||||
@@ -302,7 +310,7 @@ html[data-wide-layout='true'] .sc-header {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
min-height: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding: 0.625rem 1rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--sc-radius-md);
|
||||
@@ -374,17 +382,207 @@ html[data-wide-layout='true'] .sc-header {
|
||||
background: var(--sc-danger-hover);
|
||||
}
|
||||
|
||||
.sc-button-outline {
|
||||
color: var(--sc-fg);
|
||||
background: transparent;
|
||||
border-color: var(--sc-border);
|
||||
}
|
||||
|
||||
.sc-button-outline:hover:not(:disabled) {
|
||||
background: var(--sc-surface-hover);
|
||||
}
|
||||
|
||||
.sc-button-sm {
|
||||
min-height: 2rem;
|
||||
height: 2.5rem;
|
||||
padding: 0.45rem 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.sc-button-lg {
|
||||
min-height: 2.875rem;
|
||||
height: 2.5rem;
|
||||
padding: 0.75rem 1.25rem;
|
||||
}
|
||||
|
||||
.sc-button-icon {
|
||||
height: 2.5rem;
|
||||
width: 2.5rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sc-empty-state {
|
||||
display: flex;
|
||||
min-height: 10rem;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
padding: 2rem 1.25rem;
|
||||
text-align: center;
|
||||
border: 1px dashed var(--sc-border);
|
||||
border-radius: var(--sc-radius-lg);
|
||||
background: color-mix(in srgb, var(--sc-surface) 50%, transparent);
|
||||
}
|
||||
|
||||
.sc-empty-state-icon {
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
|
||||
.sc-empty-state-title {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
color: var(--sc-fg);
|
||||
}
|
||||
|
||||
.sc-empty-state-message {
|
||||
margin: 0.25rem 0 0;
|
||||
max-width: 24rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
|
||||
.sc-section-title {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.sc-section-title h2 {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 650;
|
||||
color: var(--sc-fg);
|
||||
}
|
||||
|
||||
.sc-section-title p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sc-metric {
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--sc-border);
|
||||
border-radius: var(--sc-radius-lg);
|
||||
background: var(--sc-surface);
|
||||
}
|
||||
|
||||
.sc-metric-label {
|
||||
margin: 0;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
|
||||
.sc-metric-value {
|
||||
margin: 0.5rem 0 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--sc-fg);
|
||||
}
|
||||
|
||||
.sc-metric-value[data-variant="primary"] {
|
||||
color: var(--sc-primary);
|
||||
}
|
||||
|
||||
.sc-metric-value[data-variant="success"] {
|
||||
color: var(--sc-success);
|
||||
}
|
||||
|
||||
.sc-metric-value[data-variant="warning"] {
|
||||
color: var(--sc-warning);
|
||||
}
|
||||
|
||||
.sc-metric-value[data-variant="danger"] {
|
||||
color: var(--sc-danger);
|
||||
}
|
||||
|
||||
.sc-metric-detail {
|
||||
margin: 0.25rem 0 0;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
|
||||
.sc-status-icon {
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
|
||||
.sc-status-summary[data-level="healthy"] .sc-status-icon,
|
||||
.sc-status-summary[data-level="healthy"] .sc-status-summary-label {
|
||||
color: var(--sc-success);
|
||||
}
|
||||
|
||||
.sc-status-summary[data-level="degraded"] .sc-status-icon,
|
||||
.sc-status-summary[data-level="degraded"] .sc-status-summary-label {
|
||||
color: var(--sc-warning);
|
||||
}
|
||||
|
||||
.sc-status-summary[data-level="offline"] .sc-status-icon,
|
||||
.sc-status-summary[data-level="offline"] .sc-status-summary-label {
|
||||
color: var(--sc-danger);
|
||||
}
|
||||
|
||||
.sc-status-spin {
|
||||
animation: sc-spin 900ms linear infinite;
|
||||
}
|
||||
|
||||
@keyframes sc-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.sc-status-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
padding: 0.75rem;
|
||||
border: 1px solid var(--sc-border);
|
||||
border-radius: var(--sc-radius-md);
|
||||
background: var(--sc-surface);
|
||||
}
|
||||
|
||||
.sc-status-summary-label {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.sc-status-summary-time {
|
||||
margin-left: auto;
|
||||
font-size: 0.75rem;
|
||||
color: var(--sc-muted-fg);
|
||||
}
|
||||
|
||||
.sc-status-probes {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.sc-status-probe {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid var(--sc-border);
|
||||
border-radius: var(--sc-radius-sm);
|
||||
}
|
||||
|
||||
.sc-status-probe span[data-ok="true"] {
|
||||
color: var(--sc-success);
|
||||
}
|
||||
|
||||
.sc-status-probe span[data-ok="false"] {
|
||||
color: var(--sc-danger);
|
||||
}
|
||||
|
||||
.sc-status-service {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.sc-button-full {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -474,7 +672,6 @@ html[data-wide-layout='true'] .sc-header {
|
||||
.sc-select,
|
||||
.sc-textarea {
|
||||
width: 100%;
|
||||
min-height: 2.6rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
color: var(--sc-fg);
|
||||
background: var(--sc-bg);
|
||||
@@ -486,6 +683,11 @@ html[data-wide-layout='true'] .sc-header {
|
||||
box-shadow 140ms ease;
|
||||
}
|
||||
|
||||
.sc-input,
|
||||
.sc-select {
|
||||
height: 2.5rem;
|
||||
}
|
||||
|
||||
.sc-textarea {
|
||||
min-height: 7rem;
|
||||
resize: vertical;
|
||||
@@ -597,12 +799,51 @@ html[data-wide-layout='true'] .sc-header {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.sc-user-last-login {
|
||||
flex-shrink: 0;
|
||||
font-size: 0.8rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sc-user-actions {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.sc-user-roles-summary {
|
||||
max-width: 12rem;
|
||||
overflow: hidden;
|
||||
font-size: 0.8rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sc-user-roles {
|
||||
display: flex;
|
||||
flex: 1 1 100%;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem 1rem;
|
||||
margin: 0;
|
||||
padding: 0.5rem 0.7rem;
|
||||
border: 1px solid var(--sc-border);
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.sc-user-roles legend {
|
||||
flex-basis: 100%;
|
||||
margin-bottom: 0.3rem;
|
||||
color: var(--sc-muted-fg);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.sc-user-role-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.sc-user-edit-row {
|
||||
align-items: stretch;
|
||||
flex-wrap: wrap;
|
||||
@@ -628,6 +869,81 @@ html[data-wide-layout='true'] .sc-header {
|
||||
}
|
||||
}
|
||||
|
||||
.sc-pagination {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.sc-pagination-page-size {
|
||||
width: auto;
|
||||
height: 2.5rem;
|
||||
padding: 0.375rem 0.6rem;
|
||||
color: var(--sc-fg);
|
||||
background: var(--sc-bg);
|
||||
border: 1px solid var(--sc-border);
|
||||
border-radius: var(--sc-radius-sm);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.sc-pagination-info {
|
||||
margin: 0;
|
||||
color: var(--sc-muted-fg);
|
||||
font-size: 0.8rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sc-pagination-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.sc-pagination-button {
|
||||
display: grid;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
place-items: center;
|
||||
color: var(--sc-muted-fg);
|
||||
background: transparent;
|
||||
border: 1px solid var(--sc-border);
|
||||
border-radius: var(--sc-radius-sm);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
color 140ms ease,
|
||||
background 140ms ease,
|
||||
border-color 140ms ease;
|
||||
}
|
||||
|
||||
.sc-pagination-button:hover:not(:disabled) {
|
||||
color: var(--sc-fg);
|
||||
background: var(--sc-surface-hover);
|
||||
}
|
||||
|
||||
.sc-pagination-button:focus-visible {
|
||||
outline: 3px solid color-mix(in srgb, var(--sc-ring) 45%, transparent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.sc-pagination-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.sc-pagination {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sc-pagination-controls {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sc-auth-page {
|
||||
display: grid;
|
||||
min-height: 100vh;
|
||||
@@ -723,9 +1039,11 @@ html[data-wide-layout='true'] .sc-header {
|
||||
}
|
||||
|
||||
.sc-notification {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.625rem;
|
||||
min-width: 0;
|
||||
padding: 0.875rem 1rem;
|
||||
color: var(--sc-fg);
|
||||
background: var(--sc-surface-raised);
|
||||
@@ -733,8 +1051,6 @@ html[data-wide-layout='true'] .sc-header {
|
||||
border-radius: var(--sc-radius-md);
|
||||
box-shadow: var(--sc-shadow-lg);
|
||||
pointer-events: auto;
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sc-notification + .sc-notification {
|
||||
@@ -746,7 +1062,6 @@ html[data-wide-layout='true'] .sc-header {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
.sc-notification-icon {
|
||||
flex: 0 0 auto;
|
||||
margin-top: 0.125rem;
|
||||
@@ -771,10 +1086,10 @@ html[data-wide-layout='true'] .sc-header {
|
||||
|
||||
.sc-notification-message {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.45;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@@ -909,8 +1224,12 @@ html[data-wide-layout='true'] .sc-header {
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
|
||||
/* top is pinned explicitly: with it unset, the button's static-position offset is
|
||||
recomputed from the flex-wrap layout, which changes height once .sc-nav wraps onto
|
||||
its own row on open - so the button visibly jumps vertically on click. */
|
||||
.sc-mobile-menu-button {
|
||||
position: absolute;
|
||||
top: 0.75rem;
|
||||
left: 50%;
|
||||
display: grid;
|
||||
order: 3;
|
||||
|
||||
Reference in new issue
Block a user