Skip to content

Commit 6df2118

Browse files
feat: Add skeleton loaders and animations to more screens
1 parent adc0e0a commit 6df2118

File tree

18 files changed

+270
-106
lines changed

18 files changed

+270
-106
lines changed

.github/workflows/bundle-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

.github/workflows/preview.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
name: Create EAS Preview
22

33
on:
4-
pull_request_target:
4+
pull_request:
55

66
permissions:
77
contents: read
88
pull-requests: write
99

1010
jobs:
1111
preview:
12-
if: contains(github.event.pull_request.labels.*.name, 'run-preview')
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Checkout repository
16-
uses: actions/checkout@v5
17-
with:
18-
ref: ${{ github.event.pull_request.head.sha }}
15+
uses: actions/checkout@v4
1916

2017
- name: Setup Node.js
2118
uses: actions/setup-node@v4

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 🏗 Setup repo
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v4
1919

2020
- name: 🏗 Setup Node
2121
uses: actions/setup-node@v4

.github/workflows/rn-bundle-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0 # Full history for better diff analysis
1717

backend/app/expenses/routes.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,3 +460,52 @@ async def group_expense_analytics(
460460
raise HTTPException(status_code=404, detail=str(e))
461461
except Exception as e:
462462
raise HTTPException(status_code=500, detail="Failed to fetch analytics")
463+
464+
465+
# Debug endpoint (remove in production)
466+
@router.get("/expenses/{expense_id}/debug")
467+
async def debug_expense(
468+
group_id: str,
469+
expense_id: str,
470+
current_user: Dict[str, Any] = Depends(get_current_user),
471+
):
472+
"""Debug endpoint to check expense details and user permissions"""
473+
try:
474+
from app.database import mongodb
475+
from bson import ObjectId
476+
477+
# Check if expense exists
478+
expense = await mongodb.database.expenses.find_one(
479+
{"_id": ObjectId(expense_id)}
480+
)
481+
if not expense:
482+
return {"error": "Expense not found", "expense_id": expense_id}
483+
484+
# Check group membership
485+
group = await mongodb.database.groups.find_one(
486+
{"_id": ObjectId(group_id), "members.userId": current_user["_id"]}
487+
)
488+
489+
# Check if user created the expense
490+
user_created = expense.get("createdBy") == current_user["_id"]
491+
492+
return {
493+
"expense_exists": True,
494+
"expense_id": expense_id,
495+
"group_id": group_id,
496+
"user_id": current_user["_id"],
497+
"expense_created_by": expense.get("createdBy"),
498+
"user_created_expense": user_created,
499+
"user_in_group": group is not None,
500+
"expense_group_id": expense.get("groupId"),
501+
"group_id_match": expense.get("groupId") == group_id,
502+
"expense_data": {
503+
"description": expense.get("description"),
504+
"amount": expense.get("amount"),
505+
"splits_count": len(expense.get("splits", [])),
506+
"created_at": expense.get("createdAt"),
507+
"updated_at": expense.get("updatedAt"),
508+
},
509+
}
510+
except Exception as e:
511+
return {"error": str(e), "type": type(e).__name__}

frontend/assets/adaptive-icon.png

-1.44 MB
Loading
-23.3 KB
Binary file not shown.
-615 KB
Binary file not shown.

frontend/assets/favicon.png

-2.56 KB
Loading

0 commit comments

Comments
 (0)