✨ feat(dashboard): add dashboard UI and functionality with Bluetooth and Network tiles

This commit is contained in:
sankalp committed 2025-07-27 12:06:05 +05:45
1 parent a85e606022
commit e61fadd43c
6 files changed
+209 -410

No files matched your search

+6 -1
View File
@@ -163,7 +163,12 @@ class Network(Tile):
if wifi and wifi.active_access_point:
connected = True
con_label = wifi.active_access_point.ssid
# Hacky truncation: limit to 8 characters and add ellipsis
ssid = wifi.active_access_point.ssid
if len(ssid) > 8:
con_label = ssid[:8] + "..."
else:
con_label = ssid
elif wifi and not wifi.wireless_enabled:
con_label = "Off"