Skip to content

Commit

Permalink
Develop (#62)
Browse files Browse the repository at this point in the history
* added images and icons

* added prorile pages and layout
added projects pages

* updated fonts adding sora

* removed react admin code

* updated navbar

* removed constants
updated action name to deprecate
removed admin page

* Feat/project components (#45)

* added icons and images
removed unused assets
updated favicon and logo icon

* removed supabase not needed

* added hooks for projects and auth

* added components for views

* added next auth for handling user sessions

* updated name and import for pages
added not found for project

* added mock data util
removed uneeded styles function

* added xstate machines for project

* added manifest

* added next auth
removed uneeded library

* updated daisy ui theme with light theme only

* added toaster and footer to root layout

* started mock static pages for projects

* work for components ready for PR

* upated compare ready for PR

* removed screen height

* project build fix

* fixed sanitization error

* Feat/project actions (#44)

* feat(projects): fetch project data

* fixed build issue ready to build

---------

Co-authored-by: Afo <obaone01@gmail.com>

* removed storybook components

* replaced farcaster auth with wallet connect

* EAS schema schemas and metrics schemas (#59)

* feat(uploader): attestation uploader

* feat(uploader): upload metric schemas

* feat(attest): uploaded metrics schema

* feat(schema): project metrics attestation schema

* feat(endorsement): uploaded endorsement schema

* feat(eval): evaluation attestation schema

---------

Co-authored-by: Afolabi <obaone01@gmail.com>

* added compents for profile view
added connect kit t replace farcater

* Building

* late night work added machines for projects
added pnpm workspce
removed uneeded components and views

* latest work

* app building

* late night work

* some more work really coming aling

* more work coming together

* updates

* some more work
state machines complete
app contants created
fixed use client typo

* Pages building fixed param issues

* added neynar for fid lookup by address
updated user object

* more work coming along

* remove uneeded pakages

* some more work done

* sunday work

* extracted components from project details
removed uneeded libs like storybook

* created ProjectEndorsement card

* Added some TODOs for actions
Did some work

Co-authored-by: bitbeckers <code@bitbeckers.com>

* app building

* fix(parse): parse attestation data from EAS

* moved provider to wrap app

* updated packages and names in package.json

* removed transnactin and attest count from project type

* moved eas sepolia client to URQL

* fully migrated to sepolia for testnet attestations

* updated parsing functions

* feat(web3): replace connectkit with appkit (#60)

* feat(web3): replace connectkit with appkit

* fix(copy): use constants for wagmi metadata

* fix(types): WIP updating fetched types

* fixed type error now building

* update made type global

---------

Co-authored-by: Afo <obaone01@gmail.com>

* updated actions for fetching project metrics/endorsments

* wip get attestations working clientside

* fixed type errors app building

* feat(api): autogenerate OP Agora API client

* feat(endorsements): load endorsement profile page

* fix(endorsement): refactor eas flows to hooks and submit endorsement

* feat(claim): claim metrics and fix build

* fix(project): fixed project-row width

* polished project detail page

* fix(table): project overview page table positioning

* aded open source observer key to template

* removed connectkit no longer used

* removed workflow file

* updated lockfile

---------

Co-authored-by: bitbeckers <code@bitbeckers.com>
  • Loading branch information
Oba-One and bitbeckers authored Aug 27, 2024
1 parent ac201f1 commit 6e5133c
Show file tree
Hide file tree
Showing 191 changed files with 25,145 additions and 16,134 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/supabase-ci.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
node_modules/**/*
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
coverage

# next.js
.next
/out/

# production
build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.idea/

*storybook.log

**/.idea
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "impact-framework",
"name": "impact-reef",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "cd packages/client && pnpm run dev",
"test": "cd packages/client && pnpm run test",
"build": "cd packages/client && pnpm run build",
"generate:supabase:types": "npx supabase gen types typescript --local > types/database-generated.types.ts"
"build": "cd packages/client && pnpm run build"
},
"engines": {
"node": "20.x",
"pnpm": "^9.x"
}
}
9 changes: 7 additions & 2 deletions packages/client/.env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
AUTH_SECRET
NEYNAR_API_KEY

NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
NEXT_PUBLIC_ALCHEMY_ID
OPEN_SOURCE_OBSERVER_API_KEY

1 change: 1 addition & 0 deletions packages/client/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/__generated__/
21 changes: 0 additions & 21 deletions packages/client/.storybook/main.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/client/.storybook/preview.ts

This file was deleted.

3 changes: 3 additions & 0 deletions packages/client/graphql.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema:
- https://sepolia.easscan.org/graphql
documents: '**/*.graphql'
19 changes: 18 additions & 1 deletion packages/client/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
import withBundleAnalyzer from "@next/bundle-analyzer";

/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
async redirects() {
return [
{
source: "/",
destination: "/projects",
permanent: true,
},
];
},
webpack: config => {
config.externals.push('pino-pretty', 'lokijs', 'encoding')
return config
},
images: {
domains: ["picsum.photos"],
},
};

export default process.env.ANALYZE === "true"
? withBundleAnalyzer(nextConfig)
Expand Down
11 changes: 11 additions & 0 deletions packages/client/orval.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {defineConfig} from 'orval';

export default defineConfig({
agora: {
input: 'https://vote.optimism.io/api/v1/spec',
output: {target: './src/__generated__/api/agora.ts', baseUrl: "https://vote.optimism.io/api/v1/"},
hooks: {
afterAllFilesWrite: 'prettier --write',
},
},
});
98 changes: 45 additions & 53 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "impact-garden",
"name": "impact-reef-app",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -8,66 +8,58 @@
"test": "next build",
"start": "next start",
"lint": "next lint",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"codegen:api": "pnpm orval --config ./orval.config.ts"
},
"dependencies": {
"@supabase/supabase-js": "^2.42.7",
"@xstate/react": "4.1.1",
"lucide-react": "0.376.0",
"next": "14.2.3",
"ra-data-json-server": "^4.16.16",
"react": "^18",
"react-admin": "^4.16.14",
"react-dom": "^18",
"react-hot-toast": "2.4.1",
"react-spinners": "0.13.8",
"xstate": "5.12.0",
"viem": "2.9.28",
"zod": "3.23.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"global": "^4.4.0",
"ra-input-rich-text": "^4.16.14",
"ra-supabase": "^2.2.0",
"snaplet": "^0.90.0",
"tailwind-merge": "^2.2.2",
"@ethereum-attestation-service/eas-sdk": "^2.5.0",
"@hookform/resolvers": "^3.9.0",
"@neynar/nodejs-sdk": "^1.39.0",
"@tanstack/react-query": "^5.51.15",
"@urql/core": "^5.0.4",
"@web3modal/siwe": "^5.0.10",
"@web3modal/wagmi": "^5.0.10",
"@xstate/react": "^4.1.1",
"axios": "^1.7.2",
"ethers": "^6.13.2",
"gql.tada": "^1.8.2",
"next": "^14.2.5",
"next-auth": "4.24.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"react-hot-toast": "^2.4.1",
"react-icons": "5.2.1",
"react-spinners": "^0.14.1",
"siwe": "^2.3.2",
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.7.2"
"viem": "^2.18.2",
"wagmi": "^2.12.1",
"xstate": "^5.16.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.3.3",
"@next/bundle-analyzer": "14.2.3",
"@storybook/addon-essentials": "^8.0.9",
"@storybook/addon-interactions": "^8.0.9",
"@storybook/addon-links": "^8.0.9",
"@storybook/addon-onboarding": "^8.0.9",
"@storybook/blocks": "^8.0.9",
"@storybook/nextjs": "^8.0.9",
"@storybook/react": "^8.0.9",
"@storybook/test": "^8.0.9",
"@testing-library/react": "^15.0.4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.0.1",
"daisyui": "4.10.2",
"eslint": "^8",
"eslint-config-next": "14.1.4",
"eslint-plugin-storybook": "^0.8.0",
"jsdom": "^24.0.0",
"postcss": "^8",
"prettier": "3.2.5",
"storybook": "^8.0.9",
"tailwindcss": "^3.3.0",
"typescript": "^5",
"vitest": "^1.5.2"
"@0no-co/graphqlsp": "^1.12.12",
"@next/bundle-analyzer": "^14.2.5",
"@testing-library/react": "^16.0.0",
"@types/node": "^22.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"daisyui": "^4.12.10",
"eslint-config-next": "^14.2.5",
"jsdom": "^24.1.1",
"orval": "^6.31.0",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0",
"vitest": "^2.0.4"
},
"eslintConfig": {
"extends": [
"next/core-web-vitals",
"plugin:storybook/recommended"
"next/core-web-vitals"
]
}
}
Loading

0 comments on commit 6e5133c

Please sign in to comment.