- Durable Job Inbox: every async submit is journaled to the shared sqlite store and survives ComfyUI restarts; the Fal Job Inbox node lists pending/collected jobs and outputs the newest pending request_id/endpoint for one-wire recovery via Result by Request ID. - Provenance: Fal Save Media from URL writes a <file>.fal.json sidecar and embeds a fal_provenance PNG text chunk (preserving existing text chunks and ICC profiles), returning the request_id as a second output; new Fal Provenance from File node reads saved files back into endpoint_id + request_id for free re-materialization. - First web extension (web/ + /fal_api server routes): per-node cost pills rendered above every priced fal node (live estimates on free-typed endpoint fields), a fal sidebar tab with session spend, account balance and a job list with copy/cancel, and in-canvas endpoint search with price labels. All features degrade silently on older frontends; routes are exception-guarded and cached. Review fixes: PNG provenance embed preserves source text chunks and ICC profile; jobs route limit clamped. 15 new tests (91 total).
191 lines
3.0 KiB
CSS
191 lines
3.0 KiB
CSS
/* fal platform extension styles: sidebar panel + endpoint suggestions. */
|
|
|
|
.fal-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
color: #ece9fd;
|
|
}
|
|
|
|
.fal-panel-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.fal-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 10px;
|
|
border: 1px solid rgba(167, 139, 250, 0.25);
|
|
border-radius: 8px;
|
|
background: rgba(12, 12, 18, 0.6);
|
|
}
|
|
|
|
.fal-stat {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.fal-stat-label {
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.fal-stat-value {
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.fal-jobs-header {
|
|
font-weight: 600;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.fal-jobs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
overflow-y: auto;
|
|
max-height: 60vh;
|
|
}
|
|
|
|
.fal-job {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.fal-job-icon {
|
|
flex: none;
|
|
}
|
|
|
|
.fal-job-info {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.fal-job-endpoint {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.fal-job-meta {
|
|
font-size: 10px;
|
|
opacity: 0.6;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fal-job-meta:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.fal-job-cancel {
|
|
flex: none;
|
|
padding: 2px 8px;
|
|
border: 1px solid rgba(248, 113, 113, 0.5);
|
|
border-radius: 5px;
|
|
background: transparent;
|
|
color: #fca5a5;
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fal-job-cancel:hover {
|
|
background: rgba(248, 113, 113, 0.15);
|
|
}
|
|
|
|
.fal-jobs-empty {
|
|
padding: 6px 2px;
|
|
}
|
|
|
|
.fal-muted {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
/* Floating fallback when no sidebar API is available. */
|
|
|
|
.fal-floating {
|
|
position: fixed;
|
|
right: 14px;
|
|
bottom: 14px;
|
|
z-index: 10000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.fal-floating-toggle {
|
|
padding: 6px 14px;
|
|
border: 1px solid rgba(167, 139, 250, 0.5);
|
|
border-radius: 999px;
|
|
background: rgba(12, 12, 18, 0.92);
|
|
color: #ece9fd;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fal-floating-panel {
|
|
width: 300px;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
border: 1px solid rgba(167, 139, 250, 0.3);
|
|
border-radius: 10px;
|
|
background: rgba(12, 12, 18, 0.95);
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
/* Endpoint autocomplete popup. */
|
|
|
|
.fal-suggest {
|
|
position: fixed;
|
|
z-index: 10001;
|
|
width: 380px;
|
|
max-height: 320px;
|
|
overflow-y: auto;
|
|
border: 1px solid rgba(167, 139, 250, 0.35);
|
|
border-radius: 8px;
|
|
background: rgba(12, 12, 18, 0.97);
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
|
|
font-size: 12px;
|
|
color: #ece9fd;
|
|
}
|
|
|
|
.fal-suggest-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fal-suggest-item:hover {
|
|
background: rgba(167, 139, 250, 0.15);
|
|
}
|
|
|
|
.fal-suggest-title {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.fal-suggest-endpoint {
|
|
font-size: 10px;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.fal-suggest-price {
|
|
font-size: 10px;
|
|
color: #c4b5fd;
|
|
}
|