Fix: Keep "Manage databases" and "Refresh" controls visible when a single database is selected - #635
Open
gcapellib wants to merge 1 commit into
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Previous Review Summary (commit 8814bda)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8814bda)Status: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by glm-5.2 · Input: 10.1K · Output: 750 · Cached: 108K |
gcapellib
force-pushed
the
fix/single-database-shows-manage-controls
branch
from
August 14, 2026 00:18
f7d0f68 to
8814bda
Compare
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.
Currently, when a single database is selected, the UI switches to a specific view that hides the "Manage databases" and "Refresh" buttons. Users are forced to return to the root connection configuration to select other databases, which degrades the UX.
Solution
This PR unifies the UI behavior by keeping the multi-database layout active even when only one database is selected, while ensuring immediate access to its tables.
Changes in DatabaseProvider.tsx:
Keep controls visible: Adjusted thresholds from > 1 to >= 1 for savedDbList.length and selection.length. The view now displays DATABASES (1) with the management buttons always accessible.
Auto-expand: To compensate for replacing the old single-view layout, the single database is automatically set as activeSchema (firstDb). It expands by default to directly show its tables (saving an extra click).