Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented model for preview output #118

Closed
wants to merge 1 commit into from

Conversation

Navreet20
Copy link

Fixes #103
What was changed?

Implemented a modal popup to display the preview data when the "Preview Output" button is clicked.
Added a close button in the top-right corner and Escape key functionality to close the modal.
Made the preview content scrollable for longer outputs.
Centered the modal on the screen with a dimmed background to focus attention.
Replaced the actual API request with a mock response to handle backend unavailability during development.
Added a test case to verify that the modal closes when the Escape key is pressed.

What was changed?

Implemented a modal popup in the OrcaDashboardComponent.js to display preview data when the "Preview Output" button is clicked.
Styled the modal and background dimming in DashboardComponent.css.
Added a new test file, ModalBehaviour.test.js, in the test folder to verify closure when the Escape key is pressed.
Replaced the actual API request with a mock response to handle backend unavailability during development.

@SiriChandanaGarimella
Copy link
Collaborator

Thank you for your contribution to the project! I will review the PR and let you know if any changes are required.

Copy link
Collaborator

@SiriChandanaGarimella SiriChandanaGarimella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Navreet20 - Great effort! The UI looks good but the preview data should be from the backend API.

Closing this PR as part of this user story is implemented as part of #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show API error messages in Preview Modal
2 participants