Dev - #12
Merged
Merged
Conversation
Replace regex-based URI manipulation with Uri.parse() and uri.replace() to correctly handle database path replacement. This fixes the bug where \ was interpreted as a literal string instead of a regex capture group, causing errors like 'Could not connect to admin\'. - mongodb_connection.dart: Use Uri.parse() in listDatabases() and listCollections() - mongodb_service.dart: Use Uri.parse() in executeCommand(), find(), and aggregate() - Preserves query parameters (authSource, replicaSet, ssl) when replacing database
Create MongoStatsView widget that displays MongoDB server statistics in a card-based UI similar to RedisView. Features: - Auto-refresh every 3 seconds - Summary chips (Version, Uptime, Connections, Queries) - Memory, Operations, Connections, Network cards - Server, Storage, Replication, WiredTiger sections - Safe connection management with proper cleanup on dispose
Update workspace_panel to display MongoStatsView instead of MongoDatabasesView when a MongoDB connection is selected, providing server statistics similar to Redis connections.
Add unit tests to verify correct database path replacement in MongoDB URIs: - Replaces database in URI without existing database - Replaces database in URI with existing database - Preserves query parameters (authSource, replicaSet, ssl) - Handles various URI formats (with/without auth, custom ports, connection strings) - Ensures no literal \ appears in final URI (the bug we fixed)
Mongodb stats
- Fix critical bug where database path replacement used regex incorrectly, causing literal '' to appear in connection URIs - Replace regex-based URI manipulation with Uri.parse() and uri.replace() for reliable path replacement while preserving query parameters - Update workspace_panel to use MongoStatsView for MongoDB connections - Update .flutter-plugins-dependencies
Fix MongoDB URI database replacement bug and update workspace panel
…base() with auto authSource injection - reuse parent connection in MongoDatabasesView to prevent disconnection - refactor mongodb_service to use _withDb helper consistently - update URI replacement tests for authSource scenarios
…s button (bar_chart icon) next to refresh in breadcrumb bar - MongoStatsView reuses parent connection, shows Explorer back button - seamless switching between data browsing and server statistics
Mongodb execute
…panel: ellipsis on long name/host text - folder name: ellipsis on overflow - document cards: show only keys when collapsed, full JSON when expanded - disable horizontal scroll on collapsed document preview
…to ensure TextOverflow.ellipsis works - shadcn extensions (.small()/.muted()) were wrapping and losing overflow
Fix mongo scroll
ZhuchkaTriplesix
commented
Mar 8, 2026
ZhuchkaTriplesix
left a comment
Member
Author
There was a problem hiding this comment.
legend coding
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.
No description provided.