# Piramal Seva Setu - Feedback V1 implementation

This release implements the 6 Oct feedback set and keeps the existing public discovery, SSO/local-authentication, RBAC, manager approval, attendance and Hearts flows intact.

## Implemented

- SSO-first login presentation. Local ID/password remains secondary for users configured with `auth_method=LOCAL`.
- Post-login landing now opens the main Seva Setu homepage so programme purpose is established before transactions.
- New homepage flow: Hero -> Doing Well, Doing Good -> India Is Us -> Why Seva Matters -> Seva Bhaav/Seva Daan tabs -> Seva Champions -> Impact Created -> From the Field -> Phase 2 impact stories.
- Leadership section limited to Jairam Sridharan, MD & CEO and Parneet Soni, Head HR, using the supplied photographs. No quote is fabricated; approved quote copy can be added later.
- Supplied Piramal Seva Setu logo used in the header, login and hero experience.
- Activity detail now includes date, time, duration, venue, partner, volunteering type, eligibility, registration deadline, carry/wear instructions, manager approval, cancellation/no-show guidance and expense non-reimbursement statement.
- Activity admin supports up to four image paths. Image 1 is primary; completed activities can feed the From the Field carousel.
- My Profile is contribution-led with volunteer hours, activities/causes supported and Hearts earned.
- Seva Champions leaderboard now includes rank, employee, location, Hearts, volunteer hours and activities/causes supported.
- Seva Daan cards/detail show implementing organisation, need, expected impact, disclosures, live/offline fundraising progress, tax exemption status and receipt/documentation.
- Strong Donate Now CTA is visible. Payment remains disabled until the approved payment gateway is activated.
- Local users now have Forgot Password. Reset links are one-time, time-limited, token hashes are stored (not raw tokens), and only LOCAL accounts are eligible.

## Database migration

Run:

```bash
python -m flask db upgrade
```

New revision: `e9a4c7d2f115_feedback_homepage_password_reset.py`

## Password-reset mail settings

Add to `.env`:

```text
MAIL_SERVER=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_USE_TLS=true
MAIL_USE_SSL=false
MAIL_DEFAULT_SENDER=sevasetu@example.com
PASSWORD_RESET_MINUTES=30
```

If mail is not configured, production does not expose reset links. In development/debug mode the generated link is flashed to help test the flow.

## Optional demo content refresh

After migration, `python scripts/seed.py` will populate the new guidance/transparency fields for the existing seeded demo records without duplicating them.
