Skip to content

feat(nosql): 1-click return to active Mongo collection and Redis key (#1024) - #1076

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1024-nosql-return-to-object
Oct 5, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1024-nosql-return-to-object

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1024

Summary

  • MainScreenWorkspaceState: Track selectedRedisKey and lastSelectedRedisKey, updated restoreLastSelectedObject() to support both MongoDB collections and Redis keys alongside SQL tables.
  • MongoStatsView: Added lastSelectedMongoCollection with fallback to lastSelectedMongoDb for OutlineButton(leading: Icon(Icons.table_chart_outlined), child: Text('Return to $collection')). Pinned header above body to avoid disappearing on loading/error states.
  • MongoExplorerView: Preserves _lastSelectedCollection and passes it to MongoStatsView.
  • RedisView: Added lastSelectedRedisKey with fallback to lastSelectedRedisDb for return button (Icons.vpn_key_outlined), wrapped actions in Wrap to prevent horizontal overflow, pinned header above body.
  • RedisExplorerView: Preserves _lastSelectedKey across view transitions and passes it to RedisView. Added initialKey support.
  • WorkspacePanel & MainScreen: Wired lastSelectedMongoCollection, selectedRedisKey, and lastSelectedRedisKey.
  • Tests: Added full unit and widget test suite for NoSQL 1-click return to object (test/features/nosql/nosql_return_to_object_test.dart) and updated MainScreenWorkspaceStateTest.

@github-actions github-actions Bot added enhancement New feature or request ui User interface components and widgets ux User experience, keyboard shortcuts and interactions P2 Medium priority / Parity & Refactoring labels Oct 5, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit db2b1e7 into dev Oct 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request P2 Medium priority / Parity & Refactoring ui User interface components and widgets ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant