-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
codap-v3 Run #4846
Run Properties:
|
Project |
codap-v3
|
Branch Review |
main
|
Run status |
Passed #4846
|
Run duration | 08m 46s |
Commit |
debc5e4bb0: 188497515 v3 Plotted Function/Value Formula Editor (#1574)
|
Committer | Teale Fristoe |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
47
|
Skipped |
0
|
Passing |
219
|
View all changes introduced in this branch ↗︎ |
There was a problem hiding this 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" |
There was a problem hiding this comment.
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.
* Separate attribute logic from formula editor. * Use EditFormulaModal for plotted function and plotted value.
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.EditFormulaModal
was abstracted from theEditAttributeFormulaModal
, which is used to modify attribute formulas.EditFormulaModal
. Their own special modals of the same name were removed.EditFormulaModal
to try to make it better match v2.