Skip to content

Show API error messages in Preview Modal #103

Description

@SiriChandanaGarimella

Is your feature request related to a problem? Please describe.
Currently, the preview data is shown in a modal, but it doesn't display the error message returned by the API in case of failure, and also, the modal doesn't close on pressing the Escape key

Describe the solution you'd like
Let users press Escape to close the preview modal window. In case of failure, display the error message returned by the API.

Acceptance criteria

  • Modal opens immediately when "Preview Output" is clicked
  • The close button 'X' appears in the top-right corner and 'close' appears in the bottom-right corner
  • Modal closes when clicking X or pressing the Escape key
  • Preview content is scrollable for longer outputs
  • Modal appears centered on the screen
  • Background dims when the modal is open and disable clicks outside the modal
  • In case of failure, display an error message returned by the API

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions