Add Release Scope, Implementation Plan, and Smoke Test for 7 versions: - v0.703: Go Live & Streaming Complet (Phase 7 Finale) - v0.801: UX/UI Polish, Accessibilite & PWA (Phase 8) - v0.802: Cloud Complet, Fichiers & Gear Avance (Phase 8) - v0.803: Securite, Compliance & Outillage Dev (Phase 8) - v0.901: Marketplace Complet & Analytics Avances (Phase 9) - v0.902: Social Complet, Chat & Notifications (Phase 9) - v0.903: Stabilisation v1.0 & Launch Readiness (Phase 9) 21 documents total (3 per version), covering all remaining features needed to reach v1.0 from v0.702.
229 lines
5.1 KiB
Markdown
229 lines
5.1 KiB
Markdown
# Smoke Test v0.902 — Social Complet, Chat & Notifications
|
|
|
|
## Prérequis
|
|
|
|
- `veza-backend-api` compilé et démarré
|
|
- PostgreSQL avec migrations appliquées jusqu'à 131
|
|
- `.env` avec `DATABASE_URL`, `JWT_SECRET`, `GIPHY_API_KEY`, `SMTP_HOST` ou `SENDGRID_API_KEY`
|
|
- Utilisateur standard + admin avec tokens JWT
|
|
- Au moins 1 post créé, 1 conversation chat, 1 track, 1 order
|
|
|
|
---
|
|
|
|
## 1. Hashtags (SO1)
|
|
|
|
### 1.1 Créer un post avec hashtag
|
|
|
|
```bash
|
|
curl -s -X POST http://localhost:8080/api/v1/social/posts \
|
|
-H "Authorization: Bearer {TOKEN}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"content": "New beat drop! #hiphop #beats #newmusic"}' | jq .
|
|
# Attendu: 201, post créé, hashtags parsés
|
|
```
|
|
|
|
### 1.2 Trending hashtags
|
|
|
|
```bash
|
|
curl -s http://localhost:8080/api/v1/social/hashtags/trending | jq .
|
|
# Attendu: 200, top 20 hashtags par fréquence (7 derniers jours)
|
|
```
|
|
|
|
### 1.3 Feed par hashtag
|
|
|
|
```bash
|
|
curl -s "http://localhost:8080/api/v1/social/hashtags/hiphop/posts" | jq .
|
|
# Attendu: 200, posts contenant #hiphop
|
|
```
|
|
|
|
### 1.4 Frontend
|
|
|
|
```bash
|
|
# Naviguer vers /social → vérifier hashtags cliquables dans les posts
|
|
# Cliquer un hashtag → page filtrée /social/hashtags/hiphop
|
|
```
|
|
|
|
---
|
|
|
|
## 2. QR Code & Profil (SO1)
|
|
|
|
### 2.1 QR code profil
|
|
|
|
```bash
|
|
curl -s http://localhost:8080/api/v1/users/{USER_ID}/qr -o qr.png
|
|
file qr.png
|
|
# Attendu: "PNG image"
|
|
```
|
|
|
|
### 2.2 Profil public
|
|
|
|
```bash
|
|
curl -s http://localhost:8080/u/{USERNAME} | grep "og:title"
|
|
# Attendu: HTML avec meta og:title contenant le nom de l'utilisateur
|
|
```
|
|
|
|
---
|
|
|
|
## 3. Referral (SO1)
|
|
|
|
### 3.1 Envoyer une invitation
|
|
|
|
```bash
|
|
curl -s -X POST http://localhost:8080/api/v1/invitations \
|
|
-H "Authorization: Bearer {TOKEN}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"email": "friend@example.com"}' | jq .
|
|
# Attendu: 200, invitation créée avec token unique
|
|
```
|
|
|
|
---
|
|
|
|
## 4. Chat Images (CH1)
|
|
|
|
### 4.1 Upload image
|
|
|
|
```bash
|
|
curl -s -X POST http://localhost:8080/api/v1/chat/upload-image \
|
|
-H "Authorization: Bearer {TOKEN}" \
|
|
-F "image=@photo.jpg" | jq .
|
|
# Attendu: 200, { "url": "https://s3.../chat-images/..." }
|
|
```
|
|
|
|
### 4.2 Frontend
|
|
|
|
```bash
|
|
# Ouvrir une conversation chat
|
|
# Cliquer bouton image → sélectionner fichier → image envoyée
|
|
# Vérifier: image affichée inline dans le chat
|
|
```
|
|
|
|
---
|
|
|
|
## 5. Chat GIFs (CH1)
|
|
|
|
### 5.1 Recherche GIF
|
|
|
|
```bash
|
|
curl -s "http://localhost:8080/api/v1/chat/gifs?q=happy" \
|
|
-H "Authorization: Bearer {TOKEN}" | jq .
|
|
# Attendu: 200, { "gifs": [{ "id": "...", "url": "...", "preview_url": "..." }] }
|
|
```
|
|
|
|
### 5.2 Frontend
|
|
|
|
```bash
|
|
# Dans le chat, cliquer bouton GIF → search "happy"
|
|
# Vérifier: grille de GIFs apparaît
|
|
# Cliquer un GIF → envoyé dans la conversation
|
|
```
|
|
|
|
---
|
|
|
|
## 6. Chat Track Share (CH1)
|
|
|
|
```bash
|
|
# Dans le chat, cliquer bouton Share Track → sélectionner une track
|
|
# Vérifier: message avec mini player embed (cover + titre + bouton play)
|
|
# Cliquer play → track joue dans le player principal
|
|
```
|
|
|
|
---
|
|
|
|
## 7. Pin & Bookmark Messages (CH1)
|
|
|
|
### 7.1 Pin message
|
|
|
|
```bash
|
|
# Dans le chat, clic droit sur un message → "Pin Message"
|
|
# Vérifier: message apparaît en haut de la conversation (barre pinned)
|
|
```
|
|
|
|
### 7.2 Bookmark message
|
|
|
|
```bash
|
|
curl -s -X POST http://localhost:8080/api/v1/chat/bookmarks/{MESSAGE_ID} \
|
|
-H "Authorization: Bearer {TOKEN}" | jq .
|
|
# Attendu: 200, bookmark créé
|
|
|
|
curl -s http://localhost:8080/api/v1/chat/bookmarks \
|
|
-H "Authorization: Bearer {TOKEN}" | jq .
|
|
# Attendu: 200, liste des messages bookmarkés
|
|
```
|
|
|
|
---
|
|
|
|
## 8. Emails Transactionnels (NF1)
|
|
|
|
### 8.1 Email de bienvenue
|
|
|
|
```bash
|
|
# Créer un nouveau compte
|
|
# Vérifier: email de bienvenue reçu (vérifier boîte mail ou logs SMTP)
|
|
```
|
|
|
|
### 8.2 Email nouveau follower
|
|
|
|
```bash
|
|
# Suivre un utilisateur qui a les notifications email activées
|
|
# Vérifier: email "New follower" reçu
|
|
```
|
|
|
|
### 8.3 Email achat
|
|
|
|
```bash
|
|
# Effectuer un achat marketplace
|
|
# Vérifier: buyer reçoit email "Purchase confirmation"
|
|
# Vérifier: seller reçoit email "New sale notification"
|
|
```
|
|
|
|
### 8.4 Préférences email
|
|
|
|
```bash
|
|
# Settings → Notifications → décocher "Email on new follower"
|
|
# Vérifier: plus d'email sur follow
|
|
```
|
|
|
|
---
|
|
|
|
## 9. Profils Complets (PR1)
|
|
|
|
### 9.1 Badge vérifié
|
|
|
|
```bash
|
|
curl -s -X POST http://localhost:8080/api/v1/admin/users/{USER_ID}/verify \
|
|
-H "Authorization: Bearer {ADMIN_TOKEN}" | jq .
|
|
# Attendu: 200, user is_verified = true
|
|
|
|
# Frontend: vérifier badge bleu à côté du nom de l'utilisateur
|
|
```
|
|
|
|
### 9.2 Rôle Producer/Label
|
|
|
|
```bash
|
|
curl -s -X PUT http://localhost:8080/api/v1/users/me/role \
|
|
-H "Authorization: Bearer {TOKEN}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"role_type": "producer"}' | jq .
|
|
# Attendu: 200, role_type = producer
|
|
|
|
# Frontend: badge "Producer" visible dans le profil
|
|
```
|
|
|
|
---
|
|
|
|
## 10. Tests automatisés
|
|
|
|
```bash
|
|
cd veza-backend-api && go test ./... -v
|
|
cd apps/web && npm run build
|
|
```
|
|
|
|
---
|
|
|
|
## 11. Documentation
|
|
|
|
- [ ] `docs/API_REFERENCE.md` sections Social, Chat, Notifications, Profiles
|
|
- [ ] `CHANGELOG.md` contient entrée v0.902
|
|
- [ ] `docs/PROJECT_STATE.md` : Dernier tag = v0.902
|
|
- [ ] `docs/FEATURE_STATUS.md` : section "Livré en v0.902"
|
|
- [ ] `git tag v0.902` créé
|