Tickets: Standardansicht zeigt alle Arten, auch Akquise-Tickets

Bisher startete die Liste mit dem Art-Filter "Auftraege", der Akquise-Tickets
ausschliesst. Neue Kunden bekommen ein Akquise-Ticket, das dann unter Tickets
nicht zu finden war. Standard ist jetzt "Alle Arten"; "Auftraege (ohne Akquise)"
bleibt als Filter waehlbar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-06 15:42:02 +00:00
1 parent fa1ce2c4cb
commit 5d8130e8ef
5 files changed
+16 -8

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ export function useWorkorders(filters = {}) {
queries.push(Query.equal('type', activeFilters.type))
}
// Standardansicht "Auftraege": alles ausser Akquise-Tickets
// Filter "Auftraege": alles ausser Akquise-Tickets
if (activeFilters.excludeType) {
queries.push(Query.notEqual('type', activeFilters.excludeType))
}
+1 -1
View File
@@ -12,7 +12,7 @@ export const LIST_TABS = [
{ id: 'alle', label: 'Alle', groups: null },
]
export const LIST_DEFAULTS = { tab: 'aktiv', typeId: 'orders', urgentOnly: false, search: '', limit: 10 }
export const LIST_DEFAULTS = { tab: 'aktiv', typeId: 'all', urgentOnly: false, search: '', limit: 10 }
const MIN_LIMIT = 10
const MAX_LIMIT = 500
+3 -3
View File
@@ -93,14 +93,14 @@ export function ticketTypeLabel(type) {
return TYPE_LABELS[type] || type
}
// Filter nach Art: "Auftraege" = alles ausser Akquise
// Filter nach Art: Standard "Alle Arten" (auch Akquise), "Auftraege" = alles ausser Akquise
export const TYPE_FILTERS = [
{ id: 'orders', label: 'Aufträge', excludeType: 'Akquise' },
{ id: 'all', label: 'Alle Arten' },
{ id: 'orders', label: 'Aufträge (ohne Akquise)', excludeType: 'Akquise' },
{ id: 'Webpage', label: 'Webpage', types: ['Webpage'] },
{ id: 'Migration', label: 'Migration', types: ['Migration'] },
{ id: 'Project', label: 'Projekt', types: ['Project'] },
{ id: 'Akquise', label: 'Akquise', types: ['Akquise'] },
{ id: 'all', label: 'Aufträge und Akquise' },
]
// Suche in Kunde, Betreff, "Angefragt von" und WOID, ohne Gross-/Kleinschreibung
+1 -1
View File
@@ -168,7 +168,7 @@ function TicketList() {
content = (
<EmptyState
title="Keine Tickets"
hint="Keine Tickets passen zu Suche und Filter. Erledigte, stornierte und Akquise-Tickets sind in der Standardansicht ausgeblendet."
hint="Keine Tickets passen zu Suche und Filter. Erledigte und stornierte Tickets sind in der Standardansicht ausgeblendet."
action={<Button type="button" onClick={openCreate}>Neues Ticket</Button>}
/>
)