Add ticket tags system, tag filtering, and auto-close feature
- Fix tickets API endpoint: add type, customer_name, customer_id, tags fields - Add tags array to ticket data structure with add/remove UI - Add tag filter input to toolbar and tag column in ticket list - Add ticket_tags API endpoint for updating tags - Add set_tags and auto_close_days actions to auto-rules - Auto-close check runs on ticket list load, closes expired tickets - Add tag CSS styles with editable tag badges in detail view Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
index.html
10
index.html
@@ -261,6 +261,7 @@
|
||||
<option value="odottaa">Odottaa vastausta</option>
|
||||
<option value="ratkaistu">Ratkaistu</option>
|
||||
</select>
|
||||
<input type="text" id="ticket-tag-filter" placeholder="#tagi" style="padding:9px 12px;border:2px solid #e0e0e0;border-radius:8px;font-size:0.88rem;max-width:140px;">
|
||||
<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>
|
||||
@@ -292,6 +293,7 @@
|
||||
<th>Aihe</th>
|
||||
<th>Lähettäjä</th>
|
||||
<th>Asiakas</th>
|
||||
<th>Tagit</th>
|
||||
<th>Viestejä</th>
|
||||
<th>Päivitetty</th>
|
||||
</tr>
|
||||
@@ -383,6 +385,14 @@
|
||||
<option value="muu">Muu</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Aseta tagit (pilkulla eroteltuna)</label>
|
||||
<input type="text" id="rule-form-tags" placeholder="esim. notification, automaatti">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Auto-close (päivää)</label>
|
||||
<input type="number" id="rule-form-autoclose" min="0" max="365" placeholder="esim. 7" style="max-width:120px;">
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;gap:0.5rem;margin-top:1rem;">
|
||||
<button class="btn-primary" id="btn-save-rule">Tallenna</button>
|
||||
|
||||
Reference in New Issue
Block a user