Commit Graph

297 Commits

Author SHA1 Message Date
Shredder d838f1a449
feat: MongoDB & Prisma [serverless] (#224)
* feat: init prisma.

* feat: update the prisma model.

* feat: write client tests.

* feat: Prisma integration and helper [serverless] (#229)

* refactor: rename the prisma folder to prisma-setup.

* feat: install prisma client.

* feat: add new build and invoke commands for prisma and the modules.

* feat: add prisma helper, update serverless config for testing purposes

* docs: update readme and include a .env.example file.

* feat: zoruka's suggestion on using finally instead of catch.

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

---------

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

* feat: prisma-setup restructure.

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-04-27 15:01:21 +03:30
Shredder 8f1263e43d
feat: define submit build info interface and parameters. (#231) 2023-04-27 13:48:31 +03:30
Shredder 787e4d6fef
feat: create smart contract helper for serverless (#232)
* feat: add log decoder helper and import web3.

* feat: create the web3 helper and install the package. update ts config to use JSONs in the helper script.

* feat: use nfaContract in submitBuildInfo handler.

* refactor: make the setTokenBuild params self-explanatory.

* docs: comment the placeholder.
2023-04-27 13:47:35 +03:30
Felipe Mendes ae8ba51c84
feat: UI work on navbar responsivity (#244)
* feat: add useMediaQuery

* feat: add menu icon

* feat: add navbar responsivity

* feat: add current path indication for navigation

* feat: prevent screen zoom

* refactor: move logo to navbar folder

* refactor: move sidebar to single file

* refactor: set icon names to kebab case

* feat: add alpha color function

* feat: add backdrop filter on navbar
2023-04-26 16:31:39 -03:00
Felipe Mendes cbe8b93594
bug: contract verifier address sent on mint calls (#239)
* chore: update hardhat to fix viaIR issues

* feat: add validations in main contract

* refactor: add hardhat tests

* test: add foundry tests
2023-04-25 15:58:50 -03:00
Shredder 957219b8af
feat: serverless new mint handler placeholder (#221)
* feat: add handler.

* fix: make the handler compilable.

* feat: parse json
2023-04-25 22:09:54 +03:30
Camila Sosa Morales 737715e1e3
styles: fix dropdown sorting styles (#238) 2023-04-24 18:22:26 -03:00
Felipe Mendes 0354877581
refactor: ui explore view responsivity (#236)
* refactor: clean up nfa search code and add base responsivity

* refactor: clean up nfa list code

* refactor: rename explore header fragment files

* refactor: nfa list items sizing

* feat: add vertical padding for page content

* refactor: make navbar not break the layout
2023-04-24 11:16:47 -03:00
Camila Sosa Morales 21b9660164
feat: UI ap flow (#223)
* chore: AP flow based on designs

* chore: preview ap creation

* style: max-width for explore container

* fix: fix setArgs

* feat: add success step for access point creation

* feat: add dots spinner

* chore: AP flow finished

* chore: release changes

* feat: store ens once the user log in with wallet

* feat: add mocked function for bunny cdn creation

* chore: finish bunny cdn mocked functions

* chore: run eslint

* feat: add domain validator

* style: move animation to stitches keyframes

* chore: set ens only when is not set

* Update ui/src/store/features/bunny-cdn/async-thunk/verify-ap.ts

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

* chore: remove nfa-picker

* chore: get nfa name

* chore: change verify thunk name

* fix: fix verifyPullzone thunk

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-04-21 15:57:20 -03:00
Felipe Mendes 22a6d70e98
feat: UI indexed nfa view (#230)
* wip: indexed nfa base layout

* refactor: split aside and main components to single files

* feat: indexed nfa aside styling

* feat: add main section header and drescription

* feat: add main section traits

* feat: add verification banner in main fragment

* feat: add externla link icon

* feat: add table stylings and frontends section mocked

* feat: add versions table mocked

* feat: add small layer of responsivity

* feat: add indexed nfa view skeleton

* refactor: create fragments folder

* refactor: split out mock and add todo comment

* feat: add icon on verified banner

* refactor: table stylings

* feat: add chevron right icon

* fix: link paths

* chore: add todo comments

* refactor: set initial position for aside container

* refactor: improve spacings

* fix: remove leftover comment
2023-04-20 14:19:53 -03:00
Janison Sivarajah a41f2b8a4b
Merge pull request #226 from fleekxyz/develop
Release v0.0.6 to main
2023-04-20 11:23:10 -04:00
Felipe Mendes 795164b4aa
feat: add verifier input on mint form (#213)
* fix: ethereum tx provider hook typing

* feat: add base code for verifier dropdown select

* feat: fetch verifiers from subgraph

* refactor: use combobox for selecting verifier
2023-04-20 10:31:26 -03:00
Felipe Mendes 3fbbb08cf9
test: add exception for address 0 on fuzz tests (#234) 2023-04-20 10:10:47 -03:00
Shredder eb2a765803
test: remove all matchstick tests (#233)
* test: remove all matchstick tests.

* test: remove testing step in the subgraph workflow.
2023-04-19 19:51:23 +03:30
Camila Sosa Morales 3da5666f09
style: fix combobox zIndex (#228) 2023-04-17 15:07:28 -03:00
Felipe Mendes 5ae09105c0
feat: UI create functionality to resolve address (#227)
* feat: add ENS slice

* feat: add resolved address hook

* feat: add resolved address component
2023-04-17 14:23:17 -03:00
Felipe Mendes 9934ad1cfd
feat: UI refactor on dropdown for better customization (#216)
* wip: combobox refactor

* refactor: new combobox styling

* refactor: rename new combobox

* wip: refactor combobox factory

* refactor: new combobox single component

* wip: refactor form combobox

* refactor: github branches typing

* refactor: ens field form combobox

* fix: readd removed branch icon

* refactor: replace nfa picker combobox

* refactor: remove old combobox

* refactor: rename combobox factory

* fix: remove leftover combobox code

* refactor: query filter by keys

* fix: create ap form title

* fix: max combobox options height

* feat: add chevron on combobox field

* refactor: optmize elements generation structure

* chore: add todo comments for things thats going to change

* fix: code comment addressed on pr
2023-04-17 11:40:31 -03:00
Felipe Mendes fdedc18b02
fix: linting issues on contracts folder (#212) 2023-04-17 11:27:39 -03:00
Camila Sosa Morales a571dabe6c
refactor: refactor site deploy (#225) 2023-04-14 14:26:00 -03:00
Camila Sosa Morales f51269b6a3
fix: add alchemy keys missinng (#222)
* fix: add alchemy keys missinng

* style: fix combobox index

* Update ui/src/store/features/github/async-thunk/login.ts

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

* style: remove zindex

* chore: remove duplicate toast

---------

Co-authored-by: Felipe Mendes <zo.fmendes@gmail.com>
2023-04-13 11:44:55 -03:00
Camila Sosa Morales c44efc9c53
style: change mint form fields order (#214) 2023-04-12 15:05:55 -03:00
Camila Sosa Morales 440a80752a
feat: CI/CD xyz (#206)
* feat: add deploy site config

* feat: add CI deploy xyz

* chore: add build ui folder on github workflow

* fix: fix workflow

* fix: fix build UI step

* chore: added remove comment

* feat: depoloy site on xyz when push to develop

* chore: add env varibles

* chore: remove main branch for CI/CD

* chore: change variables for secrets

* chore: make explore landing page
2023-04-12 13:48:55 -03:00
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