* header space saving & interaction tweaks
* remove network name reveal interaction on small viewports
* increase header button sizes for all viewports for better tap targets
* tweak flex layout
* remove caret from version badge on smaller viewports
* fix NFT tooltip icon placement
* spacing tweak
* caret css cleanup
* remove reconnecting message
* squeeze more space out of network, test label
* more space from unsupported network indicator
* edit refactors
* fix logic around `publisherTrustedAlgorithms`
* typing fix
* copy & typos
* conditionally add compute tab to edit screen
* more logic fixes
* fix various app crashes because of Debug component
* semi-deal with publisherTrustedAlgorithmPublishers
* more fixes, bound submit button to touched state
* add balance check and check is consumable
* add isOrderable and other helpers
* finish start compute job
* removed unused methods
* add more comments
* add pool logic for order
* move asset selection to compute helper
* small fix
* fixed get algo list
* refactor start compute job and more fixes
* update order params
* use compute env and compute consumer address
* fix prices
* fix algorithms selection list on allowAllPublisher case
* fix edit compute settings
* update compute resources valid until logic
* fixes and cleanups
* wip compute jobs
* fix compute timeout value
* fixed compute jobs logic
* fix algo selection list name
* fixed compute jobs from profile loading
* update start compute flow messages
* update set algo access details
* update compute message logic
* added logs
* update package lock
* remove logs
* fix edit compute checksums for files and container
* Fix compute dataset algorithm list (#1194)
* fix query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove comment
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* Fix previous order tx (#1197)
* rename nft update query
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix previous order
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix build
* handle order price, NaN and default 0
* optional value for all fee, prevent breaking when no value
* fix aquarius call and added logs
* update provider compute status call
* remove percentage fee from price sum, depends smart contract calculation (#1249)
Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
* fix display of compute datasets with free price
* removed to lowerCase on eth address
* fix compute jobs section and your jobs
* bumo ocean lib to 1.0.0-next.32
* c2d show price with fee, exclude provider fee
* wip get results
* include loading when calculating data + algo price, tooltip show order price
* update get compute url and use oceanjs helper for download
* update computeStatus signature to fix build and CI
* added logs
* refactor setting price and fees for assets
* update compute details and compute results UI and style
* update flex value
* update download buttons style
* update download buttons text
* bump ocean lib version and lint fixes
* get provier uri for compute results based on job input did
* use zero adress for price and fees order
* some fixes
* Add reuse order in start compute flow (#1352)
* wip add reuse order logic
* add reuse order in start job
* added missing check if no jobs found
* update lib
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix lint
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix fixed rate
* fix build
* fix your compute jobs section when asset network not selected
* disable edit compute settings for algorithms
* fix compute jobs infinite loading when no jobs found
* fix compute form
* show token symbol for free assets also on compute price output
* removed swp file
* some decimal fixes
* partial fix for asset with pool fees, algo not working yet
* more decimal fixes
* fix algo with pool price and fees fetching
* fix selecting algorithms when on different network
* fix compute jobs table auto refresh and details modal closing
* wip compute initialize
* order fixes
* fix lint
* fix conditions and cleanups
* fix compute status text display
* init prices and fees after starting a compute job
* start/order button tweaks
* kick in loader earlier
* update compute status feedback messages
* fixed initial price
* compute jobs refetch and reuse order
* remove logs
* removed logs and added some explanations
* use compute env max duration value in seconds
* error handling on intializeCompute and order
* removed console logs and added one new check
* use optional on initialized provider check
* remove toast from provider helper
* fix compute env issue on start order
* disable job selection during actions execution
* temporary fix publish algo with custom docker image
* fix provider fee display
* remove unnecessary condition
* fix alignment based button on action type (#1491)
* fix alignment based on action type
* moving to CSS modules
* send providerFeeAmount as string
* remove cast on providerFeeAmount
* removed some logs and added few comments
* update price output tooltip and total price logic
* set providerFee amount only when avaialable
* bump oceanlib to 1.1.2
* replace FIleMetadata to fix build
* used approveWei for approving provider fees
* fix free algo price selection and display
* fix provider fee load at first algo selection
* update compute help text
* fix provider fee approve for free assets
* cleanup
* remove commented out code
* remove unused state
* removed unused imports
* typos in comments, variables, props
* more typos
* shorten getAccessDetailsFromTokenPrice() a bit
* state & hooks access reordering
* Update src/@utils/ddo.ts
remove metadata from service type
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* effect dependency fixes
* state renaming
* effect dependency fixes
* compute jobs profile visual fixes
* effect dependency fixes
* more comments removal
* add accountId as a dependency in effect
* move isOwner to asset provider
* refactor handleComputeOrder for less complexity and more useful error reporting
* more proper error throwing
* provider fee statement tweak
* more obvious edit action
* empty array for `publisherTrustedAlgorithms` & `publisherTrustedAlgorithmPublishers` by default
* ref #1538
* ref #1539
* don t use initial tx values as valid order use subgraph value
* fix algo list fetching
* closes#1537
* addresses #1538
* fix disable compute button if algo is consumable
* move isOwner check to single effect
* Correctly display trusted algorithms in compute asset (#1541)
* fix allowed algo
* fix trusted algo filter
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
Co-authored-by: Soon Huat <soonhuat.phan@hotmail.com>
Co-authored-by: Enzo Vezzaro <enzo-vezzaro@live.it>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
* allow multiple runs of handleSubmit
* collect what we need in local state for reuse after method has run
* run each step conditionally
* split up handleSubmit
* switch submit button text
* empty values.feedback fix
* error copy
* tiny logic fix for consistency
* code comments
* submit button fixes
* add loader during submission
* add new white loader style
* button style override fixes
* update contracts
* add version selector
* show banner on all pages
* show banner on all pages
* Announcement/warning messages cleanup
* new main announcement message
* contextual compute-to-data warnings in publish form & asset action
* copy update
* change hardcoded URLs
* change localStorage key
* to prevent user preferences clashes when switching between v3 & v4
* footer stats note changes
* move copy into content file
* mention external markets
* footer stats note copy changes
* modified pool widget footer
* take out pool reserve display
* style & spacing updates for fees
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* fix svg loader
* added Logo component to be able to test storybook
* added svg mock for svgr as suggested (still not working)
* package cleanup
* make svg moduleNameMapper match first
* cleanup
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* unused package cleanup
* make storybook use webpack 5
* see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#webpack-5
* bump react, cleanup
* button story tweaks
* add Alert stories
* bump Jest to v28.1.0
* try original storyshots initialization
* split up build & test CI jobs
* stop testing Node.js v14
* set jest coverage flag
* downgrade paambaati/codeclimate-action again
* move jest config files, remove coverageReporter override
* collect coverage from `src/` only
* another paambaati/codeclimate-action bump test
* create additional button markup test
* downgrade paambaati/codeclimate-action again
* more downgrade
* render default button without optional style prop
* ignore some folders for Jest
* full coverage for Alert
* more package updates
* add eslint-plugin-testing-library & eslint-plugin-jest-dom
* bump ESLint packages, follow new rules
* start storybook in quiet mode
* update docs
* test storybook build as part of CI
* more testing docs clarification
* add jest:watch command
* add body background colors switch in toolbar
* TypeScript voodoo
* test codeclimate-action@v2.7.3 for default coverageCommand
* downgrade codeclimate-action and running in debug mode
* make coverage artifacts OS agnostic
* subgraph typings as artifact for coverage job
* disable coverage sending job for now
Co-authored-by: Enzo Vezzaro <enzo-vezzaro@live.it>
* fix community fee displayed value
* get value fix
* Revert "fix community fee displayed value"
This reverts commit 06258f8904.
* import fix
* naming fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
* install and config Storybook
* create basic component for initial setup
* added testing-library / jest for testing
* restore coverage for testing
* downgrade codeclimate-actions to fix viable formatter issue
* clean up - remove unnecessary components in stories
* update readme with storybook and testing
* remove unnecessary file extensions on stories config
* remove babel and moved jest-dom to devDependencies
* delete introduction stories
* change test to .tsx
* change testing description on docs
* added interface to button story
* added build phase and update test phase
* restore build in ci
* added storyshots (automate testing) to Storybook
* simplify and update codeclimate-action
* restore workable version of codeclimate-action
* test unified test action for CI
* Revert "test unified test action for CI"
This reverts commit 039cbf3485.
* test documented solutions for CI
* fix error on coverage CI
* added codeCoverage on jest setup
* upload coverage report from jest
* added download artifact to coverage CI
* added upload artifact to coverage CI
* remove collectCoverageFrom
* moved test step on CI
* remove coverageLocations to allow default
* load Ocean typography into storybook
* skip all PRs coming from dependabot
* improve docs (Storybook)
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Showing loader on the edit formm until everything has loaded
* Changing logic so that loader is the fallback
* Making sure account Ids are in lowercase when comparing them
* Fix crash when no account is connected
* display generic message
* add helper message
* bold text in json, remove unused css file
* fixes
* different help message displayed as tooltip
* tooltip help not displayed for files/links fields on publish
* conditionally hide/show tooltip
* use same mechanism for edit form
* add prominentHelp file into content pages
* type fix
* remove unused code
* error message position fix
* error doesn't overlap help message
* show validation error message fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
* restore button if there's not pool data
* restore order for fixed pricing and download button after purchase
* minor fixes
- avoid errors when providerFee is null
- fix disabled download/buy button when user is on different network as asset's
* added improvements
* added step route to publish
* moved hooks to navigation
* handle back history and load on refresh
* clean up
* changed to nested routes in publish
* fix warning code climate (similar blocks)
* fix header publish link
* moved scrollIntoView() after routing change
* fix `Type 'string[]' is not assignable to type 'string'.` error
* Revert "fix header publish link"
This reverts commit 82e00398c0.
* serverside redirect from `/publish`
* client side redirect from `/publish`
* fix issue with redirect on publish
- remove index publish (redirect taken care server side)
- change link in menu to step 1
- refactor router push on navigation
* simplify handleStepClick function
* Moving isSupportedOceanNetwork to Web3 context
* Removing page title and replacing it with a warning message
* Creating Error state in title for the wrong network
* Creating UnsupportedNetwrok component
* Adding different networks into tooltip
* Adding button + styling
* Adding change netwrok function
* Adding Change Network tooltip to submit page
* Reducing code duplication
* Removing unnecessary changes
* Fixing logic for checking which chainIds are supported
* Simplifying isSupportedOceanNetwork check logic
* Default to not showing unsupported network message when no wallet is connected
* Always showing available networks in tooltip
* Adding info icon to action button
* adding padding to AvailableNetworks component
* Changing label to list components
* Changing brand-white to currentColor
* Revert "Changing brand-white to currentColor"
This reverts commit 278f0d4ab9.
* CHanging --brand-white to currentColor
* Info Icon in currentColor
* Changing NetworkOptions component name to Network
* Simplifying tooltip logic in title
* Removing unused classname
* Fixing repeating <ul> issue
* Removing unused class
* Refactoring AvailableNetworks component into src/components/Publish
* Moving tooltip message into content/publish/index.json
* Reducing duplication in css
* Removing duplication of infoIcon css styles
* Tidying up logic in setIsSupportedOceanNetwork useEffect
* Updating setIsSupportedOceanNetwork effect dependancies
* merge fixes for new MarketMetadata context
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* update ocean amount on price change
* add min ocean amount requirement
* add min ocean value when price is not grater than 0
* review fixes
* use min ocean and dataToken amounts from initialValues
* removed weightOnDataToken from useEffect and updated comments
* fix amountOcean bug
* remove min attribute from Coin, move logic to yup validation
* remove unused imports and change min amountOcean test name
* default amountDataToken from 50 → 100
* ref #1340
* change min datatoken and ocean amount to 100
* update ocean amount min validation and validation message
* replace data tokens with datatokens in min ocean amount message
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* exit when user rejects the transaction
* if the message is too long, return generic label
* in the case (should not happen) the message is longer than one row, then show ellipsis
* reorder UI
* refactor with new PoolSection component
* move all the things
* layout tweaks
* fix pool data without wallet
* fix undefined user pool share
* fix max remove calculation
* make conversion use our decimals definition