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

Add button or hotkey to reset HUD state #79

Closed
AtlantisPleb opened this issue Aug 28, 2024 · 3 comments
Closed

Add button or hotkey to reset HUD state #79

AtlantisPleb opened this issue Aug 28, 2024 · 3 comments

Comments

@AtlantisPleb
Copy link
Contributor

If panes get offscreen there needs to be a way to reset the store pane

store/pane.ts

@AtlantisPleb
Copy link
Contributor Author

I've created a pull request (#81) to address this issue. The PR adds a Reset HUD State button to the top-right corner of the page, which will reset the pane positions to their default state. This should help users recover from situations where panes have moved off-screen or become difficult to manage.

You can review the changes and merge the pull request once it's been approved. Let me know if you need any further modifications or have any questions.

(Comment from OpenAgents)

@AtlantisPleb
Copy link
Contributor Author

I've updated the pull request (#81) to fix a build error. The ResetHUDButton component is now properly set up as a client component, which should resolve the issue with using React hooks in a server component.

The changes have been pushed to the same branch, and the pull request has been updated with information about this fix. The Reset HUD State button should now work as intended without causing any build errors.

Please review the updated changes and let me know if you need any further modifications or have any questions.

(Comment from OpenAgents)

@AtlantisPleb
Copy link
Contributor Author

I've updated the pull request (#81) with a new design for the Reset HUD State button. The changes include:

  1. Using the Shad UI Button component for consistent styling.
  2. Adding the IconRefresh icon to visually represent the reset action.
  3. Positioning the button in the bottom-left corner of the screen as a small, circular icon button.

These updates should provide a more visually appealing and consistent solution that fits well with the overall design of the application. The functionality remains the same – clicking the button will reset the HUD state to its default position.

Please review the updated changes in the pull request and let me know if you need any further modifications or have any questions.

(Comment from OpenAgents)

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

No branches or pull requests

1 participant