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

186182704 formula column background #1529

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

eireland
Copy link
Contributor

@eireland eireland commented Oct 2, 2024

Adds background color to columns with formula.

Adds background color to value cell in case card if attribute has a formula

Disables cell editing in case card when attribute has a formula.

Adds cypress test to verify background color for cells with formula values.

Splits case-card cypress test so that two different URLs are used to load CODAP. The mouseSensor query param was interfering with test that required the attribute menu.

Disables value editing when attribute has a formula
Splits case card test to 2 context so mouseSensor does not interfere with attribute menu clicks
@eireland eireland added the v3 CODAP v3 label Oct 2, 2024
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.10%. Comparing base (4f8ddcc) to head (d094202).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1529   +/-   ##
=======================================
  Coverage   85.10%   85.10%           
=======================================
  Files         563      563           
  Lines       28149    28155    +6     
  Branches     7728     7731    +3     
=======================================
+ Hits        23955    23961    +6     
  Misses       3888     3888           
  Partials      306      306           
Flag Coverage Δ
cypress 74.44% <100.00%> (+0.04%) ⬆️
jest 53.32% <50.00%> (-0.01%) ⬇️

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

cypress bot commented Oct 2, 2024

codap-v3    Run #4517

Run Properties:  status check passed Passed #4517  •  git commit e9dfa69634: 186182704 formula column background (#1529)
Project codap-v3
Branch Review main
Run status status check passed Passed #4517
Run duration 08m 46s
Commit git commit e9dfa69634: 186182704 formula column background (#1529)
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 30
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 227
View all changes introduced in this branch ↗︎

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 -- one suggestion to use clsx instead of concatenating class strings ourselves.

v3/src/components/case-table/use-columns.tsx Outdated Show resolved Hide resolved
@eireland eireland marked this pull request as ready for review October 2, 2024 18:54
@eireland eireland merged commit e9dfa69 into main Oct 2, 2024
11 checks passed
@eireland eireland deleted the 186182704-formula-column-background branch October 2, 2024 18:54
lublagg pushed a commit that referenced this pull request Oct 4, 2024
* Adds formula column background color

* Adds formula background styling to case card value cell.

Disables value editing when attribute has a formula

* Adds Cypress test to verify background color when attribute is a formula

Splits case card test to 2 context so mouseSensor does not interfere with attribute menu clicks

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

Successfully merging this pull request may close these issues.

2 participants