Major UI/UX optimization release: - Removed all bold fonts throughout app (291 replacements) - font-normal standard - Full-app spacing optimization: Scanner, Inventory, Logs, Admin, Login pages - Fixed mobile portrait viewport overflow issues (~136px gained on mobile) - Updated AI_RULES.md Section 3: NO BOLD FONTS requirement - Increased subtitle/label font sizes for readability - Mobile-first responsive breakpoints implemented Test results: 291/291 frontend, 41/41 backend, zero TypeScript errors Version bumped: 0.1.0 → 0.2.0
4.7 KiB
4.7 KiB
AI AGENT RULES - MANDATORY SSOT ENTRY POINT
READ THIS ENTIRE FILE BEFORE EXECUTING ANY TASK. This is the Single Source of Truth for ALL AI agents. Refer to PROJECT_ARCHITECTURE.md for technical logic.
1. AI MEMORY, TRACEABILITY & HANDOVER
- MANDATORY STARTUP: Read
dev_docs/SESSION_STATE.mdimmediately at session start. - PLAN RETIREMENT: Mark a completed "Master Plan" as
[COMPLETED]in the file itself. Move technical details todev_docs/ARCHIVE_LOGS.mdandPLAN.mdentries todev_docs/PLAN_HISTORY.md. - STRICT HANDOVER: Update
dev_docs/SESSION_STATE.mdat the end of every task with: Active AI, Current Status (Stable/Broken/In-Progress), Context, and Next Steps. - SESSION ARCHIVE: Move previous handover content to
dev_docs/SESSION_HISTORY.mdbefore writing new state. - NO INTERACTION OVERLAP: Never modify a file if another AI session is explicitly working on it.
- CONCISE COMMUNICATION: Be concise! Do not explain a thousand details unless they are absolutely necessary.
2. ENGINEERING & OPERATIONAL LAWS
- ENGLISH ONLY: Interfaces, code, variables, and docs MUST be in English. Translate any Romanian text found in code immediately. (User conversation: Romanian/English).
- GIT PROTOCOL: Use
gitcommand from system PATH for all operations. On Linux, this is provided by the git package manager. Git operations use the fallback mechanism in.git_pathfile for cross-platform compatibility. Never push or use--forceunless explicitly asked. Branching:master(stable),dev(active),vX(archive). - VERSIONING: Update
VERSION.jsonon every commit. Usescripts/save_version.pyfor automated releases. - DEPENDENCIES: Update
backend/requirements.txtwith version constraints for every new pip package. - SSOT INTEGRITY: Every feature change MUST update:
README.md,USER_GUIDE.md,PROJECT_ARCHITECTURE.md, andexport_prod.sh.
3. UI/UX "PREMIUM" FIDELITY STANDARDS
- Aesthetics: Density/aesthetics must remain "Premium". Use Tailwind CSS. NO simplification.
- Typography Rules:
- NO UPPERCASE or NO ITALICS in headers, labels, buttons, or metadata.
- NO
tracking-widest. Use standard camel/Title case. - NO BOLD FONTS: Use
font-normalthroughout (nofont-black,font-bold, orfont-semibold). Text hierarchy maintained through font-size and color differences.
- Layout: Main pages MUST use
max-w-7xl. - Unified Headers: Icon box (
p-4 bg-primary/10 border-primary/20) + Title (text-3xl font-normal) + Subtitle (text-xs text-slate-500). - Iconography: Use Lucide Icons exclusively (NO emojis).
- Categories:
Layers(text-primary). - Item Types:
Package(text-green-500).
- Categories:
- Affordance: Dropdowns MUST have a
ChevronDown. Passwords:text-white/50. Logout MUST betext-rose-500.
4. DATA INTEGRITY & AUDIT POLICY
- RESTRICTED ACTIONS:
DELETE /items/and Admin settings requireauth.get_current_admin. - AUDIT IMMUTABILITY: Deleting an
ItemMUST NOT delete itsAuditLogentries. - TRACEABILITY: Log deletions to
logs/backend.logwithUSER[id],ITEM[id],Name,PN. - CONFIRMATION:
- Triple Confirmation: Deleting critical entities (Locations/Items) requires user confirmation 3 times.
- Native Alerts: Use
window.confirmfor all destructive UI actions and Logout.
5. AI COMMAND SHORTCUTS
save-version: 0. MANDATORY: Verify and update ALL documentation (.mdfiles: README, USER_GUIDE, ARCHITECTURE, etc.) with explanations of all current changes.- Increment
VERSION.json. - Git add/commit (
Build [vX.Y.Z]). - Create branch
vX.Y.Z(Snapshot). - Automatic Sync: Merge changes into
masterbranch to keep it up-to-date. - Run
./export_prod.sh. (Always usepython3 scripts/save_version.py).
- Increment
6. Implementation Completion
- All code modifications MUST be committed in git before the task is considered finished.
VERSION.jsonmust be updated on EACH commit. - MANDATORY GIT RULE: Never push to remote unless explicitly requested by the user. Only commit locally with proper messages. Always assume the user will handle all
git pushoperations. If a task requires pushing, ask for explicit permission first. - MANDATORY GIT RULE: NO AI is allowed to write in git commits that it is the author or co-author (e.g., DO NOT add texts like
Co-Authored-By: AI...). Commits should only contain technical messages. - After finishing an entire job, end your final response on a separate line exactly with:
--- ✓ Done. - Do not provide unnecessary summaries of the code.
END OF SESSION PROTOCOL
End your final response on a separate line exactly with:
---
✓ Done.