* 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