RoadTripMoustache / kana_to_kanji

Simple application to learn Japanese kana (hiragana, katakana) and kanji
5 stars 1 forks source link

feat: Implement association question #172

Open apomalyn opened 4 months ago

apomalyn commented 4 months ago

As a user, I want to have a question with words to associate

Requirements

Implement the AssociationQuestion and AssociationQuestionPair models. It should be implemented using freezed

AssociationQuestion and AssociationQuestionPair schemas ⚠️ I use OpenAPI spec for simplicity ```yaml AssociationQuestion: allOf: - $ref: "#/components/schemas/Question" - properties: pairs: type: array minimum: 2 maximum: 5 items: $ref: "#/components/schemas/AssociationQuestionPair" required: - pairs AssociationQuestionPair: properties: knowledgeUpdateIndex: type: int description: Index of the knowledge update linked to this pair left: type: string description: Element on the left of the screen left_tts: type: string description: Text to use for the TTS of the left pair right: type: string description: Element on the right of the screen right_tts: type: string description: Text to use for the TTS of the right pair required: - left - right ```

Implement the AssociationQuestionView, it should:

Implement the AssociationQuestionViewModel, it should

Design

Full UI flow ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/677a22d7-d39f-48fc-9c22-2c337c5279bc)

Dependencies

Child of #160

Depends on:

Parent of:

Dev notes