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

fix: handling of hidden/minimized tiles #1630

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

kswenson
Copy link
Member

@kswenson kswenson commented Nov 16, 2024

[PT-188570070]

#1622 addressed the case of minimized tiles, but did not properly capture the relationship between hidden and minimized tiles. The document in the PT story has a case table that has been minimized and hidden. In v2, when such a tile is shown/unhidden it is also unminimized. In other words, when a hidden tile is shown, its prior minimized/unminimized state is ignored, which is equivalent to saying that a tile cannot be both hidden and minimized. Therefore, we implement this rule at the model level, so that we don't have to find all clients that show hidden tiles (Calculator button in tool shelf, close button of certain tiles, table menu items, etc.).

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.65%. Comparing base (6f3b40e) to head (bc612e5).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
v3/src/models/document/free-tile-row.ts 75.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1630       +/-   ##
===========================================
+ Coverage   67.88%   85.65%   +17.77%     
===========================================
  Files         600      600               
  Lines       30405    30413        +8     
  Branches     8351     8293       -58     
===========================================
+ Hits        20639    26049     +5410     
+ Misses       9611     4045     -5566     
- Partials      155      319      +164     
Flag Coverage Δ
cypress 75.15% <84.61%> (+31.16%) ⬆️
jest 52.59% <46.15%> (-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 Nov 16, 2024

codap-v3    Run #5243

Run Properties:  status check passed Passed #5243  •  git commit 0a69e9bda6: Increment the build number
Project codap-v3
Branch Review main
Run status status check passed Passed #5243
Run duration 01m 52s
Commit git commit 0a69e9bda6: Increment the build number
Committer eireland
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 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 3
View all changes introduced in this branch ↗︎

@kswenson kswenson changed the title fix: handling of hidden tiles fix: handling of hidden/minimized tiles Nov 16, 2024
@kswenson kswenson marked this pull request as ready for review November 16, 2024 03:20
Copy link
Contributor

@tealefristoe tealefristoe 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 to me 👍

@kswenson kswenson merged commit 2eb134d into main Nov 16, 2024
24 checks passed
@kswenson kswenson deleted the 188570070-fix-hidden-minimized branch November 16, 2024 03:32
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