Skip to content

Conversation

@gmmcosta15
Copy link
Collaborator

@gmmcosta15 gmmcosta15 commented Dec 11, 2025

What Changed?

lib/panels/widget/sensorPanel.py

Places the previous single sensor handling with an EntryListModel that tracks multiple active sensors.
Each sensor now has its own EntryListModel instance, simplifying state management and improving UI consistency.
This lays the groundwork for supporting future dynamic sensor sets and cleaner widget logic.

lib/panels/widget/sensorWidget.py:

Update interface to conform with new sensor configuration UI.
Adjust layouts and update redraw logic to fix rendering issues.

Screenshots

Captura de ecrã 2025-12-11 103245

Future Work

  • Unit and Integration Tests

Guilherme Costa added 4 commits December 11, 2025 16:33
…WidgetItem to a ListModelView Arq with some bugfixes

Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
@gmmcosta15 gmmcosta15 changed the title ´SensorPanel´: replace ´QListWidgetItem´ with ´EntryListModel´ #124 SensorPanel: replace QListWidgetItem with EntryListModel #124 Dec 11, 2025
@gmmcosta15 gmmcosta15 changed the title SensorPanel: replace QListWidgetItem with EntryListModel #124 SensorPanel: replace QListWidgetItem with EntryListModel Dec 11, 2025
# TODO: Implement this

def getFilesToDelete(self) -> list[str]: ...
global MainLoggingHandler
RF50_DATASHEET_PAGE = (
"https://www.blockstec.com/assets/downloads/rf50_datasheet.pdf"
)
RF50_DATASHEET_PAGE = "https://www.blockstec.com/assets/downloads/rf50_datasheet.pdf"
self.panel.cp_z_tilt_btn.clicked.connect(
lambda: self.handle_ztilt()
)
self.panel.cp_z_tilt_btn.clicked.connect(lambda: self.handle_ztilt())
return False

def add_dot(self):
def _add_dot(self):
def _run_command(self, command):

def _run_command(self, command: str):
)

def get_hotspot_ip_via_shell(self, interface: str):
def get_hotspot_ip_via_shell(self):
def on_delete_file(self, filename: str) -> None: ...
def on_delete_file(self, filename: str) -> None:
"""Handle file deleted"""
...
# return
# self._configure_option_cards(_keys)
if isinstance(config, list):
...
@gmmcosta15 gmmcosta15 changed the base branch from main to dev December 11, 2025 16:38
@gmmcosta15 gmmcosta15 self-assigned this Dec 11, 2025
@gmmcosta15 gmmcosta15 requested a review from HugoCLSC December 11, 2025 16:39
@gmmcosta15 gmmcosta15 added UI/UX User Interface what changed with this code Refactor Enhancing code's readability, maintainability, and extensibility while addressing technical debt. labels Dec 11, 2025
@gmmcosta15 gmmcosta15 changed the title SensorPanel: replace QListWidgetItem with EntryListModel Refactor SensorPanel: replace QListWidgetItem with EntryListModel Dec 11, 2025
Guilherme Costa added 2 commits December 11, 2025 18:03
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
sensorWidget.py: lock toggle_button until action succeeds and replace repaint() with update() for proper refresh

Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
@gmmcosta15 gmmcosta15 closed this Dec 12, 2025
@gmmcosta15 gmmcosta15 reopened this Dec 12, 2025
@gmmcosta15 gmmcosta15 closed this Dec 12, 2025
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
@gmmcosta15 gmmcosta15 reopened this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Enhancing code's readability, maintainability, and extensibility while addressing technical debt. UI/UX User Interface what changed with this code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants