Commit Graph

101 Commits

Author SHA1 Message Date
9cac339d0a fix: improve AI router prompt for topic message routing
- Add engagement rule: respond when engaged=yes/mention/reply (not silent)
- Add explicit purchase rules: classify as candidate when realistic items + amount
- Add fantastical purchase rule: respond with chat_reply (playful), not silent
- Add payment classification rules
- Simplify prompt structure for clarity
2026-03-14 10:44:03 +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
1274cefc0f Stabilize purchase functionality: fix ID prefix, uniqueness, and split participant inclusion 2026-03-13 22:29:17 +04:00
94a5904f54 feat(miniapp): refine UI and add utility bill management
- Fix collapsible padding and button spacing
- Add subtotal to balance card
- Add utility bill management for admins
- Fix lints and type checks across the monorepo
- Implement rejectPendingHouseholdMember in repository and service
2026-03-13 05:52:34 +04:00
f1670c521f Refine topic workflow followups 2026-03-13 02:21:08 +04:00
88b50d2cb7 Refine topic assistant conversation context 2026-03-12 22:00:31 +04:00
401bbbdcca Refine topic context and purchase followup guards 2026-03-12 20:24:50 +04:00
b7fa489d24 Fix topic message history persistence 2026-03-12 19:21:37 +04:00
23faeef738 feat(bot): add topic history-aware assistant replies 2026-03-12 19:06:51 +04:00
5ebae7714c fix(bot): improve purchase-topic conversation flow 2026-03-12 18:23:26 +04:00
8374d18189 feat(bot): add shared topic router 2026-03-12 17:12:26 +04:00
014d791bdc fix(bot): improve calculated purchase confirmation flow 2026-03-12 15:35:02 +04:00
ca61085179 Fix purchase topic engagement gating 2026-03-12 14:44:55 +04:00
0d2065fd5e feat(miniapp): redesign balance and due-state flows 2026-03-12 14:08:55 +04:00
6053379f31 fix(miniapp): clarify cycle summary and balance sections 2026-03-12 13:12:39 +04:00
a50b826b40 feat(miniapp): improve billing settings controls 2026-03-12 11:37:57 +04:00
4c19ee798d feat(miniapp): add household general settings 2026-03-12 11:30:11 +04:00
4e7400e908 feat(bot): add configurable household assistant behavior 2026-03-12 03:22:43 +04:00
e56f1194e9 fix(bot): improve utilities reminder template flow 2026-03-12 02:54:42 +04:00
135a2301ca feat(miniapp): redesign member balance surfaces 2026-03-12 02:10:22 +04:00
a78eb88fa4 fix(bot): hand off reminder dashboard opens through dm 2026-03-11 22:36:43 +04:00
6b8c2fa397 feat(bot): add reminder utility entry flow 2026-03-11 22:23:24 +04:00
c8c6bd2e39 feat(bot): redesign household status output 2026-03-11 15:24:00 +04:00
086e521ce7 feat(setup): add reply-based household invites 2026-03-11 15:21:18 +04:00
0787847c19 feat(member): improve assistant roster awareness 2026-03-11 15:10:20 +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
fce2d30beb feat(bot): support tagged assistant replies in topics 2026-03-11 12:15:56 +04:00
9553ca342a fix(bot): shorten payment topic callback payloads 2026-03-11 11:46:25 +04:00
690347e7ea fix(bot): expire pending payment topic actions 2026-03-11 11:26:16 +04:00
3ff4bbc246 feat(bot): add structured payment topic confirmations 2026-03-11 11:23:49 +04:00
4cd5622d63 fix(bot): refresh setup checklist after manual binds 2026-03-11 11:23:33 +04:00
dd243d7edd feat(bot): route purchase dms through confirmation flow 2026-03-11 06:19:14 +04:00
b6b6f9e1b8 feat(bot): add safe group unsetup flow 2026-03-11 06:08:34 +04:00
1b8c6e87f6 feat(bot): add guided setup topic binding flow 2026-03-11 05:20:53 +04:00
60a5cd332e chore(config): align default ai model settings 2026-03-11 04:51:51 +04:00
c0e4f2c054 fix(bot): correct mis-scaled purchase amounts 2026-03-11 04:49:59 +04:00
5bc25e0c95 feat(bot): use typing indicator for dm assistant 2026-03-11 04:11:34 +04:00
b5630c0241 perf(bot): trim dm assistant response latency 2026-03-11 03:51:40 +04:00
4dd469a0fe chore(bot): log assistant stage timings 2026-03-11 03:41:03 +04:00
ac5f11f8da fix(bot): harden webhook processing and purchase defaults 2026-03-11 03:25:16 +04:00
dc09a07e21 feat(bot): show processing replies during llm work 2026-03-11 03:10:23 +04:00
5d83309a9e fix(bot): scale llm purchase confidence values 2026-03-11 03:00:12 +04:00
43285e590b fix(bot): parse nested openai responses payloads 2026-03-11 02:43:22 +04:00
714d2a985d feat(bot): add conversational DM assistant flow 2026-03-11 01:41:58 +04:00
a63c702037 feat(bot): add confirmed purchase proposals in topic ingestion 2026-03-11 01:32:47 +04:00
d1a3f0e10c fix(bot): use household locale for anonymous posts 2026-03-11 01:32:40 +04:00
001f3cf985 refactor(bot): refine household status wording 2026-03-11 01:24:04 +04:00