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

Reset splitter sizes on database unlock #11014

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

droidmonkey
Copy link
Member

@droidmonkey droidmonkey commented Jul 1, 2024

Improve related splitter UX as well:

  • Prevent group pane from being hidden just by dragging. Introduce new View menu setting to hide the group pane.
  • Replace the preview panel "close" icon with a "collapse down" icon making the intention clearer.
  • Better organize the view menu

Testing strategy

Manual testing is pending...

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 7 lines in your changes missing coverage. Please review.

Project coverage is 63.78%. Comparing base (0288188) to head (e2f16dd).

Files with missing lines Patch % Lines
src/gui/DatabaseWidgetStateSync.cpp 91.18% 3 Missing ⚠️
src/gui/DatabaseWidget.cpp 77.78% 2 Missing ⚠️
src/gui/MainWindow.cpp 60.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #11014      +/-   ##
===========================================
+ Coverage    63.71%   63.78%   +0.06%     
===========================================
  Files          362      362              
  Lines        38001    38027      +26     
===========================================
+ Hits         24211    24252      +41     
+ Misses       13790    13775      -15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@droidmonkey
Copy link
Member Author

I want to write unit tests for this before I merge

* Attempt to avoid issue with splitters not being appropriately calculated because the main window isn't sized yet. This can happen if the main window is hidden when the database is loaded and the splitter sizes are not recorded in the config file.
* Prevent group pane from being hidden just by dragging. Introduce new View menu setting to hide the group pane.
* Replace the preview panel "close" icon with a "collapse down" icon making the intention clearer.
* Better organize the view menu
@droidmonkey
Copy link
Member Author

droidmonkey commented Oct 14, 2024

@phoerious can you take another look? I added a commit that disables collapsing the group view and instead adds a view menu action to explicitly show/hide the group view. The behavior is similar to the preview panel.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Database view splitters are hidden if MinimizeOnStartup is enabled and no splitter sizes are configured
2 participants