refactor: move priority emails to customer card
Priority emails are now per-customer, not per-company. Each customer can have a list of email addresses that automatically elevate ticket priority to "tärkeä" when they send email. Field added to customer form under "Lisätiedot" section. Removed separate priority_emails settings from API/rules tabs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
16
index.html
16
index.html
@@ -423,6 +423,7 @@
|
||||
<button class="btn-secondary" id="btn-cancel-rule">Peruuta</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -525,16 +526,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Priority-sähköpostit -->
|
||||
<div class="table-card" style="padding:1.5rem;margin-top:1rem;">
|
||||
<h3 style="color:#0f3460;margin-bottom:0.5rem;border-bottom:2px solid #f0f2f5;padding-bottom:0.5rem;">Priority-sähköpostiosoitteet</h3>
|
||||
<p style="color:#666;font-size:0.85rem;margin-bottom:1rem;">Näiltä osoitteilta saapuvat tiketit saavat automaattisesti "Tärkeä"-prioriteetin.</p>
|
||||
<textarea id="priority-emails-textarea" rows="4" style="width:100%;max-width:500px;font-family:monospace;font-size:0.85rem;" placeholder="vip@yritys.fi toimitusjohtaja@firma.fi"></textarea>
|
||||
<div style="margin-top:0.5rem;">
|
||||
<button class="btn-primary" id="btn-save-priority-emails">Tallenna</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Telegram-asetukset -->
|
||||
<div class="table-card" style="padding:1.5rem;margin-top:1rem;">
|
||||
<h3 style="color:#0f3460;margin-bottom:0.5rem;border-bottom:2px solid #f0f2f5;padding-bottom:0.5rem;">Telegram-hälytykset</h3>
|
||||
@@ -766,6 +757,11 @@
|
||||
<div class="form-group full-width">
|
||||
<textarea id="form-lisatiedot" rows="3" placeholder="Vapaamuotoiset muistiinpanot..."></textarea>
|
||||
</div>
|
||||
<h3>Priority-sähköpostit</h3>
|
||||
<div class="form-group full-width">
|
||||
<p style="color:#888;font-size:0.82rem;margin-bottom:0.3rem;">Näiltä osoitteilta saapuvat tiketit saavat automaattisesti ⚠️ Tärkeä -prioriteetin. Yksi per rivi.</p>
|
||||
<textarea id="form-priority-emails" rows="3" placeholder="vip@yritys.fi toimitusjohtaja@firma.fi" style="font-family:monospace;font-size:0.85rem;"></textarea>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn-primary" id="form-submit">Tallenna</button>
|
||||
<button type="button" class="btn-secondary" id="form-cancel">Peruuta</button>
|
||||
|
||||
Reference in New Issue
Block a user