Fix auth translations and admin PWA UI
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-16 12:14:53 +01:00
parent 292c8f0b26
commit 918bff08aa
44 changed files with 2504 additions and 677 deletions

View File

@@ -60,7 +60,7 @@ vi.mock('@tamagui/select', () => {
return { Select };
});
import { MobileSelect } from './FormControls';
import { MobileColorInput, MobileDateTimeInput, MobileFileInput, MobileSelect } from './FormControls';
describe('MobileSelect', () => {
it('maps options and forwards selection changes', () => {
@@ -83,3 +83,30 @@ describe('MobileSelect', () => {
);
});
});
describe('MobileColorInput', () => {
it('renders a color input with default sizing', () => {
render(<MobileColorInput value="#ff0000" onChange={vi.fn()} />);
const input = screen.getByDisplayValue('#ff0000');
expect(input).toHaveAttribute('type', 'color');
});
});
describe('MobileFileInput', () => {
it('renders a hidden file input', () => {
render(<MobileFileInput data-testid="file-input" />);
const input = screen.getByTestId('file-input');
expect(input).toHaveAttribute('type', 'file');
});
});
describe('MobileDateTimeInput', () => {
it('renders a datetime-local input', () => {
render(<MobileDateTimeInput value="2024-10-20T14:30" onChange={vi.fn()} />);
const input = screen.getByDisplayValue('2024-10-20T14:30');
expect(input).toHaveAttribute('type', 'datetime-local');
});
});