forked from jamesp/sasa-membership
Add member profile questions, admin tooling, legal pages, and fast tests
- Add configurable profile questions with conditional visibility, admin-only fields, user answers, and seeded onboarding/volunteer questions
- Add admin UI for managing profile questions and member profile answers
- Add volunteer level/profile data support across backend schemas, models, API, and migration
- Update dashboard/profile UI, super admin menu, membership service types, and related styling
- Add privacy policy, terms of service, cookie notice, and footer links
- Add frontend Vitest coverage for profile question logic
- Add backend pytest coverage for profile answer normalization and validation
- Update restart.sh to build, run frontend/backend unit tests, and restart only after tests pass
- Refresh README, quickstart, project structure, instructions, and Square docs to match current app features
- Protect feature flag reload behind super-admin access
- Restrict admin-triggered password resets so admins can only reset member accounts
- Replace email template HTML preview rendering with escaped text preview
- Update docs for feature flag reload access, password reset scope, and email template preview safety
-- test user questions are also made by AI and not very useful. but i didn't know what to put there so its good enough for a test
This commit is contained in:
@@ -38,19 +38,21 @@ SQUARE_APPLICATION_ID=sandbox-sq0idb-...your-app-id...
|
||||
Run the deployment script:
|
||||
|
||||
```bash
|
||||
./deploy-square.sh
|
||||
./restart.sh
|
||||
```
|
||||
|
||||
Or manually:
|
||||
|
||||
```bash
|
||||
docker-compose down
|
||||
docker-compose up -d --build
|
||||
docker compose build
|
||||
docker compose run --rm frontend npm test
|
||||
docker compose run --rm backend pytest -q
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
### Step 4: Test It Out!
|
||||
|
||||
1. Open http://localhost:3000
|
||||
1. Open http://localhost:8050 or https://localhost:8443 for HTTPS Square testing
|
||||
2. Register/login
|
||||
3. Go to "Setup Membership"
|
||||
4. Select a tier
|
||||
@@ -78,7 +80,7 @@ docker-compose up -d --build
|
||||
- ✅ `.env.example` - UPDATED
|
||||
- ✅ `SQUARE_PAYMENT_SETUP.md` - NEW (detailed setup guide)
|
||||
- ✅ `SQUARE_IMPLEMENTATION.md` - NEW (implementation details)
|
||||
- ✅ `deploy-square.sh` - NEW (deployment helper)
|
||||
- ✅ `restart.sh` - build, fast tests, and restart helper
|
||||
|
||||
## 🔧 Key Features
|
||||
|
||||
@@ -118,7 +120,7 @@ User → Select Tier → Choose Payment Method
|
||||
|
||||
### Backend won't start?
|
||||
```bash
|
||||
docker-compose logs backend
|
||||
docker compose logs backend
|
||||
```
|
||||
Check for missing dependencies or configuration errors.
|
||||
|
||||
@@ -156,7 +158,7 @@ When ready for production payments:
|
||||
|
||||
1. Check `SQUARE_PAYMENT_SETUP.md` for detailed instructions
|
||||
2. Review Square's documentation
|
||||
3. Check application logs: `docker-compose logs -f backend`
|
||||
3. Check application logs: `docker compose logs -f backend`
|
||||
4. Contact Square support for payment-specific issues
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user