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

Merged
merged 2 commits into from
Oct 26, 2024
Merged

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.74%. Comparing base (95bae83) to head (f948a41).
Report is 3 commits behind head on develop.

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.72%   63.74%   +0.02%     
===========================================
  Files          362      362              
  Lines        38002    38028      +26     
===========================================
+ Hits         24215    24240      +25     
- Misses       13787    13788       +1     

☔ 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

@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

* 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 droidmonkey merged commit feafcec into develop Oct 26, 2024
11 checks passed
@droidmonkey droidmonkey deleted the fix/splitter-issues branch October 26, 2024 12:59
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