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

188497515 v3 Plotted Function/Value Formula Editor #1574

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

tealefristoe
Copy link
Contributor

@tealefristoe tealefristoe commented Oct 30, 2024

PT Story: https://www.pivotaltracker.com/story/show/188497515

This PR makes the Plotted Function and Plotted Value adornments use the EditFormulaModal to modify their formulas. In doing so they gain access to autocomplete for variables, functions, and other keywords.

  • The EditFormulaModal was abstracted from the EditAttributeFormulaModal, which is used to modify attribute formulas.
  • Plotted Function and Plotted Value adornments now use the general EditFormulaModal. Their own special modals of the same name were removed.
  • I made a few minor changes to the display of the EditFormulaModal to try to make it better match v2.

@tealefristoe tealefristoe marked this pull request as draft October 30, 2024 02:19
@tealefristoe tealefristoe added the v3 CODAP v3 label Oct 30, 2024
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.73%. Comparing base (29012f0) to head (b01efa5).
Report is 16 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1574       +/-   ##
===========================================
+ Coverage   70.91%   84.73%   +13.82%     
===========================================
  Files         556      591       +35     
  Lines       24012    29734     +5722     
  Branches     7274     8168      +894     
===========================================
+ Hits        17028    25196     +8168     
+ Misses       6976     4205     -2771     
- Partials        8      333      +325     
Flag Coverage Δ
cypress 74.30% <100.00%> (+3.38%) ⬆️
jest 52.45% <32.20%> (?)

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 30, 2024

codap-v3    Run #4846

Run Properties:  status check passed Passed #4846  •  git commit debc5e4bb0: 188497515 v3 Plotted Function/Value Formula Editor (#1574)
Project codap-v3
Branch Review main
Run status status check passed Passed #4846
Run duration 08m 46s
Commit git commit debc5e4bb0: 188497515 v3 Plotted Function/Value Formula Editor (#1574)
Committer Teale Fristoe
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 47
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 219
View all changes introduced in this branch ↗︎

@tealefristoe tealefristoe marked this pull request as ready for review October 30, 2024 03:41
@tealefristoe tealefristoe requested a review from kswenson October 30, 2024 03:41
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 great -- nice refactor!

onClose={() => uiState.setEditFormulaAttributeId()}
titleInput={attribute?.name}
titleLabel={t("DG.AttrFormView.attrNamePrompt")}
titlePlaceholder="attribute"
Copy link
Member

Choose a reason for hiding this comment

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

Assuming this is user-visible (as placeholders generally are), it should be a localizable string. It's a pre-existing condition, so not necessarily part of this PR, but should be fixed or at least add a TODO comment.

@tealefristoe tealefristoe merged commit debc5e4 into main Oct 30, 2024
17 checks passed
@tealefristoe tealefristoe deleted the 188497515-v3-plotted-formula-editor branch October 30, 2024 20:37
nstclair-cc pushed a commit that referenced this pull request Nov 8, 2024
* Separate attribute logic from formula editor.

* Use EditFormulaModal for plotted function and plotted value.
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