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

New Onboarding UI #545

Open
wants to merge 371 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
371 commits
Select commit Hold shift + click to select a range
49e5e7a
check image and video format
bilinkis Apr 4, 2022
28bb363
bugfix for 404 page
bilinkis Apr 4, 2022
9d81861
improved format checking for file dragger
bilinkis Apr 4, 2022
e4028ba
Moved profile/new place. Fixed translation issue. Changed links. Chan…
mmiguerodriguez Apr 5, 2022
28357f7
merged changes and solved recording issues on iOS
bilinkis Apr 6, 2022
8d65eef
Small fixes on image tab
mmiguerodriguez Apr 6, 2022
5d26da9
big design improvements
bilinkis Apr 6, 2022
19a468b
more design improvements
bilinkis Apr 6, 2022
9f46a29
Design changes to submit profile, added helper button to scroll faste…
mmiguerodriguez Apr 7, 2022
06a273d
design tweaks
bilinkis Apr 7, 2022
79922fd
fixed width and height to percentages for rules list
bilinkis Apr 7, 2022
be93e29
design tweaks
bilinkis Apr 7, 2022
d032d02
using router.push to redirect to profile
bilinkis Apr 7, 2022
414698e
load ffmpeg more efficiently
bilinkis Apr 7, 2022
c45d5a7
router using withRouter
bilinkis Apr 7, 2022
5284616
duration and size checks for video file
bilinkis Apr 7, 2022
36a3beb
Added translation strings to new submit profile
mmiguerodriguez Apr 8, 2022
66c17b3
first HIP 41 implementation with translations
bilinkis Apr 8, 2022
374f51e
first HIP 41 implementation with translations on user profile
bilinkis Apr 8, 2022
203d4e0
upload file hidden for verbal confirmation
bilinkis Apr 8, 2022
68c5c7d
Small error fixes and width changes to cards
mmiguerodriguez Apr 9, 2022
24b983c
Fixed profile form async methods, changed steps design to horizontal,…
mmiguerodriguez Apr 9, 2022
5c3c5bf
deposit to radio button and some more fixes
bilinkis Apr 9, 2022
86fdddd
Changed image and video method of handling errors when sanitizing
mmiguerodriguez Apr 13, 2022
ca36655
small changes and sanitizer branch merge
bilinkis Apr 13, 2022
608a1cc
fixes for language phrase selection
bilinkis Apr 13, 2022
61a92ea
image resizing to optimize size
bilinkis Apr 13, 2022
1492144
better buttons grid and fullscreen
bilinkis Apr 14, 2022
7079c83
phrase fixes
bilinkis Apr 14, 2022
51e369a
added helper buttons again
bilinkis Apr 14, 2022
213beef
bug fixes
bilinkis Apr 15, 2022
0abbcda
Fixed error message on WalletConnect submit
mmiguerodriguez Apr 15, 2022
0b4f794
dimensions and black bars checks done
bilinkis Apr 15, 2022
2beb244
scroll to top on next
bilinkis Apr 15, 2022
f6dc18d
progress bar time improved
bilinkis Apr 15, 2022
09fc5f9
progress bar masterpiece
bilinkis Apr 15, 2022
55d090d
fixed deposit being null on mobile
bilinkis Apr 16, 2022
faeec01
props working for new profile
bilinkis Apr 16, 2022
f9c3983
set name for reapply or removed profiles
bilinkis Apr 16, 2022
147389a
handle reapply cases
bilinkis Apr 16, 2022
c5acb6b
added url to logo on header
bilinkis Apr 16, 2022
bd5c01f
added deposit info alert
bilinkis Apr 16, 2022
61b204e
get rules URL
bilinkis Apr 16, 2022
5ee6844
Changed /profile/new to /submit, renamed and commented various consol…
mmiguerodriguez Apr 17, 2022
3430471
Small fix on initial tab
mmiguerodriguez Apr 17, 2022
4ad0059
Added feature to cancel ffmpeg video parsing with exit()
mmiguerodriguez Apr 17, 2022
1f86d87
translations to spanish and portuguese
bilinkis Apr 18, 2022
69a5b3e
design fixes and translations
bilinkis Apr 18, 2022
b0816ed
fix: eslint fixes for all files
bilinkis Apr 18, 2022
50289ac
fix: translations in portuguese corrections
bilinkis Apr 18, 2022
760872f
feat: check previous requests
bilinkis Apr 18, 2022
6beb08c
feat: check previous requests
bilinkis Apr 19, 2022
fa5e4f4
fix: eslint fixes
bilinkis Apr 19, 2022
9970fa3
Added submit redirect corretly with a loader
mmiguerodriguez Apr 19, 2022
b1e958b
fix: wrong comparison with previous requests size
mmiguerodriguez Apr 19, 2022
1c83a97
Merge branch 'submit-redirect' into new-form
mmiguerodriguez Apr 19, 2022
ab26ee7
fix: issue with non registered profiles when submit
mmiguerodriguez Apr 19, 2022
6e264a8
fix: added head and checks for loading
bilinkis Apr 19, 2022
61745d9
feat: changed info on UI for reapply cases
bilinkis Apr 19, 2022
7e0debc
feat: better permissions handling for the camera
bilinkis Apr 19, 2022
f6a2ba6
fix: camera permission errors solved
bilinkis Apr 19, 2022
4f8c304
fix: deposit calculation and added curly settings
bilinkis Apr 19, 2022
5afc41a
feat: in-tab camera permissions handling
bilinkis Apr 20, 2022
0c49c67
feat: added spa and pt translation for usermediaerrors
bilinkis Apr 20, 2022
05d0893
style: changes and fixes to header/drawer/evidence/search, removed co…
mmiguerodriguez Apr 20, 2022
ec746c2
Merge branch 'new-form' of github.com:bilinkis/proof-of-humanity-web …
mmiguerodriguez Apr 20, 2022
e04c3dc
style: flag images change
mmiguerodriguez Apr 21, 2022
dd4e1af
fix: fixed evidence files using the first element instead of last (wi…
mmiguerodriguez Apr 21, 2022
9c1a033
feat: added chinese translations
bilinkis Apr 21, 2022
9cf4c19
Merge branch 'new-form' of github.com:bilinkis/proof-of-humanity-web …
bilinkis Apr 21, 2022
c9bed57
fix: upload dragger styling and italian translations v1
bilinkis Apr 22, 2022
83e7b48
fix: upload dragger styling and italian translations v1
bilinkis Apr 22, 2022
0205427
fix: display block for webcam output
bilinkis Apr 22, 2022
f6484e6
fix: increased overlay transparency
bilinkis Apr 22, 2022
76c3621
feat: prettier 404 with translations
bilinkis Apr 22, 2022
b80acf8
fix: reapply error message with translations
bilinkis Apr 22, 2022
d334e9b
fix: changed rules list design and alignments
bilinkis Apr 22, 2022
3bab858
fix: changed radio button styling and removed spaces
bilinkis Apr 22, 2022
45cc1b2
fix: corrected portuguese translations
bilinkis Apr 28, 2022
0daba4b
Merge branch 'master' of https://github.com/Proof-of-Humanity/proof-o…
bilinkis Apr 28, 2022
017bbdd
feat: better design for previous requests
bilinkis Apr 29, 2022
4ce20e9
feat: refactored media errors into a component
bilinkis Apr 29, 2022
38a5dc2
feat: refactored media errors into a component
bilinkis Apr 29, 2022
f3dffaa
fix: corrected italian translations
bilinkis Apr 29, 2022
72633f4
feat: removed helper buttons for stable version
bilinkis May 4, 2022
2dca71f
fix: corrected name checking for reapplying profiles
bilinkis May 4, 2022
a6b2ac7
fix: removed media server from env example
bilinkis May 4, 2022
69aad27
feat: added iOS check on registration process
bilinkis May 10, 2022
3869c23
feat: reordered video recording buttons
bilinkis May 10, 2022
cd20b94
feat: added video result title
bilinkis May 11, 2022
199375f
fix: minor bug fixes
bilinkis May 11, 2022
12910e4
feat: added translations to status inside profile
bilinkis May 13, 2022
41eb39f
fix: corrected 404 image path
bilinkis May 13, 2022
83969e4
fix: pt translations
mmiguerodriguez May 14, 2022
078f927
Merge branch 'master' of github.com:bilinkis/proof-of-humanity-web
mmiguerodriguez May 14, 2022
0e43ec3
fix: corrected removal request evidence file types
bilinkis May 18, 2022
63ffb9f
Merge branch 'master' of github.com:bilinkis/proof-of-humanity-web
bilinkis May 18, 2022
6b13a2a
feat: allow changing between cameras
bilinkis May 18, 2022
eb3650c
fix: removed unnecesary code for camera switch feature
bilinkis May 18, 2022
59d6571
feat: global webcam selection
bilinkis May 19, 2022
4b0f89b
feat: first custom ffmpeg implementation
bilinkis May 19, 2022
394bd2e
fix: subtle changes for ios recording
bilinkis May 19, 2022
ac2b6c0
feat: ios recording and transcoding working 🚀
bilinkis May 19, 2022
e07a141
fix: fixed some minor issues with video processing
bilinkis May 19, 2022
f809eb2
fix: camera switch working again
bilinkis May 19, 2022
063c76c
fix: corrected mimetype for iOS
bilinkis May 19, 2022
60afea8
fix: design corrections for finalize tab
bilinkis May 26, 2022
8e7c995
fix: improved grid alignment for image rules list
bilinkis May 26, 2022
e4b56f7
fix: added dependency for ffmpeg to avoid depcheck errors
bilinkis May 26, 2022
2500227
Merge branch 'master' of github.com:bilinkis/proof-of-humanity-web
bilinkis May 26, 2022
f1c915f
fix: npm audit to fix vulnerabilities
bilinkis May 26, 2022
71158f0
fix: npm audit to fix vulnerabilities
bilinkis May 26, 2022
beaeaeb
fix: npm audit to fix vulnerabilities
bilinkis May 26, 2022
7511be1
fix: finalize tab registration rules text, translation fix, added con…
mmiguerodriguez May 27, 2022
87e0519
feat: added discord to social icons
bilinkis Jun 3, 2022
d4480e5
Merge branch 'master' of github.com:bilinkis/proof-of-humanity-web
bilinkis Jun 3, 2022
2daff22
Merge branch 'master' of github.com:Proof-Of-Humanity/proof-of-humani…
bilinkis Jun 6, 2022
2784216
feat: improved check video message on the UI
bilinkis Jun 13, 2022
e3ae29f
Merge branch 'Proof-Of-Humanity:master' into bilinkis:master
bilinkis Jun 18, 2022
cd1905b
feat: improved rules display flow
bilinkis Jun 23, 2022
6da48d7
fix: changed snapshot target to blank
bilinkis Jun 23, 2022
8fa94e0
feat: added tooltips for rules
bilinkis Jun 24, 2022
9c45f84
feat: added tooltip translations for rules
bilinkis Jun 24, 2022
bfd42a6
feat: added french translations
bilinkis Jul 1, 2022
0a0d9d4
fix: changed phrase translation to comply with the current rules
bilinkis Jul 1, 2022
7eeae5c
fix: minor bug with verbal confirmation phrase
bilinkis Jul 1, 2022
ade149c
fix: corrected video uploading multiple times with no changes
bilinkis Jul 2, 2022
5cc0b13
fix: corrected image uploading multiple times with no changes
bilinkis Jul 2, 2022
cfddaaf
feat: make background white
AndreiMVP Jul 8, 2022
896b9b4
feat: improved header actions design
AndreiMVP Jul 8, 2022
bdfb9b7
feat: improved navbar on mobile
AndreiMVP Jul 8, 2022
bee6d5c
fix: removed unnecesary code for image cropping
bilinkis Jul 8, 2022
6a03745
Merge branch 'master' of github.com:bilinkis/proof-of-humanity-web
bilinkis Jul 8, 2022
7744b03
fix: attempt to fix recording on iPad devices
bilinkis Jul 12, 2022
ac1e41a
fix: different option to fix recording on iPad
bilinkis Jul 13, 2022
88234ef
fix: video recording fixed in iPad and Mac
bilinkis Jul 18, 2022
95a796b
fix: improved mimetype choosing
bilinkis Jul 18, 2022
f80bd9e
Merge pull request #1 from AndreiMVP/feat/small-changes
bilinkis Jul 20, 2022
2e7a004
Merge branch 'ipad-fix'
bilinkis Jul 20, 2022
8b9cf24
fix: improved rules flow
bilinkis Jul 20, 2022
4ae8ab7
fix: added instructions for video visual method
bilinkis Jul 20, 2022
cb81506
feat: fund any amount for crowdfund
bilinkis Jul 20, 2022
be88f08
fix: changed tweet content
bilinkis Jul 20, 2022
930fe0d
fix: changed tweet content
bilinkis Jul 20, 2022
912c850
fix: corrected typo for chinese language dropdown
bilinkis Jul 23, 2022
06ef909
fix: corrected issue with phrase generation
bilinkis Jul 23, 2022
79689c3
fix: improvement to video check pre vouch
bilinkis Jul 24, 2022
042248f
fix: not allowed to vouch after playing video
mmiguerodriguez Jul 26, 2022
f213387
fix: changed vouch info text color to red
bilinkis Jul 27, 2022
48eb075
fix: mistake in main phrase translation
bilinkis Jul 31, 2022
9fba8ca
fix: name undefined state
mmiguerodriguez Jul 31, 2022
28b2062
fix: profile loading issue
bilinkis Aug 5, 2022
04edb88
fix: problem with name render in some profiles
bilinkis Aug 21, 2022
1001663
point links towards dao infra
santisiri Aug 23, 2022
1354dfc
feat: point towards dao website
santisiri Aug 25, 2022
f95a209
feat: use ubi poh logos
santisiri Aug 29, 2022
2583d5d
feat: replace links with dao ones
santisiri Aug 29, 2022
3926e2e
Merge pull request #2 from OpenProofOfHumanity/dao
bilinkis Aug 29, 2022
bbb6ba2
feat: dark mode
santisiri Sep 24, 2022
7158095
feat: dao links
santisiri Sep 24, 2022
5e3fde1
feat: accordeon button ocean color
santisiri Sep 24, 2022
d30d4fd
feat: ethermail
santisiri Sep 25, 2022
a431006
feat: rounded panels
santisiri Sep 25, 2022
72a0fb9
fix: nicer logo
santisiri Sep 25, 2022
0202fa8
feat: better icons
santisiri Sep 25, 2022
8440a0d
fix: ubi logo
santisiri Sep 25, 2022
4b9b60f
fix: icon display
santisiri Sep 25, 2022
69dc5c3
fix: header button design
santisiri Sep 25, 2022
4443bae
fix: softer is better
santisiri Sep 25, 2022
9ec064f
fix: button arrangement adapts to mobile
santisiri Sep 25, 2022
8487dba
feat: wizard edit
santisiri Sep 25, 2022
745926c
feat: texts need more emojis
santisiri Sep 26, 2022
ebd64b4
fix: translation
santisiri Nov 17, 2022
83d9ac6
fix: tweaks in ui for profile upload
santisiri Nov 17, 2022
3be6290
fix: tooltip colors
santisiri Nov 18, 2022
7d5fe97
fix: camera controls
santisiri Nov 18, 2022
b9175d6
fix: video uploader tool
santisiri Nov 18, 2022
5114fa1
Merge pull request #4 from OpenProofOfHumanity/style
santisiri Nov 18, 2022
32f6010
fix: new api key
bilinkis Nov 18, 2022
8f951b3
fix: new api key fix
bilinkis Nov 18, 2022
e206c14
fix: corrected api keys
bilinkis Nov 18, 2022
378e9a4
fix: new logo
santisiri Nov 19, 2022
e35d6fd
Merge pull request #5 from OpenProofOfHumanity/style
santisiri Nov 19, 2022
c462ae2
fix: merged latest changes from master
bilinkis Nov 19, 2022
8579239
fix: white text on finalize tab on the upload wizard
santisiri Nov 21, 2022
36ea6d7
Merge pull request #6 from OpenProofOfHumanity/style
santisiri Nov 21, 2022
0a33274
fix: adding margin to evidence header
santisiri Nov 21, 2022
d751a20
Merge pull request #7 from OpenProofOfHumanity/style
santisiri Nov 21, 2022
3d7f2a2
fix: inversed colors of icons that were using black
santisiri Nov 21, 2022
e0bd945
fix: temporarily removed ethermail integration until they deploy
santisiri Nov 21, 2022
5319bd7
Merge pull request #8 from OpenProofOfHumanity/style
santisiri Nov 21, 2022
632e78a
fix: header url width
bilinkis Nov 21, 2022
41268bd
Merge pull request #3 from OpenProofOfHumanity/master
bilinkis Nov 21, 2022
847f152
fix: changed texts color to white
bilinkis Nov 21, 2022
65bcfdc
fix: fix name not added to evidence file
bilinkis Nov 23, 2022
a35baf9
feat: added goerli support
bilinkis Nov 23, 2022
3436c9f
feat: changed to real tx batcher address
bilinkis Nov 24, 2022
ae4e83a
feat: removed support for deprecated kovan network
bilinkis Nov 24, 2022
20129bf
fix: added descentralized subgraph back
bilinkis Nov 24, 2022
74e2a01
Update french translation.json
donpipocho Nov 25, 2022
42260da
fix: changed goerli contract address
bilinkis Nov 27, 2022
13f4527
Update translation.json
donpipocho Nov 28, 2022
548e552
Merge pull request #9 from donpipocho/patch-1
santisiri Nov 28, 2022
d26905b
Merge pull request #6 from OpenProofOfHumanity/master
bilinkis Nov 28, 2022
f316b82
fix: changed subgraph endpoint
bilinkis Dec 11, 2022
940b151
fix: smaller bio in submission cards
santisiri Jan 5, 2023
f4f9d19
feat: color code for registration status
santisiri Jan 5, 2023
de5722f
fix: remove eslint rule for 0 pixel values
santisiri Jan 5, 2023
d34e7f6
feat: highlights hover in cards
santisiri Jan 5, 2023
44450e7
fix: connects to .eth landing
santisiri Jan 5, 2023
074a6f3
feat: improved the filter menu and gained screen space
santisiri Jan 5, 2023
03f6e44
fix: tweak to dropdown menu
santisiri Jan 6, 2023
78498d9
Merge pull request #10 from OpenProofOfHumanity/v2
santisiri Jan 6, 2023
51b9991
fix: portuguese json file
santisiri Jan 6, 2023
bb1a1f2
fix: improved filter dropdown ui
santisiri Jan 6, 2023
f98caa3
Merge pull request #11 from OpenProofOfHumanity/v2
santisiri Jan 6, 2023
516591e
Merge pull request #7 from OpenProofOfHumanity/master
mmiguerodriguez Jan 7, 2023
134a6d6
fix: less obstrusive navigation bar
santisiri Jan 8, 2023
d6eab5f
fix: nicer poh logo on display
santisiri Jan 9, 2023
cc7cc1a
feat: redesign of top navigation menu
santisiri Jan 10, 2023
e30ba93
fix: header buttons change style according to context
santisiri Jan 10, 2023
7098d5e
fix: limit the max width of the app for legibility
santisiri Jan 10, 2023
4809d2f
fix: connect main logo to landing
santisiri Jan 10, 2023
a3a8594
feat: better footer ready to show poh dapps
santisiri Jan 10, 2023
4429f1c
Merge pull request #12 from OpenProofOfHumanity/navigation
santisiri Jan 10, 2023
b4e1889
Merge pull request #13 from bilinkis/master
santisiri Jan 10, 2023
b665cf3
feat: join our dao link on footer
santisiri Jan 11, 2023
6575832
fix: dropdown buttons adapted to new design
santisiri Jan 12, 2023
7056f6e
fix: length of french wording
santisiri Jan 12, 2023
77ae40a
fix: hides chain settings menu if not connected
santisiri Jan 12, 2023
7629346
fix: basic new layout of new header menu completed
santisiri Jan 12, 2023
ea8f1bb
Merge pull request #14 from OpenProofOfHumanity/navigation
santisiri Jan 12, 2023
7ce68c2
fix: adapted header menu dropdowns to general style
santisiri Jan 13, 2023
758c9eb
feat: connected address displayed on header menu
santisiri Jan 16, 2023
f8d023f
fix: basic redesign of wallet menu
santisiri Jan 16, 2023
bd84bfb
fix: redesign of account popup finished
santisiri Jan 16, 2023
32e69b8
fix: avoids showing nan on human count
santisiri Jan 16, 2023
4461d3e
Merge pull request #15 from OpenProofOfHumanity/navigation
santisiri Jan 16, 2023
c4631c5
fix: adaptive navigation header menu
santisiri Jan 18, 2023
037289b
feat: improved drawer menu for mobile devices
santisiri Jan 19, 2023
00d6e8c
fix: larger filter dropdown to fit all screen sizes
santisiri Jan 19, 2023
ad22c9d
Merge pull request #16 from OpenProofOfHumanity/navigation
santisiri Jan 19, 2023
8364ffb
fix: removed commented lines
santisiri Jan 21, 2023
3b54827
Merge pull request #17 from OpenProofOfHumanity/navigation
santisiri Jan 21, 2023
8d2fc87
Merge New Navigation Bar on Header Menu & Drawer Menu for Mobile (#8)
santisiri Jan 21, 2023
f44cb91
fix: temporary fix for building
bilinkis Feb 13, 2023
ee2361c
Merge branch 'master' of github.com:OpenProofOfHumanity/proof-of-huma…
bilinkis Mar 30, 2023
00a53cd
fix: users couldn't access the reapply form
bilinkis Mar 30, 2023
6ad04cc
Merge pull request #18 from bilinkis/fix-reapply
santisiri Apr 13, 2023
f78e727
Merge pull request #9 from OpenProofOfHumanity/master
bilinkis Jun 7, 2023
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
25 changes: 14 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ module.exports = {
rules: {
// Core
"arrow-body-style": "error", // Don't use unnecessary curly braces for arrow functions.
"new-cap": "error", // Require constructor names to begin with a capital letter.
"new-cap": 0, // Require constructor names to begin with a capital letter.
"new-parens": "error",
"no-array-constructor": "error",
"no-console": "error",
"no-console": ["error", { allow: ["error"] }],
"no-duplicate-imports": ["error", { includeExports: true }],
"no-else-return": ["error", { allowElseIf: false }],
"no-extra-bind": "error",
Expand All @@ -60,7 +60,8 @@ module.exports = {
"no-shadow": "error",
"no-unneeded-ternary": ["error", { defaultAssignment: false }],
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
Expand All @@ -79,7 +80,7 @@ module.exports = {
"prefer-template": "error",
"require-await": "error",
"spaced-comment": "error",
curly: ["error", "multi"], // Don't use unnecessary curly braces.
curly: "error", // Don't use unnecessary curly braces.
eqeqeq: "error",
// Force the use of aliases for aliased modules.
"no-restricted-imports": [
Expand All @@ -88,7 +89,6 @@ module.exports = {
patterns: [
"**/components",
"!@kleros/components",
"**/icons",
"!@kleros/icons",
"..", // No relative parent imports.
"theme-ui", // This should be internal to the design system.
Expand Down Expand Up @@ -119,6 +119,7 @@ module.exports = {
"components/index.js",
"components/.storybook/**",
"components/*.stories.{js,mdx}",
"i18n",
],
},
],
Expand All @@ -130,7 +131,10 @@ module.exports = {
"next/*",
"_pages/**",
"assets/**",
"i18n/**",
"lib/**",
"public/**",
"timeago.js/**",
"subgraph/**",
"react-player/lazy",
"@storybook/addon-docs/blocks",
Expand Down Expand Up @@ -249,7 +253,6 @@ module.exports = {
"dfn",
"dialog",
"dir",
"div",
"dl",
"dt",
"em",
Expand All @@ -272,7 +275,6 @@ module.exports = {
"header",
"hr",
"html",
"i",
"iframe",
"img",
"input",
Expand Down Expand Up @@ -355,8 +357,6 @@ module.exports = {
"error",
[
'import.*(/|\\.)";', // Don't use trailing slashes or cyclic index imports.
'"\\d+"', // Don't use numerical strings.
"[^\\d]0p[x]", // Don't use pixels unit for zero values.
"(?=.*[A-F])#[0-9a-fA-F]{1,6}", // Don't use upper case letters in hex colors.
"@js[x]", // Don't use a custom JSX pragma.
"Style[d]", // Don't use "styled" components.
Expand All @@ -383,9 +383,12 @@ module.exports = {
["@kleros/components", "./components"],
["@kleros/icons", "./icons"],
["_pages", "./_pages"],
["pages", "./pages"],
["assets", "./assets"],
["data", "./data"],
["i18n", "./i18n"],
["lib", "./lib"],
["public", "./public"],
["subgraph", "./subgraph"],
],
},
Expand All @@ -402,7 +405,6 @@ module.exports = {
{
patterns: [
"@kleros/components",
"**/icons",
"!@kleros/icons",
"..", // No relative parent imports.
],
Expand All @@ -419,7 +421,6 @@ module.exports = {
patterns: [
"**/components",
"!@kleros/components",
"@kleros/icons",
"..", // No relative parent imports.
"theme-ui", // This should be internal to the design system.
"next/link", // Use the custom version that maintains query parameters instead.
Expand All @@ -432,6 +433,7 @@ module.exports = {
{
files: [
"./*.js",
"./*.json",
"scripts/**.js",
"subgraph/**.js",
"components/.storybook/main.js",
Expand Down Expand Up @@ -470,6 +472,7 @@ module.exports = {

"plugin:@typescript-eslint/recommended",
// MDX Plugin
"plugin:import/typescript",
],
plugins: ["@typescript-eslint"],
},
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
/assets/seed-submissions/

.env
.vercel
.vercel
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Proof of Humanity Dapp

This is the Proof of Humanity web app you will find at [https://app.proofofhumanity.id](https://app.proofofhumanity.id).
This is the Proof of Humanity web app maintained by the DAO that you will find at [https://proofofhumanity.org](https://proofofhumanity.org).

## Contributing

Please see [CONTRIBUTING.md](./CONTRIBUTING.md).

## Priority
You can see which issues are a priority and help prioritize those using [tokenlog](https://tokenlog.xyz/proof-of-humanity/proof-of-humanity-web).
8 changes: 5 additions & 3 deletions _pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ function getSubmissionCounter(
nSubmissions,
props
) {
if (searchFilter) return nSubmissions;
if (searchFilter) {
return nSubmissions;
}
switch (statusFilter) {
case "vouching":
return props?.counter?.vouchingPhase || 0;
Expand Down Expand Up @@ -70,13 +72,13 @@ export default function Index() {
return (
<>
<Head>
<title>Proof of Humanity</title>
<title>Proof of Humanity — Open & Democratic</title>
</Head>
<SubmissionFilters
numberOfSubmissions={submissionCounter}
submissionDuration={submissionDuration}
/>
<Grid sx={{ minHeight: 750 }} gap={2} columns={[1, 2, 3, 4]} rows={2}>
<Grid sx={{ minHeight: 652 }} gap={2} columns={[1, 2, 3, 4]} rows={2}>
{submissions?.map((submission) => (
<SubmissionCard
key={submission.id}
Expand Down
79 changes: 63 additions & 16 deletions _pages/index/submission-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Card, Image, NextLink, Text, useContract } from "@kleros/components";
import { useTranslation } from "react-i18next";
import { graphql, useFragment } from "relay-hooks";

import { submissionStatusEnum, useEvidenceFile } from "data";
Expand Down Expand Up @@ -26,7 +27,34 @@ const submissionCardFragments = {
`,
};

function statusColorCode(key) {
let color = "#fff";

switch (key) {
case "PendingRegistration":
case "PendingRemoval":
color = "#fbb630";
break;
case "Vouching":
color = "#ff81b7";
break;
case "ChallengedRegistration":
case "ChallengedRemoval":
case "Expired":
color = "#ff006d";
break;
case "Registered":
color = "#91ff81";
break;
default:
}

return `0px -1px 0px ${color}`;
}

export default function SubmissionCard({ submission }) {
const { t } = useTranslation();

const {
submissionTime,
requests: [request],
Expand All @@ -38,6 +66,7 @@ export default function SubmissionCard({ submission }) {
"proofOfHumanity",
"submissionDuration"
);

const status = submissionStatusEnum.parse({
...rest,
submissionTime,
Expand All @@ -48,29 +77,50 @@ export default function SubmissionCard({ submission }) {
status === submissionStatusEnum.Registered &&
Date.now() / 1000 - submissionTime > submissionDuration;
const evidence = useEvidenceFile()(request.evidence[0].URI);

return (
<NextLink href="/profile/[id]" as={`/profile/${id}`}>
<Card
as="a"
sx={{ height: 367, color: "text" }}
sx={{
height: 326,
color: "text",
boxShadow: statusColorCode(status.key),
}}
css={{ textDecoration: "none" }}
className="poh-nft"
header={
<>
<status.Icon
<Image
src="/images/eth.svg"
crossOrigin="anonymous"
alt={t(`chain_Mainnet`)}
sx={{
stroke: status.camelCase,
path: { fill: status.camelCase },
objectFit: "contain",
height: "20px",
}}
/>
<Text>
{status.startCase}
{isExpired && " (Expired)"}
<Text
sx={{
fontSize: "13px",
}}
>
{t(`profile_status_${status.key}`)}
{isExpired && ` (${t("profile_status_Expired")})`}
</Text>
</>
}
mainSx={{ flexDirection: "column" }}
>
<Image variant="avatar" src={evidence?.file?.photo} />
<Image
crossOrigin="anonymous"
variant="avatar"
src={evidence?.file?.photo}
sx={{
marginTop: "-10px",
marginBottom: "10px",
}}
/>
<Text
sx={{
fontSize: 1,
Expand All @@ -79,18 +129,15 @@ export default function SubmissionCard({ submission }) {
overflowWrap: "anywhere",
}}
>
{evidence instanceof Error
? "We are doing some maintenance work and will be online again soon."
: evidence?.file?.name &&
(name.replaceAll(/[^\s\w]/g, "") ===
evidence.file.name.replaceAll(/[^\s\w]/g, "")
? evidence.file.name
: "We are doing some maintenance work and will be online again soon.")}
{name}
</Text>
<Text
variant="multiClipped"
sx={{
height: 52,
opacity: 0.66,
lineHeight: "18px",
height: 36,
fontSize: "12px",
textAlign: "center",
wordBreak: "break-word",
}}
Expand Down
Loading