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

feat: add option to hide other Klipper & Moonraker instances #2029

Merged
merged 2 commits into from
Dec 1, 2024

Conversation

meteyou
Copy link
Member

@meteyou meteyou commented Oct 15, 2024

Description

This PR adds an option to hide all other Klipper & Moonraker instances in the top right corner menu. This will be useful for multi instances. This PR will also hide the stop service button from the current Moonraker instance and fix the confirm dialog for other Klipper instances.

Related Tickets & Documents

fixes #2027

Mobile & Desktop Screenshots/Recordings

before:
image

after:
image

[optional] Are there any post-deployment tasks we need to perform?

none

Summary by Sourcery

Introduce a feature to hide other Klipper and Moonraker instances in the top corner menu, enhancing multi-instance management. Refactor the service management in the menu to use a new component, and fix the confirmation dialog for Klipper instances.

New Features:

  • Add an option to hide other Klipper and Moonraker instances in the top corner menu for better management of multiple instances.

Bug Fixes:

  • Fix the confirmation dialog for other Klipper instances.

Enhancements:

  • Refactor the top corner menu to use a new component for service management, improving code modularity and readability.

@meteyou meteyou requested review from dw-0 and rackrick October 15, 2024 22:23
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 15, 2024
Copy link
Contributor

Language file analysis report:

File Missing Keys Unused Keys
en.json 0 0

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @meteyou - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Great work on modularizing the code and adding the new feature. Consider profiling the changes to ensure there's no significant performance impact, especially with the added conditional logic.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

src/components/ui/TopCornerMenuService.vue Show resolved Hide resolved
rackrick
rackrick previously approved these changes Nov 30, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 30, 2024
# Conflicts:
#	src/components/settings/SettingsUiSettingsTab.vue
#	src/store/gui/index.ts
#	src/store/gui/types.ts
Copy link
Contributor

github-actions bot commented Dec 1, 2024

Language file analysis report:

File Missing Keys Unused Keys
en.json 0 1

@meteyou meteyou merged commit 34f3f08 into mainsail-crew:develop Dec 1, 2024
10 checks passed
@meteyou meteyou deleted the feat/hide-other-instances branch December 1, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

power menu will get too long with many multi instances
2 participants