* WIP
* created form for editing compute privacy
* used editComputePrivacy method
* select and update trusted algorithm
* display and select multiple trusted algorithms
* fixed update when trusted algorithm list not changed
* code refactoring
* moved separator inside condition
* moved functions and interface from EditComputeDataset component
* moved algorithmOptions to parent component
* used AssetSelection to display algorithms
* use AssetSelection to select trusted algorithms
* getAlgorithmsOptions function review
* review fixes
* removed unused imports
* merge fixes
* AssetSelection style & usability tweaks
* use custom radio & checkbox styles
* add simple search for name & DID
* spacing adjustments
* copy updates, remove raw algo input, hardcode allowRawAlgorithm
* copy
* AssetSelection usability tweaks
* make rows clickable
* tweak layout, style and markup
* use formik set function to update values
* sorted algorithm list, added checked field
* sort assetSelection list on user select
* fix getAlgorithmsForAssetSelection breaking on empty responses
* form debug output
* another empty publisherTrustedAlgorithms fix
* created separate algorithms state for the form, sort list on edit
* refactor
* use Formik functionality wherever possible
* unify transforming form data to final data
* fix form debug transformation
* fix form submit, fix defaultChecked
* refactor
* use Formik functionality wherever possible
* unify transforming form data to final data
* fix form debug transformation
* fix form submit, fix defaultChecked
* disable assetSelection when allowAllAlgorithms is true
* added loader to AssetSelection
* changed allowAllAlgorithms to allowAllPublishedAlgorithms
* fixed lint error
* updated transformComputeFormToServiceComputePrivacy
* lint fix
* modify publish defaults
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* prototype view switching
* refactor, more UI
* formik form setup & data flow
* debug output, fixes, refactor
* description preview refactor
* publish/update date changes
* output created & updated date at top of asset
* use ddo.created & ddo.updated everywhere
* stop pushing metadata.main.datePublished
* owner check for edit link
* all the feedback states and switching between them: loading, error, success
* refactor feedback, one component for publish & edit
* action & date output fixes
* move all content, iterate form fields from it
* UI updates
* styling tweaks
* ddo dataflow refactor, more useAsset usage
* more useAsset usage
* form actions styling
* prepare edit history component
* metadata output tweaks
* copy
* safeguard against profile urls without protocol defined
* refetch ddo after edit
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* switch author for dataTokenOptions in metadata preview
* refactor
* copy
* showPricing fix
* validation: minimum characters for title & description
* disable submit button when validation fails
* form validation fixes
* manually trigger onChange validation in publish & edit forms
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>