-
Notifications
You must be signed in to change notification settings - Fork 537
feat(status): Implement global status bar and request body in get val… #665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(status): Implement global status bar and request body in get val… #665
Conversation
…idation - Create StatusMessage model with support for info/warning/error types - Design GlobalStatusBar UI component with dynamic styling based on status type and located at the bottom of the editorpane -Implement GlobalStatusBarManager for state management via Riverpod - Add StatusValidator with initial validation for GET requests with bodies Signed-off-by: Balasubramaniam12007 <[email protected]>
@ashitaprasad Could you please review this PR when you get a chance? This is an initial implementation with enhanced, future-extendable notifiers. Your feedback would be really valuable in improving the implementation. Thanks in advance! 😊 |
Does not work in dark mode |
Thanks for the feedback! I’ll fix the dark mode support and update the PR soon. |
- Add JSON validation to StatusValidator for ContentType.json requests - Implement expandable multi-line messages in GlobalStatusBar - Optimize GlobalStatusBar with memoization and Riverpod select - Prevent redundant state updates in GlobalStatusBarManager - Update GET request validation to use warning type - Supports both dark and light mode Signed-off-by: Balasubramaniam12007 <[email protected]>
@animator @ashitaprasad I've enhanced the GlobalStatusBar widget and its components in this PR to improve performance, add new features, and ensure compatibility with both dark and light modes. Here's a summary of the changes:
Please review and let me know if any adjustments are needed. Thanks for your feedback! |
PR Description
This PR introduces a Global Status Bar to provide real-time feedback on API request configurations. . The system validates and displays informative messages through a persistent status bar.
Key Features
Implementation Details
The implementation follows a clean architecture pattern with clear separation of concerns:
StatusMessage
: Data class holding message content and typeGlobalStatusBarManager
: StateNotifier for managing status message stateStatusValidator
: Contains validation logic for API requestsGlobalStatusBar
: UI component for displaying status messagesRelated Issues
Demonstration
demo.mp4
Checklist
main
branch before making this PRflutter upgrade
and verify)flutter test
) and all tests are passingAdded/updated tests?
We encourage you to add relevant test cases.
OS on which you have developed and tested the feature?