1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-07-01 06:11:43 +02:00
Commit Graph

2118 Commits

Author SHA1 Message Date
dependabot[bot]
5850091d45
Bump loader-utils from 1.4.1 to 1.4.2 (#1806)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 09:29:17 +00:00
1b612e4194
package updates & technical debt cleanup (#1771)
* package updates

* bump Next.js

* update for Next.js v13 new `Link` behavior

* see https://nextjs.org/docs/upgrading#link-component

* test tweaks, simplify getNetworkDisplayName()

* modify codeclimate excludes

* test tweaks and cleanup

* more cleanup

* switch to Node.js v18

* back to Node.js v16

* temporarily run CI against Node.js v16 & v18

* update codeowners

* fixtures fixes for asset price

* switch to Node.js v18

* package updates

* remark updates, typescript and test fixes

* fix

* test run fixes

* yet another lockfileVersion update

* package updates

* test run fixes
2022-12-01 09:09:40 +00:00
Jamie Hewitt
b58cb36e00
Adding paymentCollector back into edit form (#1799) 2022-11-29 02:20:51 +00:00
EnzoVezzaro
aa8dcdaa79
fix edit form validation (#1797)
* fix edit form validation

* more validation edit form
2022-11-25 17:41:17 +01:00
EnzoVezzaro
f6d11e5e6f
adding ipfs / arweave support (#1765)
* support storage type publish

* adding storageType to edit form

* add IPFS type

* fix testst and rollback ipfs typing

* update oceanjs lib

* fix Ipfs type

* Update package-lock.json

* added graphql and smartcontract options UI (WIP)

* update package.json

* removed graphql and smartcontracts

* make various fixes for edit and publish with IPFS (missing Arweave)

* removed no-case-declarations lines

* moved ipfs utils

* renamed getFileUrlInfo to getFileInfo

* added is-ipfs to jest mock

* Update package-lock.json

* fix things

* npm is fun

* rename url to file in getFileInfo

* refactor publish form (storage type field)

* fix tab value when changing tabs

* refactoring edit form

* more refactor edit form

* fix edit validation

* fix validation when input is empty on edit form

* fix validation when loading asset in edit form

* change URL to file confirmed

* change messages based on service type

* Update form.json

* fix FileInput tests and added ipfs / arweave tests

* removed unnecessary comment

* Update index.tsx

* cleanup logic

* update @oceanprotocol/lib

* Update package-lock.json

* fix test error

* fix test assetsWithAccessDetails

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-25 15:07:55 +01:00
dependabot[bot]
071948e0e6
Bump loader-utils from 1.4.1 to 1.4.2 (#1792)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-20 15:03:35 +00:00
EnzoVezzaro
8d17c30f41
Merge pull request #1786 from oceanprotocol/issue-1775-edit-paymentCollector
Allowing publisher to edit payment collector
2022-11-17 10:35:17 -04:00
EnzoVezzaro
35ead98cbf
Merge pull request #1766 from oceanprotocol/fix/issue-validation-g-drive-links
fix validation link field on edit view when the asset is already hosted on g drive
2022-11-17 06:58:25 -04:00
Jamie Hewitt
d51538a32f Only showing payment collector if it is different to the owner 2022-11-17 13:39:49 +03:00
Jamie Hewitt
5ab6b7dc66 Setting payment collector inline 2022-11-17 13:36:58 +03:00
Jamie Hewitt
2265d750a5 Replacing console.error with loggerinstance.error 2022-11-16 18:08:59 +03:00
Jamie Hewitt
105343435c Showing revenue account on asset detail page if it is different to the owner account 2022-11-16 18:05:16 +03:00
Jamie Hewitt
c65a1070aa Updating link to the docs 2022-11-16 14:29:33 +03:00
Jamie Hewitt
36a88674b4 Deleting unused test 2022-11-16 11:03:51 +03:00
Jamie Hewitt
c2514debf0 Adding test for FormActions 2022-11-15 18:58:07 +03:00
mihaisc
131f1f15e3
Change datatoken template and ensure compatibility with both (#1728)
* change template

* fix build

* add template config

* test fixes

* Update app.config.js

Co-authored-by: Alex Coseru <alex.coseru@gmail.com>

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
2022-11-15 16:35:26 +02:00
EnzoVezzaro
8225775828
Merge pull request #1487 from oceanprotocol/fix/issue-1069-c2d-unsupported-networks
allow price calculation when users are on unsupported network / not connected
2022-11-15 05:58:40 -04:00
Jamie Hewitt
6776ffe34d Adding inital outline for test 2022-11-15 12:40:14 +03:00
Jamie Hewitt
9fca971d77 Adding placeholder for link to the docs 2022-11-15 11:55:06 +03:00
Jamie Hewitt
40f3335cfc removing unused imports 2022-11-15 11:48:26 +03:00
Jamie Hewitt
fd30d5e138 Updating paymentCollector on submit 2022-11-15 11:38:43 +03:00
Jamie Hewitt
e22407ad43 setting inital payment collector from EditMetadata 2022-11-15 10:45:14 +03:00
Jamie Hewitt
9429af22e2 Populating the edit form with the current payment collector 2022-11-15 10:05:12 +03:00
EnzoVezzaro
072d346932 Revert "fix text and added ipfs and arweave tests"
This reverts commit 23d8002ce8.
2022-11-14 12:18:35 -04:00
EnzoVezzaro
23d8002ce8 fix text and added ipfs and arweave tests 2022-11-14 12:17:29 -04:00
EnzoVezzaro
1649e075e2 Merge branch 'main' into fix/issue-1069-c2d-unsupported-networks 2022-11-14 11:47:44 -04:00
Jamie Hewitt
cbdc81b836 Checking if payment collector address is valid using form validation 2022-11-14 18:09:29 +03:00
Jamie Hewitt
11cf51d85b Adding paymentCOllector to content/pages/editMetadata.json 2022-11-14 17:54:37 +03:00
mihaisc
6ba95fe4d5
fix loading in preview (#1785) 2022-11-11 12:27:30 +00:00
Jamie Hewitt
4ff84b0871
Handle provider error & showing Retry button (#1770)
* adding error handling for button onCLick

* Updating butoon to show retry & updating toast message

* Logging provider error

* Removing unused imports

* Using early return when provider fees are present to prevent unneccessary nesting

* Adding retry logic for compute

* Removing duplicate teast message

* Adding tests for rendering Buy button

* Additional tests for BuyButton

* Refactoring BuyButton tests for download

* Fix failing tests

* Refactoring compute tests

* Refactoring tests

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-11 12:54:21 +03:00
4b4a926f89
special veOCEAN number treatment (#1782)
* special veOCEAN number treatment

* path fix

* fix duplicate AllLocked declarations

* so many duplicate declarations

* bold numbers on asset teasers

* update test

* unify number formatting in more generic `formatNumber()` method
2022-11-09 14:14:57 +00:00
b99634a3b3
filter out className from Tippy (#1783) 2022-11-09 12:23:26 +00:00
482af1be0c
NFT image & faulty metadata fixes (#1779)
* safeguard against faults in metadata.tags

* properly handle image strings in tokenURI

* keep image ratios

* render test for faulty tags

* tweak fallback in popover
2022-11-09 12:22:30 +00:00
dependabot[bot]
ee4e5c3b4d
Bump loader-utils from 1.4.0 to 1.4.1 (#1780)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 09:02:18 +00:00
mihaisc
c302122795
Add most viewed (#1754)
* add most viewed

* Update src/components/Home/index.tsx

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>

* add views in teasers

* typo

* add test

* switch to axios

* test tweaks

* fix

* add 30 days label

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-08 17:17:22 +00:00
EnzoVezzaro
8363b9f2bb fix tests 2022-11-08 05:25:01 -04:00
EnzoVezzaro
606a32065c Merge branch 'main' into fix/issue-1069-c2d-unsupported-networks 2022-11-08 05:15:39 -04:00
EnzoVezzaro
ceb055af36 Merge branch 'main' into fix/issue-validation-g-drive-links 2022-11-07 17:15:25 -04:00
EnzoVezzaro
0246113295 Merge branch 'fix/issue-validation-g-drive-links' of https://github.com/oceanprotocol/market into fix/issue-validation-g-drive-links 2022-11-07 16:35:18 -04:00
EnzoVezzaro
9c5cba4e05 Merge branch 'main' into fix/issue-validation-g-drive-links 2022-11-07 16:28:31 -04:00
Jamie Hewitt
81341cd914
Showing related assets (#1748)
* Creating related assets component

* Ensuring that related assets doesn't show the same asset

* Adjusting query to show assets from the same publisher but not the exact same asset

* modifying search term

* Removing logs and unused import

* Removing log

* Updating query

* Fixes

* updating query

* Updating query to include both related tag assets anbd related owner assests when <3. SHowing results as a list of links

* creating minimal asset teaser

* removing duplicate filters

* Changing minimal to noDescription

* Removing unneccessary use of noDescription prop

* Adding minimal prop back into Publisher

* Removing props from RelatedAssets component

* Getting data from asset context

* refactor

* space-saving asset teaser changes
* remove price from output
* increase to 4
* refactor for better loading experience

* css cleanup

* filter out duplicates when merging results

* basic render test

* try/catch, secure against null query responses

* different test tactic

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-07 20:09:19 +00:00
Bogdan Fazakas
cd20fa0d53 merge main 2022-11-07 17:10:43 +02:00
Bogdan Fazakas
124fd1d137
Fix compute asset selection lists (#1773)
* fix compute asset selction lists

* Update src/@utils/assetConvertor.ts

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* use propper const

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-07 12:07:42 +00:00
56f5e77c49
Tests for @shared components (#1737)
* asset teaser test, story, useUserPreferences Jest mock

* fixtures & mocks

* more tests

* cleanup

* more tests

* more tests

* more tests

* more tests

* typing fix

* package updates

* reorg

* more tests

* more tests

* more tests

* more tests

* reorg, more tests

* reorg fixes

* more tests

* rebase fix

* subgraph query typing fix

* restore some storybook stories

* more tests

* more tests

* package lock fix

* graphql override
2022-11-04 15:52:40 +02:00
EnzoVezzaro
49960f38e0 cleanup after merge 2022-11-04 07:16:06 -04:00
EnzoVezzaro
983d460614 Merge branch 'main' into fix/issue-1069-c2d-unsupported-networks 2022-11-04 06:49:33 -04:00
Jamie Hewitt
a042387804
Ensuring the market doesn't crash when asset has no services (#1768)
* Ensuring the market doesn't crash when asset has no services

* Showing no pricing schema available when there are no services for an asset

* Shoing No file info available when there are no services available

* removing logs

* early return if asset has no services
2022-11-02 15:40:55 +00:00
Bogdan Fazakas
c780411b74
C2D fixes (#1715) 2022-11-02 15:24:20 +00:00
EnzoVezzaro
7fc5418189 block validation link when hosting is on g drive 2022-11-02 06:32:35 -04:00
Jamie Hewitt
d1e3fa9afa
Checking for google drive links (#1757)
* checking for google drive links

* Removing unused function

* Update src/components/Publish/_validation.ts

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* CHecking for google drive URLs on the edit form

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-01 15:00:07 +00:00