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

61 Commits

Author SHA1 Message Date
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
db5b892e23
Merge pull request #774 from oceanprotocol/feature/account_page 2021-09-22 18:05:17 +02:00
Norbi
0eb6c15cda
Fix pagination breaks on to many results (#831)
* handle to many results

* update search test

* get transaction history based on ddo chainId

* revert last commit

* changed title and description

* reduce paragraphs

* added constant for maximum number of pages
2021-09-15 12:50:41 +02:00
Bogdan Fazakas
f8ffcbac75
Account metadata header (#776)
* get all neded data for the header from 3box, aqua and subgraph

* fix tvl display error

* WIP metadata header styling

* added more styling for the header

* make page title optional so we can remove it on account page

* stroke change for svg images and default values

* more styling added to the header

* fixed linter

* added ocean balance to tvl

* update styling for statistcs

* fixed eror for go to my account from another account page

* updated styling for mobile use

* wip show more on explorer links and description

* properly display read more for explorer links and description

* replaced show more with 3box redirect on description

* change accounts default picture and check links length before display element

* use optional on links

* grid cleanup, new number unit, split up stats

* rename all the things, more profile header styling

* visual hierarchy, improve image loading experience

* layout flow & visual tweaks

* more description

* replaced account route  with profile when accesing a profile by the eth address

* use account id from url if exists when fetching data

* bump @oceanprotocol/art to v3.2.0

* styling, fallbacks, edge case fixes

* clean up Publisher atom, link to profile page

* fixed issue when switching to my profile from another profile

* output accountId, make it copyable, remove stats icons

* render tweaks, markup cleanup

* add 3box reference

* mobile tabs spacing tweaks

* text flow and spacing tweaks

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-09-01 13:56:34 +02:00
Bogdan Fazakas
261348f883 replace history page and route with account 2021-08-04 15:21:57 +03:00
53639e6839
disable storybook test runs for now 2021-06-04 11:43:51 +02:00
b516e95879
prettier formatting updates 2021-06-04 11:43:47 +02:00
de2e4e8fae
package cleanup and updates 2021-06-04 11:42:33 +02:00
df587bb5b5
Merge branch 'main' into feature/compute 2021-03-17 12:58:13 +01:00
bdccb0966f
Web3/Ocean splitup + full Polygon/Matic support (#433) 2021-03-17 11:44:26 +01:00
d27812fc51
typecheck fix 2021-02-22 17:18:40 +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
Bogdan Fazakas
18cd6b6f01 WIP publish algorithm 2021-02-16 11:27:02 +02:00
Bogdan Fazakas
c72dfb6ced
Fileinfo replacement (#352)
* replaces market fileinfo with provider file info

* removed test for replaced getFileInfo method

* updated toast messages
- if uploaded file when no web3 wallet is connected
- if file is not valid

* used provider api to check file'

* moved get fileinfo logic to provider.ts

* cancel fileinfo req on unmount

* reduced fileinfo method complexity

* canceltoken passed to fileinfo issue
2021-02-04 15:45:21 +01:00
Norby
a2fe2fdee0
Set, edit, and display timeout (#324)
* added timeout to publish asset

* add timeout to edit asses(wip)

* added timout to edit metadata form

* fixed wrong constant name

* fix options autosorting

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

* Fixed autosorting in edit form

* Added "1 day" to timeout options

* Changed ternary operators to switch

* Feature/asset timeout (#325)

* Compute asset timeout

* Code styled

* Deleted unused import

* Display timeout for buy/download

* Switch case for timeout values

* Moved mapping function to /utils/metadata

* display timeout option not matching defined ones, map seconds to string

* handle update with no predefined timeout value, add weeks to map method

* Display timeout on button

* consume button text logic change

* whoops, revert wrong change

* small millisecondsToStr refactor

* copy tweaks

* template literal logic restore

* keep tweaking help text logic

* abstract into method
* change whole condition logic
* tweak hasDatatoken/hasPreviousOrder combination condition

* Unified seconds to string conversion methods

* getHelpText tweaks, small refactor

* copy editing, limit hardcoded timeout list

* fix mixup of map & filter

* use Timeout as label and be done with it

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: claudiaHash <49017601+claudiaHash@users.noreply.github.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Claudia Holhos <clawww1996@gmail.com>
2021-01-22 17:12:48 +01:00
Norby
b5f6f9c9c1
displayed search results count (#312)
* displayed search results count

* updated unit test for Search component

* account for singular & plural, display message if there's no result
2021-01-13 10:15:50 +01: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
mihaisc
400ff6a4fd
fix test
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2020-10-27 14:03:10 +02:00
b48435788c
package updates 2020-10-21 14:37:18 +02:00
07b086547f
refactor 2020-10-20 14:51:20 +02:00
93179c8c37
metadataStore → metadataCache, package updates 2020-10-13 17:06:40 +02:00
5c9eb91371
lint fix 2020-10-05 12:29:50 +02:00
1aac244329
case fix 2020-10-01 17:13:19 +02:00
ef00160f65
run type checking as part of linting 2020-09-29 17:19:50 +02:00
80aadeffea
ddo fixture update 2020-09-29 17:19:50 +02:00
69ecfd71eb
remove compute job lists for now 2020-09-29 17:19:49 +02:00
ad714dc8c9 liquidityProviderFee → swapFee 2020-09-28 15:49:51 +00:00
3a72d670fd
remove unused methods/hooks/components 2020-09-24 12:26:23 +02:00
b5356e6c42
test & storybook fixes 2020-09-23 11:21:04 +02:00
d85f6c0777 fix passing generated datatoken options 2020-09-21 19:16:33 +00: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
336734bb77
package updates 2020-09-01 10:50:22 +02:00
fd3a436a31
more config refactor 2020-07-22 12:20:55 +02:00
cb4850835d
remove api directory, remove redeploy action 2020-07-20 22:16:59 +02:00
c19cdcd9da
fix most metadata typings 2020-07-16 13:39:02 +02:00
ff36e07a45
dependencies cleanup and updates 2020-07-16 12:24:05 +02:00
c533194392
fix all the things by removing Rating altogether 2020-07-15 13:54:37 +02:00
894f3b39be
load all metadata client-side only 2020-07-15 13:54:36 +02:00
7b6cb91410
kick out squid-js, replace with lib 2020-07-15 13:54:35 +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
b3e4940d08
start data flow cleanup 2020-07-09 18:08:13 +02:00
cd88cb41e5
remove json-schema-form, replace with Formik 2020-07-09 15:31:47 +02:00
2c5fb9bd40
metadata reset 2020-07-01 19:02:31 +02:00
ff949c6a67
search & asset teaser refactor 2020-07-01 18:13:32 +02:00
8a1af53150
trying to make sense of jest and mocking reach router, useWeb3, useOcean, squid 2020-06-30 19:38:02 +02:00
65e0cd74ab
fix search test 2020-06-30 16:22:22 +02:00