From 2cc2017f562c43f5e2c31ed65dfb8c6efa902b4d Mon Sep 17 00:00:00 2001 From: Hitesh Kumar Date: Sat, 9 May 2026 18:45:46 +0530 Subject: [PATCH] fix(ui): bottom action buttons clipped by browser/OS chrome + add AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `www/css/tabs.css`: The .tab CSS rule had `padding: 70px 16px 24px 16px` together with `height: 100vh`. 24 px is below the Windows taskbar height (~40-50 px) and below the iOS home-indicator safe area, and `height: 100vh` (not `min-height`) locks the tab to the viewport at the moment of layout so it doesn't re-flow when mobile browser chrome appears. Result: the WhatsApp / Save / Print row at the bottom of the Bills form (and any similar bottom row in other tabs) was partially or fully hidden behind the OS taskbar / dynamic browser chrome on user devices. The fix bumps bottom padding to 96 px and adds `env(safe-area-inset-bottom)` on top so the iOS home indicator is also respected. `height: 100vh` is intentionally kept — replacing it is a larger refactor with risk of breaking inner-scroll behaviour on Android. Verified in the staging clone via Playwright at viewport heights 720 and 600 — Save and Print buttons fully on-screen with margin to spare in both cases. (Origin commit: aadhat-staging 6a90200.) `AGENTS.md` (new): Adds a top-level orientation guide for AI coding agents working in this repo. Mirrors the AGENTS.md that already exists in the staging clone, adapted for prod context (production-safety rules instead of clone- safety rules; staging-clone existence documented in section 6 so future agents know where greenfield work happens). No application logic changed; both files are documentation/CSS only. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- AGENTS.md | 198 +++++++++++++++++++++++++++++++++++++++++++++++ www/css/tabs.css | 11 ++- 2 files changed, 208 insertions(+), 1 deletion(-) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..3b6c172 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,198 @@ +# AGENTS.md — Guide for AI agents working in this repo + +> If you are an AI coding agent landing in this repository, **read this file +> before doing anything else**. It will save you (and the human) a lot of +> wasted turns. + +--- + +## 1. What this repo is + +`AadhatManagementApp` — a Hindi/English wholesale-retail business app for +small-scale grain/produce traders. It runs on **Firebase Hosting + Firestore + +Auth**, is built as **vanilla ES module-style JS** (no bundler, no framework), +and is wrapped in **Capacitor** for Android distribution. + +- **Owner**: `DDancingDeath` (https://github.com/DDancingDeath/AadhatManagementApp) +- **Live URL**: `https://aadhat-management.web.app` +- **A read-only staging clone exists** at + `https://github.com/DDancingDeath/AadhatManagementApp-staging` (private). + All risky improvements are tried there first; verified fixes are + cherry-picked / PR'd back here. See section 6. + +--- + +## 2. The unbreakable rules + +1. **This repo is production.** Real users in the field are using the live + site and the Android build. Treat every change like a security patch: + small, reviewed, reversible. +2. **Never bypass `FirebaseService`.** All Firestore reads/writes must go + through the wrapper so collection prefixing (`prod_*` / `staging_*`) + stays correct. Several existing modules bypass it — those are bugs, not + patterns to copy. +3. **Don't add a build step or framework.** No webpack, no Vite, no React. + Inline `