tia/src/lib
Mannu 3cfcbdc0ca fix: garment upload MIME/proxy, log edit time pre-fill, date-ist hardening, wardrobe camera+gallery
- /api/img: add garments/ to ALLOWED_PREFIXES so garment images proxy correctly
- garments upload: resolve Android empty MIME type from file extension; return
  /api/img proxy URLs instead of raw pub-*.r2.dev (blocked by Cloudflare Bot Mgmt)
- garments route + [id] route: toDto() now builds /api/img?key= proxy URLs
- date-ist.ts: add toUTCDate() helper -- strings without Z/offset treated as UTC,
  preventing browser local-time misinterpretation; used in fmtTime, fmtDate, dateIST
- LogModal: add editTime to SmartDefault; pre-fill time picker (custom preset) when
  editing an existing log instead of defaulting to now
- activity page: pass editTime: log.loggedAt in handleEdit so LogModal pre-fills
- wardrobe/add: explicit Camera and Gallery buttons via separate hidden inputs
  (one with capture=environment for direct camera, one without for media picker)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 00:42:04 +05:30
..
ai Fix memories disappearing + always-processing state 2026-05-28 22:37:46 +05:30
media feat(g1-g4): design system, memories pipeline, medical tracking, AI brain 2026-05-17 17:48:34 +05:30
wardrobe feat(wardrobe): add complete wardrobe feature (W0–W9) 2026-05-23 18:09:22 +05:30
admin-auth.ts fix(admin): use correct column name 'expires' in admin_sessions queries 2026-05-17 12:22:17 +05:30
api.ts refactor: full codebase sweep — shared types, utilities, component splits 2026-05-18 21:37:39 +05:30
audit.ts Add security libs: auth, audit, rate-limit, scoped db 2026-05-16 23:10:56 +05:30
auth.ts Fix JOIN - sessions directly to family_members 2026-05-17 00:38:15 +05:30
date-ist.ts fix: garment upload MIME/proxy, log edit time pre-fill, date-ist hardening, wardrobe camera+gallery 2026-05-29 00:42:04 +05:30
email.ts fix(email): use tia@tia.manohargupta.com + auto-fallback to shared domain 2026-05-24 16:01:55 +05:30
format-bytes.ts feat(quota): storage quota + family-member limits for free tier 2026-05-27 23:21:11 +05:30
formatting.ts refactor: full codebase sweep — shared types, utilities, component splits 2026-05-18 21:37:39 +05:30
growth-standards.ts Add WHO growth standards with percentile tracking 2026-05-16 18:07:41 +05:30
guidelines.ts Fix activity page repetition + 4-day strip layout + guideline accuracy 2026-05-23 23:35:32 +05:30
milestones.ts feat(g5-g6): age-aware UX + mama affiliate page 2026-05-18 00:59:17 +05:30
oauth.ts feat: email verification + Google OAuth 2026-05-24 12:56:02 +05:30
offline-queue.ts feat(logging): time presets, FAB on activity, today summary, smart defaults 2026-05-18 11:21:00 +05:30
quota.ts feat(quota): enforce 1-baby limit on free plan 2026-05-28 00:52:23 +05:30
r2-proxy.ts Proxy R2 images through /api/img to fix 503 from Cloudflare Bot Management 2026-05-28 21:35:25 +05:30
rate-limit.ts Add security libs: auth, audit, rate-limit, scoped db 2026-05-16 23:10:56 +05:30