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
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