hypermedia-app / shaperone

Form UI elements driven by SHACL Shapes
https://forms.hypermedia.app
MIT License
46 stars 5 forks source link

feat: updating with pointer #187

Closed tpluscode closed 2 years ago

tpluscode commented 2 years ago

This adds GraphPointer as possible argument of the update callback, making it possible to set deep subgraphs.

Additionally, updating and removing values will ensure that there are no blank node orphans

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 6d76deebe3a2552848aed2565e6c46f1d7751205

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | ---------------------------------------- | ----- | | @hydrofoil/shaperone-core | Patch | | @hydrofoil/shaperone-wc | Patch | | @hydrofoil/shaperone-playground-examples | Patch | | @hydrofoil/shaperone-playground | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 2 years ago

Codecov Report

Merging #187 (6d76dee) into master (1829ec2) will increase coverage by 0.16%. The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
+ Coverage   80.23%   80.40%   +0.16%     
==========================================
  Files         141      142       +1     
  Lines        6678     6740      +62     
  Branches      616      631      +15     
==========================================
+ Hits         5358     5419      +61     
- Misses       1294     1295       +1     
  Partials       26       26              
Impacted Files Coverage Δ
...dels/resources/effects/forms/setPropertyObjects.ts 93.10% <80.00%> (-2.73%) :arrow_down:
...ore/models/resources/effects/forms/updateObject.ts 91.66% <86.66%> (+2.47%) :arrow_up:
packages/core/lib/graph.ts 100.00% <100.00%> (ø)
packages/core/models/components/index.ts 90.76% <100.00%> (+0.05%) :arrow_up:
...ackages/core/models/forms/reducers/updateObject.ts 95.08% <100.00%> (ø)
.../core/models/resources/effects/forms/clearValue.ts 88.57% <100.00%> (+0.69%) :arrow_up:
...ore/models/resources/effects/forms/removeObject.ts 97.14% <100.00%> (+0.17%) :arrow_up:
packages/wc/renderer/editor.ts 91.09% <100.00%> (+0.06%) :arrow_up:

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 1829ec2...6d76dee. Read the comment docs.