feat: v0.10.0 — right Jobs & Market pane (contracts accept/dispatch, market buy/sell/refuel with live previews); catalog + economy constants exposed in /api/state; shared applySnapshot for instant action feedback

This commit is contained in:
2026-09-17 19:18:42 +00:00
parent 03653fc50e
commit cf811dcf4d
15 changed files with 894 additions and 14 deletions
+90
View File
@@ -240,3 +240,93 @@ body {
text-align: right;
font-variant-numeric: tabular-nums;
}
/* v0.10.0 — right Jobs & Market pane (contracts + market) */
.contract-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.contract-row {
background: rgba(30, 41, 59, 0.6);
border-radius: 6px;
padding: 8px;
}
.contract-main {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.contract-route {
font-weight: 600;
color: #f1f5f9;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.contract-sub {
display: flex;
justify-content: space-between;
gap: 8px;
margin-top: 4px;
font-size: 11px;
color: #cbd5e1;
font-variant-numeric: tabular-nums;
}
.pane-btn {
flex-shrink: 0;
font-size: 12px;
padding: 3px 10px;
border-radius: 4px;
border: 1px solid rgba(148, 163, 184, 0.4);
background: rgba(30, 41, 59, 0.9);
color: #e2e8f0;
cursor: pointer;
}
.pane-btn:disabled {
opacity: 0.5;
cursor: default;
}
.dispatch-controls select,
.market-row select {
font-size: 12px;
padding: 3px 6px;
border-radius: 4px;
border: 1px solid rgba(148, 163, 184, 0.4);
background: #1e293b;
color: #e2e8f0;
max-width: 100%;
}
.dispatch-controls {
display: flex;
align-items: center;
gap: 6px;
margin-top: 6px;
}
.market-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding: 4px 0;
}
.market-preview {
font-size: 12px;
color: #f8fafc;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}