#load "../../lib/app.uce" COMPONENT(Request& context) { context.call["app"]["page_title"] = "Workspace"; String section = first(context.call["route"]["param"].to_string(), "overview"); if(section != "overview" && section != "projects" && section != "activity") section = "overview"; String title = section == "projects" ? "Projects queue" : (section == "activity" ? "Recent activity" : "Workspace overview"); String subtitle = section == "projects" ? "Nested path fallback lets one controller serve multiple panes cleanly." : (section == "activity" ? "Sidebar-first tools often need a live or recent-events pane." : "A generic app-shell pattern for tools, admin consoles, and internal products."); String status_label = section == "projects" ? "3 active" : (section == "activity" ? "Monitoring" : "Ready"); String status_variant = section == "projects" ? "info" : (section == "activity" ? "warn" : "success"); String description = section == "projects" ? "This page is served from views/workspace/index.uce while the route remains workspace/projects." : (section == "activity" ? "The workspace shell is a better fit than the marketing-style home page when the app is navigation-heavy and stateful." : "This slice comes from the portal app: a reusable workspace shell with sidebar navigation, compact mobile controls, and semantic panel primitives."); String sidebar_body = ""; ob_start(); <>
Sidebar plus main panel, responsive overlay behavior, and a compact mobile header.
Panels, section heads, status pills, list states, and empty-state placeholders.
Backported against the starter theme variables instead of portal-specific branding tokens.
" + html_escape(description) + "
" + stats_html; String main_body = component("../../components/workspace/primitives:SECTION", section_props, context); section_head.clear(); section_head["title"] = "Starter demo content"; String demo_head = component("../../components/workspace/primitives:SECTION_HEAD", section_head, context); section_props.clear(); section_props["header_html"] = demo_head; section_props["body_html"] = detail_html + "Try visiting " + html_escape(app_link("workspace/projects", context)) + " or " + html_escape(app_link("workspace/activity", context)) + " to see the nested route fallback in action.
"; main_body += component("../../components/workspace/primitives:SECTION", section_props, context); if(section == "activity") { DValue empty_props; empty_props["icon_class"] = "fas fa-clock-rotate-left"; empty_props["title"] = "No live stream wired yet"; empty_props["text"] = "The shell is generic. Add your own websocket, polling, or event-driven runtime behind it when a product needs one."; empty_props["action_html"] = "Open dashboard demo"; main_body += component("../../components/workspace/primitives:EMPTY_STATE", empty_props, context); } DValue panel_props; panel_props["header_html"] = header; panel_props["body_html"] = main_body; String main = mobile_bar + component("../../components/workspace/primitives:PANEL", panel_props, context); DValue app_props; app_props["id"] = "workspace-demo-shell"; app_props["overlay_id"] = "workspace-demo-overlay"; app_props["sidebar_html"] = sidebar; app_props["main_html"] = main; print(component("../../components/workspace/primitives:APP_FRAME", app_props, context)); <> > }