Skip to content

Remove fake/sample data from 6 UI pages - #275

Merged
shanselman merged 1 commit into
openclaw:masterfrom
ranjeshj:remove-fake-sample-data
May 5, 2026
Merged

shanselman merged 1 commit into
openclaw:masterfrom
ranjeshj:remove-fake-sample-data

Conversation

@ranjeshj

@ranjeshj ranjeshj commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Six UI pages were displaying hardcoded fake/sample data to users before real gateway data loaded. This PR removes all sample data and replaces it with proper empty/loading states.

Changes

Pages fixed (179 lines removed):

  • UsagePage - Fake provider costs, fabricated daily costs, hardcoded summary numbers
  • SessionsPage - 3 fake AI conversation sessions with realistic-sounding messages
  • NodesPage - Fake nodes with fabricated device IDs and capabilities
  • ChannelsPage - Fake channel entries with hardcoded statuses
  • SkillsPage - 3 fake skills + stale "Skills API not yet wired" warning
  • CronPage - 3 fake cron jobs + stale "Cron API not yet wired" warning + hardcoded defaults

Key findings:

  • The Skills and Cron APIs were already fully wired. The "not yet wired" InfoBar warnings were simply outdated.
  • CronPage and SkillsPage EmptyState visibility fixed to default to Visible so the empty state shows immediately.
  • XAML defaults changed from fake numbers to dash placeholders.

Testing

  • Full build passes
  • All 1,570 tests pass (1,162 Shared + 388 Tray, 0 failures)
  • Reviewed by 3 independent models (Claude Opus, GPT-5.4, Claude Sonnet)

Replace constructor-injected sample data with empty/loading states:
- UsagePage: remove fabricated provider costs and daily data; XAML defaults to dash
- SessionsPage: remove 3 fake AI conversation sessions
- NodesPage: remove fake Desktop-PC/MacBook-Pro nodes
- ChannelsPage: remove fake Telegram/WhatsApp channels
- SkillsPage: remove fake skills and stale 'API not yet wired' warning
- CronPage: remove fake cron jobs, stale warning, fix hardcoded defaults

All pages now show proper empty states until real gateway data arrives.
The Skills and Cron APIs were already fully wired; the warnings were
simply outdated and misleading.

Co-authored-by: Copilot <[email protected]>
@shanselman
shanselman merged commit f070490 into openclaw:master May 5, 2026
15 checks passed
@ranjeshj
ranjeshj deleted the remove-fake-sample-data branch May 12, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants