Add real-time animated funding progress bar with WebSocket integratio…#219
Closed
Mmesolove wants to merge 1 commit intoGalactiGuild:mainfrom
Closed
Add real-time animated funding progress bar with WebSocket integratio…#219Mmesolove wants to merge 1 commit intoGalactiGuild:mainfrom
Mmesolove wants to merge 1 commit intoGalactiGuild:mainfrom
Conversation
…n and Vitest coverage
Contributor
Author
|
Please review and merge |
Contributor
|
same here @Mmesolove , please look in to ci fail |
Contributor
Author
|
Please review and merge @gabito1451 |
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.
Closes #108
Description
Create an animated funding progress bar that updates in real time via WebSockets as new on-chain investments occur.
Requirements & Context
The component should reflect live platform activity to enhance user engagement and create a sense of urgency (FOMO).
Progress must update instantly and smoothly as new investment events are received.
Suggested Implementation
Build components/FundingProgress.tsx:
Subscribe to WebSocket events for new investments
Update the current funding amount and recalculate progress percentage
Ensure the progress value is capped at 100%
Use Framer Motion to:
Animate the progress bar fill smoothly on each update
Avoid abrupt jumps (use easing or spring-based transitions)
Optionally animate numeric value changes for better UX
Edge Cases & Considerations
Handle WebSocket disconnects and reconnections gracefully
Prevent UI glitches during rapid consecutive updates
Ensure accurate state synchronization with on-chain data
Acceptance Criteria
Real-time updates reflected without delay
Smooth, visually appealing animations
Stable behavior under frequent event updates
Clean, reusable, and well-structured component