Implement the following plan: OpenFang Showcase Canvas + Docker Widget Context Create a…
- User
Implement the following plan:
OpenFang Showcase Canvas + Docker Widget
Context
Create a showcase page demonstrating OpenFang's full capability range, plus a new Docker containers widget to add real system monitoring depth.
Files to Create
1.
fang/widgets/docker_containers_widget.rb— New WidgetA refreshable system widget showing running Docker containers in a table.
- widget_type:
'docker_containers' - menu_label:
'Docker Containers', menu_icon: whale emoji, menu_category:'System' - Refreshable: yes, every 30s
- Refresh pattern: Pattern B (pure content diff — no metadata caching)
- render_content: Runs
docker ps --format '{{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}'viaIO.popen. Parses tab-separated output into a styled table with status badges (green for "Up", red for "Exited"). Shows "Docker not available" or "No containers running" gracefully. - No required metadata keys. Optional:
'show_all'(boolean, passes-aflag to show stopped containers too). - Reference: Follow
system_overview_widget.rbandheartbeat_monitor_widget.rbfor the table/badge HTML patterns.
2.
skills/showcase_setup.rb— Showcase SkillFollows exact pattern of
skills/command_center_setup.rb.Page: title "Showcase", slug "showcase", published
Layout (~1120px wide, 17 widgets):
codeRow 1 — Hero (y=20) Banner: info, "OpenFang — AI assistant framework. 40 tools, 25 widgets, endless automation." x=20 w=1080 Row 2 — Live Data (y=100) Weather(Zurich) x=20 w=280 | Clock(UTC) x=320 w=200 | Clock(Zurich) x=540 w=200 | Metric(Conversations) x=760 w=280 Row 3 — Visualization (y=320) Chart(bar, Widget Types by Category) x=20 w=540 h=300 | Hacker News(5) x=580 w=520 h=300 Row 4 — Automation (y=660) Heartbeat Monitor x=20 w=540 | Workflow Monitor x=580 w=520 Row 5 — Interaction (y=960) Approval x=20 w=360 | Quick Actions x=400 w=340 | Gmail Inbox x=760 w=340 Row 6 — Data & Content (y=1300) Table(MCP Tool Categories) x=20 w=540 | List(Key Features) x=580 w=520 Row 7 — System (y=1620) System Overview x=20 w=520 | Docker Containers x=560 w=540 - widget_type:
Assistant
Let me read the reference files first.
Assistant
Now let me check existing widget types to get the right metadata patterns.
Assistant
Let me check a couple more widget metadata patterns.
Assistant
Now let me check the hacker_news widget for its metadata pattern.
Assistant
Good. Now I have all the patterns. Let me create both files.
Assistant
Now the showcase skill.
Assistant
Both files are created. Let me verify the nav bar to see if showcase needs a link added (per the plan, the skill creates the page dynamically, but let me check if the command center has a nav link).
Assistant
No nav links for these — they're accessed via
/pages/:slugafter the skill creates them. That's consistent with the architecture.Done. Here's what was created:
fang/widgets/docker_containers_widget.rb— New widget that:- Runs
docker ps(ordocker ps -awithshow_allmetadata) and parses tab-separated output - Renders a table with ID, Name, Image, Status (green/red badges), and Ports columns
- Gracefully handles Docker not available or no containers running
- Refreshes every 30 seconds using Pattern B (pure content diff)
skills/showcase_setup.rb— Showcase skill with 17 widgets across 7 rows:- Hero — Info banner with tagline
- Live Data — Weather (Zurich), two clocks (UTC/Zurich), conversation count metric
- Visualization — Bar chart (widget categories), Hacker News feed (5 stories)
- Automation — Heartbeat monitor, workflow monitor
- Interaction — Approval, quick actions, Gmail inbox
- — MCP tool categories table, key features list
- Runs
- User
commit this
Assistant
Committed as
3266d29.- User
so clear my current canvases and lets kinda start blank with just the settings and the showcase setup
Assistant
Now I understand the full picture. The user wants to:
- Remove the
command_center_setup.rbanddaily_briefing.rbskills (keep onlyshowcase_setup.rband the base) - Clean up any existing canvas pages from the database (the dynamic ones created by skills — not the infrastructure pages like jobs, heartbeats, settings)
This is a different task from the previous plan. Let me write a fresh plan.
- Remove the
- User
[Request interrupted by user for tool use]