feat: unify task and rule workbenches

This commit is contained in:
lingniu
2026-07-19 05:52:52 +08:00
parent 63b50732cb
commit 860978fad8
8 changed files with 439 additions and 37 deletions

View File

@@ -21068,3 +21068,330 @@
padding: 7px 8px;
}
}
/*
* Shared task and editor SideSheets.
* Task sheets prioritise progress and traceable output; editor sheets preserve
* a stable title/status boundary while the form owns its save action.
*/
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet) .semi-sidesheet-inner {
overflow: hidden;
border-left: 1px solid #d9e3ef;
background: #f4f7fb;
box-shadow: -22px 0 64px rgba(24, 43, 68, .16);
}
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet) .semi-sidesheet-header {
min-height: 78px;
border-bottom: 1px solid #dfe7f0;
background:
radial-gradient(circle at 10% 0%, rgba(18, 104, 243, .075), transparent 36%),
linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
padding: 13px 18px;
}
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet) .semi-sidesheet-title {
min-width: 0;
}
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet) .semi-sidesheet-close {
width: 36px;
height: 36px;
border-radius: 9px;
}
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet) .semi-sidesheet-body {
min-height: 0;
overflow: hidden;
background: #f4f7fb;
padding: 0;
}
.v2-workspace-task-sidesheet .v2-workspace-config-content {
padding: 12px;
}
.v2-workspace-editor-sidesheet .v2-workspace-config-content {
overflow: hidden;
padding: 0;
}
.v2-workspace-editor-sidesheet .v2-workspace-config-body,
.v2-workspace-editor-sidesheet .v2-workspace-config-content {
width: 100%;
}
.v2-workspace-editor-sidesheet .v2-workspace-config-content > .semi-card {
width: 100%;
height: 100%;
border: 0;
border-radius: 0;
box-shadow: none;
}
.v2-history-export-sidesheet .v2-export-jobs.semi-card {
min-height: 100%;
border-color: #dce5ef;
border-radius: 12px;
box-shadow: 0 9px 28px rgba(31, 53, 80, .065);
}
.v2-export-job-overview {
display: grid;
min-height: 88px;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1px;
border-bottom: 1px solid #e1e8f1;
background: #e1e8f1;
}
.v2-export-job-overview > span {
position: relative;
display: grid;
min-width: 0;
align-content: center;
gap: 3px;
background: #fff;
padding: 12px 13px;
}
.v2-export-job-overview > span::before {
position: absolute;
inset: 0 auto 0 0;
width: 2px;
background: transparent;
content: '';
}
.v2-export-job-overview > span.is-active::before { background: #1268f3; }
.v2-export-job-overview > span.is-completed::before { background: #18a76f; }
.v2-export-job-overview > span.is-failed::before { background: #e95a52; }
.v2-export-job-overview small {
color: #7f8ea1;
font-size: 10px;
font-weight: 650;
}
.v2-export-job-overview strong {
color: #243950;
font-size: 21px;
font-weight: 760;
font-variant-numeric: tabular-nums;
line-height: 1.15;
}
.v2-export-job-overview > span.is-active strong { color: #1268f3; }
.v2-export-job-overview > span.is-completed strong { color: #14865c; }
.v2-export-job-overview > span.is-failed strong { color: #c8423b; }
.v2-export-job-overview em {
overflow: hidden;
color: #98a3b2;
font-size: 8px;
font-style: normal;
text-overflow: ellipsis;
white-space: nowrap;
}
.v2-history-export-sidesheet .v2-export-job-list {
max-height: none;
padding: 11px;
}
.v2-history-export-sidesheet .v2-export-job-list > .semi-card-group {
gap: 9px;
}
.v2-history-export-sidesheet .v2-export-job-card.semi-card {
border-radius: 10px;
box-shadow: 0 5px 16px rgba(30, 50, 74, .045);
}
.v2-history-export-sidesheet .v2-export-job-card > .semi-card-header {
min-height: 44px;
padding-inline: 12px;
}
.v2-history-export-sidesheet .v2-export-job-name {
max-width: 310px;
color: #32475f;
font-size: 12px;
}
.v2-history-export-sidesheet .v2-export-job-card > .semi-card-header .semi-tag {
min-height: 23px;
font-size: 9px;
}
.v2-history-export-sidesheet .v2-export-job-card > .semi-card-body {
gap: 8px;
padding: 11px 12px;
}
.v2-history-export-sidesheet .v2-export-job-summary {
gap: 5px;
}
.v2-history-export-sidesheet .v2-export-job-summary > span {
display: flex;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.v2-history-export-sidesheet .v2-export-job-summary strong {
color: #354b63;
font-size: 12px;
}
.v2-history-export-sidesheet .v2-export-job-summary small {
font-size: 9px;
}
.v2-history-export-sidesheet .v2-export-job-card .v2-export-download.semi-button {
min-width: 66px;
height: 30px;
flex: 0 0 auto;
justify-content: center;
border-radius: 7px;
background: #edf5ff;
font-size: 10px;
}
.v2-rule-form-sections {
display: grid;
gap: 12px;
background: #f5f7fa;
padding: 14px 15px 18px;
}
.v2-rule-form-section {
overflow: hidden;
border: 1px solid #dce5ef;
border-radius: 11px;
background: #fff;
box-shadow: 0 6px 20px rgba(31, 53, 80, .045);
}
.v2-rule-form-section > header {
min-height: 54px;
border-bottom: 1px solid #e5ebf2;
background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
padding: 10px 13px;
}
.v2-rule-form-section > header > span {
display: grid;
gap: 3px;
}
.v2-rule-form-section > header h6.semi-typography {
margin: 0;
color: #2a4058;
font-size: 13px;
font-weight: 720;
}
.v2-rule-form-section > header small {
color: #8390a2;
font-size: 10px;
line-height: 1.45;
}
.v2-rule-form-section > .v2-rule-form-grid {
gap: 13px 15px;
padding: 14px;
}
@media (max-width: 680px) {
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet).semi-sidesheet-bottom .semi-sidesheet-inner {
width: 100% !important;
max-width: 100%;
border: 1px solid #d8e2ed;
border-bottom: 0;
border-radius: 18px 18px 0 0;
box-shadow: 0 -18px 48px rgba(23, 43, 68, .18);
padding-bottom: env(safe-area-inset-bottom);
}
:is(.v2-workspace-task-sidesheet, .v2-workspace-editor-sidesheet).semi-sidesheet-bottom .semi-sidesheet-header {
min-height: 70px;
padding: 10px 12px 10px 14px;
}
.v2-workspace-task-sidesheet .v2-workspace-config-content {
padding: 8px;
}
.v2-export-job-overview {
min-height: 72px;
}
.v2-export-job-overview > span {
gap: 2px;
padding: 9px 10px;
}
.v2-export-job-overview small {
font-size: 8px;
}
.v2-export-job-overview strong {
font-size: 17px;
}
.v2-export-job-overview em {
font-size: 7px;
}
.v2-history-export-sidesheet .v2-export-job-list {
padding: 8px;
}
.v2-history-export-sidesheet .v2-export-job-name {
max-width: 220px;
font-size: 11px;
}
.v2-history-export-sidesheet .v2-export-job-summary strong {
font-size: 11px;
}
.v2-history-export-sidesheet .v2-export-job-summary small {
font-size: 8px;
}
.v2-rule-form-sections {
gap: 9px;
padding: 9px 9px 14px;
}
.v2-rule-form-section {
border-radius: 10px;
}
.v2-rule-form-section > header {
min-height: 50px;
padding: 9px 11px;
}
.v2-rule-form-section > header h6.semi-typography {
font-size: 12px;
}
.v2-rule-form-section > header small {
font-size: 9px;
}
.v2-rule-form-section > .v2-rule-form-grid {
grid-template-columns: 1fr;
gap: 12px;
padding: 12px 11px 14px;
}
.v2-rule-form-section > .v2-rule-form-grid label.is-wide {
grid-column: auto;
}
}