1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
Commit Graph

1534 Commits

Author SHA1 Message Date
EnzoVezzaro
8599835be4
remove unnecessary appearance (#1142) 2022-02-24 07:17:54 -08:00
mihaisc
6541068364
fix exchange id (#1137)
* fix exchange id

* fix

* fix dispenser
2022-02-22 08:10:26 -08:00
claudiaHash
db7ae82f4a
Restore profile header and downloads tab (#1129)
* show results

* sales number displayed correctly

* get downloads

* use totalSales parameter

* fixes

* sum sales fix

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-21 17:15:33 +02:00
c1ab042c5e
Restore global stats (#1123)
* start with a good refactor

* split up into multiple files
* split up data fetching and manipulation into multiple effects
* adapt for new subgraph

* bookmarks error fixes

* make numbers show up when a subgraph is down

* use testnets, make numbers show up

* style fixes

* making sense of existing numbers

* more stats

* use original total OCEAN

* output datatokenCount

* state data structure change for all sum values

* copy

* output networks at all times

* switch to mainnets numbers
2022-02-18 15:53:31 +00:00
EnzoVezzaro
6c7a474136
Free pricing: added confirm checkbox (#1086)
* added confirm checkbox and connect logic to wizard

* add 'accessDetails' to displayed asset

* restore initial state

* adding 'freeAgreement' option to constants

* moved checkbox for free item aggreament

* improvement on amountDataToken validation

* change Field component with Input and improve UI

* change `onChange` property with `useField` hook

* switch back to Formik Field

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-02-18 11:55:46 +00:00
3a424bc44c
bookmark fixes (#1127) 2022-02-18 11:46:34 +00:00
5a4a30e0b0
fix search title (#1122) 2022-02-17 21:38:40 +00:00
d2fb4db7c6
revised asset not found message (#1124) 2022-02-17 21:37:59 +00:00
EnzoVezzaro
ab73a5b5d9
Mobile publish fixes (#1076)
* aligned inputs for mobile

* correction for mobile first approch

* change nft layout on publish mobile (metadata section)

* align datatokens view on publish widzard for mobile

* remove unnecessary margin around nft, datatoken UI

* reduce min-width for xs viewports

* fix mobile layout for pricing tab / submit tab on publish
2022-02-17 16:03:27 +00:00
mihaisc
677563d7c2
fix pool tab (#1121)
* query update

* fixes
2022-02-17 16:00:08 +00:00
Luca Milanese
1b9987ce89
fix: set default svg output to fill color (#1115) 2022-02-17 15:59:39 +00:00
mihaisc
60c5520548
update to ocean.js.next.20 (#1099)
* update and fix fees

* update lib

* update aquarius endpoint

* update lib and fix changes

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-02-16 18:42:35 +00:00
mihaisc
8d1782a800
Restore order (#1068)
* minor refactors

* minor refactors

* fixes

* buy dt

* consumePrice + estimation

* various fixes

* cleanup

* fix build

* fix ssh issue

* feedback

* build fix

* ssh fix

* remove console.log

* suggested fixes

* other fixes

* switch to decimal

* more fixes

* more fixes

* fix

* some fee refactors

* more fee refactoring

* lib update, fre rename

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* minor refactors

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* build fixes

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* update + more refactoring

* calc price

* fix build

* restore accountId in effect

* fix order

* fix build and update lib

* fix order index

* fix comments

* pool fix

* remove console.log

* fix order fixed rate exchange

* fixed free order and messaging

* add comment

* minor type fix

* more type fixes
2022-02-14 08:27:36 -08:00
EnzoVezzaro
c438ba0a04
Fix mapping in search component and ux improvements (#1092)
* clear search input after submit

* fix mapping on sorting by tag (search query)

* fix property of undefined errors

* Revert "clear search input after submit"

This reverts commit 93dd57ae0b.
2022-02-14 15:33:46 +00:00
942ead1b4c
disable exhaustive-deps warning in Pool context (#1094) 2022-02-14 15:23:18 +00:00
EnzoVezzaro
b6dc52c0ab
change undefined with 0 as value to fix new Decimal error (#1089)
* change undefined with 0 as value to fix new Decimal error

* correction for fix changed undefined value with 0 as value to fix new Decimal error
2022-02-14 15:22:50 +00:00
Moritz Kirstein
d688b81a80
Feature: SVG Generator (#1032)
* use smaller SVG for publishing test, siwtch to Buffer encoding/decoding

* shorter NFT name & symbol

* fix: fix small test svg

* feat: first draft random wave svg generation

* refactor: utilize join to remove unecessary ',' separator

* feature: add gas cost estimation for nft artwork

* refacotr: allow fillColor as array and adjust opacity

* refactor: adjust random wave generation

* refactor: change nft help text

* refactor: trying tooltip for nft image info

* feat: add custom algorithm to generate svg waves

* fix: use text colors for nft form field svgs

* refactor: code cleanup nft utils

* refactor: improve readability

* refactor: improve comment

* refactor: (re)move comments, cleanup

* refactor: remove console log

* refactor: adjust default svg wave values & remove logging

* refactor: tweak default SvgWave prop values

* fix: svg preview with disconnected wallet

* feat: show artwork gas fee estimation in user preferred currency

* refactor: extract gas fee estimation logic to new component

* cleanup: remove oceanWaves, remove d3

* icon visual weight tweak

Co-authored-by: Luca Milanese <luca.milanese90@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-02-14 12:16:29 +00:00
mihaisc
fc1f396c96
updates (#1084)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-02-11 13:26:58 +02:00
claudiaHash
aec34dc712
Restore highest liquidity tab (#1077)
* get highest liquidity pools WIP

* logs deleted

* order fix

* query fix

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-10 16:41:07 +02:00
EnzoVezzaro
e2c468c128
added radio to pricing tabs on publish (#1067)
* added radio to pricing tabs on publish

* adding padding to tabs with radio

* correct unnecessary component and style class

* adding attribute selector to css rule
2022-02-10 14:37:34 +00:00
claudiaHash
fab181be34
filtering fix (#1071)
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-09 13:18:27 +00:00
EnzoVezzaro
b79385bbcf
fixed bookmarks not showing on homepage (#1072) 2022-02-09 13:14:32 +00:00
mihaisc
463c850fc4
update (#1065) 2022-02-07 08:31:22 -08:00
b8c2b01b54
Pool stats updates and pool context provider (#1057)
* remove datatokens from liquidity stats, multiply base token

* naming: Pool Creator Statistics → Owner Liquidity

* remove all the noise

* more pool stats data

* simplify user liquidity data structure, remove datatoken calculations

* chart tweaks, new calculation for liquidity

* tweaks

* todo

* frontpage error fixes

* account switch fixes

* comment out fees

* pool context provider

* double pool share

* move subgraph-related methods into context provider

* typing fix
2022-02-07 14:58:47 +00:00
d51d909a66
disable all inputs during submission in add/remove liquidity (#1062) 2022-02-04 18:21:35 +00:00
24fd4de584
fix file info (#1061) 2022-02-04 15:58:11 +00:00
6ffb417724
use v4 label 2022-02-04 15:51:16 +00:00
64255f2b37
Remove asset purgatory workaround (#1056)
* revert asset purgatory workaround

* reverts #1016

* asset loading fix
2022-02-03 15:26:49 +00:00
8074a6143c
Refactor Asset context provider (#1055)
* refactor Asset context provider

* use useIsMounted hook

* typings and effect tweaks

* use chainId

* effect tweak
2022-02-03 14:31:43 +00:00
mihaisc
57be62a6b1
Refactor pricing and various components that are involved (#1046)
* update

* merge pr #1012

* fix header

* fix

* abort controller

* up next.8

* build fix

* update lock

* fix

* another fix

* ssh fix

* another ssh fix

* remove optional

* order mock

* small cleanup

* fix package

* price updates

* finish getPrice

* fix consume

* fix consume

* getConsumeDetails  comments

* restore functionality after consumeDetails

* fix some compute typings

* more price fetching updates

* 'minor' refactors and fixed build

* package-lock fix

* minor comments

* minor naming changes

* fix

* fix pool badge

* remove console.log
2022-02-03 03:29:39 -08:00
claudiaHash
77c4ed42cc
Pricing tab validation fix (#1015)
* pricing validation - visited tabs

* use step as number

* remove unused import

* use price empty field

* merge fixes

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-02 05:53:15 -08:00
ef6a5fda7f
calculate user liquidity with subgraph values (#1053) 2022-02-02 11:49:59 +00:00
2fb7ed3516
Merge pull request #1020 from oceanprotocol/v4-pool-graph
Pool chart updates, combine all pool data subgraph queries
2022-01-31 13:58:57 +00:00
claudiaHash
4b6be6da0c
Invalid transction link fix (#1035)
* get nft updates fix

* fix

* use nft update type

* message case fixed

* update message fix

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-31 13:15:52 +00:00
1eaec10ea9
center single data point 2022-01-31 12:42:23 +00:00
1c515496a9
fiix pool transaction titles 2022-01-31 12:42:23 +00:00
d4b42bf7a4
generated typing fix 2022-01-31 12:42:23 +00:00
9ebb57d2af
subgraph pool address type workaround 2022-01-31 12:42:23 +00:00
1e54a9d573
merge all the pool data subgraph queries into one 2022-01-31 12:42:23 +00:00
1e24972aa7
tooltip styling fixes 2022-01-31 12:42:23 +00:00
fde7449aad
typescript, yolo 2022-01-31 12:42:23 +00:00
5683d7b187
re-render fixes 2022-01-31 12:42:23 +00:00
7a5651e3a8
spacing, more file moving around 2022-01-31 12:42:22 +00:00
58f1c884de
split up fetching & data manipulation, refactor 2022-01-31 12:42:22 +00:00
1e4446116b
update and migrate to chart.js & react-chartjs new major versions 2022-01-31 12:42:22 +00:00
52437616f2
add volume graph 2022-01-31 12:42:22 +00:00
d43920548f
fix liquidity & price graph 2022-01-31 12:42:22 +00:00
8293e9ad5f
subgraph update fixes 2022-01-31 12:41:58 +00:00
2f6323f141
Merge pull request #1017 from oceanprotocol/v4-liquidity
Restore add/remove liquidity
2022-01-28 11:54:41 +00:00
claudiaHash
c0f87410c5
No file info shown for valid files (#1029)
* get asset file info

* additional verification, logs deleted

* fixes

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-28 11:49:14 +00:00
e113ba5300
V4-publish-fixes (#1030)
* tweak file URL input

* remove logging
2022-01-28 11:46:09 +00:00
9ce1f6f7d5
remove all the custom field change overwrites 2022-01-26 14:07:33 +00:00
a9aeed4aec
define token address & symbol only once 2022-01-26 12:41:21 +00:00
0db0bea3f6
more generic TokenApproval props, more logging 2022-01-26 12:06:09 +00:00
c10ca06dbc
fixes 2022-01-26 11:55:21 +00:00
08a691ceee
token approval & allowance fixes 2022-01-26 10:43:32 +00:00
8b31746e57
make remove output calculation work 2022-01-26 10:23:33 +00:00
bfdf7e1b24
prepare to use getAmountInExactOut 2022-01-26 10:23:33 +00:00
eaf29003c3
make remove work 2022-01-26 10:23:33 +00:00
a541cbcee0
refactor to use less hardcoded OCEAN
* ref #468
2022-01-26 10:23:33 +00:00
4dc188d3e4
add/remove baseToken only 2022-01-26 10:23:33 +00:00
c140cdc82c
restore submit methods, token approval workaround 2022-01-26 10:23:33 +00:00
0c5c8effde
restore live calculations 2022-01-26 10:23:33 +00:00
mihaisc
487bcad8b4
Update ocean.js (#1013)
* update

* merge pr #1012

* fix header

* fix

* abort controller

* up next.8

* build fix

* update lock

* fix

* another fix

* ssh fix

* another ssh fix

* remove optional
2022-01-26 10:17:41 +00:00
409f0c51fb
faulty purgatory response workaround (#1016) 2022-01-24 10:51:51 +00:00
f55d8d9a91
Pool tab refactor (#1009)
* refactor and simplify

* fix user pool transaction section

* split up fetching and data manipulation

* restore refetch after add/remove, rename all the things

* more naming and logging

* new state structure unifying multiple data structures

* another response failsafe

* naming
2022-01-21 14:09:15 +00:00
claudiaHash
42323cb8c4
Use asset's ddo.purgatory (#1006)
* set purgatory state

* merge v4 changes, use ddo.purgatory

* delete commented code, fix verification

* unused files and function deleted, small fix

* comment removed

* use purgatory.state for filtering assets

* remove unnecessary check

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-19 16:30:04 +00:00
2622a807f6
Subgraph updates (#1007)
* subgraph updates

* swap title fixes
2022-01-18 20:29:28 +00:00
claudiaHash
6689f55808
Fix: show test label according to network type (#1002)
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-17 19:47:03 +00:00
0129806159
pregenerate warning fix 2022-01-17 17:06:46 +00:00
44a0589420
remove subgraphError params 2022-01-17 14:14:01 +00:00
606654b533
more pool query refactor 2022-01-17 13:53:15 +00:00
f3c85ccb95
refactor PoolTransactions title component 2022-01-17 13:28:31 +00:00
5401390c44
simplify and refactor pool charts 2022-01-17 13:06:24 +00:00
25204b2393
graph sync status fix 2022-01-17 11:37:58 +00:00
4706029029
make datatoken balance work again in multiple places 2022-01-14 17:40:05 +00:00
c6011d29ef
fail safe against empty creator liquidity, just read out weights 2022-01-14 17:25:20 +00:00
8996722fcb
pool graph tinkering with poolSnapshots 2022-01-14 17:10:24 +00:00
c28cdd318f
add todo 2022-01-14 14:38:30 +00:00
ce4e0cfba5
market stats tinkering 2022-01-14 14:25:26 +00:00
1726fe1d0d
isolate apollo stuff into npm script, more generic folder name output 2022-01-13 23:50:47 +00:00
de87e16906
remove graphql-codegen stuff
* keep existing apollo-based generation as it just works
* can be put back from this commit when doing #722
2022-01-13 22:27:00 +00:00
68ad4cc160
migrate most components using GraphQL queries 2022-01-13 22:03:36 +00:00
d78676fa3b
migrate data in subgraph.ts 2022-01-13 21:41:19 +00:00
829333e1e1
migrate all subgraph.ts queries, making typings generation work 2022-01-13 21:24:06 +00:00
2af3b68603
migrate PoolTransactions queries 2022-01-13 20:10:55 +00:00
18d7223297
migrate Consume query 2022-01-13 19:31:46 +00:00
ca32de2dd7
migrate pool graph query 2022-01-13 19:26:15 +00:00
0dca59ac64
migrate metadata history query 2022-01-13 19:25:51 +00:00
c5583c691c
migrate Pool index query 2022-01-13 19:08:34 +00:00
76bb997fe1
start adapting queries 2022-01-13 18:38:51 +00:00
claudiaHash
8838ae533e
Adapt aquarius queries (#986)
* get aquariusv4 assets

* subgraph url fix

* make asset details work as much as possible

* sort and size fix, comments deleted

* get published assets

* search wip

* page change  fix

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-01-13 18:17:09 +00:00
2e794f51a8
use generateDtName from ocean.js (#992) 2022-01-13 17:51:33 +00:00
3bac4a1eb8
fix useGraphSyncStatus error 2022-01-13 17:51:08 +00:00
f6097bf158
remove OceanProvider (#988) 2022-01-13 13:15:15 +00:00
329ac9bbc3
shorten NFT symbol
* ref #944
2022-01-13 12:07:55 +00:00
181dce9ba5
publish feedback tweaks, make content switching based on price type work 2022-01-12 19:24:49 +00:00
25920b7763
more logging within createTokensAndPricing 2022-01-12 19:05:15 +00:00
5d40121adc output error messages in UI 2022-01-12 18:02:56 +00:00
bd561a2510 add basic full success state 2022-01-12 18:02:56 +00:00
8a20552268 more styling, button disabling, hack in isContinueDisabled
* closes #978
2022-01-12 18:02:56 +00:00
0b97994a9e spacing, styling, sizing 2022-01-12 18:02:56 +00:00
5f50379f63 tx link tweaks, output tx count beforehand 2022-01-12 18:02:56 +00:00
b139346b35 output transaction links 2022-01-12 18:02:56 +00:00
a65c971ea6 hack in our loader 2022-01-12 18:02:56 +00:00
e5ee3e10c7 working feedback state switching 2022-01-12 18:02:56 +00:00
82dce7e219 more UI elements and copy 2022-01-12 18:02:56 +00:00
claudiaHash
44114345bb
Integrate provider fileinfo (#965)
* provider functions added

* working validation

* fixes, comments deleted

* lint fix, comment deleted

* fixes over the provider functions integration

* remove unused provider.ts exports

* provider checkFileUrl() integration

* provider encrypt method changes

* use fetch method

* axios request reused

* dependency removed

* getFileInfo fixes

* remove unused const

* function call fix

* use providerUrl form value

Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-12 17:02:47 +00:00
af99d3bc37
reactivate user balance check 2022-01-11 23:19:38 +00:00
245a604a99
prototype feedback data structure & flow 2022-01-11 23:11:15 +00:00
453458814e
move token & price creation into method 2022-01-11 22:18:33 +00:00
efb4cd5bbd
lint fix 2022-01-11 20:14:04 +00:00
a1c75c94fe
fix preview crash 2022-01-11 20:09:14 +00:00
a084c038c5
merge fixes 2022-01-11 19:58:39 +00:00
38ce25225f
Merge branch 'v4' into feature/publish 2022-01-11 19:49:11 +00:00
64a25f3f3e
use Asset from ocean.js, adapt to new structure 2022-01-11 19:45:14 +00:00
d9b52e6da5
Merge branch 'v4' into feature/publish 2022-01-11 19:06:16 +00:00
b5b0297ae4
refactor for new ocean.js, make the build work 2022-01-11 19:05:07 +00:00
fee5973f81
naming: NftOptions → NftMetadata 2022-01-11 15:40:40 +00:00
c3301fb437
NFT metadata updates
* switch to `image_data` instead of `image` key
* add `external_url` & `background_color`
* make following OpenSea standard more clear
* ref #944
2022-01-11 14:52:01 +00:00
a235255cc0
Merge branch 'v4' into feature/publish 2022-01-11 13:23:40 +00:00
e87bdfadfc
activate form validation 2022-01-11 13:13:13 +00:00
9e315a71f1
Merge pull request #960 from oceanprotocol/fix/issue948-remove-dependency
Integrate provider isValidUrl()
2022-01-11 13:12:03 +00:00
mihaisc
f576aadbfe fix service id 2022-01-11 13:03:54 +02:00
mihaisc
7cac17d906 fix publish with pool 2022-01-11 12:57:22 +02:00
ae71ce706a
Merge branch 'v4' into feature/publish 2022-01-11 10:31:08 +00:00
b1399bd579
network metadata updates
* move over b2330fdc99 (#980)
2022-01-11 09:59:44 +00:00
mihaisc
8e60738071 fix publish with pool 2022-01-10 17:49:46 +02:00
ClaudiaHolhos
e716f96d67 removed unused import 2022-01-10 13:06:07 +02:00
ClaudiaHolhos
5050621e28 isValidUrl called directly, extra function removed 2022-01-10 12:13:53 +02:00
mihaisc
c9faca8666 fixes 2021-12-23 14:36:22 +02:00
mihaisc
c7d6616874 fixes & hacks 2021-12-21 22:26:08 +02:00
mihaisc
695011fe8b
remove hardcoded url
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-12-21 20:30:14 +02:00
mihaisc
16475b55d1 publish draft 2021-12-21 15:54:39 +02:00
mihaisc
b86ac219f3 interm 2021-12-20 16:38:54 +02:00
ClaudiaHolhos
62ced13eaf remove fetchMehod() 2021-12-15 13:10:11 +02:00
ClaudiaHolhos
e028dd9674 working check 2021-12-14 14:59:16 +02:00
ClaudiaHolhos
1669df0e78 lint fix 2021-12-13 17:41:22 +02:00
ClaudiaHolhos
6813462cb0 use new provider 2021-12-13 17:23:29 +02:00
mihaisc
4caf72d0c9
Fix/old lib dep (#959)
* fixes

* change aqua url

* update future v4 url
2021-12-10 03:33:47 -08:00
mihaisc
b0adbf8071
add account teaser, various refactors (#957)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-12-10 01:50:00 -08:00
9586bd9fd5
output default gpu & gpuType when present 2021-11-29 17:01:56 +00:00
318bc44f43
compute options dataflow tweak 2021-11-29 16:55:15 +00:00
9d9a33393f
fix checked state 2021-11-29 16:51:08 +00:00
9bd9156553
integrate compute options into form data, expose default option 2021-11-29 16:49:38 +00:00
8a60aaf3f5
add default compute environment options 2021-11-29 15:57:12 +00:00
3aa739fce0
add Docker image presets, populate algo Docker field from them 2021-11-29 13:25:30 +00:00
7c98659c86
free price tweaks 2021-11-26 13:05:53 +00:00
5dca006832
page title tweaks 2021-11-26 11:03:55 +00:00
362e404110
fixes & todo 2021-11-26 10:35:41 +00:00
11412c2d66
add preview success condition 2021-11-26 10:17:50 +00:00
dcb8a0c6c6
fix touched overwrite, add pricing success condition 2021-11-26 10:11:25 +00:00
0a9f9ec693
hack in terms link, copy change 2021-11-25 14:36:01 +00:00
b64e4ff5dc
adapt transformPublishFormToDdo 2021-11-25 14:20:00 +00:00
06dca21d47
refactor all the URL inputs 2021-11-25 14:16:42 +00:00
1566051545
add todo 2021-11-24 16:15:47 +00:00
ee0f411c24
remove console.log 2021-11-24 16:12:17 +00:00
4f62205599
fix access success state 2021-11-24 15:46:13 +00:00
7b3b0f5ebe
cleanup 2021-11-24 14:59:42 +00:00
8e9cb3acad
prepare submission screen, nav layout updates 2021-11-24 14:46:10 +00:00
155d65eb58
reorg 2021-11-24 13:31:23 +00:00
e2b5707859
pricing feedback fixes 2021-11-24 13:18:53 +00:00
5bf8543150
refactor all the URL inputs
* only act on user action, we were firing events left and right on every keystroke
* remove all local state management, the field has the value already
* add success state for provider input
2021-11-24 12:29:14 +00:00
5fd97b11e4
pricing validation tweaks 2021-11-23 17:00:24 +00:00
b6bc38c530
space saving tweaks for pricing screen 2021-11-23 16:27:58 +00:00
c689ce5555
more validation tweaks 2021-11-23 15:45:27 +00:00
a313f39494
file input validation fixes 2021-11-23 15:34:43 +00:00
c484a5b40c
new publish preview (#947)
* refactor preview

* make preview render

* more preview elements, proper debug output

* make more elements work

* cleanup and fixes

* make asset actions preview work, kinda

* more fixes

* reorg

* make preview price display work

* fix timeout

* layout tweaks

* fixes

* another fix

* make file info preview work

* empty render fix
2021-11-23 12:53:09 +00:00
c387b27f23
validation fixes 2021-11-19 14:26:39 +00:00
5bb7f327e3
hack in success state for first steps 2021-11-19 14:05:07 +00:00
713de2eb94
data structure change 2021-11-19 13:49:29 +00:00
d3810168aa
first go at randomly-generated ocean waves 2021-11-16 21:06:02 +00:00
08c42e8fa6
prepare NFT image creation 2021-11-15 20:47:59 +00:00
abfe920150
prepare NFT creation 2021-11-15 19:33:42 +00:00
34bb90b717
box selection active style tweaks 2021-11-15 18:38:26 +00:00
82951548ef
reorg Form components one level up 2021-11-15 18:29:20 +00:00
c177657f87
asset type icons 2021-11-15 18:24:31 +00:00
fc1966aa4e
copy 2021-11-15 15:42:50 +00:00
b41e15a92e
fix BoxSelection fields checked state 2021-11-15 15:19:50 +00:00
94147026c0
prepare datatoken & NFT display 2021-11-15 15:04:26 +00:00
a396615ed4
move over datatokens utils from ocean.js 2021-11-15 15:01:39 +00:00
e79dcf2342
add in all conditional fields
* switch between dataset & algorithm fields
* switch between algo privacy & access type fields
* switch between docker image & custom docker image fields
2021-11-15 12:44:27 +00:00
5285efd9c0
another render fix 2021-11-11 13:55:35 +00:00
704b52a3c4
more publish flow preparation
* consolidate scattered methods into publish utils
* new encrypt method
* remove DDO File typings
2021-11-11 13:40:38 +00:00
8ce573b2a0
prepare publish flow in code 2021-11-11 11:28:03 +00:00
4e985ba633
ddo updates 2021-11-11 09:22:22 +00:00
7acd9a2388
ddo creation updates 2021-11-11 08:55:35 +00:00
51891f9b9f
fix rerender loop, properly populate chainId in form values 2021-11-11 08:46:52 +00:00
3d4b30c00f
new DDO (#941)
* type out new DDO

* remove all DDO ocean.js imports

* move over as much as possible to new DDO structure

* DDO/Asset split-up

* use Asset typing instead of DDO almost everywhere

* more typings

* more DDO refactor

* ddo typings updates

* more DDO updates

* updates

* ddo updates
2021-11-11 07:51:13 +00:00
0fb4e630c1
metadata tweaks 2021-11-04 11:14:48 +01:00
72605b5341
fix dark mode selected state for nav 2021-11-02 19:09:03 +01:00
2007d0c3ca
navigation success style 2021-11-02 18:51:25 +01:00
d67529409c
styling tweaks, prepare AssetContent for preview 2021-11-01 19:04:18 +01:00
4495a998d9
field fixes 2021-11-01 17:35:50 +01:00
458a7bf736
basic nav styling and interactions 2021-11-01 16:38:53 +01:00
b28f7992dd
fix required/tooltip icon order 2021-11-01 15:57:00 +01:00
f4eab6e09a
more wizard refactors, functional navigation steps 2021-11-01 15:45:01 +01:00
9b5cd8b8ed
start creating actual wizard 2021-10-29 14:38:30 +01:00
235d8333eb
pricing defaults changes, fixes 2021-10-29 11:29:56 +01:00
228b09098a
make form error display kinda work 2021-10-28 16:34:46 +01:00
778abc8aeb
more fields, more custom onChange handler removals 2021-10-28 11:47:03 +01:00
66adc097b6
declarative metadata & services form setup, prepare transformPublishFormToDdo method 2021-10-28 10:38:40 +01:00
cdbe413765
pricing tab selection fixes 2021-10-27 18:37:22 +01:00
928a352975
restore pricing screens styling 2021-10-27 18:35:21 +01:00
9960742b37
make all pricing forms work again, retain data between tabs 2021-10-27 18:35:21 +01:00
f2b1a33261
restructure form, dial back on overwriting native Formik functionality 2021-10-27 18:35:18 +01:00
99453623d2
new publish form data setup 2021-10-27 18:35:04 +01:00
70470a9459
more refactor 2021-10-27 18:35:01 +01:00
c023f45138
reorganize all the things 2021-10-27 18:34:37 +01:00
8ecf78c60b
another config fix 2021-10-27 18:33:57 +01:00
1cf69c2423
fix next.js env vars 2021-10-27 18:07:11 +01:00
4f4f5d30d4
rebase fix 2021-10-27 11:32:11 +01:00
3729c63581
migrate to Next.js (#935)
* migrate to Next.js

* migrate scripts

* generate markdown pages

* make all the markdown work

* fix profile, fix image loading

* git+ssh → git+https, again

* bump packages

* maybe windows build fix

* add public to gitignore

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* Next.js v12! Webpack 5! No build hacks anymore

* json import fixes

* fixes

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-10-27 11:30:32 +01:00
032b3e1496
quick refactor of AssetList data flow 2021-10-27 11:30:32 +01:00
b6cfe6de34
more refactor 2021-10-27 11:30:28 +01:00
51785d54dd
more reorganization 2021-10-27 11:29:03 +01:00
1d4917817a
remove everything we do not expose in our live market 2021-10-27 11:29:03 +01:00
f951910dc2
reorganize all the things 2021-10-27 11:28:59 +01:00
mihaisc
28a2ba88c1
fix sorting (#934)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-10-25 17:30:34 +01:00
mihaisc
cef0969065
Refactor aquarius calls (#917)
* aquarius refactor

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix highest liquidity

Signed-off-by: mihaisc <mihai@oceanprotocol.com>

* fix

* update search

Signed-off-by: mihaisc <mihai@oceanprotocol.com>

* remove test code

Signed-off-by: mihaisc <mihai@oceanprotocol.com>

* remove logs&unused dep

* remove old types

* fix bookmarks

* fix downloaded assets

* fix published list

* fix profile

* fix compute history

* fix compute

* fix edit compute

* remove old commented code
2021-10-21 10:24:00 +03:00
mihaisc
fdcf72b067
fix escape (#927) 2021-10-20 12:23:05 +01:00
claudiaHash
e993114f51
Replace profile sold statistic value number with subgraph value (#926)
* replace sold number with subgraph value

* remove unused function
2021-10-18 15:43:32 +01:00
Moritz Kirstein
e4032f0c98
remove print button from profile pages (#923) 2021-10-14 07:45:58 -07:00
claudiaHash
88dbb1d4ba
Fix display 'No results found' message before displaying results (#890)
* use isMounted hook

* PoolTransactions display fix

* removed unnecessary hook

* get results after loading

* no network seleted

* compute jobs history fixes

* display correct message if no result found

* pool shares loading fix

* pool transactions loading fix

* transactions loading fix
2021-10-14 13:49:02 +01:00
mihaisc
9a47d065b4
escape es reserved chars (#922)
* escape es reserved chars

* fix regex
2021-10-14 13:48:40 +01:00
Norbi
b881fdd88f
Add liquidity input changes&fixes (#893)
* disable add liquidity input when not asset network

* clear amount on coin selection change

* fix switch token error

* disable trade tab inputs when not connected to asset network

* disable inputs and buttons inside remove when not connected

* remove ocean function calls when not connected to asset network

* fix send undefined as string inside Trade component to TokenApproval

* return from calculatePoolShares function if no wallet connected

* set amount on use max button click, use 3 digits after decimal
2021-10-14 13:48:20 +01:00
Kris Liew
d1206c291b
[Free Pricing] Check minterApproved before cancelMinter() (#836)
* Check `minterApproved` before cancelMinter

* Feedback change

* Update freePrice.ts

Co-authored-by: KRIS LIEW <iforte.intellege.liew@daimler.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-10-14 17:20:36 +08:00
Moritz Kirstein
0698c26440
fix config = undefined error in advanced publish settings (#915) 2021-10-13 10:35:15 +01:00
Norbi
f4746e8a77
display ocean symbol on compute job price (#913) 2021-10-12 09:01:25 +01:00
Moritz Kirstein
46a16a3043
GDPR Compliance (#796)
* add cookie utils

* add gdpr metadata for ppc

* add graphql typeDefs for GDPR metadata

* add ppc variable to app config

* add ppc user preference

* add switch component

* add ppc components

* add cookie consent provider

* add consent provider to wrapRootElement

* add ppc to app component

* add cookie button to footer component

* add ppc to site metadata query

* add styles for buttons in footer

* add switch component unit tests

* renewed siteMetadata json for testing

* add gdpr metadata for testing

* add cookie module unit test

* add cookie module tests

* add customizable format to time component

* add english privacy policy

* add privacy policy slugs to user preferences and appConfig

* add privacy policy components

* add autolink for policy md navigation

* only show language select for multiple policies

* add gatsby policy page creation

* use new privacy slug user preference

* add to top button styling for markdown pages

* add policies for de, es & fr

* add pointer events to toTop buttons css

* add privacy policy basic unit test

* outsource scroll button component

* import cleanup

* add customizable delay for debounce

* add scroll button unit tests

* add disclaimer component

* add disclaimer fields as optional fields in PublishJsonData

* add acces type disclaimer

* adjusted help for desc and author fields

* add disclaimer unit tests

* minor adjustment to test

* add print button to history page

* naming changes for better readability

* add cookies hash to policies

* ppc disabled per default

* fix react unknown prop for disclaimer

* minor adjustments to cookie utils

* add gdpr example file

* change exposed gdpr metadata scope by useConsent

* update README

* readme fixes

* emoji fix

* added imprint

* adjustments to gdpr.json structure and related graphql type

* add default values for ppc

* Update app.config.js

Fixed typo.

* change variable name for consistency, remove console logs

* readability

* adjust css selector order to be consistent

* Update fr.md

updated policy

* Update es.md

updated policy

* Update en.md

updated policy

* Update de.md

* fix type issue

* replace language select input with links

* remove scroll button from codebase

* change privacy policy route to /privacy

* remove Do Not Track detection

* add size to checkbox / radio inputs

* replace switch component with checkbox inputs

* fix plain text links

* remove console log

* refactor privacy policy pages to use PageMarkdown template

* setup useUserPreferences mock for unit tests

* unit tests forprivacy policy components

* setup discalimer to use alert component

* Apply .env suggestions from code review

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

* move gdpr example to gdpr.json

* adjustments to address .env approach for appConfig.privacyPreferenceCenter

* update readme

* add small styling option to ppc

* update README

* add ppc unit tests

* update comments

* Update README.md

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

* Merge print into profile history

* add inifiniteApproval to UserPreference fixture

* changed default styling of PPC to small

Co-authored-by: Frederic Schwill <41265505+fr-3deric@users.noreply.github.com>
Co-authored-by: MeikeMolitor <88214332+MeikeMolitor@users.noreply.github.com>
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
2021-10-12 09:00:57 +01:00
Norbi
ef70d97ad3
Improve Pool Transactions page data fetching (#902)
* use elastic search to get all ddo's at once

* fix get ddo's list function and get names in one query

* reorder ddo list based on did list order

* remove inPurgatory filter

* fix broken aquarius query

* remove getAssetsFromDidList function and use retrieveDDOListByDIDs

* fetch list of ddos

* use RegExp

* fix broken query on empty did or chainId list
2021-10-11 12:55:23 +01:00
Norbi
4d232e4b8c
Refine Pool Shares DDO fetching (#868)
* use elastic search to get all ddo's at once

* fix get ddo's list function and get names in one query

* reorder ddo list based on did list order

* remove inPurgatory filter

* fix broken aquarius query

* remove getAssetsFromDidList function and use retrieveDDOListByDIDs

* use RegExp
2021-10-08 13:15:02 +02:00
Alex Coseru
024af8db81
Add support for Energy Web Chain (#907)
* add energy web

* add energyweb

* maybe fix that damn git+ssh problem

* remove unneccessary name overwrite

* add Energy Web Chain icon

* fix all datatoken links

* base on ddo.chainId
* check for more networks
* closes #910

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-10-08 11:25:47 +02:00
Alex Coseru
6598071f81
add moonriver support (#900)
* add moonriver

* bump ocean.js to v0.19.2

* fix network display

* maybe fix that damn git+ssh problem

* specific detection for moonriver in Web3Provider too

* fix code comment link

* fix network switch button for Moonriver

* compute success message tweak

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-10-06 11:30:17 +02:00
Jamie Hewitt
32688892bc
Using optional chaining on the description to solve search bug (#903) 2021-10-05 14:19:51 +03:00
Alex Coseru
72a447b3c5
Use latest ocean.js (#898)
* bump to latest ocean.js

* bump ocean.js
2021-10-04 16:12:14 +02:00
claudiaHash
b9583edaf5
Add a suggestive message if no network selected (#884)
* add suggestive message

* message display refactor

* chainIds readded to the dependency list

* visual fix
2021-09-30 16:05:18 +03:00
Norbi
4b34e2f347
Token approval split-up (#640)
* Token approval component

* check if datatoken approved

* display token amount on button, add approve function

* approve token based on token type

* approve token for trade, remove for pool lequidity remove action

* verify approval on amount change

* show action button only if amount is approved

* catch approve error and stop loadin

* display token amount with 2 decimals on trade token approval

* infinite approval and UI fixes

* fixed alert warning not showing, account id for approve

* wip

* fixed displayed token amount to approve for swap

* token amount text fix

* lint error fix

* package version update

* version fix

* downgrade version

* fixed error for no wallet connected

* update package-lock

* display token name, and changed amount precision

* removed empty file, fixed token switch error

* refactor for better user experience

* move content

* ExplorerLink console error fixes

* UI tweaks

* slightly changed button logic

* fix Trade form approvals

* cleanup

* don't block add liquidity button

* merge fixes

* hook dependency cleanup

* dtItem fix, error fixes based on asset network match

* disable action button if field is not valid, undefined trade tokens

* fix infiniteApproval user preference saving

* remove unneccessary string conversion

* used Decimal for dtAmount and oceanAmount

* changed token spender address

* bump ocean.js to vo.17.5

* fix lint

* replace Number with Decimal

* fix getting to add liquidity screen without wallet connected

* fix crash when switching coins after value input

Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2021-09-30 12:54:44 +02:00
Norbi
9b3cb3963e
Data assets not updating properly when selected networks are changed in home page (#889)
* removed dependencies

* fix lint error

* removed appConfig
2021-09-30 10:26:00 +03:00
Norbi
e15169219f
Incorrect title message on search assets page (#882)
* fixed search title

* change searchValue check
2021-09-30 10:18:24 +03:00
Bogdan Fazakas
9966fd3778 fix isDisable condition on consume button 2021-09-28 10:29:22 +03:00
mihaisc
de5dbcaa05
Fix published assets (#878)
* fix page

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix page search

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* use component state for page on pagination instead of the returned page

* fix returned page

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* put back queryResult.page

* Update src/utils/aquarius.ts

Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>

* lint

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
2021-09-27 15:43:12 +03:00
Bogdan Fazakas
dfb96c0913
Fix/ Issue872 search breaks page filter combo (#873)
* fix filter + pagination issue on search page

* fix lint issues
2021-09-27 10:16:32 +02:00
Bogdan Fazakas
579b213160
Fix/ Put back filters published page (#867)
* put back filters on published page

* fix filter + pagination issue on published asset tab

* renamed isSearch prop and made it optional
2021-09-27 10:16:14 +02:00
Jamie Hewitt
9b92c524c3
Removing 'Downloads' statistic on profile page (#875) 2021-09-27 10:15:57 +02:00
mihaisc
fdac6d8039
Small refactors & optimizations (#863)
* proper cancelation

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix more leaks

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* remove redundant check

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix consume

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix assetactions

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix consume

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* remove unnecessary usage of ocean

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* small fixed in profile

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix
2021-09-24 13:56:42 +02:00
mihaisc
aee246cf7a
fixed search syntax (#874)
* fixed search syntax

* fixed query structure

* fix search structure

* fix fetch algos

* fix published query

* fix published

* fix
2021-09-24 13:32:14 +02:00
mihaisc
bf03a62f49
Bump aquarius version (#837)
* sort, update models/queries

* fix cancelation token

* remove console.log

* remove searchquery type

* fix canceltoken

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* remove aquarius2

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* bump lib

* fix type

* remove QueryString
2021-09-24 02:38:32 -07:00
Norbi
ae229d1698
Fix scrollbar showing on table on large screens (#866)
* changed min width of table cell

* make scrollbar thin on Firefox

* changed min-width value and component selector
2021-09-23 10:44:24 +02:00
db5b892e23
Merge pull request #774 from oceanprotocol/feature/account_page 2021-09-22 18:05:17 +02:00