Add closed tickets checkbox, customer linking for tickets

- Closed tickets completely hidden from default view, separate
  "Suljetut" checkbox to toggle them with search capability
- Removed "Osoitettu" column, added "Asiakas" column to ticket list
- Customer dropdown in ticket detail view to link ticket to a customer
- ticket_customer API endpoint for linking tickets to customers
- ticket_type changelog label added

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 10:06:38 +02:00
parent 91930c9420
commit ea7c3e0cf7
3 changed files with 69 additions and 9 deletions

View File

@@ -255,14 +255,15 @@
<option value="muu">Muu</option>
</select>
<select id="ticket-status-filter" style="padding:9px 12px;border:2px solid #e0e0e0;border-radius:8px;font-size:0.88rem;">
<option value="">Avoimet</option>
<option value="">Kaikki avoimet</option>
<option value="uusi">Uusi</option>
<option value="kasittelyssa">Käsittelyssä</option>
<option value="odottaa">Odottaa vastausta</option>
<option value="ratkaistu">Ratkaistu</option>
<option value="suljettu">Suljettu</option>
<option value="kaikki">Kaikki tilat</option>
</select>
<label style="display:flex;align-items:center;gap:0.4rem;font-size:0.85rem;color:#777;cursor:pointer;white-space:nowrap;">
<input type="checkbox" id="ticket-show-closed"> Suljetut
</label>
</div>
<div id="ticket-fetch-status" style="display:none;padding:0.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:0.9rem;"></div>
<div class="table-card">
@@ -273,8 +274,8 @@
<th>Tyyppi</th>
<th>Aihe</th>
<th>Lähettäjä</th>
<th>Asiakas</th>
<th>Viestejä</th>
<th>Osoitettu</th>
<th>Päivitetty</th>
</tr>
</thead>