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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user