feat: vollständiges DB-Admin-Tool mit Spalten-Toggle, Sortierung und FK-Auflösung

- Audios-Tabelle in TABLES-Config ergänzt
- Spalten dynamisch aus geladenen Daten abgeleitet; Sichtbarkeit per localStorage persistiert
- Spalten-Toggle-Dropdown mit Checkboxen und Reset
- Sortierung per Klick auf Spaltenheader (▲/▼)
- FK-Felder zeigen aufgelöste Labels statt rohe UUIDs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 13:24:46 +02:00
parent 7564f23ef1
commit 232ba1ece5
2 changed files with 241 additions and 37 deletions

View File

@@ -273,6 +273,24 @@ export const TABLES = {
},
fetchRelated: [],
},
audios: {
label: 'Audios',
icon: '🔊',
endpoint: '/audios',
statusField: 'status',
primaryLabel: 'text',
columns: ['text', 'voice_id', 'status', 'audio_link', 'created_at'],
linkedFields: {},
editableFields: {
text: { type: 'textarea' },
status: { type: 'select', options: ['generated', 'published', 'blocked'] },
voice_id: { type: 'text' },
model_id: { type: 'text' },
audio_link: { type: 'text' },
},
fetchRelated: [],
},
};
export const STATUS_COLORS = {