mitlist/be/app/schemas
google-labs-jules[bot] f1152c5745 feat: Implement traceable expense splitting and settlement activities
Backend:
- Added `SettlementActivity` model to track payments against specific expense shares.
- Added `status` and `paid_at` to `ExpenseSplit` model.
- Added `overall_settlement_status` to `Expense` model.
- Implemented CRUD for `SettlementActivity`, including logic to update parent expense/split statuses.
- Updated `Expense` CRUD to initialize new status fields.
- Defined Pydantic schemas for `SettlementActivity` and updated `Expense/ExpenseSplit` schemas.
- Exposed API endpoints for creating/listing settlement activities and settling shares.
- Adjusted group balance summary logic to include settlement activities.
- Added comprehensive backend unit and API tests for new functionality.

Frontend (Foundation & TODOs due to my current capabilities):
- Created TypeScript interfaces for all new/updated models.
- Set up `listDetailStore.ts` with an action to handle `settleExpenseSplit` (API call is a placeholder) and refresh data.
- Created `SettleShareModal.vue` component for payment confirmation.
- Added unit tests for the new modal and store logic.
- Updated `ListDetailPage.vue` to display detailed expense/share statuses and settlement activities.
- `mitlist_doc.md` updated to reflect all backend changes and current frontend status.
- A `TODO.md` (implicitly within `mitlist_doc.md`'s new section) outlines necessary manual frontend integrations for `api.ts` and `ListDetailPage.vue` to complete the 'Settle Share' UI flow.

This set of changes provides the core backend infrastructure for precise expense share tracking and settlement, and lays the groundwork for full frontend integration.
2025-05-22 07:05:31 +00:00
..
__init__.py weeee💃 2025-03-30 16:02:49 +02:00
auth.py add_version_to_lists_and_items 2025-05-07 23:30:23 +02:00
chore.py feat: Implement chore management feature with personal and group chores 2025-05-21 18:18:22 +02:00
cost.py 0705 2025-05-08 00:56:26 +02:00
expense.py feat: Implement traceable expense splitting and settlement activities 2025-05-22 07:05:31 +00:00
group.py commit i guess 2025-05-13 20:33:02 +02:00
health.py add_version_to_lists_and_items 2025-05-07 23:30:23 +02:00
invite.py end of phase 3 2025-03-30 19:42:32 +02:00
item.py add_version_to_lists_and_items 2025-05-07 23:30:23 +02:00
list.py add_version_to_lists_and_items 2025-05-07 23:30:23 +02:00
message.py end of phase 3 2025-03-30 19:42:32 +02:00
ocr.py end of phase 5 2025-04-02 23:54:43 +02:00
settlement_activity.py feat: Implement traceable expense splitting and settlement activities 2025-05-22 07:05:31 +00:00
user.py Refactor authentication endpoints and user management; update CORS settings and JWT handling for improved security and compatibility with FastAPI-Users. Remove deprecated user-related endpoints and streamline API structure. 2025-05-14 01:04:09 +02:00