fix: five defects found while rewriting the docs (UF-061 to UF-065)
- Key messages named a Settings > API Keys tab that does not exist; they now point at Settings > Models (UF-061). - The connector suggestion looked for vault.db, which never exists; it now checks the vault for a connector entry (UF-062). - /config and /preferences were registered with a leading slash and never matched (UF-063). - Pins and documents were written under ~/.waggle whatever the data directory; they now use the server's data directory (UF-064). - The Windows uninstaller named a Data & Privacy page that does not exist (UF-065).
This commit is contained in:
@@ -35,7 +35,7 @@ function renderBlock(b: ErrorContentBlock, onRetry?: () => void) {
|
||||
|
||||
describe('isAuthShapedError', () => {
|
||||
it('matches the server auth/API-key copy and raw 401', () => {
|
||||
expect(isAuthShapedError('API key is invalid or expired. Update it in Settings > API Keys.')).toBe(true);
|
||||
expect(isAuthShapedError('API key is invalid or expired. Update it in Settings > Models.')).toBe(true);
|
||||
expect(isAuthShapedError('Could not reach the AI model. Check that your API key is configured.')).toBe(true);
|
||||
expect(isAuthShapedError('Request failed with 401')).toBe(true);
|
||||
expect(isAuthShapedError('Unauthorized')).toBe(true);
|
||||
@@ -50,7 +50,7 @@ describe('isAuthShapedError', () => {
|
||||
describe('ErrorBlock', () => {
|
||||
it('auth-shaped error shows both actions; settings click deep-links to Models', () => {
|
||||
const onRetry = vi.fn();
|
||||
renderBlock(block('API key is invalid or expired. Update it in Settings > API Keys.'), onRetry);
|
||||
renderBlock(block('API key is invalid or expired. Update it in Settings > Models.'), onRetry);
|
||||
expect(screen.getByRole('button', { name: /retry/i })).toBeInTheDocument();
|
||||
const keyBtn = screen.getByRole('button', { name: /open api key settings/i });
|
||||
fireEvent.click(keyBtn);
|
||||
|
||||
Reference in New Issue
Block a user