Commit Graph

18 Commits

Author SHA1 Message Date
621bd75148 feat(miniapp): redesign admin payment management 2026-03-23 22:17:51 +04:00
5af14e101e feat(miniapp): carry overdue billing and admin role flows 2026-03-23 15:44:55 +04:00
f8ab08a7cb fix(miniapp): use type import for JSX from solid-js 2026-03-15 03:22:07 +04:00
62d62091a3 feat: add skeleton loading states for initial data load
- Add loading signal to DashboardContext
- Update Skeleton component to accept style prop
- Add skeleton UI to HomeRoute, LedgerRoute, and BalancesRoute
- Use Switch/Match pattern for three-state handling (loading/empty/content)
2026-03-14 11:08:35 +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
31dd1dc2ee fix: purchase split rebalancing and input focus issues
- Add onBlur handler to Input component for rebalancing on blur
- Rewrite rebalancePurchaseSplit to calculate delta vs total and distribute
- Extract ParticipantSplitInputs component with proper SolidJS reactivity
- Button shows 'Balance' when validation fails, 'Save' when valid
- Add i18n keys for purchaseBalanceAction and purchaseRebalanceAction
2026-03-13 10:40:42 +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
6053379f31 fix(miniapp): clarify cycle summary and balance sections 2026-03-12 13:12:39 +04:00
6e49cd1dfd fix(miniapp): refresh billing state and clean up controls 2026-03-12 04:27:46 +04:00
9afa9fc845 feat(miniapp): simplify current-cycle navigation and home summary 2026-03-12 04:11:57 +04:00
146f5294f4 fix(miniapp): remove balance debug text 2026-03-12 02:57:53 +04:00
789854358e fix(miniapp): address review feedback 2026-03-12 02:28:56 +04:00
135a2301ca feat(miniapp): redesign member balance surfaces 2026-03-12 02:10:22 +04:00
523b5144d8 refactor(miniapp): simplify dashboard layout and controls 2026-03-11 20:57:44 +04:00
e36d3b5d66 refactor(miniapp): polish toolbar and control affordances 2026-03-11 20:21:42 +04:00
ebd12eb46e refactor(miniapp): extract shell states and finance visuals 2026-03-11 18:44:12 +04:00
b193f8ddce refactor(miniapp): add rewrite foundation and demo fixtures 2026-03-11 18:41:36 +04:00
e07dfeadf5 refactor(miniapp): compact finance and admin editors 2026-03-11 17:22:48 +04:00