feat: improve notiz column UI and fix memory exhaustion

Notiz column now has max 5 lines with expand/collapse animation and auto-resizing edit textarea. Moved raw SQL query to WorkorderModel::getPreorderIdsByCampaigns() to fix OOM in archiveWorkorders().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 15:35:17 +01:00
co-authored by Claude Opus 4.6
parent a53ff3912c
commit 6593e921ee
5 changed files with 116 additions and 21 deletions
@@ -41,4 +41,58 @@
.workorder-button {
padding: 2px !important;
}
}
.wo-notiz-text {
white-space: pre-wrap;
word-break: break-word;
max-width: 250px;
max-height: calc(5 * 1.5em);
overflow: hidden;
transition: max-height 0.3s ease;
}
.wo-notiz-text.wo-notiz-expanded {
max-height: 2000px;
}
.wo-notiz-actions {
display: flex;
align-items: center;
gap: 8px;
margin-top: 2px;
}
.wo-notiz-toggle {
font-size: 0.8rem;
color: #007bff;
cursor: pointer;
padding: 0;
border: none;
background: none;
white-space: nowrap;
}
.wo-notiz-toggle:hover {
color: #0056b3;
text-decoration: underline;
}
.wo-notiz-edit-btn {
color: #007bff;
cursor: pointer;
padding: 0;
}
.wo-notiz-edit-btn:hover {
color: #0056b3;
}
.wo-notiz-edit {
min-width: 300px;
}
.wo-notiz-edit textarea {
min-height: 80px;
resize: vertical;
}