Update the UI to render different action buttons according to the returned value of the OutcomeType enum. For example:
- If OutcomeType is
Success, only render the "Continue Story" button
- If OutcomeType is another value (e.g.,
Failure or similar), render both "Try again" and "Continue Story" buttons
- Support all applicable OutcomeType values and adjust buttons accordingly
This improves the UX by providing context-sensitive actions based on user progress or result. Please coordinate with backend if enum is modified.
AC:
- Dynamically render buttons per OutcomeType
- Document the mapping in code comments for all expected enum values
Related context: [OutcomeType enum handling]
Update the UI to render different action buttons according to the returned value of the OutcomeType enum. For example:
Success, only render the "Continue Story" buttonFailureor similar), render both "Try again" and "Continue Story" buttonsThis improves the UX by providing context-sensitive actions based on user progress or result. Please coordinate with backend if enum is modified.
AC:
Related context: [OutcomeType enum handling]