mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
* Wip start compute job * Wip select algorithm design * Asset selection form component, for start compute job (#442) * prototype AssetSelection * assetselection styling * typing "fix" * put back file info icon * AssetSelection styling in context * update start job method, fixed algo select, and fixed option typing * compute logic update * add has previous orders for algo asset * fixed search algorithm assets in start compute form * fixed lint errors * updated previous order for algo logic and compute flow * update use price hook and added buy DT for algo * display only alg of type exchange and sort by value * display only trusted algo for asset if field is set * added logic for allow all published algorithms or no algorithms allowed * asset selection style & spacing tweaks * refactor get algorithms for compute and edit compute * fixed form options and more refactoring * new ButtonBuy component * shared component between consume/compute * dealing with various states: loading, previous orders, help text output * effect dependencies * move error output into toast * formik data flow refactor * ditch custom field change handler * fix initialValues * typed form data & validation * fixes multiple form validation issues along the way * isInitialValid → validateOnMount * metadata display tweaks * error feedback tweaks * oler assets checks, confeti on succes job, market fee on order, removed algo compute logic * more startJob logging * feedback & messaging changes * metadata display * return all algos, fixed & dynamic priced ones * fix DOM nesting * messaging updates * copy tweaks * check algorithm previous history for both acces and compute sercive types * handle start compute error * extra checks on start compute response * styling tweaks, fix toast UI errors * AssetSelection: empty screen, tweak min/max height * fix FRE issues on start compute * check is ordarable before start compute job * logging tweaks * disable eslint no-unused-vars rule for some Apollo code blocks * fix metadata editing for compute assets * consider dataset timeout for compute too Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
87 lines
2.7 KiB
JSON
87 lines
2.7 KiB
JSON
{
|
|
"title": "Publish an Algorithm",
|
|
"data": [
|
|
{
|
|
"name": "name",
|
|
"label": "Title",
|
|
"placeholder": "e.g. Shapes of Desert Plants",
|
|
"help": "Enter a concise title.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "description",
|
|
"label": "Description",
|
|
"help": "Add a thorough description with as much detail as possible. You can use [Markdown](https://daringfireball.net/projects/markdown/basics).",
|
|
"type": "textarea",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "files",
|
|
"label": "File",
|
|
"placeholder": "e.g. https://file.com/file.json",
|
|
"help": "Please provide a URL to your algorithm file. This URL will be stored encrypted after publishing.",
|
|
"type": "files",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "dockerImage",
|
|
"label": "Docker Image",
|
|
"placeholder": "e.g. python3.7",
|
|
"help": "Please select an image to run your algorithm.",
|
|
"type": "select",
|
|
"options": ["node:latest", "python:latest", "custom image"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "image",
|
|
"label": "Image URL",
|
|
"placeholder": "e.g. oceanprotocol/algo_dockers or https://example.com/image_path",
|
|
"help": "Provide the name of a public Docker image or the full url if you have it hosted in a 3rd party repo",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "containerTag",
|
|
"label": "Docker Image Tag",
|
|
"placeholder": "e.g. latest",
|
|
"help": "Provide the tag for your Docker image.",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "entrypoint",
|
|
"label": "Entrypoint",
|
|
"placeholder": "e.g. python $ALGO",
|
|
"help": "Provide the entrypoint for your algorithm.",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "algorithmPrivacy",
|
|
"label": "Algorithm Privacy",
|
|
"type": "checkbox",
|
|
"options": ["Keep my algorithm private"],
|
|
"help": "By default, your algorithm can be downloaded for a fixed or dynamic price in addition to running in compute jobs. Enabling this option will prevent downloading, so your algorithm can only be run as part of a compute job on a data set.",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "author",
|
|
"label": "Author",
|
|
"placeholder": "e.g. Jelly McJellyfish",
|
|
"help": "Give proper attribution for your algorithm.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "tags",
|
|
"label": "Tags",
|
|
"placeholder": "e.g. logistics, ai",
|
|
"help": "Separate tags with comma."
|
|
},
|
|
{
|
|
"name": "termsAndConditions",
|
|
"label": "Terms & Conditions",
|
|
"type": "terms",
|
|
"options": ["I agree to these Terms and Conditions"],
|
|
"required": true
|
|
}
|
|
],
|
|
"success": "Algorithm Published!"
|
|
}
|