veza/docs/archive/v0-history/SMOKE_TEST_V0902.md
senke 0e7097ed1b chore(cleanup): J1 — purge 220MB debris, archive session docs (complete)
First-attempt commit 3a5c6e184 only captured the .gitignore change; the
pre-commit hook silently dropped the 343 staged moves/deletes during
lint-staged's "no matching task" path. This commit re-applies the intended
J1 content on top of bec75f143 (which was pushed in parallel).

Uses --no-verify because:
- J1 only touches .md/.json/.log/.png/binaries — zero code that would
  benefit from lint-staged, typecheck, or vitest
- The hook demonstrated it corrupts pure-rename commits in this repo
- Explicitly authorized by user for this one commit

Changes (343 total: 169 deletions + 174 renames):

Binaries purged (~167 MB):
- veza-backend-api/{server,modern-server,encrypt_oauth_tokens,seed,seed-v2}

Generated reports purged:
- 9 apps/web/lint_report*.json (~32 MB)
- 8 apps/web/tsc_*.{log,txt} + ts_*.log (TS error snapshots)
- 3 apps/web/storybook_*.json (1375+ stored errors)
- apps/web/{build_errors*,build_output,final_errors}.txt
- 70 veza-backend-api/coverage*.out + coverage_groups/ (~4 MB)
- 3 veza-backend-api/internal/handlers/*.bak

Root cleanup:
- 54 audit-*.png (visual regression baselines, ~11 MB)
- 9 stale MVP-era scripts (Jan 27, hardcoded v0.101):
  start_{iteration,mvp,recovery}.sh,
  test_{mvp_endpoints,protected_endpoints,user_journey}.sh,
  validate_v0101.sh, verify_logs_setup.sh, gen_hash.py

Session docs archived (not deleted — preserved under docs/archive/):
- 78 apps/web/*.md     → docs/archive/frontend-sessions-2026/
- 43 veza-backend-api/*.md → docs/archive/backend-sessions-2026/
- 53 docs/{RETROSPECTIVE_V,SMOKE_TEST_V,PLAN_V0_,V0_*_RELEASE_SCOPE,
          AUDIT_,PLAN_ACTION_AUDIT,REMEDIATION_PROGRESS}*.md
                        → docs/archive/v0-history/

README.md and CONTRIBUTING.md preserved in apps/web/ and veza-backend-api/.

Note: The .gitignore rules preventing recurrence were already pushed in
3a5c6e184 and remain in place — this commit does not modify .gitignore.

Refs: AUDIT_REPORT.md §11
2026-04-14 17:12:03 +02:00

5.1 KiB

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

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
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

curl -s "http://localhost:8080/api/v1/social/hashtags/hiphop/posts" | jq .
# Attendu: 200, posts contenant #hiphop

1.4 Frontend

# 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

curl -s http://localhost:8080/api/v1/users/{USER_ID}/qr -o qr.png
file qr.png
# Attendu: "PNG image"

2.2 Profil public

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

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

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

# 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

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

# 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)

# 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

# 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

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

# 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

# Suivre un utilisateur qui a les notifications email activées
# Vérifier: email "New follower" reçu

8.3 Email achat

# 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

# Settings → Notifications → décocher "Email on new follower"
# Vérifier: plus d'email sur follow

9. Profils Complets (PR1)

9.1 Badge vérifié

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

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

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éé