Skip to content

Commit

Permalink
fix: updating items of the pages after the first page not being visible
Browse files Browse the repository at this point in the history
refactor: merge `HeaderMenuPageWidget` and `NormalMenuPageWidget` into `MenuPageWidget`
refactor: keep a clone of menu-page widget as Kivy needs the source and target widgets to be different for transitions while going up and down in a menu needs a transition of the same widget to itself as we just change its items and don't recreate it
  • Loading branch information
sassanh committed Aug 13, 2024
1 parent 12dcc5f commit 05a5d08
Show file tree
Hide file tree
Showing 12 changed files with 1,128 additions and 1,144 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Version 0.13.0

- fix: updating items of the pages after the first page not being visible
- refactor: merge `HeaderMenuPageWidget` and `NormalMenuPageWidget` into `MenuPageWidget`
- refactor: keep a clone of menu-page widget as Kivy needs the source and target widgets to be different for transitions while going up and down in a menu needs a transition of the same widget to itself as we just change its items and don't recreate it

## Version 0.12.5

- fix: `go_home` should clear the selection of root before setting `stack`
Expand Down
46 changes: 23 additions & 23 deletions poetry.lock

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

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ubo-gui"
version = "0.12.5"
version = "0.13.0"
description = "GUI sdk for Ubo Pod"
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -19,8 +19,8 @@ optional = true

[tool.poetry.group.dev.dependencies]
poethepoet = "^0.24.4"
pyright = "^1.1.373"
ruff = "^0.5.4"
pyright = "^1.1.374"
ruff = "^0.5.6"

[build-system]
requires = ["poetry-core"]
Expand All @@ -32,7 +32,7 @@ typecheck = "pyright -p pyproject.toml ."
sanity = ["typecheck", "lint"]
download_font.shell = "mkdir -p ubo_gui/assets/fonts; wget https://github.com/google/material-design-icons/raw/master/variablefont/MaterialSymbolsOutlined%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf -O ./ubo_gui/assets/fonts/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf"

[tool.poe.tasks.deploy_to_device]
[tool.poe.tasks.deploy-to-device]
cmd = 'scripts/deploy.sh'

[tool.ruff]
Expand Down
19 changes: 16 additions & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@ set -e -o errexit

poetry build

LATEST_VERSION=$(basename $(ls -t dist/*.whl | head -n 1))
LATEST_VERSION=$(basename $(ls -rt dist/*.whl | tail -n 1))

scp dist/$LATEST_VERSION pi@ubo-development-pod:/tmp/
ssh pi@ubo-development-pod "source ubo-gui/bin/activate && pip install --upgrade --force-reinstall --no-deps /tmp/$LATEST_VERSION && (killall demo-menu -9 || true) && demo-menu"
function run_on_pod() {
if [ $# -lt 1 ]; then
echo "Usage: run_on_pod <command>"
return 1
fi
if [ $# -eq 1 ]; then
ssh ubo-development-pod "sudo XDG_RUNTIME_DIR=/run/user/\$(id -u ubo) -u ubo bash -c 'source \$HOME/.profile && source /etc/profile && source /opt/ubo/env/bin/activate && $1'"
return 0
fi
return 1
}

scp dist/$LATEST_VERSION ubo-development-pod:/tmp/

run_on_pod "pip install --upgrade --force-reinstall --no-deps /tmp/$LATEST_VERSION"
Loading

0 comments on commit 05a5d08

Please sign in to comment.