Skip to content

Commit

Permalink
Merge pull request #133 from OpenVoiceOS/release-2.0.1a1
Browse files Browse the repository at this point in the history
Release 2.0.1a1
  • Loading branch information
JarbasAl authored Nov 15, 2024
2 parents ed3b1bf + b02ec14 commit b614841
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 35 deletions.
26 changes: 5 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
# Changelog

## [2.0.0a1](https://github.com/OpenVoiceOS/skill-ovos-homescreen/tree/2.0.0a1) (2024-11-15)
## [2.0.1a1](https://github.com/OpenVoiceOS/skill-ovos-homescreen/tree/2.0.1a1) (2024-11-15)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-homescreen/compare/1.0.6a1...2.0.0a1)
[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-homescreen/compare/2.0.0...2.0.1a1)

**Breaking changes:**
**Fixed bugs:**

- feat: bus api for homescreen apps and examples [\#130](https://github.com/OpenVoiceOS/skill-ovos-homescreen/pull/130) ([JarbasAl](https://github.com/JarbasAl))

**Implemented enhancements:**

- adopt skill.json for examples [\#104](https://github.com/OpenVoiceOS/skill-ovos-homescreen/issues/104)

**Closed issues:**

- Apps icons missing in the launch bar \(Mycroft 2\) [\#110](https://github.com/OpenVoiceOS/skill-ovos-homescreen/issues/110)

**Merged pull requests:**

- fix:examples\_visibility [\#109](https://github.com/OpenVoiceOS/skill-ovos-homescreen/pull/109) ([JarbasAl](https://github.com/JarbasAl))

## [1.0.6a1](https://github.com/OpenVoiceOS/skill-ovos-homescreen/tree/1.0.6a1) (2024-11-14)

[Full Changelog](https://github.com/OpenVoiceOS/skill-ovos-homescreen/compare/1.0.5...1.0.6a1)
- use skills.json for examples [\#128](https://github.com/OpenVoiceOS/skill-ovos-homescreen/issues/128)

**Merged pull requests:**

- nl-nl translation [\#127](https://github.com/OpenVoiceOS/skill-ovos-homescreen/pull/127) ([gitlocalize-app[bot]](https://github.com/apps/gitlocalize-app))
- fix:dict\_iteration\_error [\#132](https://github.com/OpenVoiceOS/skill-ovos-homescreen/pull/132) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
15 changes: 3 additions & 12 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ def handle_idle(self, message):
self.bus.emit(Message("ovos.homescreen.displayed"))

def update_apps_drawer(self):
apps = self.build_voice_applications_model()
apps = [{"name": data["name"], "thumbnail": data["icon"], "action": data["event"]}
for skill_id, data in dict(self.homescreen_apps).items()]
self.gui["applications_model"] = apps
self.gui["apps_enabled"] = bool(apps)

Expand All @@ -215,7 +216,7 @@ def update_examples(self):
if self.skill_info_api:
examples = self.skill_info_api.skill_info_examples()
elif self.settings.get("examples_enabled"):
for _skill_id, data in self.skill_examples.items():
for _skill_id, data in dict(self.skill_examples).items():
examples += data.get(self.lang, [])
examples = [e for e in examples if e.strip()] # ensure no empty strings
if examples:
Expand Down Expand Up @@ -382,16 +383,6 @@ def _load_skill_apis(self):
LOG.error(f"Failed to import Info Skill: {e}")
self.skill_info_api = None

def build_voice_applications_model(self) -> List[Dict[str, str]]:
"""Build a list of voice applications for the GUI model.
Returns:
List[Dict[str, str]]: List of application metadata containing
name, thumbnail path, and action event
"""
return [{"name": data["name"], "thumbnail": data["icon"], "action": data["event"]}
for skill_id, data in self.homescreen_apps.items()]

#####################################################################
# Handle Widgets
def handle_timer_widget_manager(self, message):
Expand Down
4 changes: 2 additions & 2 deletions version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 2
VERSION_MINOR = 0
VERSION_BUILD = 0
VERSION_ALPHA = 0
VERSION_BUILD = 1
VERSION_ALPHA = 1
# END_VERSION_BLOCK

0 comments on commit b614841

Please sign in to comment.