The home page becomes the widget dashboard of mockups 004-006. Each user switches widgets on and off, orders them (drag and drop or buttons that also work from the keyboard), sizes them on the 12-column grid and picks the start page; every change is saved at once. Whoever may change the company settings sets a default layout per role, used by people who never customized; Reset goes back to it. Todo, Done and Deadlines collect lines from sources each module registers, so later milestones fill them without touching the widgets; a failing source is logged and skipped. M3 provides licence, unread warnings and scheduled task runs. Notes, Shortcuts and System status work now; widgets of modules still to come say which milestone brings their data instead of showing fake numbers. Role defaults live in the new company_settings table, written through CompanySettingsService with company.settings.write (ADR 0022). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
75d60ee4c4
commit
acb7e598d1
34 files changed
+2812
-76
No files matched your search
@@ -139,3 +139,55 @@ h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }
|
||||
.kh-auth .features { display: none; }
|
||||
.cols-3 { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* ---- dashboard (issue #30, mockups 004 and 006) ---- */
|
||||
.kh-home.kh-with-drawer { margin-right: 420px; }
|
||||
.kh-home-off { align-items: center; margin-bottom: var(--kh-gap); }
|
||||
.kh-home-off .grow { flex: 1; }
|
||||
.kh-wgrid { margin-bottom: var(--kh-gap); }
|
||||
.kh-wgrid.kh-editing .widget { cursor: grab; }
|
||||
.kh-wgrid.kh-editing .widget .wb { pointer-events: none; opacity: .75; }
|
||||
.widget.kh-over { outline-style: solid; background: var(--kh-accent-soft); }
|
||||
.widget .wh .badge { font-size: 10.5px; }
|
||||
.kh-wlist { overflow: auto; max-height: 320px; }
|
||||
.kh-wlist .li .s { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.kh-wlist a.li, a.deadline { color: var(--kh-text); text-decoration: none; }
|
||||
.kh-wlist a.li[href]:hover, a.deadline[href]:hover { background: var(--kh-row-hover); }
|
||||
.kh-wlist a[aria-disabled="true"] { cursor: default; }
|
||||
.kh-wempty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 12px; font-size: 12.5px; color: var(--kh-text-2); }
|
||||
.kh-wempty svg.i { color: var(--kh-ok); }
|
||||
.kh-tone { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--kh-text-3); }
|
||||
.kh-tone.ok { background: var(--kh-ok); } .kh-tone.info { background: var(--kh-info, var(--kh-accent)); }
|
||||
.kh-tone.warn { background: var(--kh-warn); } .kh-tone.err { background: var(--kh-err); }
|
||||
.kh-status .li { padding: 7px 12px; }
|
||||
.kh-status .li .s { text-align: right; }
|
||||
.chk-row input[type="checkbox"] { margin: 0; accent-color: var(--kh-accent); }
|
||||
.kh-rowx { opacity: 0; }
|
||||
.chk-row:hover .kh-rowx, .kh-rowx:focus-visible { opacity: 1; }
|
||||
.kh-wadd { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--kh-border); color: var(--kh-text-3); }
|
||||
.kh-wadd .kh-input { flex: 1; min-width: 0; }
|
||||
.kh-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
|
||||
.kh-shortcut { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--kh-border);
|
||||
border-radius: var(--kh-radius-lg); color: var(--kh-text); text-decoration: none; font-size: 12px; text-align: center; }
|
||||
.kh-shortcut:hover { border-color: var(--kh-accent); background: var(--kh-row-hover); }
|
||||
.kh-shortcut .ico-box { width: 30px; height: 30px; }
|
||||
.kh-picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; max-height: 50vh; overflow: auto; }
|
||||
.kh-picklist .chk { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 0; }
|
||||
.kh-wcoming { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; }
|
||||
.kh-wcoming > svg.i { color: var(--kh-text-3); }
|
||||
.kh-wcoming p { margin: 0; }
|
||||
.kh-wcoming .s { color: var(--kh-text-3); font-size: 11.5px; }
|
||||
.kh-dsec { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--kh-border); }
|
||||
.kh-dsec:last-child { border-bottom: 0; }
|
||||
.kh-dsec h3 { margin: 0; }
|
||||
.kh-dsec p { margin: 0; }
|
||||
.kh-dsec .f { display: flex; flex-direction: column; gap: 4px; }
|
||||
.kh-wpick-row { border-bottom: 1px solid var(--kh-border); }
|
||||
.kh-wpick-row .kh-switch-row { border-bottom: 0; }
|
||||
.kh-wpick-row.off .kh-switch-row .t { color: var(--kh-text-2); }
|
||||
.kh-wpick-tools { display: flex; align-items: center; gap: 4px; padding: 0 4px 8px; }
|
||||
.kh-wpick-tools select { flex: 1; height: 26px; font-size: 12px; }
|
||||
.kh-row { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
@media (max-width: 1279px) { .kh-home.kh-with-drawer { margin-right: 0; } }
|
||||
@media (max-width: 999px) { .kh-wgrid > .widget { grid-column: 1 / -1; } }
|
||||
@media (max-width: 599px) { .kh-wlist .badge { display: none; } }
|
||||
Reference in new issue
Block a user