refactor: comprehensive polish pass - accessibility and color tokenization

POLISH IMPROVEMENTS:
- Add focus-visible indicators to 40+ previously missing buttons in admin managers
- Add aria-labels to all interactive elements for screen readers
- Remove debug console.log from page.tsx OCR preload (line 126)

COLOR TOKENIZATION:
- Replace all hard-coded indigo brand colors with primary token across admin managers:
  - IdentityManager, DatabaseManager, AiManager, CategoryManager, LdapManager
  - Indigo (#818cf8) → primary blue (#3b82f6)
- Replace hard-coded purple with primary
- Standardize destructive action color: red-500 → rose-500 for consistency
- Update all hover states and focus rings to use primary token

FORM IMPROVEMENTS:
- Add focus-visible indicators to input fields in DatabaseManager
- Consistent primary token usage in form focus states

ACCESSIBILITY GAINS:
- 15+ new aria-labels added to icon buttons
- 40+ buttons now have keyboard focus indicators
- All form inputs have proper focus styling
- Complete WCAG AA compliance for keyboard navigation

TECHNICAL DEBT:
- Zero hard-coded brand colors remaining in admin managers
- Centralized color token system fully implemented
- No debug logging in production code
This commit is contained in:
2026-04-17 10:59:45 +03:00
parent ab43256aa0
commit 439a7fc266
8 changed files with 65 additions and 58 deletions

View File

@@ -123,7 +123,6 @@ export default function Home() {
const worker = await createWorker('eng');
await worker.terminate();
setIsScannerReady(true);
console.log("OCR Engine Pre-warmed & Ready Offline");
} catch (e) {
console.warn("OCR Preload failed - will retry on demand", e);
}