# Login-first entry and demo tracking data

## What changed

- `/` now redirects unauthenticated users to `/auth/login`.
- The Seva Setu homepage, Seva Bhaav listing/details and Seva Daan listing/details require authentication.
- After SSO, local login or development bypass login, users land on the Seva Setu homepage.
- The seed now preloads realistic completed volunteering and successful donation history for the three demo personas.

## Demo users

When `DEV_LOGIN_ENABLED=true`:

- Admin: `PSS-ADMIN-001` / `Demo@123`
- Manager: `PSS-MGR-001` / `Demo@123`
- Employee: `PSS-EMP-001` / `Demo@123`

The existing development bypass buttons continue to work as well.

## Prefilled tracking data

The seed creates two historical completed volunteering activities and maps participation/attendance as follows:

- Demo Employee: 2 completed activities, 7 volunteer hours
- Demo Manager: 1 completed activity, 3.5 volunteer hours
- Seva Setu Admin: 1 completed activity, 2 volunteer hours

It also creates Hearts transactions using the configured volunteer-hour and activity-completion rules.

Successful demo donations are also seeded:

- Demo Employee: INR 2,500 + INR 1,000
- Demo Manager: INR 1,500
- Seva Setu Admin: INR 500

Each seeded donation has a demo transaction and receipt record. This allows the homepage leaderboard, profile contribution KPIs, My Impact and Seva Daan fundraising progress to show meaningful values immediately.

## Apply

No schema change was required for this update.

Run:

```bash
python scripts/seed.py
```

The seed is idempotent and can be rerun without duplicating the demo history.
