Feat/media storage s3 - #28
Merged
Merged
Conversation
added 2 commits
July 13, 2026 03:48
- QuizScreen : les questions ratees sont remises a la fin de la file plutot que definitivement passees (modele Duolingo) -- corrige un bug potentiel ou une lecon ne pouvait jamais se terminer via cet ecran, puisque le backend exige desormais qu'une question ait au moins une tentative correcte avant completion - LessonCompleteScreen : affiche l'XP gagne (diff avant/apres), le niveau et le streak, avec un court polling pour laisser le temps a l'evenement RabbitMQ asynchrone d'etre traite cote recommendation-service - lastKnownProgressionSnapshotProvider : capture la progression avant d'entrer dans une lecon pour permettre ce calcul de diff - Corrige la navigation du bouton Continuer (retournait a la racine au lieu de la liste des lecons de la langue en cours)
- MediaStorageService : upload vers un bucket S3-compatible (AWS SDK v2,
fonctionne avec n'importe quel provider S3-compatible -- Supabase ici,
gratuit sans carte bancaire requise, contrairement a Cloudflare R2)
- S3Config/S3Properties : endpoint, credentials et bucket lus depuis des
variables d'environnement (SUPABASE_S3_*), jamais commitees
- Nouveaux endpoints POST /words/{wordId}/audio et /words/{wordId}/image
(multipart/form-data), mettent a jour Word.audioUrl/imageUrl avec l'URL
publique retournee par Supabase
- Migration V3 : ajoute image_url a la table words
- Teste de bout en bout : upload d'un vrai fichier audio Yemba (dataset
YembaTones) via l'API Gateway, URL publique confirmee accessible (200,
232 Ko) sans authentification -- debloque a la fois l'audio Yemba et
les futures illustrations generees par API
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
📝 WalkthroughWalkthroughThe mobile quiz flow now snapshots progression, requeues incorrect questions, and presents completion XP. The content service adds S3-compatible media storage, multipart word upload endpoints, persisted image URLs, and corresponding configuration and API contracts. ChangesQuiz progression flow
Word media upload flow
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant LessonsScreen
participant GamificationRepository
participant QuizScreen
participant LessonCompleteScreen
LessonsScreen->>GamificationRepository: load progression snapshot
LessonsScreen->>QuizScreen: open quiz with lesson metadata
QuizScreen->>QuizScreen: submit and requeue incorrect questions
QuizScreen->>LessonCompleteScreen: open completion screen
LessonCompleteScreen->>GamificationRepository: poll updated progression
GamificationRepository-->>LessonCompleteScreen: progression and XP data
sequenceDiagram
participant Client
participant WordController
participant WordService
participant MediaStorageService
participant S3Client
Client->>WordController: upload multipart audio or image
WordController->>WordService: delegate upload
WordService->>MediaStorageService: store media
MediaStorageService->>S3Client: putObject
S3Client-->>MediaStorageService: uploaded object
MediaStorageService-->>WordService: public URL
WordService-->>Client: updated Word
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(mobile): file de requeue des erreurs + ecran de fin de lecon
plutot que definitivement passees (modele Duolingo) -- corrige un bug
potentiel ou une lecon ne pouvait jamais se terminer via cet ecran,
puisque le backend exige desormais qu'une question ait au moins une
tentative correcte avant completion
et le streak, avec un court polling pour laisser le temps a l'evenement
RabbitMQ asynchrone d'etre traite cote recommendation-service
d'entrer dans une lecon pour permettre ce calcul de diff
lieu de la liste des lecons de la langue en cours)
feat(content-service): stockage S3 (Supabase Storage) pour audio/images
fonctionne avec n'importe quel provider S3-compatible -- Supabase ici,
gratuit sans carte bancaire requise, contrairement a Cloudflare R2)
variables d'environnement (SUPABASE_S3_*), jamais commitees
(multipart/form-data), mettent a jour Word.audioUrl/imageUrl avec l'URL
publique retournee par Supabase
YembaTones) via l'API Gateway, URL publique confirmee accessible (200,
232 Ko) sans authentification -- debloque a la fois l'audio Yemba et
les futures illustrations generees par API
Summary by CodeRabbit
New Features
Bug Fixes