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(editors): Composite Editor modal comp should work w/complex objects #298

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

ghiscoding
Copy link
Owner

  • the composite editor component was partially working with complex object and this PR adds all missing piece for it to work entirely
  • we should be able to call changeFormInputValue with column and/or columnId and assume that the formValues will still be updated even with complex object(s)
  • add a new changeFormValue to update the formValues object directly without passing by an editor
  • also add a new and small dependency deep-assign since it was discovered that we can use spread to do deep assignment, this small lib does it nicely, else expose it through the Slicker.Utilities on the Vanilla Bundle

- the composite editor component was partially working with complex object and this PR adds all missing piece for it to work entirely
- we should be able to call `changeFormInputValue` with column and/or columnId and assume that the formValues will still be updated even with complex object(s)
- add a new `changeFormValue` to update the `formValues` object directly without passing by an editor
- also add a new and small dependency `deep-assign` since it was discovered that we can use spread to do deep assignment, this small lib does it nicely, else expose it through the Slicker.Utilities on the Vanilla Bundle
@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #298 (37e49d7) into master (5c2f3ee) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #298   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          212       212           
  Lines        12659     12715   +56     
  Branches      4146      4169   +23     
=========================================
+ Hits         12659     12715   +56     
Impacted Files Coverage Δ
packages/common/src/editors/autoCompleteEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/checkboxEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/dateEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/dualInputEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/floatEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/integerEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/longTextEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/selectEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/sliderEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/textEditor.ts 100.00% <100.00%> (ø)
... and 3 more

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 5c2f3ee...37e49d7. Read the comment docs.

@ghiscoding ghiscoding changed the title fix(editors): Composite Editor modal compo should work w/complex objects fix(editors): Composite Editor modal comp should work w/complex objects Mar 30, 2021
@ghiscoding ghiscoding merged commit 721a6c5 into master Mar 30, 2021
@ghiscoding ghiscoding deleted the bugfix/composite-editor-with-complex-objects branch March 30, 2021 00:54
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.

1 participant