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

Right justifies numeric types and changes font to a monspaced font #1621

Merged
merged 5 commits into from
Nov 16, 2024

Conversation

eireland
Copy link
Contributor

@eireland eireland commented Nov 15, 2024

Precision is implemented with this PR #1620

@eireland eireland added the v3 CODAP v3 label Nov 15, 2024
@eireland eireland marked this pull request as ready for review November 15, 2024 00:53
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.67%. Comparing base (b2424aa) to head (65a7b23).
Report is 133 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1621      +/-   ##
==========================================
+ Coverage   85.02%   85.67%   +0.64%     
==========================================
  Files         600      601       +1     
  Lines       30307    30429     +122     
  Branches     7740     7778      +38     
==========================================
+ Hits        25768    26069     +301     
+ Misses       4384     4205     -179     
  Partials      155      155              
Flag Coverage Δ
cypress 75.18% <100.00%> (+1.00%) ⬆️
jest 52.57% <40.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

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

👍 Looks good after I added a commit:

  • Number formatting applies to values, not columns.
  • What do you think of Chivo Mono as an alternative?

Give it a whirl and see what you think.

Comment on lines 52 to 53
cellClass: row => clsx("codap-data-cell", `rowId-${row.__id__}`, {"formula-column": hasFormula,
"right-justify": userType === "numeric" || type === "numeric"}),
Copy link
Member

Choose a reason for hiding this comment

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

Number formatting should be applied to values, not columns. I'll add a commit.

Comment on lines 328 to 329
// font-family: 'Roboto Mono', monospace;
font-family: 'Inconsolata', monospace;
Copy link
Member

Choose a reason for hiding this comment

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

I told myself I wasn't going to do this, but I couldn't resist looking into other fonts. Take a look at it after my commit and see what you think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks good. The 1 bugs me a little, but the 4 matches better 🤷‍♀️

Copy link

cypress bot commented Nov 15, 2024

codap-v3    Run #5229

Run Properties:  status check passed Passed #5229  •  git commit a742196c25: Right justifies numeric types and changes font to a monspaced font (#1621)
Project codap-v3
Branch Review main
Run status status check passed Passed #5229
Run duration 06m 49s
Commit git commit a742196c25: Right justifies numeric types and changes font to a monspaced font (#1621)
Committer Evangeline Ireland
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 35
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 220
View all changes introduced in this branch ↗︎

@eireland eireland merged commit a742196 into main Nov 16, 2024
17 checks passed
@eireland eireland deleted the 182991523-number-styling branch November 16, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants