feat: add optional Roo loading animation #8748
Open
+227
−14
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.
Related GitHub Issue
Closes: #8747
Roo Code Task Context (Optional)
Description
This PR adds an optional jumping kangaroo animation as an alternative to the default spinner in progress indicators. Users can toggle this preference in Settings > UI section.
Key implementation details:
KangarooLoader Component (
webview-ui/src/components/chat/KangarooLoader.tsx)currentColorfor theme compatibilityState Management
useKangarooAnimation: booleanto GlobalSettings schemaUI Integration
Test Procedure
Test setting persistence:
Test animation in action:
Test theme compatibility:
Pre-Submission Checklist
Screenshots / Videos
Video of the UI settings toggle and the animation showing in the different chat-related components:
Close-up demo:
Also works nice with light mode:
Documentation Updates
No documentation updates are required.
Rationale: This is a self-explanatory UI setting that users can discover in Settings. No changes to user-facing documentation needed.
Additional Notes
The kangaroo SVG path is inline (not an external asset) for optimal performance
Animation duration of 0.7s was chosen based on testing for smooth, non-distracting motion
Default remains the standard spinner to avoid surprising existing users
This aligns with "Enhanced User Experience" from the roadmap by giving users UI customization options
Get in Touch
Discord: lillelord9379
Important
Adds an optional kangaroo animation for progress indicators, allowing users to switch from the default spinner, with updates to UI components, state management, and i18n.
KangarooLoadercomponent inKangarooLoader.tsxfor a jumping kangaroo animation as an alternative to the default spinner.currentColorfor theme compatibility.useKangarooAnimationboolean inglobal-settings.tsandClineProvider.tsfor state persistence.ExtensionState.ProgressIndicator.tsxconditionally renders kangaroo animation based on user setting.SettingsView.tsxandUISettings.tsx.This description was created by
for 52c1b95. You can customize this summary. It will automatically update as commits are pushed.