{ "widgettype": "VBox", "options": { "width": "100%", "height": "100%", "padding": "20px" }, "subwidgets": [ { "widgettype": "Text", "options": { "text": "Active Sessions", "fontSize": "24px", "fontWeight": "bold", "color": "#F8FAFC", "marginBottom": "20px" } }, { "widgettype": "HBox", "options": { "width": "100%", "marginBottom": "20px", "alignItems": "center" }, "subwidgets": [ { "widgettype": "Input", "id": "session-search", "options": { "placeholder": "Search sessions...", "width": "300px", "icon": "fa fa-search" }, "binds": [ { "wid": "self", "event": "input", "actiontype": "script", "target": "app.filter_sessions", "mode": "call" } ] }, { "widgettype": "Filler" }, { "widgettype": "Button", "options": { "icon": "fa fa-plus", "label": "New Session", "bgcolor": "#22C55E", "color": "#FFFFFF", "border": "none", "borderRadius": "6px", "padding": "8px 16px" }, "binds": [ { "wid": "self", "event": "click", "actiontype": "urlwidget", "target": "app.main-content", "options": { "url": "{{entire_url('new_session.ui')}}" }, "mode": "replace" } ] } ] }, { "widgettype": "List", "id": "sessions-list", "options": { "width": "100%", "height": "calc(100% - 100px)", "itemHeight": "80px", "items": [] }, "subwidgets": [ { "widgettype": "VBox", "options": { "width": "100%", "height": "100%", "padding": "12px", "border": "1px solid #334155", "borderRadius": "8px", "bgcolor": "#1E293B", "cursor": "pointer" }, "subwidgets": [ { "widgettype": "HBox", "options": { "width": "100%", "alignItems": "center" }, "subwidgets": [ { "widgettype": "Text", "options": { "text": "{{item.name}}", "fontSize": "16px", "fontWeight": "600", "color": "#F8FAFC" } }, { "widgettype": "Filler" }, { "widgettype": "Text", "options": { "text": "{{item.last_active}}", "fontSize": "12px", "color": "#94A3B8" } } ] }, { "widgettype": "Text", "options": { "text": "{{item.model}}", "fontSize": "14px", "color": "#CBD5E1", "marginTop": "4px" } } ], "binds": [ { "wid": "self", "event": "click", "actiontype": "script", "target": "app.open_session", "mode": "call" } ] } ] } ] }