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

feat: add control event to all state references with change event #388

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

dpilch
Copy link
Member

@dpilch dpilch commented Feb 8, 2022

No description provided.

@dpilch dpilch requested a review from a team February 8, 2022 22:27
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2022

Codecov Report

Merging #388 (abcff11) into tagged-release/q1-release (d6acc19) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                      Coverage Diff                      @@
##           tagged-release/q1-release     #388      +/-   ##
=============================================================
+ Coverage                      93.64%   93.66%   +0.01%     
=============================================================
  Files                             43       43              
  Lines                           1636     1641       +5     
  Branches                         352      353       +1     
=============================================================
+ Hits                            1532     1537       +5     
  Misses                           102      102              
  Partials                           2        2              
Impacted Files Coverage Δ
packages/codegen-ui-react/lib/primitive.ts 100.00% <100.00%> (ø)
packages/codegen-ui-react/lib/workflow/mutation.ts 97.70% <100.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6acc19...abcff11. Read the comment docs.

Copy link
Contributor

@alharris-at alharris-at left a comment

Choose a reason for hiding this comment

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

Nice! Just a few minor ones.

Primitive.CheckboxField,
Primitive.PasswordField,
Primitive.PhoneNumberField,
Primitive.Radio,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the underlying radio as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

No we don't need it, bad copy paste.

Comment on lines 145 to 148
'FullForm',
'Listings',
'ListingComp',
'RoudedImage',
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably don't need/want to commit this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Messed up the rebase. Will fix

Comment on lines 262 to 264
[stateReference.property]: propertyReferences.concat([
{ addControlEvent: PrimitivesWithChangeEvent.has(componentType as Primitive) },
]),
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't we want the addControlEvent flag here to effectively be either the old logic or this new logic? Is there a usecase where we want to add a control event to a non-form element? Could be not, but it may be safer in the short term to leave the old behavior in until we convince our selves otherwise.

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

Successfully merging this pull request may close these issues.

3 participants