mihaisc
d1e21b7f03
Various fixes in the pool component ( #1327 )
...
* remove legacy check to prevent rug pull
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* various fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove old prop
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove old prop
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add expected output to remove
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.logs
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix max calculations
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactors
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* temp fixes for build
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* local calc for pice and liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove var
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix profile liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* global context, opc fee
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* comment
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* various fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactor global context
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove nesting from market context
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix build
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix undefined appConfig
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* direct import of appConfig & siteContent
* this never changes on run time, so we should never have to wait for it and have it in js bundle at all times
* in utility methods, import directly
* for components, import directly in MarketMetadata context and pass through
* remove screen CSS fixes
* put back auto-fetching indicator, move manual refresh action behind debug
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-04-22 02:38:35 +02:00
Jamie Hewitt
9ebddd814d
Improve footer links ( #1338 )
...
* Opening external links in a new tab
* Main site links opens in a new tab + adding external link arrow
2022-04-11 16:13:52 +03:00
a9e1776499
More footer links ( #1322 )
...
* tweaked footer layout
* add more links
* source links from content file
2022-04-05 10:08:12 -07:00
69c3db2caa
SEO & favicon fixes ( #1229 )
...
* fix URLs and title
* solve all favicon things
* image optimizations through ImageOptim
* typing fix
2022-03-22 14:57:33 +00:00
7701652e89
Default to test networks ( #1224 )
...
* limit to test networks
* hide network list group when no networks in it
* remove warning, hide announcement banner on empty warning
2022-03-21 13:06:00 +00:00
Norbi
822cec3753
Keep algorithm private checkbox fixes ( #1174 )
...
* fix set access inside publish form
* added initial value for service access to fix continue button disabled
* removed compute environment options field
* removed compute options from form.json
* update access and algorithmPrivacy fields based on asset type
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-16 12:52:05 +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
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
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
181dce9ba5
publish feedback tweaks, make content switching based on price type work
2022-01-12 19:24:49 +00:00
8a20552268
more styling, button disabling, hack in isContinueDisabled
...
* closes #978
2022-01-12 18:02:56 +00:00
mihaisc
c7d6616874
fixes & hacks
2021-12-21 22:26:08 +02:00
9bd9156553
integrate compute options into form data, expose default option
2021-11-29 16:49:38 +00:00
3aa739fce0
add Docker image presets, populate algo Docker field from them
2021-11-29 13:25:30 +00:00
0a9f9ec693
hack in terms link, copy change
2021-11-25 14:36:01 +00:00
8e9cb3acad
prepare submission screen, nav layout updates
2021-11-24 14:46:10 +00:00
a313f39494
file input validation fixes
2021-11-23 15:34:43 +00:00
fc1966aa4e
copy
2021-11-15 15:42:50 +00:00
94147026c0
prepare datatoken & NFT display
2021-11-15 15:04:26 +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
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
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
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
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
51785d54dd
more reorganization
2021-10-27 11:29:03 +01:00
f951910dc2
reorganize all the things
2021-10-27 11:28:59 +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
Moritz Kirstein
2961c5e631
Privacy policy update ( #925 )
...
* update right to data portability
* update right to data portability
* update right to data portability
* update right to data portability
Co-authored-by: MeikeMolitor <88214332+MeikeMolitor@users.noreply.github.com>
2021-10-18 10:03:58 +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
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
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
69f02afd59
merge branch main into feature/account-page and fixed merge conflicts
2021-08-25 09:15:31 +03:00
Jamie Hewitt
a545f723e9
Add custom provider to publish form ( #707 )
...
* Creating custom provider box selection
* adding provider to Form publish validation schema
* validating custom provider URL
* WIP validation for custom provider
* validating provider uri
* adding success/ error messages
* conditional rendering of custom provider input
* remove console.log
* fixing textFormData
* Publishing custom provider URI in DDO
* Adding serviceEndpoint to Debug
* removing pre-checked default provider
* Refactoring to reduce code duplication
* removing console.log messages
* update submit text
* update submit text
* Placing custom provider field behind Advanced Settings
* removing provider field
* updating placeholder provider
* style for advanced setting button
* refactoring customProvider
* remocing template literal
* fixing linting errors
* restricting advanced publishing settings through env var
* updating example env
* adding custom provider to formAlgoPublish
* refactoring to reduce duplication
* Reducing duplication
* updating types and initial values
* Removing Custom provider input from main algorithm form
* Removing concole.log
* Chaning customProvider to providerUri
* changing customProvider to providerUri
* advanceSettings to PascalCase
* Removing unused useOcean()
* Using useSiteMetadata() hook
* Adding allowAdvancedPublishSettings to query
* Adding temporary console.log(ocean)
* Removing console.log
2021-08-20 15:49:15 +03:00
Jamie Hewitt
ccb5c22a80
Update price & pool tooltip content ( #771 )
...
* Adding description of each fee
* updating text
* Adding info about liquidity pool
* Adding tool tips for fixed pricing
* Explaining the pool
* removing broken link
* Update marketplaceFee in content/price.json
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Update swapFee in content/price.json
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Update poolInfo in content/price.json
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* Updating community fee tooltips
* Updating tooltip for marketplace fee
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-08-11 17:21:53 +03:00
Bogdan Fazakas
cfd5b6558e
merged branch main into feature/account_page
2021-08-04 15:35:25 +03:00
Bogdan Fazakas
261348f883
replace history page and route with account
2021-08-04 15:21:57 +03:00
Jamie Hewitt
46cf119afe
Author metadata update ( #763 )
...
* Adding content for update author
* Updating types
* Updating DDO
* Bumping ocean.js
* Making the author optional
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-08-03 17:07:51 +02:00
Jamie Hewitt
60cac45e89
Adding fees to fixed pricing page ( #758 )
...
* Adding fess to fixed pricing page
* Adding tooltips to fixed price content
* Styling: Text align left
* create pricing styling updates
* remove console.log
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-08-02 12:18:46 +02:00
a7998abb99
Multinetwork UI additions ( #729 )
...
* add BSC to default chains
* searchbar visual tweaks
* race condition fix
* network name tweaks
* beta → v3
* use publish form titles to inform about network
* form actions refactor
* simplify network name on asset details
* visual indicator for selected chains on button
* lint fix
* more layout flow tinkering, collapsed search by default
* search field layout tweaks
* unknown network/gaia-x name fixes
* put back search cancel button in webkit
* space fixes
* cross browser visual fixes
2021-07-26 15:48:24 +02:00
Kris Liew
e02babf2c2
[EPIC] Free Pricing ( #681 )
...
* Free Pricing Option at create Pricing (#621 )
* Free Pricing Option + env var toggle
* Create Pricing step msg
* Default 'allowFreePricing' to true temp for review
* Fix price 0 on free tab
* Attempt fix useSiteMetadata
* Fix linting
* Feature/free price support consume compute (#654 )
* Update fetch free price
* Feedback change UI remove 0's
* update button msg && fix
* compute algorithm list show 'Free' instead of '0'
* updateMetadata() v3 workaround solution for free pricing (#677 )
* compute algorithm list show 'Free' instead of '0'
* workaround editMetaData free price
* utils function for compute & download
* `allowFreePricing` default to false
2021-06-16 09:32:11 +08:00
Kris Liew
4fc5862654
Edit Advance Settings form for Edit Credentials & edit isOrderDisabled Flag ( #655 )
...
* #638 Initial design
* #638 fix import and get value from env file
* #638 Fix UI
* #638 Improved UI
* #638 Add deny credential and isOrderDisabled
* UI update
* Fix lint
* Attempt fix issue
* Revert "Attempt fix issue"
This reverts commit e3d916fe61
.
* Extract default credential type
* Fix complexity issue
* Fix complexity issue
* Fix typo error
* Enhance UI
* Enhance Credentials Component UI
* Reduce duplication
* Revert "Reduce duplication"
This reverts commit e3bf6b4a2a
.
Co-authored-by: KY Lau <kian_yee.lau@daimler.com>
2021-06-14 15:47:31 +08:00
Norbi
f0ed9f68cb
Add new custom form field for single value selection ( #504 )
...
* created BoxSelection component
* wip
* design changes
* integrate with form
* refactoring
* used inside appearance component
* WIP, added space between options
* adde new fields to BoxSelection used for chain selection
* fixed errors
* removed access type option from publish.json
* updated component for chain selection
* updated for compute type on publish dataset
* added component to dockerImageOpions
* removed Dotdotdot component from options
* remove space
* styling updates, fix React warning for terms checkbox
Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-05-17 15:32:01 +02:00
e3c0fd3d85
switch visual order of edit compute settings
2021-04-29 00:26:09 +02:00
3319cf844d
mention compute restrictions throughout UI ( #568 )
...
* mention compute restrictions in publish forms
* copy
* results storage info
2021-04-28 19:59:56 +02:00
claudiaHash
c0157dff21
Add datatoken to algo publish form ( #531 )
...
* datatoken added to algo publish form
* init datatoken option with non empty values
* remove hacks
* use nonempty data token initial values
Co-authored-by: claudia.holhos <claudia.holhos@hpm.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2021-04-26 13:43:58 +02:00
14e4cc3f68
Merge branch 'main' into feature/compute
2021-04-22 13:03:08 +02:00
Norbi
cf44ab7f51
Feature/allow changing of fixed rate price ( #399 )
...
* added price field to edit metadata form
* use method for updating price
* get exchangeId for setRate function
* setRate method update
* misc fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* revert price
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* get correct exchange id
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add price to MetadataEditForm interface
* fixed lint error
* disable update price on assets with dynamic price
* display price input only on fixed price
* price input changes
* fixed price input displayed when no price is set
* review fixes
* fixes
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Norbi <katunanorbert@gmai.com>
2021-04-22 12:55:11 +02:00
ea2f03d8cd
merge fix
2021-04-14 15:34:28 +02:00