Skip to content

Commit 27ba174

Browse files
committed
5.15.5 - add 'hide' default filter
1 parent 3592ada commit 27ba174

File tree

7 files changed

+26
-18
lines changed

7 files changed

+26
-18
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'

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/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/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+
}

runtimepy/net/server/app/env/widgets.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,16 @@ def views_dropdown(parent: Element, command: ChannelCommandProcessor) -> None:
8484
"""Dropdown menu for channel environment views."""
8585

8686
select = select_element(
87-
parent=div(tag="th", parent=parent, class_str="p-0"),
87+
parent=div(
88+
tag="th", parent=parent, class_str="p-0 channel-views-min-width"
89+
),
8890
id="filter-view",
8991
title="Canonical channel filters.",
9092
).add_class("border-end-0", "w-100")
9193
div(tag="option", value="", text="-", parent=select)
94+
div(tag="option", value="^$", text="hide", parent=select)
9295
for text, value in command.env.views.items():
9396
div(tag="option", value=value, text=text, parent=select)
94-
if not command.env.views:
95-
select.booleans.add("disabled")
9697

9798

9899
def channel_table_header(
@@ -120,7 +121,11 @@ def channel_table_header(
120121
).add_class(*TABLE_BUTTON_CLASSES)
121122

122123
_, label, box = input_box(
123-
div(tag="th", parent=ctl_row, class_str="p-0 border-end-0"),
124+
div(
125+
tag="th",
126+
parent=ctl_row,
127+
class_str="p-0 border-end-0 channel-filter-min-width",
128+
),
124129
description="Channel name filter.",
125130
pattern=".* ! @ $",
126131
label="filter",
@@ -137,7 +142,7 @@ def channel_table_header(
137142
parent=div(tag="th", parent=ctl_row, colspan="2", class_str="p-0")
138143
)
139144

140-
# Add a selection menu for custom commands. (need a data source for this)
145+
# Add a selection menu for custom commands.
141146
select = select_element(
142147
parent=cell, id="custom-commands", title="Custom command selector."
143148
)
@@ -157,12 +162,7 @@ def channel_table_header(
157162
tooltip="Send selected command (left dropdown).",
158163
).add_class(*TABLE_BUTTON_CLASSES)
159164
else:
160-
div(
161-
tag="option",
162-
parent=select,
163-
value="noop",
164-
text="no custom commands",
165-
)
165+
div(tag="option", parent=select, value="noop", text="-")
166166
select.booleans.add("disabled")
167167

168168
# Button for 'reset all defaults' if this tab has more than one channel

0 commit comments

Comments
 (0)