feat(helpdesk): simplify settings by merging recommendations and controlling into automation tab
Merge 'System recommendations' (5 rules × 3-4 fields) and 'Controlling' (4 rules × 2 fields) into a single 'Automation' tab with two sections: Recommendations and Risk monitoring. Each rule now shows only a toggle and help text; priority fields removed (hardcoded in action). Advanced disclosure for recommendation thresholds. Fix nav highlighting bug where 'Kunden' was also highlighted when Settings was active. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,115 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Automation tab: compact rule list */
|
||||
.helpdesk-settings-rules {
|
||||
display: grid;
|
||||
gap: calc(var(--app-spacing) * 0.5);
|
||||
margin-top: calc(var(--app-spacing) * 0.5);
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 0 calc(var(--app-spacing) * 0.5);
|
||||
align-items: center;
|
||||
padding: calc(var(--app-spacing) * 0.4) 0;
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--app-contrast, #000) 8%, transparent);
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule > input[type="checkbox"] {
|
||||
grid-row: 1 / 3;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-label {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule > small {
|
||||
grid-column: 2;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
/* Risk monitoring: rule with inline threshold */
|
||||
.helpdesk-settings-rule-with-threshold {
|
||||
grid-template-columns: auto 1fr auto;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-toggle {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 0 calc(var(--app-spacing) * 0.5);
|
||||
align-items: center;
|
||||
grid-column: 1 / 3;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-toggle > input[type="checkbox"] {
|
||||
grid-row: 1 / 3;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-toggle > small {
|
||||
grid-column: 2;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-threshold {
|
||||
grid-row: 1 / 3;
|
||||
min-width: 6rem;
|
||||
max-width: 8rem;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-threshold > span {
|
||||
font-size: 0.8em;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.helpdesk-settings-rule-with-threshold {
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
|
||||
.helpdesk-settings-rule-threshold {
|
||||
grid-column: 1 / -1;
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Advanced options disclosure */
|
||||
.helpdesk-settings-advanced {
|
||||
margin-top: calc(var(--app-spacing) * 0.5);
|
||||
border-top: 1px solid color-mix(in srgb, var(--app-contrast, #000) 8%, transparent);
|
||||
padding-top: calc(var(--app-spacing) * 0.4);
|
||||
}
|
||||
|
||||
.helpdesk-settings-advanced > summary {
|
||||
cursor: pointer;
|
||||
font-size: 0.85em;
|
||||
opacity: 0.7;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.helpdesk-settings-advanced > summary:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.helpdesk-settings-advanced-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: calc(var(--app-spacing) * 0.5);
|
||||
margin-top: calc(var(--app-spacing) * 0.5);
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.helpdesk-settings-advanced-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Clickable rows — shared between search results and ticket list */
|
||||
.app-clickable-row {
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user