enhance: add unified Klicker element generation UI - #5385
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (4)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Confidence Score: 5/5The reviewed changes appear safe to merge with no additional actionable defect beyond the gaps already disclosed in the PR description. The investigated configuration, polling, Apollo error handling, review, and save paths did not reveal an unacknowledged concrete failure that clears the publication criteria.
|
| Filename | Overview |
|---|---|
| apps/frontend-manage/src/components/questions/generation/QuestionGenerationConfigure.tsx | Adds source, scope, language, Bloom-level, difficulty, and count configuration with idempotent generation startup; its acknowledged source-language default mismatch remains unresolved. |
| apps/frontend-manage/src/pages/questions/generate/[buildId].tsx | Adds the durable build page, active-stage polling, review-gate mutations, terminal states, and final draft review routing. |
| apps/frontend-manage/src/components/questions/generation/GeneratedQuestionReview.tsx | Adds filtering, bulk acceptance, draft mutation orchestration, transactional saving, and saved-element links. |
| apps/frontend-manage/src/components/questions/generation/GeneratedQuestionCard.tsx | Adds validated draft editing, duplication, accept/reject/reopen controls, citation display, and saved-element state. |
| packages/kb-management/src/KnowledgeBaseDetail.tsx | Adds a fail-closed generation entry point for private-preview users when the current knowledge base is an eligible source. |
| playwright/tests/UA-question-generation.spec.ts | Covers the principal configuration, gate-review, safe-error, draft-management, save, and mobile-overflow workflow slices. |
Sequence Diagram
sequenceDiagram
participant L as Lecturer
participant M as Manage UI
participant G as GraphQL API
participant W as Generation workflow
participant D as Question library
L->>M: Configure source, language, Bloom mix, difficulty
M->>G: Start generation
G->>W: Dispatch durable build
G-->>M: Build ID
M->>G: Poll active build
G->>W: Synchronize workflow state
G-->>M: Design review
L->>M: Approve or reject design
M->>G: Submit design decision
M->>G: Poll active build
G-->>M: Plan review
L->>M: Approve or reject plan
M->>G: Submit plan decision
M->>G: Poll finalization
G-->>M: Generated drafts
L->>M: Edit, duplicate, accept, or reject
M->>G: Persist draft decisions
L->>M: Save accepted drafts
M->>G: Save generated questions
G->>D: Create ordinary library elements
G-->>M: Created and existing element IDs
Reviews (1): Last reviewed commit: "docs(manage): add question generation sc..." | Re-trigger Greptile
ecbca60 to
f4c7e47
Compare
642433c to
6a2d351
Compare
3fd30d6 to
83bb2c3
Compare
83bb2c3 to
32be128
Compare
32be128 to
42fa9ca
Compare
|



Summary
Adds a single lecturer workflow for generating and reviewing Klicker elements.
/elements/generateroute and one navigation entryThere is no separate flashcard-generation page or question-generation page. Flashcards and question formats are all generated Klicker elements in the UI.
Stack
Branch coverage
feat/question-generation-backendatc11367ab632be128caVerification
@klicker-uzh/frontend-manageroute generation and TypeScript check passedScreenshots
Authenticated isolated Devrouter capture from the final stacked head. SC, MC, KPRIM, and Flashcard are peer Klicker element types in one workflow.
No shared Klicker staging deployment was made.