-
Notifications
You must be signed in to change notification settings - Fork 50
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
Implement Button Functionality for Launching Pieces OS #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @agrim0312 great work here. Do you mind also addressing the issue in #46
At the moment, we don't have an error boundary for Pieces OS not running. So if we can also take care of that, it should prevent from the error popping up.
@shivay-at-pieces As error-boundary is used only for rendering error and these errors were overthrown by network error So I just created a div that will render when the piecesOS is not running in the background. I tested it in the build and it worked fine. I hope that this was the issue that you were refering to . If I missunderstood the issue please pardon me. |
sure I'll fix it |
@shivay-at-pieces Fixed the text. You can review it now. |
Hey @agrim0312 there is still some work remaining on how we handle the button state when Pieces OS is connected and disconnected, as you can see in this video. You can see that the state of the button doesn't change. and we have to refresh to see the state change when Pieces OS is connected/disconnected Screen.Recording.2023-12-21.at.2.32.03.AM.mov |
sure working on it |
@shivay-at-pieces I used prop drilling method to manage the state of button. I hope you were looking for this. |
this is a much better improvement here and will at least get users up and running when they are not able to see snippets in the viewer, as well as with the new copilot chat. We we could potentially improve here by adding a loading state while a connection is being made that way we avoid ever hitting an error. @agrim0312 or @shivay-at-pieces if you want to get an issue created with details on an improvement and link it back to this pr that would be great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good! be sure to get some general comments in a few more locations in future PRs 👍
sure 👍 @jordan-pieces |
Description
Implement Button Functionality for Launching Pieces OS
This PR fixed #41
Problem Statement:
Currently, when Pieces OS is not connected, the UI lacks a functional aspect to initiate the connection. To improve user interaction, we want to add button functionality to the "Not Connected" button, allowing users to launch Pieces OS by clicking it.
Expected Outcome:
Users will be able to launch Pieces OS by clicking the "Not Connected" button, enhancing the user experience and providing a straightforward way to establish a connection.