i-VRESSE / workflow-builder

Graphical interface to build a workflow file
https://i-vresse-workflow-builder.netlify.app/
Apache License 2.0
3 stars 2 forks source link

Make array and table fields indexable #102

Closed sverhoeven closed 2 years ago

sverhoeven commented 2 years ago

Fixes #57 Refs #43

By adding ui:indexable:true to uiSchema you can have index in an array sub form and table sub form.

TODO:

Out of scope

To test

  1. In haddock3 download app,
    1. yarn dev
    2. goto http://localhost:3000
    3. configure global parameters
      1. upload molecules
      2. should have a index (0, 1) in front each file name
    4. add mdref node from refinement category
      1. configure node
      2. expand molecule sub form
      3. Add several mol_shape rows
      4. In front of each row there should be an index.
    5. the haddock3 apps do not have a indexable table because all tables in the haddock3 catalogs do not care about order
  2. In kitchen sink app,
    1. yarn dev
    2. goto http://localhost:3002
    3. add node in indexable category and configure
    4. both table and array node should have 0,1,2,3 after several rows have been added
  3. In storybook of form package
    1. yarn storybook
    2. goto http://localhost:6003
    3. Open stories in Array folder and the last story in TableField folder.

as array it looks like localhost_3002_ (1) and as table localhost_3002_ (2)

Due to changes in haddock3 this PR also contains the global preprocess parameter.

netlify[bot] commented 2 years ago

Deploy Preview for wonderful-noether-53a9e8 ready!

Name Link
Latest commit 422b18cd5f7fa10f6bbff3808edd8fc778daf582
Latest deploy log https://app.netlify.com/sites/wonderful-noether-53a9e8/deploys/62de9ad30e8f4900086a45d6
Deploy Preview https://deploy-preview-102--wonderful-noether-53a9e8.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.