building out UI a ton more and also working on serialization and deserial for the desktop app

This commit is contained in:
2026-03-08 14:09:43 +11:00
parent 0a560dca17
commit 12a8bd4c19
7 changed files with 158 additions and 24 deletions

View File

@@ -3,6 +3,7 @@ from textual.widgets import Header, Footer, ContentSwitcher
from ui.widgets.home_sidebar import HomeSidebar
from ui.widgets.home_info import HomeInfo
from ui.widgets.channels_list import ChannelsList
from ui.widgets.chat_window import ChatWindow
class MainScreen(Screen):
@@ -13,5 +14,6 @@ class MainScreen(Screen):
with ContentSwitcher(initial="home-info"):
yield HomeInfo(id="home-info")
yield ChannelsList(id="channels-list")
yield ChatWindow(id="chat-window")
yield Footer()

View File

@@ -15,7 +15,7 @@ class PairScreen(Screen):
async def connect_to_node(self, is_retry = False):
if not is_retry:
self.notify("This may take a moment...", title="Discovering nearby nodes...")
self.app.mesh_node = await MeshNode.discover()
self.app.mesh_node = await MeshNode.discover(self.app)
if self.app.mesh_node == None:
self.notify("Check your node is powered on and nearby.\nRetrying...", title="Failed to find a nearby node!", severity="warning")