Add WorthlessCounter display to webapp template - #119
Merged
Conversation
Resolves #43 by displaying the worthless_counter state value in real-time in the main content area of the webapp created by bb_create. Changes: - Add worthless_counter to IHubState interface - Create WorthlessCounter component with fade animation - Update App.tsx to render WorthlessCounter in content area - Add test for worthless_counter state updates - Fix hub_stats to be optional in IHubState 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Replace JavaScript state management with CSS keyframes animation. Uses React key prop to trigger animation on value changes. Also speed up my_service counter for better demo (0.01s vs 1s). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
|
fixes #43 |
Owner
Author
littlebee
commented
Sep 29, 2025
| hub_monitor.connected_socket, {"worthless_counter": i} | ||
| ) | ||
| await asyncio.sleep(1) | ||
| await asyncio.sleep(0.01) |
Owner
Author
There was a problem hiding this comment.
I did this to demonstrate the low latency of central-hub
littlebee
commented
Sep 29, 2025
| hubConnStatus?: string; | ||
| // the keys below are shared from central hub. See hub_state.py | ||
| hub_stats: { | ||
| hub_stats?: { |
Owner
Author
There was a problem hiding this comment.
this was an existing error that I noticed and fixed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
worthless_counterstate in the main content area of webapp template created bybb_createChanges
worthless_counterto IHubState interfacehub_statsto be optional in IHubStateTest plan
bb_create test_projectbb_startnpm run devCloses #43
🤖 Generated with Claude Code