Skip to content
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

Dev Tools UI #1582

Draft
wants to merge 39 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
219bd60
chore: new package (work-in-progress)
jaybuidl May 17, 2024
ccdf188
Merge branch 'dev' into feat/devtools
kemuru Jun 17, 2024
4a1ae9e
Merge branch 'dev' into feat/devtools
jaybuidl Jul 3, 2024
bf9972a
Merge branch 'dev' into feat/devtools
nikhilverma360 Jul 16, 2024
3e78cc5
chore(devtools): setup nextjs app
nikhilverma360 Jul 2, 2024
c3ad571
chore(devtools): setup layout, header, footer
nikhilverma360 Jul 2, 2024
7c6ac30
chore(devtools): added necessary svgs
nikhilverma360 Jul 2, 2024
1e40626
feat(devtools): ruler ui
nikhilverma360 Jul 3, 2024
a6db67f
fix(devtools): fixed typings
nikhilverma360 Jul 3, 2024
72f9895
fix(devtools): fix footer to render client side
nikhilverma360 Jul 3, 2024
4b962d3
fix(webtools): fixed linting issues, and themes
nikhilverma360 Jul 3, 2024
fc1fdcc
chore(devtools): removed unused variables
nikhilverma360 Jul 16, 2024
3e314cc
refactor(devtools): global declaration of theme types
nikhilverma360 Jul 18, 2024
d1b1841
refactor(devtools): dynamic theme types
nikhilverma360 Jul 18, 2024
ba544c2
Merge pull request #1641 from kleros/feat(devtools)/initial-setup-for…
alcercu Jul 18, 2024
a56ccf5
feat(devtools): setup graph-codegen cli
nikhilverma360 Jul 15, 2024
7d557b0
feat(devtools): setup wagmi cli & wagmi generate
nikhilverma360 Jul 15, 2024
38c0944
feat(devtools): ported dispute template editor
nikhilverma360 Jul 15, 2024
27f7439
chore(devtools): json-editor version change
nikhilverma360 Jul 16, 2024
c30af6d
chore(devtools): remove undeclared variable
nikhilverma360 Jul 17, 2024
1856dd5
refactor(devtools): dynamic import graphql-url from env
nikhilverma360 Jul 17, 2024
52e909a
fix(web-devtools): add kleros-sdk secondary resolution path on tsconfig
alcercu Jul 18, 2024
de4cf88
fix(devtools): temporarily ignore build errors
nikhilverma360 Jul 19, 2024
f3b8aed
chore: lockfile
jaybuidl Jul 25, 2024
1e913f2
feat: link to the devtools UI in the Help menu
jaybuidl Jul 25, 2024
aff71fc
Merge pull request #1656 from kleros/feat(devtool)/port-dispute-template
jaybuidl Jul 25, 2024
74bc188
feat(devtools): homepage UI
nikhilverma360 Jul 29, 2024
e73e10d
fix(devtools): fix typo
nikhilverma360 Jul 29, 2024
5dcab4b
Merge pull request #1661 from kleros/feat(devtools)/homepage-ui
jaybuidl Jul 29, 2024
88a507e
feat(devtools): mobile navbar integration & nav links
nikhilverma360 Jul 31, 2024
cab7f77
fix(devtools): fix dispute-template presets
nikhilverma360 Jul 31, 2024
f818bb0
Merge pull request #1664 from kleros/feat(devtools)/mobile-navbar-and…
jaybuidl Jul 31, 2024
dc25764
Merge branch 'dev' into feat/devtools
jaybuidl Aug 7, 2024
61c07b9
Merge branch 'dev' into feat/devtools
nikhilverma360 Aug 12, 2024
bd68a9b
refactor(web-devtools): revamp-ruler-ui
Harman-singh-waraich Sep 11, 2024
57716ac
refactor(web-devtools): update-component-name
Harman-singh-waraich Sep 11, 2024
f5f265e
Merge pull request #1685 from kleros/refactor/revamp-devtools-ruler-ui
alcercu Sep 16, 2024
a3aa4da
chore: ruler deployment
jaybuidl Sep 17, 2024
71e7d66
fix: ruler fix, tests updated, redeployed
jaybuidl Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"kleros-sdk",
"subgraph",
"web",
"web-devtools",
"eslint-config",
"prettier-config",
"tsconfig"
Expand Down
15 changes: 15 additions & 0 deletions web-devtools/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

[*.{html,js,.json,mjs,rjson,ts}]
indent_style = space
indent_size = 2

[*.sol]
indent_style = space
indent_size = 4
165 changes: 165 additions & 0 deletions web-devtools/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:import/react",
"plugin:security/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"plugins": [
"react",
"react-hooks",
"security",
"import"
],
"ignorePatterns": [
"src/assets"
],
"settings": {
"react": {
"version": "^16.12.0"
},
"import/resolver": {
"parcel": {
"rootDir": "src",
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".svg",
".png",
".jpeg"
]
}
}
},
"rules": {
"max-len": [
"warn",
{
"code": 120
}
],
"react/prop-types": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "(^_+[0-9]*$)|([iI]gnored$)|(^ignored)",
"argsIgnorePattern": "(^_+[0-9]*$)|([iI]gnored$)|(^ignored)"
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error",
"info",
"debug"
]
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"security/detect-object-injection": "off",
"security/detect-non-literal-fs-filename": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-unresolved": "off",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "{react,styled-components}",
"group": "external",
"position": "before"
},
{
"pattern": "@kleros/**",
"group": "external",
"position": "after"
},
{
"pattern": "{svgs/**,assets/**}",
"group": "internal",
"position": "after"
},
{
"pattern": "{hooks/**,utils/**,consts/**,types/**,context/**,connectors/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{queries/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{src/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{styles/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{layout/**,pages/**,components/**,}",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [
"builtin"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}
37 changes: 37 additions & 0 deletions web-devtools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/.yarn/*
!/.yarn/versions
!/.yarn/plugins
!/.yarn/releases
!/.yarn/sdks
/.pnp.*
node_modules

# Parcel
.parcel-cache
development
build
dist
parcel-bundle-reports

# misc
.eslintcache
.DS_Store
.env
.env.test
.env.testnet
.env.devnet
.env.local
.env.development.local
.env.test.local
.env.production.local

# generated code
src/hooks/contracts/generated.ts
src/graphql
generatedGitInfo.json
generatedNetlifyInfo.json

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
21 changes: 21 additions & 0 deletions web-devtools/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Kleros

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions web-devtools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dev Tools Frontend

In construction
14 changes: 14 additions & 0 deletions web-devtools/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Yarn 3 cache does not work out of the box as of Jan 2022. Context:
## https://github.com/netlify/build/issues/1535#issuecomment-1021947989
[build.environment]
NETLIFY_USE_YARN = "true"
NETLIFY_YARN_WORKSPACES = "true"
YARN_ENABLE_GLOBAL_CACHE = "true"
# YARN_CACHE_FOLDER = "$HOME/.yarn_cache"
# YARN_VERSION = "3.2.0"

[functions]
directory = "web-devtools/netlify/functions/"

[dev]
framework = "nextjs"
26 changes: 26 additions & 0 deletions web-devtools/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "@kleros/kleros-v2-web-devtools",
"version": "0.1.0",
"source": "src/index.html",
"browserslist": "> 0.5%, not dead",
"repository": "",
"author": "",
"license": "MIT",
"packageManager": "yarn@4.0.2+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186",
"volta": {
"node": "20.11.0"
},
"scripts": {
"hi": "echo hello world"
},
"prettier": "@kleros/kleros-v2-prettier-config",
"devDependencies": {
"typescript": "^5.3.3"
},
"dependencies": {
"@kleros/kleros-sdk": "workspace:^",
"@kleros/ui-components-library": "^2.10.0",
"viem": "^1.21.4",
"wagmi": "^1.4.13"
}
}
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6616,6 +6616,18 @@ __metadata:
languageName: unknown
linkType: soft

"@kleros/kleros-v2-web-devtools@workspace:web-devtools":
version: 0.0.0-use.local
resolution: "@kleros/kleros-v2-web-devtools@workspace:web-devtools"
dependencies:
"@kleros/kleros-sdk": "workspace:^"
"@kleros/ui-components-library": "npm:^2.10.0"
typescript: "npm:^5.3.3"
viem: "npm:^1.21.4"
wagmi: "npm:^1.4.13"
languageName: unknown
linkType: soft

"@kleros/kleros-v2-web@workspace:web":
version: 0.0.0-use.local
resolution: "@kleros/kleros-v2-web@workspace:web"
Expand Down
Loading