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

Align the table header to the table when labels are used #63

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

evalott100
Copy link
Contributor

@evalott100 evalott100 commented Nov 22, 2023

Closes #49
The table header is now also indented
if the table is given labels.
Regenerated table output in tests.

@evalott100
Copy link
Contributor Author

Report

If no labels are added everything stays the same:

image

If labels are added the header indents correctly:

image

It doesn't matter how many elements are included:

image

image

All other labelled fields look the same:

image

@evalott100 evalott100 force-pushed the allow_labels_on_tables branch from 12a44e5 to 27d9667 Compare November 22, 2023 09:44
Copy link
Member

@GDYendell GDYendell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some tidying.

src/pvi/_format/screen.py Outdated Show resolved Hide resolved
src/pvi/_format/screen.py Outdated Show resolved Hide resolved
src/pvi/_format/screen.py Outdated Show resolved Hide resolved
src/pvi/_format/screen.py Show resolved Hide resolved
@GDYendell
Copy link
Member

We agreed it is not worth the extra logic to allow row labels of static tables to be hidden. The diff to the expected test files is to add these row labels.

@evalott100 evalott100 force-pushed the allow_labels_on_tables branch from 27d9667 to 5122ada Compare November 22, 2023 15:37
The table header is now also indented
if the table is given labels.
Regenerated table output in tests.
@evalott100 evalott100 force-pushed the allow_labels_on_tables branch from 5122ada to 42fbbb3 Compare November 22, 2023 16:12
@evalott100 evalott100 requested a review from GDYendell November 22, 2023 16:13
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (799b31b) 88.51% compared to head (42fbbb3) 88.55%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
+ Coverage   88.51%   88.55%   +0.04%     
==========================================
  Files          22       22              
  Lines        1358     1363       +5     
==========================================
+ Hits         1202     1207       +5     
  Misses        156      156              

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

@evalott100 evalott100 merged commit 3e0640a into main Nov 23, 2023
14 checks passed
@evalott100 evalott100 deleted the allow_labels_on_tables branch November 23, 2023 08:29
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.

Add option to show row labels in static tables
3 participants