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

Delegatee registration form #51

Merged
merged 24 commits into from
Oct 3, 2024
Merged

Conversation

shazarre
Copy link
Contributor

@shazarre shazarre commented Sep 19, 2024

  • introduce better types for responses/requests
  • move validation code to a separate file/function
  • backend validation
  • rephrase message shown to the user upon successful form submission
  • send signature from the client and verify on the backend
  • create github bot + configure the env
  • error handling (ie when creating a PR fails)
  • "website": null, shouldn't be there in the JSON
  • Change CTA text to match the new way of registering, in case someone doesn't want to use their connected wallet address provide instructions for raising a PR (like in original CTA)
  • add a build step to combine separate JSON files with current JSON file (so it can be accessed from the client)
  • add basic test coverage

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
celo-mondo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 3:14pm

@shazarre shazarre changed the title WIP Delegatee registration form Sep 19, 2024
Copy link

socket-security bot commented Oct 2, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@octokit/app@15.1.0 None 0 96.5 kB octokitbot
npm/@octokit/auth-app@7.1.1 None 0 97.2 kB gr2m, kfcampbell, nickfloyd, ...1 more
npm/@octokit/auth-oauth-app@8.1.1 None 0 47.4 kB octokitbot
npm/@octokit/auth-oauth-device@7.1.1 None 0 38.8 kB octokitbot
npm/@octokit/auth-oauth-user@5.1.1 None 0 61.2 kB octokitbot
npm/@octokit/auth-token@5.1.1 None 0 19 kB octokitbot
npm/@octokit/auth-unauthenticated@6.1.0 None 0 23.4 kB octokitbot
npm/@octokit/core@6.1.2 None 0 23 kB octokitbot
npm/@octokit/endpoint@10.1.1 None 0 59.4 kB octokitbot
npm/@octokit/graphql@8.1.1 None 0 28.9 kB octokitbot
npm/@octokit/oauth-app@7.1.3 None 0 146 kB octokitbot
npm/@octokit/oauth-authorization-url@7.1.1 None 0 12.8 kB octokitbot
npm/@octokit/oauth-methods@5.1.2 None 0 96.5 kB octokitbot
npm/@octokit/openapi-types@22.2.0 None 0 4.26 MB octokitbot
npm/@octokit/openapi-webhooks-types@8.3.0 None 0 2.59 MB octokitbot
npm/@octokit/plugin-paginate-graphql@5.2.3 None 0 35.5 kB octokitbot
npm/@octokit/plugin-paginate-rest@11.3.5 None 0 167 kB octokitbot
npm/@octokit/plugin-rest-endpoint-methods@13.2.5 None 0 1.25 MB octokitbot
npm/@octokit/plugin-retry@7.1.2 None 0 15.9 kB octokitbot
npm/@octokit/plugin-throttling@9.3.1 None 0 38.7 kB octokitbot
npm/@octokit/request-error@6.1.5 None 0 6.37 kB octokitbot
npm/@octokit/request@9.1.3 None 0 43.8 kB octokitbot
npm/@octokit/types@13.6.0 None 0 239 kB octokitbot
npm/@octokit/webhooks-methods@5.1.0 None 0 22.9 kB octokitbot
npm/@octokit/webhooks@13.3.0 None 0 157 kB octokitbot
npm/@rollup/rollup-android-arm-eabi@4.24.0 None 0 1.46 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-android-arm64@4.24.0 None 0 2.06 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-darwin-arm64@4.24.0 None 0 2.18 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-darwin-x64@4.24.0 None 0 2.33 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-arm-gnueabihf@4.24.0 None 0 2.22 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-arm-musleabihf@4.24.0 None 0 2.22 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-arm64-gnu@4.24.0 None 0 2.2 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-arm64-musl@4.24.0 None 0 2.12 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-powerpc64le-gnu@4.24.0 None 0 2.76 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-riscv64-gnu@4.24.0 None 0 2.25 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-s390x-gnu@4.24.0 None 0 3.84 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-x64-gnu@4.24.0 None 0 2.46 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-linux-x64-musl@4.24.0 None 0 2.46 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-win32-arm64-msvc@4.24.0 None 0 2.76 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-win32-ia32-msvc@4.24.0 None 0 2.53 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@rollup/rollup-win32-x64-msvc@4.24.0 None 0 3.28 MB guybedford, lukastaegert, rich_harris, ...1 more
npm/@types/aws-lambda@8.10.145 None 0 166 kB types
npm/@types/estree@1.0.6 None 0 25.8 kB types
npm/@vitest/expect@2.1.1 None 0 149 kB vitestbot
npm/@vitest/mocker@2.1.1 None 0 121 kB vitestbot
npm/@vitest/pretty-format@2.1.1 environment 0 45.3 kB vitestbot
npm/@vitest/runner@2.1.1 None 0 87.9 kB vitestbot
npm/@vitest/snapshot@2.1.1 None 0 0 B
npm/@vitest/spy@2.1.1 None 0 19.1 kB vitestbot
npm/@vitest/utils@2.1.1 None 0 153 kB antfu, oreanno, patak, ...1 more
npm/ansi-escapes@6.2.0 environment 0 17.3 kB sindresorhus
npm/assertion-error@2.0.1 None 0 5.83 kB chaijs
npm/before-after-hook@3.0.2 None 0 35.5 kB gr2m
npm/bottleneck@2.19.5 eval 0 629 kB sgrondin
npm/cac@6.7.14 None 0 81.8 kB egoist
npm/chai@5.1.1 None 0 506 kB chaijs
npm/check-error@2.1.1 None 0 11.4 kB chaijs
npm/deep-eql@5.0.2 None 0 23.9 kB chaijs
npm/estree-walker@3.0.3 None 0 17.6 kB rich_harris
npm/get-func-name@2.0.2 None 0 8.68 kB keithamus
npm/loupe@3.1.1 None 0 60.5 kB chaijs
npm/magic-string@0.30.11 None 0 464 kB antfu
npm/octokit@4.0.2 None 0 51.2 kB octokitbot
npm/pathval@2.0.0 None 0 15 kB chaijs
npm/rollup@4.24.0 None 0 2.59 MB eventualbuddha, lukastaegert, rich_harris, ...2 more
npm/siginfo@2.0.0 None 0 4.79 kB emilbayes
npm/stackback@0.0.2 None 0 6.88 kB shtylman
npm/tinybench@2.9.0 None 0 62.9 kB aslemammad
npm/tinyexec@0.3.0 environment, shell 0 45.4 kB 43081j
npm/tinypool@1.0.1 filesystem, shell, unsafe 0 49.9 kB ariperkkio
npm/tinyrainbow@1.2.0 None 0 7.91 kB oreanno
npm/tinyspy@3.0.2 None 0 17.6 kB antfu, aslemammad, oreanno
npm/universal-github-app-jwt@2.2.0 None 0 31.4 kB gr2m
npm/universal-user-agent@7.0.2 None 0 8.14 kB gr2m
npm/vite-node@2.1.1 None 0 202 kB antfu, oreanno, patak, ...1 more
npm/vite@5.4.8 None 0 3.26 MB antfu, patak, soda, ...2 more
npm/vitest@2.1.1 None 0 1.62 MB antfu, oreanno, patak, ...1 more
npm/why-is-node-running@2.3.0 filesystem, unsafe 0 7.3 kB mafintosh

🚮 Removed packages: npm/@ampproject/remapping@2.2.1, npm/@babel/code-frame@7.23.5, npm/@babel/compat-data@7.23.5, npm/@babel/core@7.23.6, npm/@babel/generator@7.23.6, npm/@babel/helper-compilation-targets@7.23.6, npm/@babel/helper-environment-visitor@7.22.20, npm/@babel/helper-function-name@7.23.0, npm/@babel/helper-hoist-variables@7.22.5, npm/@babel/helper-module-imports@7.22.15, npm/@babel/helper-module-transforms@7.23.3, npm/@babel/helper-plugin-utils@7.22.5, npm/@babel/helper-simple-access@7.22.5, npm/@babel/helper-split-export-declaration@7.22.6, npm/@babel/helper-string-parser@7.23.4, npm/@babel/helper-validator-identifier@7.22.20, npm/@babel/helper-validator-option@7.23.5, npm/@babel/helpers@7.23.6, npm/@babel/highlight@7.23.4, npm/@babel/parser@7.23.6, npm/@babel/plugin-syntax-async-generators@7.8.4, npm/@babel/plugin-syntax-bigint@7.8.3, npm/@babel/plugin-syntax-class-properties@7.12.13, npm/@babel/plugin-syntax-import-meta@7.10.4, npm/@babel/plugin-syntax-json-strings@7.8.3, npm/@babel/plugin-syntax-jsx@7.23.3, npm/@babel/plugin-syntax-logical-assignment-operators@7.10.4, npm/@babel/plugin-syntax-nullish-coalescing-operator@7.8.3, npm/@babel/plugin-syntax-numeric-separator@7.10.4, npm/@babel/plugin-syntax-object-rest-spread@7.8.3, npm/@babel/plugin-syntax-optional-catch-binding@7.8.3, npm/@babel/plugin-syntax-optional-chaining@7.8.3, npm/@babel/plugin-syntax-top-level-await@7.14.5, npm/@babel/plugin-syntax-typescript@7.23.3, npm/@babel/template@7.22.15, npm/@babel/traverse@7.23.6, npm/@babel/types@7.23.6, npm/@bcoe/v8-coverage@0.2.3, npm/@istanbuljs/load-nyc-config@1.1.0, npm/@istanbuljs/schema@0.1.3, npm/@jest/console@29.7.0, npm/@jest/core@29.7.0, npm/@jest/environment@29.7.0, npm/@jest/expect-utils@29.7.0, npm/@jest/expect@29.7.0, npm/@jest/fake-timers@29.7.0, npm/@jest/globals@29.7.0, npm/@jest/reporters@29.7.0, npm/@jest/source-map@29.6.3, npm/@jest/test-result@29.7.0, npm/@jest/test-sequencer@29.7.0, npm/@jest/transform@29.7.0, npm/@sinonjs/commons@3.0.0, npm/@sinonjs/fake-timers@10.3.0, npm/@types/babel__core@7.20.5, npm/@types/babel__generator@7.6.7, npm/@types/babel__template@7.4.4, npm/@types/babel__traverse@7.20.4, npm/@types/graceful-fs@4.1.9, npm/@types/jest@29.5.12, npm/@types/stack-utils@2.0.3, npm/ansi-escapes@4.3.2, npm/babel-jest@29.7.0, npm/babel-plugin-istanbul@6.1.1, npm/babel-plugin-jest-hoist@29.6.3, npm/babel-preset-current-node-syntax@1.0.1, npm/babel-preset-jest@29.6.3, npm/bser@2.1.1, npm/buffer-from@1.1.2, npm/char-regex@1.0.2, npm/cjs-module-lexer@1.2.3, npm/co@4.6.0, npm/collect-v8-coverage@1.0.2, npm/convert-source-map@2.0.0, npm/create-jest@29.7.0, npm/detect-newline@3.1.0, npm/diff-sequences@29.6.3, npm/emittery@0.13.1, npm/error-ex@1.3.2, npm/exit@0.1.2, npm/expect@29.7.0, npm/fb-watchman@2.0.2, npm/gensync@1.0.0-beta.2, npm/get-package-type@0.1.0, npm/html-escaper@2.0.2, npm/import-local@3.1.0, npm/is-arrayish@0.2.1, npm/is-generator-fn@2.1.0, npm/istanbul-lib-coverage@3.2.2, npm/istanbul-lib-instrument@6.0.1, npm/istanbul-lib-report@3.0.1, npm/istanbul-lib-source-maps@4.0.1, npm/istanbul-reports@3.1.6, npm/jest-changed-files@29.7.0, npm/jest-circus@29.7.0, npm/jest-cli@29.7.0, npm/jest-config@29.7.0, npm/jest-diff@29.7.0, npm/jest-docblock@29.7.0, npm/jest-each@29.7.0, npm/jest-environment-node@29.7.0, npm/jest-get-type@29.6.3, npm/jest-haste-map@29.7.0, npm/jest-leak-detector@29.7.0, npm/jest-matcher-utils@29.7.0, npm/jest-message-util@29.7.0, npm/jest-mock@29.7.0, npm/jest-pnp-resolver@1.2.3, npm/jest-regex-util@29.6.3, npm/jest-resolve-dependencies@29.7.0, npm/jest-resolve@29.7.0, npm/jest-runner@29.7.0, npm/jest-runtime@29.7.0, npm/jest-snapshot@29.7.0, npm/jest-validate@29.7.0, npm/jest-watcher@29.7.0, npm/jest-worker@29.7.0, npm/jest@29.7.0, npm/jsesc@2.5.2, npm/json-parse-even-better-errors@2.3.1, npm/kleur@3.0.3, npm/leven@3.1.0, npm/make-dir@4.0.0, npm/makeerror@1.0.12, npm/node-int64@0.4.0, npm/parse-json@5.2.0, npm/pkg-dir@4.2.0, npm/pretty-format@29.7.0, npm/prompts@2.4.2, npm/pure-rand@6.0.4, npm/resolve-cwd@3.0.0, npm/resolve.exports@2.0.2, npm/sisteransi@1.0.5, npm/source-map-support@0.5.13, npm/stack-utils@2.0.6, npm/string-length@4.0.2, npm/test-exclude@6.0.0, npm/tmpl@1.0.5, npm/to-fast-properties@2.0.0, npm/type-detect@4.0.8, npm/v8-to-istanbul@9.2.0, npm/walker@1.0.8, npm/write-file-atomic@4.0.2

View full report↗︎

@shazarre shazarre marked this pull request as ready for review October 3, 2024 11:52
@shazarre shazarre requested review from jmrossy and a team as code owners October 3, 2024 11:52
Copy link
Member

@aaronmgdr aaronmgdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beaut

@shazarre shazarre merged commit 042f8f8 into main Oct 3, 2024
10 checks passed
@shazarre shazarre deleted the shazarre/delegatee_registration_form branch October 3, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants