feat(ui): restyle LLMTab with DeckyFleet/PersonaGeneration form vocabulary

This commit is contained in:
2026-05-09 23:23:25 -04:00
parent d1478f900c
commit 8dde954559
3 changed files with 206 additions and 123 deletions

View File

@@ -40,7 +40,7 @@ describe('LLMTab', () => {
apiGet.mockResolvedValueOnce({ data: { ...defaultPayload, api_key_set: true } });
render();
await waitFor(() => expect(screen.queryByText('LOADING…')).toBeNull());
expect(screen.getByText(/Key stored/)).toBeDefined();
expect(screen.getByText(/KEY SET/)).toBeDefined();
});
it('calls PUT on save and shows success', async () => {
@@ -71,7 +71,7 @@ describe('LLMTab', () => {
await waitFor(() => expect(screen.queryByText('LOADING…')).toBeNull());
await user.click(screen.getByRole('button', { name: /SAVE/ }));
await waitFor(() => expect(screen.getByText(/ADMIN ROLE REQUIRED/)).toBeDefined());
await waitFor(() => expect(screen.getByText(/Admin role required/)).toBeDefined());
});
it('hides save button for viewers', async () => {