From 7d49759c75e1e3fe44855168c1274738a0dbc385 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 19 May 2026 09:50:11 +0000 Subject: [PATCH] Add user, admin, and developer documentation; expand CLAUDE.md Creates docs/ with three audience-specific guides: - docs/user-guide.md: step-by-step form-filling instructions, field descriptions, FX rate explanation, receipt handling, troubleshooting - docs/admin-guide.md: deployment instructions and exhaustive config.yml key/value reference with types, defaults, and constraints - docs/developer-guide.md: architecture overview, full state model, all CFG key mappings, PDF engine internals, column positions, four-pass build process, common modification checklists, known limitations Rewrites CLAUDE.md as a dense agent reference covering the same ground in a compact format: code section line ranges, full config key table with JS access patterns, validation rules, PDF coordinate system, design decisions, and modification checklists. https://claude.ai/code/session_01Dad69NPna53u4hucCYnVNs --- CLAUDE.md | 284 ++++++++++++++++++++++++++++------------ docs/admin-guide.md | 200 ++++++++++++++++++++++++++++ docs/developer-guide.md | 276 ++++++++++++++++++++++++++++++++++++++ docs/user-guide.md | 117 +++++++++++++++++ 4 files changed, 795 insertions(+), 82 deletions(-) create mode 100644 docs/admin-guide.md create mode 100644 docs/developer-guide.md create mode 100644 docs/user-guide.md diff --git a/CLAUDE.md b/CLAUDE.md index 0d5ba85..b2f044a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,107 +1,227 @@ -# Reimbursement Form App +# Reimbursement Form — Agent Reference -Static browser app that collects expense data via a form UI and generates a PDF with attached receipts. No server, no build step — one HTML file + config.yml + assets. +Static browser app that collects expense data via a form UI and generates a PDF with attached receipts. No server, no build step — one HTML file + config.yml + optional logo. + +## Repository layout + +``` +. +├── CLAUDE.md # This file +├── README.md +├── LICENSE +├── docs/ +│ ├── user-guide.md # End-user instructions +│ ├── admin-guide.md # Deployment and config.yml reference +│ └── developer-guide.md # Fork/extend instructions, design notes +└── app/ + ├── index.html # Entire application (~870 lines) + ├── config.yml # Runtime configuration (loaded via fetch at startup) + └── assets/ + └── logo.png # Optional logo (PNG or JPG) +``` ## Architecture -``` -reimbursement/ -├── index.html # Complete app (HTML + CSS + JS, ~850 lines) -├── config.yml # All configurable values (parsed at runtime via js-yaml) -├── assets/ -│ └── logo.png # Optional org logo -└── CLAUDE.md -``` +Single-file app. CSS in `