-
Notifications
You must be signed in to change notification settings - Fork 6
Feature/UI revamp and referral system #440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: testnets
Are you sure you want to change the base?
Changes from all commits
e5b815e
e8ae9e5
c3f5b53
506fa80
99b8b35
386f15f
a91b14c
94f03a6
d8d98fd
ecceb71
4c26faf
5d31173
b7a0d37
f0cc5bb
2f3df40
8b83157
7231cd8
2853341
13cb0b2
1201534
f5d7f1b
ddbfbbe
06fef75
04e2127
287222b
5a74ec4
7af1be4
29774c0
4774e76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,7 @@ | |
| "classnames": "^2.3.2", | ||
| "dotenv": "^16.0.3", | ||
| "graphql": "^16.4.0", | ||
| "graphql-request": "^4.2.0", | ||
| "graphql-request": "^7.1.2", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
rg -n "moduleResolution|\"type\"" tsconfig.json package.json
rg -n "graphql-request" -A2 -B2 src/generated/graphql.ts src/config/subgraph.tsRepository: Proof-Of-Humanity/proof-of-humanity-v2-web Length of output: 705 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n== package.json ==\n'
cat package.json | python3 - <<'PY'
import json,sys
data=json.load(sys.stdin)
print("scripts:")
for k,v in data.get("scripts",{}).items():
print(f" {k}: {v}")
print("dependencies:")
for k in ("graphql-request","next","typescript"):
if k in data.get("dependencies",{}):
print(f" {k}: {data['dependencies'][k]}")
if k in data.get("devDependencies",{}):
print(f" {k}: {data['devDependencies'][k]}")
PY
printf '\n== tsconfig.json ==\n'
cat -n tsconfig.json | sed -n '1,120p'
printf '\n== src/config/subgraph.ts ==\n'
cat -n src/config/subgraph.ts | sed -n '1,220p'
printf '\n== src/generated/graphql.ts (top) ==\n'
cat -n src/generated/graphql.ts | sed -n '1,220p'Repository: Proof-Of-Humanity/proof-of-humanity-v2-web Length of output: 921 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== package.json =="
python3 - <<'PY'
import json
from pathlib import Path
data = json.loads(Path("package.json").read_text())
print("name:", data.get("name"))
print("type:", data.get("type"))
print("scripts:")
for k, v in data.get("scripts", {}).items():
print(f" {k}: {v}")
for section in ("dependencies", "devDependencies"):
deps = data.get(section, {})
if "graphql-request" in deps or "typescript" in deps or "next" in deps:
print(section + ":")
for k in ("graphql-request", "next", "typescript"):
if k in deps:
print(f" {k}: {deps[k]}")
PY
echo
echo "== tsconfig.json =="
cat -n tsconfig.json | sed -n '1,200p'
echo
echo "== src/config/subgraph.ts =="
cat -n src/config/subgraph.ts | sed -n '1,220p'
echo
echo "== src/generated/graphql.ts (top) =="
cat -n src/generated/graphql.ts | sed -n '1,220p'
echo
echo "== all graphql-request references =="
rg -n "graphql-request|generated/graphql|getSdk" src netlify . -g '!node_modules'Repository: Proof-Of-Humanity/proof-of-humanity-v2-web Length of output: 20904 🌐 Web query:
💡 Result: Starting with version 7.x, graphql-request is distributed as a pure ESM (ECMAScript Module) package [1][2]. This means it does not support CommonJS (require) imports [1]. Because the package utilizes modern package.exports, TypeScript users must configure their projects to correctly resolve these exports [3][2]. To successfully use graphql-request v7 in a TypeScript project, you must ensure the following configurations are met: 1. Package Configuration: Your project's package.json must include "type": "module" [4][1][2]. 2. TypeScript Configuration: In your tsconfig.json, the moduleResolution option must be set to "node16", "nodenext", or "bundler" [4][1][2][5]. - "node16" or "nodenext" are recommended for Node.js projects, as they align with Node's native ESM resolution algorithm [5][6]. - "bundler" is suitable if you are using a frontend bundler (e.g., Vite, Webpack), as it supports package.exports without strictly requiring file extensions on relative imports [5]. Regarding the types and exports, graphql-request v7 maintains the GraphQLClient class and various request options (such as RequestOptions and RawRequestOptions) [7][8][1]. Because the package is ESM-only, ensure you are using ES module import syntax (e.g., import { GraphQLClient } from 'graphql-request') [9][1]. If you encounter "Cannot find module" errors, it is almost certainly due to an incompatible moduleResolution setting in your tsconfig.json [4][10]. Citations:
graphql-request v7 needs a compatible TypeScript resolver here
🤖 Prompt for AI Agents |
||
| "graphql-tag": "^2.12.6", | ||
| "next": "15.5.16", | ||
| "pino-pretty": "^11.0.0", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Proof-Of-Humanity/proof-of-humanity-v2-web
Length of output: 180
🏁 Script executed:
Repository: Proof-Of-Humanity/proof-of-humanity-v2-web
Length of output: 782
🏁 Script executed:
Repository: Proof-Of-Humanity/proof-of-humanity-v2-web
Length of output: 5005
Normalize
REACT_APP_IPFS_GATEWAYbefore using it asremotePatterns.hostnameCONTRIBUTING.mddocuments this env var as a full URL (https://cdn.kleros.link), butnext.config.jspasses it straight intohostname. Strip the scheme first (or derive the hostname fromnew URL(...)) so image matching works with the documented format.🤖 Prompt for AI Agents