feat(scheduling): add a task-focused poll workspace

This commit is contained in:
2026-07-20 17:34:36 +02:00
parent fc418e63ac
commit 887e064ae9
6 changed files with 1658 additions and 494 deletions

View File

@@ -2,7 +2,6 @@
box-sizing: border-box;
height: calc(100vh - 115px);
min-height: 0;
padding: 0;
overflow: hidden;
color: var(--text);
background: var(--bg);
@@ -15,48 +14,87 @@
}
.scheduling-shell {
min-height: 0;
height: 100%;
display: grid;
grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
width: 100%;
height: 100%;
min-height: 0;
overflow: hidden;
border: var(--border-line);
background: var(--panel);
overflow: hidden;
}
.scheduling-sidebar {
.scheduling-sidebar,
.scheduling-workspace,
.scheduling-full-editor {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
.scheduling-sidebar {
border-right: var(--border-line);
background: var(--panel-soft);
}
.scheduling-sidebar-bar,
.scheduling-topbar,
.scheduling-panel-heading,
.scheduling-mini-heading,
.scheduling-status-row,
.scheduling-page-header {
min-height: 58px;
padding: 10px 14px;
border-bottom: var(--border-line);
background: var(--panel-header);
}
.scheduling-sidebar-bar,
.scheduling-topbar,
.scheduling-page-header,
.scheduling-section-heading,
.scheduling-sidebar-actions,
.scheduling-page-actions,
.scheduling-card-actions,
.scheduling-actions,
.scheduling-title-line {
.scheduling-title-line,
.scheduling-page-title,
.scheduling-status-row {
display: flex;
align-items: center;
gap: 8px;
}
.scheduling-sidebar-bar {
.scheduling-sidebar-bar,
.scheduling-topbar,
.scheduling-page-header,
.scheduling-section-heading {
justify-content: space-between;
min-height: 54px;
padding: 10px 12px;
border-bottom: var(--border-line);
background: var(--panel-header);
}
.scheduling-sidebar-actions,
.scheduling-page-actions,
.scheduling-card-actions,
.scheduling-actions {
flex-wrap: wrap;
justify-content: flex-end;
}
.scheduling-sidebar-actions .btn,
.scheduling-page-actions .btn,
.scheduling-card-actions .btn,
.scheduling-actions .btn,
.scheduling-section-heading .btn,
.scheduling-response-card .btn {
min-height: 34px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.scheduling-icon-button.btn {
width: 34px;
min-width: 34px;
height: 34px;
min-height: 34px;
padding: 0;
justify-content: center;
}
@@ -67,30 +105,61 @@
padding: 8px;
}
.scheduling-list-group + .scheduling-list-group {
margin-top: 14px;
padding-top: 12px;
border-top: var(--border-line);
}
.scheduling-list-group h2 {
margin: 0 8px 6px;
color: var(--muted);
font-size: 12px;
font-weight: 800;
letter-spacing: .025em;
text-transform: uppercase;
}
.scheduling-list-item {
width: 100%;
min-height: 50px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
gap: 10px;
align-items: center;
min-height: 40px;
margin: 0 0 4px;
padding: 8px 9px;
border: 0;
border-radius: 6px;
padding: 8px 10px;
border: 1px solid transparent;
border-radius: 7px;
color: var(--text);
background: transparent;
text-align: left;
cursor: pointer;
}
.scheduling-list-item:hover,
.scheduling-list-item.is-selected {
.scheduling-list-item:hover {
background: var(--hover-bg);
}
.scheduling-list-item span,
.scheduling-slot-row strong,
.scheduling-list-item.is-selected {
border-color: color-mix(in srgb, var(--accent) 45%, transparent);
background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}
.scheduling-list-item > span,
.scheduling-title-line > div,
.scheduling-page-title > div,
.scheduling-section-heading > div {
min-width: 0;
}
.scheduling-list-item > span {
display: grid;
gap: 3px;
}
.scheduling-list-item strong,
.scheduling-list-item small,
.scheduling-compact-row span {
min-width: 0;
overflow: hidden;
@@ -99,121 +168,110 @@
}
.scheduling-list-item small,
.scheduling-slot-row small,
.scheduling-compact-row small,
.scheduling-note {
.scheduling-title-line small,
.scheduling-page-title p,
.scheduling-section-heading p,
.scheduling-note,
.scheduling-list-empty,
.scheduling-compact-row small {
color: var(--muted);
font-size: 12px;
}
.scheduling-list-status {
max-width: 110px;
padding: 3px 7px;
border-radius: 999px;
background: var(--panel);
font-weight: 700;
}
.scheduling-list-empty {
margin: 3px 8px 8px;
}
.scheduling-workspace {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.scheduling-topbar {
justify-content: space-between;
min-height: 54px;
padding: 9px 12px;
border-bottom: var(--border-line);
background: var(--panel-header);
}
.scheduling-title-line {
min-width: 180px;
min-width: 0;
}
.scheduling-actions {
flex-wrap: wrap;
justify-content: flex-end;
.scheduling-title-line > div {
display: grid;
gap: 2px;
}
.scheduling-actions .btn,
.scheduling-create-panel .btn,
.scheduling-slot-row .btn {
min-height: 32px;
display: inline-flex;
align-items: center;
gap: 6px;
.scheduling-alert,
.scheduling-success {
margin: 10px 14px 0;
padding: 9px 11px;
border: var(--border-line);
border-radius: 7px;
}
.scheduling-alert {
margin: 8px 12px 0;
padding: 8px 10px;
border: var(--border-line);
border-color: var(--danger);
border-radius: 6px;
color: var(--danger);
background: var(--danger-soft);
}
.scheduling-content {
min-height: 0;
display: grid;
grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
gap: 0;
overflow: hidden;
.scheduling-success {
border-color: var(--success);
color: var(--success);
background: color-mix(in srgb, var(--success) 10%, var(--panel));
}
.scheduling-create-panel,
.scheduling-detail {
.scheduling-detail,
.scheduling-editor-scroll {
min-height: 0;
overflow: auto;
padding: 12px;
padding: 14px;
}
.scheduling-create-panel {
.scheduling-detail {
display: grid;
align-content: start;
gap: 10px;
border-right: var(--border-line);
background: var(--panel-soft);
gap: 12px;
}
.scheduling-create-panel label,
.scheduling-form-section {
display: grid;
gap: 5px;
}
.scheduling-create-panel label span,
.scheduling-mini-heading span {
color: var(--muted);
font-size: 12px;
font-weight: 700;
}
.scheduling-create-panel input {
.scheduling-card {
width: 100%;
min-height: 34px;
padding: 6px 8px;
min-width: 0;
padding: 14px;
border: var(--border-line);
border-radius: 6px;
color: var(--text);
background: var(--input-bg);
border-radius: 8px;
background: var(--panel);
}
.scheduling-checkbox {
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
.scheduling-card h2,
.scheduling-page-header h1,
.scheduling-section-heading h2 {
margin: 0;
color: var(--text-strong);
}
.scheduling-slot-draft,
.scheduling-participant-draft {
display: grid;
gap: 6px;
.scheduling-card h2,
.scheduling-section-heading h2 {
font-size: 15px;
}
.scheduling-slot-draft {
grid-template-columns: minmax(0, 1fr);
.scheduling-page-header h1 {
font-size: 19px;
}
.scheduling-page-title p,
.scheduling-section-heading p {
margin: 3px 0 0;
}
.scheduling-summary-card > p:last-child {
margin-bottom: 0;
}
.scheduling-status-row {
flex-wrap: wrap;
margin-bottom: 10px;
}
.scheduling-status {
@@ -222,7 +280,7 @@
color: var(--text-strong);
background: var(--panel-soft);
font-size: 12px;
font-weight: 700;
font-weight: 800;
}
.scheduling-status-collecting,
@@ -230,33 +288,76 @@
background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.scheduling-slot-table {
display: grid;
gap: 6px;
.scheduling-table-card {
padding: 0;
overflow: hidden;
}
.scheduling-slot-row {
display: grid;
grid-template-columns: minmax(180px, 1fr) auto auto auto auto auto;
gap: 8px;
align-items: center;
min-height: 46px;
padding: 8px;
.scheduling-table-card > .scheduling-section-heading {
min-height: 52px;
padding: 9px 14px;
border-bottom: var(--border-line);
background: var(--panel-header);
}
.scheduling-slot-row:hover {
background: var(--hover-bg);
.scheduling-table-scroll {
width: 100%;
overflow: auto;
}
.scheduling-table {
width: 100%;
border-collapse: collapse;
table-layout: auto;
}
.scheduling-table th,
.scheduling-table td {
padding: 9px 10px;
border-bottom: var(--border-line);
text-align: left;
vertical-align: middle;
}
.scheduling-table tr:last-child td {
border-bottom: 0;
}
.scheduling-table th {
color: var(--muted);
background: var(--panel-soft);
font-size: 12px;
font-weight: 800;
white-space: nowrap;
}
.scheduling-table td {
font-size: 13px;
}
.scheduling-table td:first-child {
min-width: 190px;
}
.scheduling-table td > strong {
display: block;
}
.scheduling-table-actions {
width: 1%;
text-align: right !important;
white-space: nowrap;
}
.scheduling-freebusy {
min-width: 74px;
padding: 3px 7px;
border-radius: 6px;
text-align: center;
font-size: 12px;
font-weight: 700;
display: inline-block;
margin-top: 3px;
padding: 2px 6px;
border-radius: 5px;
color: var(--muted);
background: var(--panel-soft);
font-size: 11px;
font-weight: 700;
}
.scheduling-freebusy.free {
@@ -272,37 +373,218 @@
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 16px;
}
.scheduling-compact-row {
min-height: 36px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
min-height: 34px;
align-items: center;
border-bottom: var(--border-line);
}
.scheduling-empty {
padding: 20px;
.scheduling-compact-row:last-child {
border-bottom: 0;
}
.scheduling-response-card {
display: grid;
gap: 12px;
}
.scheduling-response-grid {
display: grid;
gap: 6px;
}
.scheduling-response-grid label {
min-width: 0;
display: grid;
grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px);
gap: 12px;
align-items: center;
padding: 8px 0;
border-bottom: var(--border-line);
}
.scheduling-response-grid label:last-child {
border-bottom: 0;
}
.scheduling-response-grid label > span {
min-width: 0;
display: grid;
gap: 3px;
}
.scheduling-response-grid small {
color: var(--muted);
}
@media (max-width: 980px) {
.scheduling-shell,
.scheduling-content,
.scheduling-columns {
grid-template-columns: minmax(0, 1fr);
.scheduling-response-grid select,
.scheduling-field input,
.scheduling-field textarea,
.scheduling-edit-table input:not([type="checkbox"]) {
width: 100%;
min-height: 36px;
padding: 7px 9px;
border: var(--border-line);
border-radius: 6px;
color: var(--text);
background: var(--input-bg);
font: inherit;
}
.scheduling-action-help summary {
cursor: pointer;
font-weight: 700;
}
.scheduling-action-help ul {
margin-bottom: 0;
}
.scheduling-empty {
padding: 28px;
color: var(--muted);
text-align: center;
}
.scheduling-editor-page {
background: var(--panel);
}
.scheduling-full-editor {
width: 100%;
height: 100%;
overflow: hidden;
border: var(--border-line);
background: var(--bg);
}
.scheduling-page-header {
flex: 0 0 auto;
}
.scheduling-page-actions {
margin-left: auto;
}
.scheduling-editor-scroll {
display: grid;
align-content: start;
gap: 12px;
}
.scheduling-form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.scheduling-form-grid h2,
.scheduling-field-wide {
grid-column: 1 / -1;
}
.scheduling-field {
display: grid;
gap: 5px;
}
.scheduling-field > span {
color: var(--muted);
font-size: 12px;
font-weight: 800;
}
.scheduling-toggle {
display: inline-flex;
align-items: center;
gap: 7px;
font-weight: 700;
}
.scheduling-capability-note {
margin: 10px 0 0;
color: var(--muted);
font-size: 12px;
}
.scheduling-edit-table input[type="checkbox"] {
width: 18px;
height: 18px;
}
@media (max-width: 1050px) {
.scheduling-shell {
grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
}
.scheduling-sidebar,
.scheduling-create-panel {
.scheduling-sidebar-bar {
align-items: flex-start;
}
.scheduling-sidebar-actions {
align-items: flex-end;
}
}
@media (max-width: 820px) {
.scheduling-page {
height: auto;
min-height: calc(100vh - 115px);
overflow: auto;
}
.scheduling-shell {
height: auto;
grid-template-columns: minmax(0, 1fr);
overflow: visible;
}
.scheduling-sidebar {
max-height: 46vh;
border-right: 0;
border-bottom: var(--border-line);
}
.scheduling-slot-row {
grid-template-columns: minmax(0, 1fr) auto;
.scheduling-workspace,
.scheduling-full-editor {
overflow: visible;
}
.scheduling-detail,
.scheduling-editor-scroll {
overflow: visible;
}
.scheduling-columns,
.scheduling-form-grid {
grid-template-columns: minmax(0, 1fr);
}
.scheduling-page-header,
.scheduling-topbar,
.scheduling-section-heading {
align-items: flex-start;
flex-wrap: wrap;
}
.scheduling-page-actions,
.scheduling-card-actions,
.scheduling-actions {
width: 100%;
}
.scheduling-page-actions .btn:last-child,
.scheduling-card-actions .btn:last-child,
.scheduling-actions .btn:last-child {
margin-left: auto;
}
.scheduling-response-grid label {
grid-template-columns: minmax(0, 1fr);
}
}