feat(platform): add trip replay workbench

This commit is contained in:
lingniu
2026-07-05 13:55:25 +08:00
parent 46a1b8c3a8
commit c7866b3ad2
3 changed files with 311 additions and 15 deletions

View File

@@ -4059,6 +4059,191 @@ button.vp-realtime-command-item:focus-visible {
gap: 10px;
}
.vp-trip-workbench {
margin-top: 16px;
overflow: hidden;
border-color: rgba(22, 100, 255, 0.18);
}
.vp-trip-workbench .semi-card-body {
display: grid;
grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.72fr);
min-height: 560px;
background: #ffffff;
}
.vp-trip-workbench-map {
position: relative;
min-width: 0;
min-height: 560px;
background: #eef5ff;
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
}
.vp-trip-workbench-copy {
position: absolute;
z-index: 2;
left: 22px;
top: 22px;
max-width: 620px;
padding: 16px;
border: 1px solid rgba(22, 100, 255, 0.16);
border-radius: var(--vp-radius);
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
display: grid;
gap: 11px;
}
.vp-trip-workbench-copy .semi-typography {
font-size: 14px;
line-height: 22px;
}
.vp-trip-workbench-map-canvas {
min-height: 430px;
height: 430px;
}
.vp-trip-workbench-facts {
min-height: 130px;
padding: 14px;
border-top: 1px solid rgba(22, 100, 255, 0.14);
background: #ffffff;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.vp-trip-workbench-fact {
min-height: 102px;
padding: 12px;
border: 1px solid var(--vp-border);
border-radius: var(--vp-radius);
background: #fbfcff;
color: inherit;
text-align: left;
cursor: pointer;
font: inherit;
display: grid;
gap: 8px;
align-content: start;
}
.vp-trip-workbench-fact:hover,
.vp-trip-workbench-fact:focus-visible,
.vp-trip-action:hover,
.vp-trip-action:focus-visible {
border-color: rgba(22, 100, 255, 0.42);
background: #f5f9ff;
outline: none;
}
.vp-trip-workbench-fact strong {
color: var(--vp-text);
font-size: 21px;
line-height: 27px;
font-weight: 700;
}
.vp-trip-workbench-fact span {
color: var(--vp-text-muted);
font-size: 12px;
line-height: 18px;
}
.vp-trip-workbench-side {
min-width: 0;
padding: 18px;
border-left: 1px solid var(--vp-border);
background: #f8fbff;
display: grid;
gap: 14px;
align-content: start;
}
.vp-trip-current-card {
padding: 12px;
border: 1px solid rgba(22, 100, 255, 0.18);
border-radius: var(--vp-radius);
background: #ffffff;
display: grid;
gap: 10px;
}
.vp-trip-current-metrics {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.vp-trip-current-metrics span {
min-height: 54px;
padding: 9px;
border: 1px solid var(--vp-border);
border-radius: 7px;
background: #fbfcff;
color: var(--vp-text-muted);
font-size: 12px;
line-height: 18px;
display: grid;
gap: 3px;
}
.vp-trip-current-metrics strong {
color: var(--vp-text);
font-size: 14px;
line-height: 20px;
}
.vp-trip-actions {
display: grid;
gap: 9px;
}
.vp-trip-action {
min-height: 92px;
padding: 12px;
border: 1px solid var(--vp-border);
border-radius: var(--vp-radius);
background: #ffffff;
color: inherit;
text-align: left;
cursor: pointer;
font: inherit;
display: grid;
gap: 7px;
align-content: start;
}
.vp-trip-action:disabled {
cursor: not-allowed;
opacity: 0.58;
}
.vp-trip-action strong {
color: var(--vp-text);
font-size: 16px;
line-height: 22px;
font-weight: 700;
word-break: break-word;
}
.vp-trip-action span {
color: var(--vp-text-muted);
font-size: 12px;
line-height: 18px;
}
.vp-trip-action em {
color: var(--vp-primary);
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 18px;
}
.vp-trajectory-impact-board {
display: grid;
grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
@@ -5714,6 +5899,8 @@ button.vp-realtime-command-item:focus-visible {
.vp-bi-publish-grid,
.vp-stat-audit-board,
.vp-stat-audit-grid,
.vp-trip-workbench .semi-card-body,
.vp-trip-workbench-facts,
.vp-trajectory-decision-board,
.vp-trajectory-decision-grid,
.vp-trajectory-anomaly-grid,
@@ -5758,6 +5945,26 @@ button.vp-realtime-command-item:focus-visible {
height: 460px;
}
.vp-trip-workbench-map {
min-height: 0;
}
.vp-trip-workbench-copy {
position: static;
max-width: none;
margin: 14px;
}
.vp-trip-workbench-map-canvas {
min-height: 320px;
height: 320px;
}
.vp-trip-workbench-side {
border-left: 0;
border-top: 1px solid var(--vp-border);
}
.vp-fleet-monitor-map {
min-height: 0;
}