@startuml lagrange-panel !include _lagrange.iuml ' What panel.lua is made of: the modules it delegates to (structure, not the render pipeline ' -- see lagrange-panel-render.puml for M.render). top to bottom direction component "panel.lua\n(state, dispatch, webview)" as PANEL component "dock.lua\n(docking geometry)" as DOCK component "wide.lua\n(widgets grid)" as WIDE component "chat.lua\n(Chat/Sessions tabs)" as CHAT component "sessgroup.lua\n(collapse session rows)" as SESSGROUP component "suggest.lua\n(smart-field suggest)" as SUGGEST component "localfirst.lua\n(local-first triage)" as LOCALFIRST component "screenlayout.lua\n(default layout)" as SCREENLAYOUT component "assistant.lua\n(built-in chat)" as ASSISTANT component "util.lua + i18n.lua\n(shared helpers)" as SHARED PANEL --> DOCK : layoutFor() PANEL --> WIDE : dynHtml() PANEL --> CHAT : pushFeed() CHAT ..> SESSGROUP : collapse runs WIDE ..> SESSGROUP : day grouping PANEL --> SUGGEST : build(P,H) PANEL --> LOCALFIRST : startLocalTask() PANEL --> SCREENLAYOUT : applyLayout() PANEL --> ASSISTANT : boot.load() PANEL --> SHARED : jstr(), esc(), i18n.t() DOCK -[hidden]-> WIDE WIDE -[hidden]-> CHAT CHAT -[hidden]-> SESSGROUP SESSGROUP -[hidden]-> SUGGEST SUGGEST -[hidden]-> LOCALFIRST LOCALFIRST -[hidden]-> SCREENLAYOUT SCREENLAYOUT -[hidden]-> ASSISTANT ASSISTANT -[hidden]-> SHARED @enduml