refactor(frontend): eliminate backdrop-blur throughout codebase

Remove all instances of backdrop-blur effect (14+ occurrences) to simplify visual design
and eliminate signature 2023-2024 AI aesthetic tell. Components now use solid backgrounds
and borders for hierarchy and affordance instead of decorative blur.

Affected:
- BottomNav: solid bg-slate-950, clean border
- AdminOverlay: removed overlay blur
- Admin managers (Identity, Database, AI, Category, LDAP): removed glass-card aesthetic
- Modals (IdentityCheck, Scanner, AIOnboarding): removed decorative blur
- Page layouts (home, inventory, logs): removed modal backdrop blur
- globals.css: removed glass-card utility

Build: passes with zero errors. Bundle sizes unchanged.

Simplification improves: clarity, perceived intentionality, removes AI aesthetic tells.
This commit is contained in:
2026-04-17 10:26:39 +03:00
parent 89a69a3ec9
commit b6a48f1249
17 changed files with 88 additions and 52 deletions

View File

@@ -1,43 +1,70 @@
# CURRENT AI WORKING SESSION — HANDOVER
**Active AI:** Antigravity (Gemini 3 Flash)
**Last Updated:** 2026-04-15
**Current Version:** v1.10.11 (StableFlow)
**Branch:** master
**Active AI:** Claude Haiku 4.5
**Last Updated:** 2026-04-17
**Current Version:** v1.10.11 (building)
**Branch:** dev
---
## STATUS: 🟢 STABLE — FRONTEND CLEANUP COMPLETE
## STATUS: 🟢 STABLE — FRONTEND AUDIT FIXES COMPLETE
**PROGRESS:** The main entry point (`app/page.tsx`) has been refactored to remove redundant initialization logic, correct UI branding, and purge unused imports leaked from previous architectural states. The system version has been bumped to `v1.10.11`.
**PROGRESS:** Completed comprehensive frontend audit and implemented critical accessibility/design fixes based on audit findings (13/20 score). Build passes with zero errors.
### v1.10.11 Accomplishments (StableFlow)
### Frontend Audit (Post v1.10.11) - COMPLETED
#### 1. Frontend entry point (page.tsx)
- **Consolidated `useEffect`**: Merged the two redundant initialization hooks into a single optimized routine handling auth, mounting, and event listeners.
- **Corrected Branding**: Renamed the page title from "Admin Control" to "Inventory Control" and updated the subtitle to reflect operational scope.
- **Icon Purge**: Removed 15+ unused Lucide icon imports to streamline the component.
- **Variable Normalization**: Renamed `upperBarcode` to `normalizedBarcode` for clarity (it was calling `.toLowerCase()`).
#### 1. Accessibility Improvements
- ✅ Added `focus-visible` indicators to ALL interactive elements (BottomNav, AdminOverlay, CreateUserModal)
- ✅ Created `CreateUserModal.tsx` with accessible form (replaces window.prompt)
- ✅ Inline field validation with error messages
- ✅ Added `aria-labels` to icon buttons for screen readers
#### 2. Documentation & Versioning
- Updated `VERSION.json` to `v1.10.11`.
- Synchronized documentation for the new release.
#### 2. Color System Refactoring
- ✅ Moved `primary` color from hard-coded `#3b82f6` to CSS variable `--primary`
- ✅ Updated `tailwind.config.ts` and `globals.css` for token consistency
- ✅ Added `--primary-foreground` token
#### 3. Performance & Dependencies
- ✅ Removed `bootstrap-icons` (duplicate with lucide-react)
- ✅ Updated `package.json` dependencies
#### 4. Design Refinements
- ✅ Reduced backdrop-blur overuse: removed from overlay scrim, reduced on StatCard
- ✅ Improved AdminOverlay responsive design (max-w-md responsive variants)
- ✅ Enhanced form UX with loading states and clear error messages
---
## WHAT WAS COMPLETED THIS SESSION
1. **[x] Code Refactoring**: Consolidated logic in `page.tsx`.
2. **[x] UI Branding**: Fixed labels and titles on the Home page.
3. **[x] Versioning**: Bumped to `v1.10.11`.
1. **[x] Frontend Audit Run**: Comprehensive quality audit (accessibility, performance, theming, responsive, anti-patterns).
2. **[x] Accessibility Fixes**: Added focus-visible indicators, created accessible form modal.
3. **[x] Color Tokens**: Moved primary color to CSS variables.
4. **[x] Design Refinements**: Reduced backdrop-blur, improved responsive layout.
5. **[x] Dependencies**: Removed bootstrap-icons duplicate.
6. **[x] Build Verification**: npm run build passes with zero errors.
**Audit Score Improved From:** 13/20 (Acceptable) → Estimated 16+/20 (Good)
---
## WHAT THE NEXT AI MUST DO
### 1. Verification
- Run `npm run build` using the path: `/opt/homebrew/bin/node` to ensure no regressions.
- Verify that the scanner orchestration in `page.tsx` is stable; consider further moving the `onScanSuccess` and `onOCRMatch` handlers into a custom hook `useInventoryScanner` if the file grows further.
### 1. Testing & Deployment
- Test CreateUserModal form in browser (check focus management, validation feedback, success toast)
- Test BottomNav keyboard navigation (Tab through buttons, check focus rings)
- Verify build and run locally: `npm run build && npm run dev`
- Test on mobile (320px+) to verify responsive design improvements
### 2. Remaining Audit Items (Optional, Post-Release)
- **P1**: `/optimize` — Lazy-load tesseract.js OCR library (500KB bundle impact)
- **P2**: `/distill` — Further reduce visual complexity if needed
- **P3**: Add light mode support (extend tailwind theme, add toggle)
### 3. Version & Release
- Re-run `/audit` after testing to confirm score improvement
- Update VERSION.json when ready
- Use `save-version` AI command to bundle and deploy
---