Skip to content
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

feat(status): Implement global status bar and request body in get val… #665

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BalaSubramaniam12007
Copy link
Contributor

@BalaSubramaniam12007 BalaSubramaniam12007 commented Mar 13, 2025

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

  1. Global Status Bar: A persistent UI component that displays validation messages with appropriate visual indicators (colors and icons)
  2. State Management: Riverpod-based state management for seamless status updates throughout the application
  3. Request Validation: Initial implementation focuses on validating GET
  4. Dynamic UI: Status messages adapt their appearance based on message type (info, warning, error)

Implementation Details
The implementation follows a clean architecture pattern with clear separation of concerns:

  1. StatusMessage: Data class holding message content and type
  2. GlobalStatusBarManager: StateNotifier for managing status message state
  3. StatusValidator: Contains validation logic for API requests
  4. GlobalStatusBar: UI component for displaying status messages

Related Issues

Demonstration

demo.mp4

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why: Tests will be added after implementation approach is finalized and reviewed.

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

…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]>
@BalaSubramaniam12007
Copy link
Contributor Author

@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! 😊

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.

Add a Global status bar in API Dash GET -> POST when user adds request body
1 participant