Skip to content

Commit

Permalink
feat(notifications): add progress and progress_weight properties …
Browse files Browse the repository at this point in the history
…to `Notification` object and show the progress on the header of the app
  • Loading branch information
sassanh committed Jul 18, 2024
1 parent 35a31b7 commit 0fea61d
Show file tree
Hide file tree
Showing 22 changed files with 288 additions and 112 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.15.5

- feat(notifications): add `progress` and `progress_weight` properties to `Notification` object and show the progress on the header of the app

## Version 0.15.4

- fix(core): add `rpi-lgpio` to dependencies to make the LCD work on RPi5
Expand Down
70 changes: 33 additions & 37 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ubo-app"
version = "0.15.4"
version = "0.15.5"
description = "Ubo main app, running on device initialization. A platform for running other apps."
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -17,7 +17,7 @@ priority = "primary"
[tool.poetry.dependencies]
python = "^3.11"
psutil = "^6.0.0"
ubo-gui = "^0.11.17"
ubo-gui = "^0.12.0"
headless-kivy = [
{ version = "^0.9.4", markers = "extra=='default'", extras = [
"default",
Expand All @@ -28,7 +28,6 @@ headless-kivy = [
]
python-redux = "^0.15.9"
pyzbar = "^0.1.9"
sdbus = { git = "https://github.com/python-sdbus/python-sdbus.git", branch = "split-sdbus-utils", markers = "platform_machine=='aarch64'" }
sdbus-networkmanager = { version = "^2.0.0", markers = "platform_machine=='aarch64'" }
rpi_ws281x = { version = "^5.0.0", markers = "platform_machine=='aarch64'" }
python-debouncer = "^0.1.4"
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ async def app_context(
_monkeypatch: pytest.MonkeyPatch,
) -> AsyncGenerator[AppContext, None]:
"""Create the application."""
_ = _monkeypatch
setup()
_setup_headless_kivy()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"is_short": true,
"label": "",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [
{
Expand All @@ -30,6 +31,7 @@
"is_short": false,
"label": "Apps",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No apps",
Expand All @@ -48,6 +50,7 @@
"is_short": false,
"label": "Settings",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [
{
Expand All @@ -62,6 +65,7 @@
"is_short": false,
"label": "Network",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -80,6 +84,7 @@
"is_short": false,
"label": "Accessibility",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -98,6 +103,7 @@
"is_short": false,
"label": "Utilities",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -116,6 +122,7 @@
"is_short": false,
"label": "Remote",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -134,6 +141,7 @@
"is_short": false,
"label": "Apps",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -157,6 +165,7 @@
"is_short": false,
"label": "About",
"opacity": null,
"progress": null,
"sub_menu": {
"heading": "Ubo v0.0.0",
"items": [
Expand All @@ -166,7 +175,8 @@
"icon": "󰄬",
"is_short": false,
"label": "Already up to date!",
"opacity": null
"opacity": null,
"progress": null
}
],
"placeholder": null,
Expand All @@ -186,6 +196,7 @@
"is_short": true,
"label": "",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No notifications",
Expand All @@ -204,7 +215,8 @@
"icon": "󰐥",
"is_short": true,
"label": "Turn off",
"opacity": null
"opacity": null,
"progress": null
}
],
"placeholder": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"is_short": true,
"label": "",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [
{
Expand All @@ -30,6 +31,7 @@
"is_short": false,
"label": "Apps",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No apps",
Expand All @@ -48,6 +50,7 @@
"is_short": false,
"label": "Settings",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [
{
Expand All @@ -62,6 +65,7 @@
"is_short": false,
"label": "Network",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -80,6 +84,7 @@
"is_short": false,
"label": "Accessibility",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -98,6 +103,7 @@
"is_short": false,
"label": "Utilities",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -116,6 +122,7 @@
"is_short": false,
"label": "Remote",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -134,6 +141,7 @@
"is_short": false,
"label": "Apps",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No settings in this category",
Expand All @@ -157,6 +165,7 @@
"is_short": false,
"label": "About",
"opacity": null,
"progress": null,
"sub_menu": {
"heading": "Ubo v0.0.0",
"items": [
Expand All @@ -166,7 +175,8 @@
"icon": "󰄬",
"is_short": false,
"label": "Already up to date!",
"opacity": null
"opacity": null,
"progress": null
}
],
"placeholder": null,
Expand All @@ -186,6 +196,7 @@
"is_short": true,
"label": "",
"opacity": null,
"progress": null,
"sub_menu": {
"items": [],
"placeholder": "No notifications",
Expand All @@ -204,7 +215,8 @@
"icon": "󰐥",
"is_short": true,
"label": "Turn off",
"opacity": null
"opacity": null,
"progress": null
}
],
"placeholder": null,
Expand Down
Loading

0 comments on commit 0fea61d

Please sign in to comment.