Skip to content

Commit 80240a0

Browse files
authored
5.15.5 - add 'hide' default filter (#334)
* 5.15.5 - add 'hide' default filter * buttons schema and implementation
1 parent 3592ada commit 80240a0

File tree

28 files changed

+230
-47
lines changed

28 files changed

+230
-47
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
7979
- run: |
8080
mk python-release owner=libre-embedded \
81-
repo=runtimepy version=5.15.4
81+
repo=runtimepy version=5.15.5
8282
if: |
8383
matrix.python-version == '3.12'
8484
&& matrix.system == 'ubuntu-latest'

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[DESIGN]
22
max-args=10
33
max-positional-arguments=10
4-
max-attributes=16
4+
max-attributes=17
55
max-parents=14
66
max-public-methods=22
77
max-branches=13

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
=====================================
33
generator=datazen
44
version=3.2.3
5-
hash=99eea1986d2105483ebb2fe566128f5f
5+
hash=fd0e57419cf9437a64c4f82cae3625f0
66
=====================================
77
-->
88

9-
# runtimepy ([5.15.4](https://pypi.org/project/runtimepy/))
9+
# runtimepy ([5.15.5](https://pypi.org/project/runtimepy/))
1010

1111
[![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/)
1212
![Build Status](https://github.com/libre-embedded/runtimepy/workflows/Python%20Package/badge.svg)

local/configs/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ time_command: true
88

99
requirements:
1010
- aiofiles
11-
- vcorelib>=3.6.3
11+
- vcorelib>=3.6.4
1212
- svgen>=0.8.0
1313
- websockets
1414
- psutil

local/variables/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
major: 5
33
minor: 15
4-
patch: 4
4+
patch: 5
55
entry: runtimepy

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
44

55
[project]
66
name = "runtimepy"
7-
version = "5.15.4"
7+
version = "5.15.5"
88
description = "A framework for implementing Python services."
99
readme = "README.md"
1010
requires-python = ">=3.12"

runtimepy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# =====================================
22
# generator=datazen
33
# version=3.2.3
4-
# hash=b0f0463a508c9a1312a071f5c0b06f3b
4+
# hash=8ce7abe0f8c0e64d9afc0b5e4de6e2ad
55
# =====================================
66

77
"""
@@ -10,7 +10,7 @@
1010

1111
DESCRIPTION = "A framework for implementing Python services."
1212
PKG_NAME = "runtimepy"
13-
VERSION = "5.15.4"
13+
VERSION = "5.15.5"
1414

1515
# runtimepy-specific content.
1616
METRICS_NAME = "metrics"

runtimepy/channel/environment/command/processor.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from runtimepy.mixins.environment import ChannelEnvironmentMixin
2121
from runtimepy.primitives.bool import Bool
2222
from runtimepy.primitives.field import BitField
23+
from runtimepy.ui.button import ActionButton
2324

2425
CommandHook = Callable[[Namespace, Optional[FieldOrChannel]], None]
2526

@@ -33,7 +34,11 @@ class ChannelCommandProcessor(ChannelEnvironmentMixin):
3334
"""A command processing interface for channel environments."""
3435

3536
def __init__(
36-
self, env: ChannelEnvironment, logger: LoggerType, **kwargs
37+
self,
38+
env: ChannelEnvironment,
39+
logger: LoggerType,
40+
buttons: list[ActionButton] = None,
41+
**kwargs,
3742
) -> None:
3843
"""Initialize this instance."""
3944

@@ -49,6 +54,11 @@ def __init__(
4954

5055
self.parser.initialize()
5156

57+
# Action buttons.
58+
if buttons is None:
59+
buttons = []
60+
self.buttons: list[ActionButton] = buttons
61+
5262
def register_custom_commands(
5363
self, *custom_commands: CustomCommand
5464
) -> None:

runtimepy/data/css/bootstrap_extra.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ select:hover {
110110
background-image: linear-gradient(to bottom, var(--bs-tertiary-bg), rgba(var(--bs-tertiary-bg-rgb), 0), var(--bs-tertiary-bg));
111111
}
112112

113+
.bg-gradient-tertiary-left-right {
114+
background-image: linear-gradient(to right, var(--bs-tertiary-bg), rgba(var(--bs-tertiary-bg-rgb), 0), var(--bs-tertiary-bg));
115+
}
116+
113117
.border-start-info-subtle {
114118
border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-info-border-subtle);
115119
}

runtimepy/data/css/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,11 @@ body > :first-child {
7474
.overscroll-behavior-none {
7575
overscroll-behavior: none;
7676
}
77+
78+
.channel-views-min-width {
79+
min-width: 5.5em;
80+
}
81+
82+
.channel-filter-min-width {
83+
min-width: 5.5em;
84+
}

0 commit comments

Comments
 (0)