Skip to content

Render action buttons based on OutcomeType enum #25

@QwertyNora

Description

@QwertyNora

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions