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

19 Commits

Author SHA1 Message Date
fc2aa5bf0e
V3 Sunset, the Start (#1456)
* Remove publish (#1451)

* gitignore Next.js stuff

* remove publish

* remove pricing creation components

* Remove Trade (#1453)

* Add market version dropdown (#1185)

* Add market version dropdown and disable publish

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Remove old tests and forms

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update dropdown design

* roll back Pool button change

* new iteration

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

* put up announcement banner (#1455)

* Migration v3-v4 interface  (#1146)

* Adding start migration component

* Adding styles and updating text

* Conditional rendering - only showing start migration to the owner of the asset

* Removing unused imports

* creating Migration context provider

* Importing types from local v4-migration-lib package

* Adding migration contract addesses

* Setting migration contract address and creating fetchMigrationStatus function

* Updating MigrationStatusProvider interface & exports

* Updating the statMigration function

* Passing token name and symbol to smart contract

* creating lockPoolShares component

* Adding getUserPoolShareBalance

* Showing lockPoolShares component on asset detail page

* Adding migration context component

* Setting encrypted files

* Passing through dtAddress and poolAddress when starting migration

* Fixing build issues

* fixing type issues

* Updating the DT and NFT names / symbols

* Removing add / remove liquidity option when the pool migration is in progress

* Using useMigrationStatus in pool tab

* Lock pool shares not shown for pool owner

* Adding i-progress message

* Checking if threshold has been met

* Fixing approvals on lock pool shares

* Adding CreateV4Pool component

* Checking if deadline has passed

* Creating Cancel Migration component

* Updating Migration provider to fetch poolShares for user

* First draft migration

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Install test v4-migration-lib

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix linting and apollo errors

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Remove test component

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update v4-migration-lib version

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Cover more emigration cases

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix migration message

* Update market migration with new workflow

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update migration contract address

* Clean up console.logs

* add more networks

* Removing migration not started message + updating gitignore

* Refactoring to remove the migration not started yet message

* Fixing - hide lock poolshares button when shares are already locked

* Removing console log

* Adjusting message logic to create default message

* Removing block counter

* Removing threshold met contract call

* Updating message content for the migration

* Simplifying MigrationAction enum

* Removing console.log

* fix package-lock

* don't use old npm versions as it adds git+ssh all over the place, making Node.js v14 CI runs fail

* Simplifying logic for showing message and action

* Fixing getMessageAndAction()

* Removing unused state variable

* Removing unused state variables from Migration context provider

* more cleanup, leave only Rinkeby as test network

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* Updating locked shares message + ensuring the message changes when the shares are locked (#1457)

* Adding start migration component

* Adding styles and updating text

* Conditional rendering - only showing start migration to the owner of the asset

* Removing unused imports

* creating Migration context provider

* Importing types from local v4-migration-lib package

* Adding migration contract addesses

* Setting migration contract address and creating fetchMigrationStatus function

* Updating MigrationStatusProvider interface & exports

* Updating the statMigration function

* Passing token name and symbol to smart contract

* creating lockPoolShares component

* Adding getUserPoolShareBalance

* Showing lockPoolShares component on asset detail page

* Adding migration context component

* Setting encrypted files

* Passing through dtAddress and poolAddress when starting migration

* Fixing build issues

* fixing type issues

* Updating the DT and NFT names / symbols

* Removing add / remove liquidity option when the pool migration is in progress

* Using useMigrationStatus in pool tab

* Lock pool shares not shown for pool owner

* Adding i-progress message

* Checking if threshold has been met

* Fixing approvals on lock pool shares

* Adding CreateV4Pool component

* Checking if deadline has passed

* Creating Cancel Migration component

* Updating Migration provider to fetch poolShares for user

* First draft migration

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Install test v4-migration-lib

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix linting and apollo errors

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Remove test component

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update v4-migration-lib version

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Cover more emigration cases

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix migration message

* Update market migration with new workflow

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update migration contract address

* Clean up console.logs

* add more networks

* Removing migration not started message + updating gitignore

* Refactoring to remove the migration not started yet message

* Fixing - hide lock poolshares button when shares are already locked

* Removing console log

* Adjusting message logic to create default message

* Removing block counter

* Removing threshold met contract call

* Updating message content for the migration

* Simplifying MigrationAction enum

* Removing console.log

* fix package-lock

* don't use old npm versions as it adds git+ssh all over the place, making Node.js v14 CI runs fail

* Simplifying logic for showing message and action

* Fixing getMessageAndAction()

* Removing unused state variable

* Removing unused state variables from Migration context provider

* Adding startMigration function in for testing + updating refreshMigration function

* Updating locked shares message

Co-authored-by: Pablo Maldonado <pablo@oceanprotocol.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* Checking if adding shares is allowed for Asset (#1458)

* fix dark mode banner text color (#1459)

* Update V4 Migration smartcontract address (#1460)

Update V4 Migration smartcontract address on Rinkeby

* Removing all code that was in V3 branch for testing (#1461)

* Removing all code that was in place for testing

* Removing complete migration function

* remove unused CSS files (#1462)

* remove Add/Remove for good (#1463)

* alert color tweaks, effect dependencies (#1464)

* V3 fix pool shares rounding (#1466)

* Changing UI to show pool shares rounded to 3 decimal places

* Fixing NaN shown in the UI when changing account

* Displaying locked pool shares to 3 decimals (#1467)

* Displaying locked pool shares to 3 decimals

* Removing else condition

* Updating text - removing mentions of migration (#1468)

* V3 fixes (#1469)

* Fixing - making sure migration status is not shown after changing accounts

* Updating text to remove V4 migration status+ fix typo + renaming data pool to datatoken pool

* Fixing typo - Please note

* Making title shorter

* Update title (#1470)

* Update MIGRATION_CONTRACT_ADDRESS for production (#1472)

* update banner: (#1474)

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

Co-authored-by: md0x <pablomaldonadoturci@gmail.com>
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Pablo Maldonado <pablo@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-25 15:28:01 +03: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
Bogdan Fazakas
2f1bd399f8 refactor metadata types for publish forms 2021-02-19 17:51:40 +02:00
Bogdan Fazakas
5112a35524 fixed lint errors 2021-02-19 16:25:42 +02:00
960c5b3234
Update metadata, the proper way (#292)
* prototype view switching

* refactor, more UI

* formik form setup & data flow

* debug output, fixes, refactor

* description preview refactor

* publish/update date changes

* output created & updated date at top of asset
* use ddo.created & ddo.updated everywhere
* stop pushing metadata.main.datePublished

* owner check for edit link

* all the feedback states and switching between them: loading, error, success

* refactor feedback, one component for publish & edit

* action & date output fixes

* move all content, iterate form fields from it

* UI updates

* styling tweaks

* ddo dataflow refactor, more useAsset usage

* more useAsset usage

* form actions styling

* prepare edit history component

* metadata output tweaks

* copy

* safeguard against profile urls without protocol defined

* refetch ddo after edit

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

* switch author for dataTokenOptions in metadata preview

* refactor

* copy

* showPricing fix

* validation: minimum characters for title & description

* disable submit button when validation fails

* form validation fixes

* manually trigger onChange validation in publish & edit forms

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-12-10 14:30:40 +01:00
ed57702ff3
refactor root components (#263)
* refactor layout

* refactor

* root components reordering

* type-check fix
2020-11-18 20:01:33 +01:00
07b086547f
refactor 2020-10-20 14:51:20 +02:00
5c9eb91371
lint fix 2020-10-05 12:29:50 +02:00
1aac244329
case fix 2020-10-01 17:13:19 +02:00
acfa0b8d06
refactor to use optional chain expressions 2020-09-10 22:22:16 +02:00
16fc0aef03
type check fixes 2020-09-02 11:43:15 +02:00
c19cdcd9da
fix most metadata typings 2020-07-16 13:39:02 +02:00
818a399a97
more fixes 2020-07-10 13:19:04 +02:00
482a307f80
kinda make file input work 2020-07-10 12:09:43 +02:00
cd88cb41e5
remove json-schema-form, replace with Formik 2020-07-09 15:31:47 +02:00
8a1af53150
trying to make sense of jest and mocking reach router, useWeb3, useOcean, squid 2020-06-30 19:38:02 +02:00
829ec502a2
make Jest run 2020-06-30 14:19:27 +02:00
mihaisc
5f14e431da transactions, job details 2020-06-02 12:15:21 +03:00
alexcos20
ebd5ba9495 first commit 2020-05-07 09:03:30 +03:00