Commit Graph

224 Commits

Author SHA1 Message Date
Shredder aa98d91c7a
style: fix eslint errors for subgraph (#218)
* style: fix eslint errors.

* fix: remove yarn-error.log from serverless dir.
2023-04-12 19:37:25 +03:30
Camila Sosa Morales c4ced2ff93
feat: sorting on explore view (#220)
* chore: add orderBy params on query

* feat: add sorting on explore view
2023-04-12 12:56:38 -03:00
Camila Sosa Morales 361855946a
chore: refactor style combobox (#209)
* refactor: refactor combobox based on designs

* style: combobox with search separated
2023-04-12 11:03:15 -03:00
Camila Sosa Morales 09e50adefc
feat: UI search on nfas list (#211)
* wip: created context for explore view

* feat: add search to context to filter on query

* feat: add search value to query

* feat: add search by name, external URL and ens

* feat: search by name

* chore: remove comments

* chore: rename files explore view (#217)

* chore: rename files explore view

* Update ui/src/views/explore/explore-list/results-search.tsx

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

* chore: rename nfa search fragment

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

* chore: update setPageNumber

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-04-11 17:22:34 -03:00
Camila Sosa Morales e9275ed04f
chore: update graph url (#215) 2023-04-10 18:38:01 -03:00
Shredder ef2645731b
chore: update the subgraph config & deploy the latest version (#179)
* chore: update the address of the current proxy

* refactor: update contract address, network, and ABI file path in subgraph.yaml
2023-04-10 21:21:11 +03:30
Shredder 8eb73f1fd9
chore: update config and commands to deploy to goerli (#195)
* chore: update config and commands to deploy to goerli

* feat: bring changes from other deployment branches into this branch. Including sepolia configs.

* chore: update ci to copy .env

* chore: add goerli api to .env.example.

* chore: update on UI readme

* feat: apply the requested changes

* chore: change verify-contract to verify.js and remove the other file

* chore: make the final requested changes on config files and readme.

* fix: missed comma

* docs: add the "setting contract address and abi" section to the README file in the UI directory

---------

Co-authored-by: janison <jsonsivar@gmail.com>
Co-authored-by: Camila Sosa Morales <camisosa@fleek.co>
2023-04-10 11:33:47 -04:00
Felipe Mendes df3e59f8a3
refactor: drip stitches exports (#210) 2023-04-10 11:34:06 -03:00
Felipe Mendes 389d6511b3
refactor: change _billings from public to private (#207) 2023-04-05 16:41:09 -03:00
Camila Sosa Morales 70d1e28cf2
feat: UI add base theme black color to replace (#204)
* chore: add black color to stitches theme

* chore: add list-nfa to index

* Update ui/src/components/nfa-card/nfa-card.styles.ts

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-04-05 15:56:00 -03:00
Camila Sosa Morales a4542d7442
chore: remove unused ref (#203) 2023-04-05 15:55:47 -03:00
Felipe Mendes c1af8df24c
bug: UI colors not showing up on firefox for nfa (#208)
* fix: color logo id without hashtag

* feat: remove image from preview when the load fails

* fix: dripStitches typing

* refactor: move SVGPreview to components folder with NFAPreview name

* fix: ens address variable
2023-04-05 15:52:08 -03:00
Felipe Mendes 83cd36dfc3
feat: design ens verification flow (#193)
* wip: add base solidity functions to try ens validation

* chore: add hardhat fork setup with env variable

* wip: setup ens verification for FleekERC721

* wip: add ens namehash generation

* chore: gas report setting

* feat: add ens verification on setTokenENS function

* test: hardhat transfer ens owner to set new ens

* test: fix foundry tests to enable ens validation

* refactor: change back ens to calldata and split out a public function for namehash testing

* refactor: move FleekENS.sol to util folder

* test: add ens validation tests for not owner attempts

* chore: add mainnet api key env in ci

* chore: fix .env.example

* fix: remove extra unused file
2023-04-05 11:48:56 -03:00
Felipe Mendes 2225b301ff
chore: prevent direct calls to implementation contract (#194)
* feat: disable initializers and set paused state for implementation contracts

* test: add deploy guarantee tests for interaction with implementation contracts

* chore: add buildId and implementationAddress to deployStore script

* test: reset initialized state on store of deployed contract for foundry tests

* test: optmize deployUninitialized function

* test: test if is possible to mint in implementation contract
2023-04-04 16:19:06 -03:00
Janison Sivarajah 9e202f0a1f
feat: sc 121 - serverless boilerplate (#140)
* chore: init for redoing aws stack base

* chore: fix tsc build errors

* chore: remove comment, remove schema verif that was causing error, add context

* chore: replace serverless.ts with serverless.yaml

* chore: rename serverless file correctly

* chore: fix deployment errors

* chore: add serverless-offline

* chore: fix bug executing function

* chore: readme for aws

* chore: rename to kebab-case and add eslint rule for it

* chore: add aws cred link to serverless readme
2023-04-04 14:42:51 -04:00
Felipe Mendes 0754606089
fix: UI graphql quries (#205)
* fix: graphql codegen rename Transfer entity to fix composition merge

* fix: scroll triggering refetch with query error

* fix: skip getENSNamesDocument when address is undefined
2023-04-04 15:24:43 -03:00
Felipe Mendes 2a9378fa52
feat: explore pagination view and loading skeletons (#202)
* feat: add skeleton styles

* feat: add nfa card skeleton

* refactor: fetch nfas with single list

* refactor: fetching nfa list backwards until no more data

* feat: add end of scroll fetch

* fix: nfa card skeleton sizing

* feat: add threshold to scroll end hook
2023-04-04 10:12:33 -03:00
Camila Sosa Morales d3f00fd291
chore: fix eslint ui errors (#201)
* chore: fix eslint errors ui

* chore: fix eslint errors

* chore: fix develop eslint errors
2023-04-03 17:02:32 -03:00
Felipe Mendes a2b8c4f7fd
feat: UI create card list component (#200)
* feat: add nfa card base structure

* feat: add needed data on lastNFAsPaginated query

* fix: nfa preview for multiple colors at the same time

* feat: setup nfa card style

* feat: apply NFAcard in NFAList
2023-04-03 11:26:42 -03:00
Felipe Mendes 779cf3bb14
feat: contracts add verified field and allow verifier (#184)
* feat: add token verified flag

* feat: add verified flag on tokenURI

* feat: add isTokenVerified function

* test: add foundry tests for token verified

* test: add hardhat tests for token verified
2023-03-31 16:13:34 -03:00
Camila Sosa Morales 73d48a0e4f
chore: fix link create AP button (#199) 2023-03-31 14:38:22 -03:00
Camila Sosa Morales c10c59ae24
feat: UI create explore view skeleton (#197)
* wip: added header for explore view

* chore: add skeleton for explore view

* chore: add dropdown variation

* style: align dropdown list
2023-03-31 12:33:30 -03:00
Felipe Mendes f74c8bb569
chore: remove ens storage feature (#198) 2023-03-30 15:55:06 -03:00
Camila Sosa Morales f3f35bb19b
feat: UI simple create ap view (#191)
* feat: add create app context

* chore: add stepper and nfa picker

* chore: crete step component

* chore: fix create AP text

* chore: update query to list NFAs

* chore: changes PR

* feat: handle error on create AP

* chore: add message error when create AP

* chore: add form context

* Update ui/src/views/access-point/create-ap.form-body.tsx

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-03-30 15:39:17 -03:00
Camila Sosa Morales ac618f9a32
feat: form field validations (#190)
* feat: add form field validation

* chore: add form on repo configuration

* wip: setting default branch

* chore: set default branch

* chore: form field validation workig with some fix needed

* chore: fix change first github step

* feat: set default branch

* feat: validation for textarea. fix styles on select repository

* chore: PR comments changes

* chore: remove constant

* chore: added comments

* chore: change combobox input props

* chore: remove ens validation since we dont allow custom ens

* chore: remove isEns

* refactor: fetch ens list from ens graph
2023-03-29 18:13:22 -03:00
Camila Sosa Morales 9df1791c72
feat: UI color picker component (#189)
* wip: color picker styled

* chore: color picker

* style: alight color picker

* style: align color picker
2023-03-27 17:53:02 -03:00
Camila Sosa Morales 33d1d53118
chore: remove storybook (#192) 2023-03-27 17:40:20 -03:00
Camila Sosa Morales d037565bfb
feat: navbar (#183)
* feat: add navbar

* style: change bg color navbar

* chore: connect wallet button custom. added navigation links

* style: change list nfa styles

* style: list nfas style change

* refactor: add forward-styled-ref and replace button creation (#188)

* choer: update import

* style: create fleek loco custom icon

* style: changes based on new designs

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-03-27 17:23:58 -03:00
Shredder 4682be82e9
refactor: metadataUpdate handlers in the subgraph (#187)
* feat: update newMint and add verifier and apAutoApproval, update subgraph accordingly.

* remove: bugged tests.

* refactor: update metadataUpdate handlers to match the new interface.
2023-03-17 19:43:43 +03:30
Shredder 2eca4be8f0
feat: update subgraph and its new mint handler + test refactor (#186)
* feat: update newMint and add verifier and apAutoApproval, update subgraph accordingly.

* remove: bugged tests.
2023-03-17 19:08:17 +03:30
Felipe Mendes ce71790c17
feat: contract when minting can set verifier (#164)
* feat: add token verifier token data and requirement

* feat: add verifier argument on mint function

* test: fix current foundry tests

* test: fix current hardhat tests

* test: add test for non token verifier with verifier role

* fix: mint signature on hardhat tests

* refactor: single mint function

* fix: overloaded mint calls on javascript side
2023-03-16 11:23:50 -03:00
Camila Sosa Morales d30fcc35cd
style: fix bg color due to bad conflicts resolved (#178) 2023-03-15 10:30:16 -05:00
Camila Sosa Morales 2c0cfd9b9b
chore: final mint step and share (#174)
* chore: final mint step and share

* chore: fix comments PR

* Update ui/src/views/mint/mint-stepper.tsx

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

* Update ui/src/views/mint/mint.context.tsx

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-03-14 07:44:25 -05:00
Camila Sosa Morales 7985bb35bb
chore: UI implement changes feedback (#173)
* style: combobox add cursor pointer property

* chore: make repository row clickable

* style: fix scroll on repositories list

* chore: select main/master by deafult branch

* chore: add required icon on label form and max characters length

* Update ui/src/components/core/combobox/combobox.tsx

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>

* chore: remove commented line

* chore: replace Form.MaxLength

* styles: fix styles for combobox icon

* chore: default branch based on repo config

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-03-13 15:56:17 -05:00
Shredder 5c43ebe0d0
feat: add handler for burns to the transfer handler [subgraph] (#162)
* feat: add handler for burns to the transfer handler

* fix: update transfer.ts to include the changes.
2023-03-14 00:22:37 +03:30
Shredder 3414a96c65
chore: separate handlers by event type [subgraph] (#161)
* chore: separate handlers by event type

* fix: export handlers from the mapping file.
2023-03-14 00:18:08 +03:30
Camila Sosa Morales 9f97ce2ad1
chore: UI clean up console logs (#175)
* chore: add logger

* chore: remove svg-test folder

* chore: remove console logs and add toast
2023-03-13 12:52:04 -05:00
Felipe Mendes c3fe09c1a6
feat: UI fetch mint price on contract (#166)
* chore: update deployment

* feat: add fleekERC721 redux state and billing states

* feat: add billing price to mint flow
2023-03-13 14:07:37 -03:00
Camila Sosa Morales 1eed510527
styles: fix styles combobox and dropdown (#167) 2023-03-13 11:20:53 -05:00
Felipe Mendes df6fbea5c0
feat: erc interface and split out access points to single module (#151)
* wip: compilant version of interface

* refactor: split out access point to single module

* test: fix mint call on hardhat tests

* fix: remove auto approval from NewMint event
2023-03-13 11:07:40 -03:00
Felipe Mendes fbee0945fd
bug: mint button not triggering in dev hosted (#170)
* feat: parse error code using abi

* feat: add prepare error treatment on mint flow
2023-03-13 10:22:58 -03:00
Felipe Mendes d6f8d047c8
feat: review linting for all subfolders (#169)
* chore: setup root eslint

* fix: fix .eslintignore to root folder
2023-03-13 10:21:54 -03:00
Camila Sosa Morales 13a9a1e992
feat: UI toast component (#160)
* chore: install radix toast

* feat: add toast component

* chore: display toast column

* chore: remove commented lines

* chore: fix animation
2023-03-10 09:04:30 -05:00
Shredder e28c7c6e96
test: subgraph matchstick tests for access points and acl refactor (#150)
* fix: errors from deprecated entities.

* fix: events from deprecated entities.

* test: add tests for NewAccessPoint.

* chore: remove yarn-error.log and add it to .gitignore.

* test: add changeAccessPointCreationStatus tests to subgraph matchstick.

* test: add tests for changeAccessPointNameVerify x matchstick

* feat: add utility functions for ACL events

* test: add tests for tokenRoleChanged event

* test: add tests for the CollectionRoleChanged event

* feat: add handleTokenRolesCleared handler function - slipped from the ACL refactor pr.

* refactor: rename the Token owner consts to user consts.

* chore: add .bin to gitignore.
2023-03-09 23:22:38 +03:30
Felipe Mendes 099e6d76d6
chore: UI polyfills for build command (#165)
* chore: fix vite plugin for polyfills

* chore: add prod script command to run production version

* refactor: hash router to run on ipfs
2023-03-08 17:56:36 -03:00
Camila Sosa Morales 9db81d2025
chore: UI setup subgraph querying (#152)
* wip: querying with graph-client and apollo

* feat: fetching last nfts minted with basic pagination

* chore: add .graphclient folder to gitignore and update readme

* chore: teste pagination

* chore: add create ap button in NFA

* chore: remove unsued files

* fix: fix CI

* Update test.yml

* chore: add config to handle graphclient imports

* chore: update queries

* chore: update list nfa views

* chore: add graphql folder. remove unused env variable
2023-03-08 15:28:16 -05:00
Shredder 7387b68571
chore: add / update workflows to do folder filtering (#153)
* Reflect Polygon -> Eth Mainnet change in main readme

* chore: add / update workflows to do folder filtering and run change specific tests.

* chore: run workflows based on both the path and the target branch of pr.

* chore: add graphclient generation command to ui workflow

Co-authored-by: Camila Sosa Morales <camisosa@fleek.xyz>

* style: fix indentation in the ui workflow yml file

---------

Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com>
Co-authored-by: Camila Sosa Morales <camisosa@fleek.xyz>
2023-03-08 09:50:25 +03:30
Felipe Mendes e74e5595da
feat: add verifier role (#148)
* feat: add verifier collection role

* refactor: apply verifier role to verify ap functions

* test: hardhat tests for verifier role

* refactor: grant verifier role for deployer

* test: foundry tests for verifier role

* test: fix fixture after changing deployer to be verifier

* test: change token owner to match connected account on verifier role check
2023-03-07 10:28:31 -03:00
Camila Sosa Morales e5d28251c4
feat: UI integrate ens dropdown (#143)
* chore: get ens names from address

* wip: ens validation

* wip: combobox with option to add new items

* chore: add trim words

* chore: change order steps

* chore: add comments

* chore: change components test view

* chore: remove unused file

* chore: add alchemy-sdk as prod dependency

* chore: pr comments
2023-03-07 08:03:53 -05:00
Felipe Mendes 8e309ee04c
refactor: deployment script to accept argument inputs (#146) 2023-03-07 08:23:34 -03:00