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

house cleaning #39

Merged
merged 12 commits into from
Feb 8, 2024
Merged

Conversation

NeonJarbas
Copy link
Contributor

@NeonJarbas NeonJarbas commented Jan 30, 2024

  • better logs everywhere
  • fix homescreen not showing on load depending on load order of gui/core
  • avoid emitting messages to gui socket if not needed
  • remove dead code
  • untangle classes from each other
  • avoid OPM instantiation homescreen manager wrong in GUI extensions
  • new handler to remove all pages in a namespace
  • whenever an actual GUI protocol message is sent logs start with GUI PROTOCOL -
  • fix handle_delete_page reading wrong message.data kwarg
  • refactor focused page tracking
  • more defensive error handling everywhere, even in places we aren't supposed to get
  • remove old mk2 idle events, all ovos components emit the proper new messages, impossible to load a skill that doesn't

@JarbasAl JarbasAl added the enhancement New feature or request label Jan 30, 2024
@JarbasAl JarbasAl marked this pull request as ready for review January 30, 2024 21:18
self.core_bus.emit(Message("gui.namespace.removed",
data={"skill_id": namespace.skill_id}))
if self.active_extension == "Bigscreen":
Copy link
Member

Choose a reason for hiding this comment

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

extension unmaintained, bigscreen dropped support for OVOS and moved to QT6

can revisit once we have a dedicated bigscreen build

Copy link
Member

@NeonDaniel NeonDaniel left a comment

Choose a reason for hiding this comment

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

Left some comments addressing breaking changes/test failures.

I believe the test_remove_pages test case also needs to be updated to use GuiPage objects instead of str which wasn't valid before but was passing since nothing in the code referenced the removed pages

ovos_gui/homescreen.py Show resolved Hide resolved
ovos_gui/homescreen.py Show resolved Hide resolved
ovos_gui/namespace.py Outdated Show resolved Hide resolved
ovos_gui/namespace.py Outdated Show resolved Hide resolved
ovos_gui/namespace.py Show resolved Hide resolved
ovos_gui/namespace.py Show resolved Hide resolved
ovos_gui/homescreen.py Show resolved Hide resolved
ovos_gui/namespace.py Outdated Show resolved Hide resolved
ovos_gui/page.py Show resolved Hide resolved
@JarbasAl
Copy link
Member

can we just call this 0.1.0aX?

removing unused code that is not meant to be used as a library is not really a breaking change as there is nothing to break, but we can still take the chance to signal those changes and move forward to proper semver, good timing to come along with core 0.0.8 stable

@JarbasAl JarbasAl mentioned this pull request Jan 31, 2024
@@ -981,6 +1005,7 @@ def handle_namespace_global_back(self, message: Optional[Message]):
Handles global back events from the GUI.
@param message: the event sent by the GUI
"""
# TODO - unused ? missing bus event ?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

imagem

@JarbasAl JarbasAl merged commit 676ffd7 into OpenVoiceOS:dev Feb 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants