Commit Graph

29 Commits

Author SHA1 Message Date
97b5edcc0a feat(db): enforce runtime RLS boundaries 2026-03-22 22:49:47 +04:00
7665af0268 feat(bot): quiet finance topics and support purchase payers 2026-03-22 20:27:43 +04:00
fcafdefa76 fix(db): properly set search_path via URL options for PgBouncer compatibility 2026-03-16 03:21:27 +04:00
6b38e0898c chore(db): update migration checksums for 0020 migration 2026-03-15 21:08:43 +04:00
0747973c8f feat(db): add rent_payment_destinations column and multi-schema support
- Add migration 0020 for rent_payment_destinations jsonb column
- Add DB_SCHEMA env var support for multi-schema deployments
- Create custom migrate.ts script with proper search_path handling
- Update drizzle.config.ts and client.ts to use DB_SCHEMA
- Add db_schema variable to Terraform with dev=test/prod=public defaults
- Update CD workflow to set DB_SCHEMA based on branch
2026-03-15 20:26:26 +04:00
b3bef4a5c9 chore: update migration checksums for 0020_silver_payments
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-14 08:58:32 +04:00
488a488137 feat: add quick payment action and improve copy button UX
Mini App Home Screen:
- Add 'Record Payment' button to utilities and rent period cards
- Pre-fill payment amount with member's share (rentShare/utilityShare)
- Modal dialog with amount input and currency display
- Toast notifications for copy and payment success/failure feedback

Copy Button Improvements:
- Increase spacing between icon and text (4px → 8px)
- Add hover background and padding for better touch target
- Green background highlight when copied (in addition to icon color change)
- Toast notification appears when copying any value

Backend:
- Add /api/miniapp/payments/add endpoint for quick payments
- Payment notifications sent to 'reminders' topic in Telegram
- Include member name, payment type, amount, and period in notification

Files:
- New: apps/miniapp/src/components/ui/toast.tsx
- Modified: apps/miniapp/src/routes/home.tsx, apps/miniapp/src/index.css,
  apps/miniapp/src/theme.css, apps/miniapp/src/i18n.ts,
  apps/bot/src/miniapp-billing.ts, apps/bot/src/server.ts

Quality Gates:  format, lint, typecheck, build, test

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-14 08:51:53 +04:00
23faeef738 feat(bot): add topic history-aware assistant replies 2026-03-12 19:06:51 +04:00
4e7400e908 feat(bot): add configurable household assistant behavior 2026-03-12 03:22:43 +04:00
e211ab9391 chore(db): update migration checksums 2026-03-11 16:02:06 +04:00
79f96ba45b feat(payments): add transparent balance guidance 2026-03-11 14:52:09 +04:00
8401688032 feat(purchase): add per-purchase participant splits 2026-03-11 14:34:27 +04:00
98988159eb feat(member): add away billing policies 2026-03-11 14:05:52 +04:00
773abf2531 feat(member): add household lifecycle states 2026-03-11 13:44:38 +04:00
54895c0bd2 refactor(db): replace legacy fixture seed 2026-03-10 18:50:50 +04:00
1988521931 feat(payments): track household payment confirmations 2026-03-10 17:00:45 +04:00
fb85219409 feat(finance): add settlement currency and cycle fx rates 2026-03-10 16:46:59 +04:00
6a04b9d7f5 feat(finance): support weighted rent split 2026-03-10 02:47:58 +04:00
565ac277c1 feat(miniapp): add admin billing settings foundation 2026-03-10 01:38:03 +04:00
63a2677601 fix(db): add locale repair migration hygiene guard 2026-03-09 15:54:50 +04:00
9de6bcc31b feat(locale): persist household and member preferences 2026-03-09 13:17:25 +04:00
4e200b506a feat(bot): add guided private prompts 2026-03-09 05:15:29 +04:00
8109163067 feat(onboarding): add mini app household join flow 2026-03-09 04:16:34 +04:00
e63d81cda2 feat(bot): add multi-household setup flow 2026-03-09 03:40:20 +04:00
7ffd81bda9 feat(bot): add anonymous feedback flow 2026-03-08 22:50:55 +04:00
ebb6ce4ce6 feat(WHE-23): add hybrid purchase parser with persisted parse metadata 2026-03-05 04:43:57 +04:00
67e9e2dee2 feat(WHE-22): ingest configured topic messages with idempotent persistence 2026-03-05 04:32:58 +04:00
b3ae1a51e4 feat(WHE-29): add v1 accounting schema migration and seed fixtures 2026-03-05 04:13:00 +04:00
8086044938 feat(WHE-27): add drizzle db package and typed env config 2026-03-05 03:05:02 +04:00