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

Combine axis name, type, and transforms into one widget #53

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

andy-sweet
Copy link
Owner

@andy-sweet andy-sweet commented Mar 24, 2023

This combines the axes name/type widget and the axis transform widget into a single widget with a grid layout. This avoid some duplication of code and the axis labels themselves.

Before:
napari metadata plugin widget showing the 3 dimensions of the selected image layer with separate widgets for dimension name/type and dimension scale/translate

After:
napari metadata plugin widget showing the 3 dimensions of the selected image layer with a single widget for dimension name/type/scale/translate

There's also a trade-off between vertical and horizontal space - here we use less vertical space, but more horizontal space.

@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2023

Codecov Report

Merging #53 (abc3597) into main (4bceba4) will decrease coverage by 0.43%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   93.22%   92.80%   -0.43%     
==========================================
  Files          16       15       -1     
  Lines        1506     1431      -75     
==========================================
- Hits         1404     1328      -76     
- Misses        102      103       +1     
Impacted Files Coverage Δ
src/napari_metadata/_axes_widget.py 98.93% <100.00%> (+0.60%) ⬆️
src/napari_metadata/_tests/test_widget.py 99.63% <100.00%> (ø)
src/napari_metadata/_widget.py 93.09% <100.00%> (-0.18%) ⬇️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants