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

Feature/human app frontend #2177

Merged
merged 594 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
594 commits
Select commit Hold shift + click to select a range
34355b2
Removes authorisation from prepare-signature endpoint (#92)
macnablocky May 16, 2024
1576142
feat(app/worker-profile/jobs): handle cell content
KacperKoza343 May 16, 2024
792f9ac
feat(app/worker-profile/jobs): add job selecting
KacperKoza343 May 16, 2024
6939e90
feat(app/worker-profile/jobs): remove redundant spread operator
KacperKoza343 May 16, 2024
851fc63
Merge pull request #81 from blockydevs/HAF-53-add-verification-signat…
MicDebBlocky May 17, 2024
13b5cb8
Merge pull request #89 from blockydevs/HAF-65-typography-fixes-on-mobile
MicDebBlocky May 17, 2024
0ddc79b
feat(app/worker-profile/my-jobs): integrate my jobs table with api
KacperKoza343 May 17, 2024
040d82d
feat(app/worker-profile/jobs): separate common logic to hooks
KacperKoza343 May 17, 2024
e13417d
Merge branch 'HAF-55-connect-my-jobs-table-with-backend-on-worker-pro…
KacperKoza343 May 17, 2024
9354136
feat(app/worker-profile/jobs): fix naming
KacperKoza343 May 17, 2024
1057bbf
Merge branch 'HAF-55-connect-my-jobs-table-with-backend-on-worker-pro…
KacperKoza343 May 17, 2024
1d8a470
feat(app/worker-profile/my-jobs): fix according to review
KacperKoza343 May 17, 2024
8f664f6
Merge pull request #93 from blockydevs/HAF-55-connect-my-jobs-table-w…
MicDebBlocky May 17, 2024
add6b29
save
KacperKoza343 May 17, 2024
8e292ef
Merge branch 'feature/human-app-frontend' into HAF-56-connect-availab…
KacperKoza343 May 17, 2024
b5c9220
feat(app/worker/profile): add synaps KYC verification
KacperKoza343 May 19, 2024
a66370f
feat(app/worker/profile): remove empty file
KacperKoza343 May 19, 2024
fc68fd2
feat(app/worker/profile): remove unused hook
KacperKoza343 May 19, 2024
17dcdb9
feat(app/worker/profile/jobs): refactor according to review
KacperKoza343 May 19, 2024
0dbba70
Merge pull request #94 from blockydevs/HAF-56-connect-available-jobs-…
MicDebBlocky May 20, 2024
80a0b9e
feat(app/operator): prepare operator layout
KacperKoza343 May 20, 2024
992669c
Merge branch 'feature/human-app-frontend' into HAF-58-add-synaps-inte…
KacperKoza343 May 20, 2024
08b4683
Merge pull request #95 from blockydevs/HAF-58-add-synaps-integration-…
MicDebBlocky May 20, 2024
07224d6
feat(app/operator): add preapare siganture for web3 auth
KacperKoza343 May 20, 2024
4febdbf
Merge branch 'feature/human-app-frontend' into feat/operator-web3-signin
KacperKoza343 May 20, 2024
3602965
Merge branch 'feature/human-app-frontend' into feat/operator-web3-signin
KacperKoza343 May 20, 2024
1f5d512
feat(app/operator/profile): update signup flow
KacperKoza343 May 20, 2024
f1d9b5a
fix(app/use-connected-wallet-hook): add initial state handling
KacperKoza343 May 20, 2024
d6bf32e
Merge pull request #96 from blockydevs/feat/operator-web3-signin
MicDebBlocky May 20, 2024
52d4638
Merge pull request #98 from blockydevs/fix/use-connected-wallet-hook
MicDebBlocky May 20, 2024
766a92f
fix(app/worker-profile): fix actions buttons states
KacperKoza343 May 20, 2024
ba61acf
Merge pull request #99 from blockydevs/fix/worker-profile
MicDebBlocky May 20, 2024
16610e8
feat(app/operator/profile): add disable button
KacperKoza343 May 20, 2024
580d5ac
Merge branch 'feature/human-app-frontend' of https://github.com/block…
KacperKoza343 May 20, 2024
1ddf7dd
fix(app/protected-layouts): prevent multi logging
KacperKoza343 May 20, 2024
cd00216
feat(app/operator): disable operator
KacperKoza343 May 20, 2024
f759d31
Merge branch 'fix/prevent-muli-account-logging' into feat/disable-ope…
KacperKoza343 May 21, 2024
2da15c0
feat(app/operator/profile): separate auth providers
KacperKoza343 May 21, 2024
83cd0a8
feat(app/operator/profile): fix logout button
KacperKoza343 May 21, 2024
81e8cef
fix(app): add layout fixes
KacperKoza343 May 21, 2024
700bf58
Merge branch 'feat/disable-operator-button' into demo
KacperKoza343 May 21, 2024
d094a79
feat(app): prepare demo
KacperKoza343 May 21, 2024
9ffb6ac
feat(app): fix table buttons
KacperKoza343 May 21, 2024
7bd6a3b
Merge pull request #103 from blockydevs/fix/layout-v2
MicDebBlocky May 21, 2024
0976d51
feat(app/worker/jobs): add oracles table
KacperKoza343 May 22, 2024
3f8a60b
Merge pull request #2029 from humanprotocol/develop
portuu3 May 22, 2024
cc29e5d
fix(app/auth): use one browser auth provider
KacperKoza343 May 22, 2024
a6c9d35
fix(app/worker/jobs): add oracles table
KacperKoza343 May 22, 2024
dc4e9d9
Merge branch 'demo' into HAF-94-oracles-table
KacperKoza343 May 22, 2024
7c96199
feat(app/worker/jobs-discovery-page: add jobs discovery page
KacperKoza343 May 22, 2024
b673482
reafactor(app/browser-auth-provider): remove useless methods
KacperKoza343 May 22, 2024
7f27775
Merge pull request #2052 from humanprotocol/develop
portuu3 May 22, 2024
e4db5cf
refactor(app/auth): refactor auth provider
KacperKoza343 May 23, 2024
42dd840
Merge pull request #104 from blockydevs/demo
MicDebBlocky May 23, 2024
1ff3769
Merge branch 'feature/human-app-frontend' into HAF-94-oracles-table
KacperKoza343 May 23, 2024
fa695e1
fix(app/worker/profile): refactor according to review
KacperKoza343 May 24, 2024
080848e
Merge pull request #105 from blockydevs/HAF-94-oracles-table
MicDebBlocky May 24, 2024
a81f701
Merge pull request #2061 from humanprotocol/develop
portuu3 May 24, 2024
035e9b1
Merge branch 'humanprotocol:develop' into develop
BartoszSolkaBD May 27, 2024
0ea62d4
HAF-93: Hide cancel button
matevszm May 27, 2024
b045bb2
HAF-92: Change add stake form submit text
matevszm May 27, 2024
7d29496
HAF-89: Style fixes on Setup operator mobile page
matevszm May 27, 2024
b93a78d
HAF-87: Add arrow back to reset page
matevszm May 28, 2024
03c508b
HAF-88: Hide cancel button on password changed page
matevszm May 28, 2024
065b5ed
HAF-85: Change text weight on reset password page
matevszm May 28, 2024
3d998a9
HAF-83: Change worker sign up link styles
matevszm May 29, 2024
7b32e47
HAF-81: Verify email page styles
matevszm May 29, 2024
4805925
HAF-80: Sign up worker styles
matevszm May 29, 2024
eebe718
HAF-79: Sign Up choose accout type styles
matevszm May 29, 2024
d534614
HAF-77: Reset password page styles
matevszm May 29, 2024
a4d01f5
HAF-75: Reset password styles update
matevszm May 29, 2024
85f4169
HAF-74: Sign up form errors
matevszm May 29, 2024
e5a6c61
HAF-73: Sign in validation messages
matevszm May 29, 2024
3f6cbff
remove unused react imports
matevszm May 29, 2024
40fc795
HAF-66: Add captcha to sign worker sign up
matevszm May 29, 2024
eb3198b
feat(app/operator/signin): add operator singin
KacperKoza343 Jun 3, 2024
38149e2
fix(worker/profile/reset-password): fix link to profile
KacperKoza343 Jun 3, 2024
5e592ac
feat(app/operator/signin): handle logged operator
KacperKoza343 Jun 4, 2024
a767a9a
Merge pull request #112 from blockydevs/ui/bug-fixes
MicDebBlocky Jun 4, 2024
bf6e0f3
feat(app/worker/signin): add hcaptacha
KacperKoza343 Jun 4, 2024
0178cce
feat(app/operator/signin): add error handler
KacperKoza343 Jun 4, 2024
5434177
Merge pull request #117 from blockydevs/HAF-8-sign-in-as-operator
MicDebBlocky Jun 4, 2024
9a27c72
Merge pull request #2102 from humanprotocol/develop
portuu3 Jun 4, 2024
2ed2c45
Merge branch 'feature/human-app-frontend' into haf-66
KacperKoza343 Jun 4, 2024
124f01e
Merge pull request #113 from blockydevs/haf-66
MicDebBlocky Jun 4, 2024
0875846
Haf 59 wfb add successful kyc info on chain (#115)
KacperKoza343 Jun 4, 2024
feb8449
feat(app): add wallet connect custom modal
KacperKoza343 Jun 5, 2024
8b031e2
feat(app/worker/profile/hcaptcha-labeling): add labeling page
KacperKoza343 Jun 6, 2024
4331147
feat(app/worker/profile): add text field for connected wallet address
KacperKoza343 Jun 6, 2024
3357302
feat(app/worker/profile/my-jobs): add icons to my-jobs table headers
KacperKoza343 Jun 6, 2024
ca86561
Merge pull request #2104 from humanprotocol/develop
portuu3 Jun 6, 2024
48b991b
feat(app/multi-select): fix and apply new mulit select
KacperKoza343 Jun 6, 2024
41151c2
feat(app/worker/send-email-verification): fix copy and remove resend …
KacperKoza343 Jun 7, 2024
602a663
feat(app/worker/reset-password): add hcaptcha and resend button
KacperKoza343 Jun 7, 2024
8645227
fix(app/layout): fix layout
KacperKoza343 Jun 7, 2024
7faa385
feat(app/worker/email-verification): add verification mutation state
KacperKoza343 Jun 7, 2024
225da56
fix(app/worker/email-verification): add resend email error handling
KacperKoza343 Jun 7, 2024
e1dc711
Merge pull request #118 from blockydevs/HAF-95-modal-z-wallet-connect
MicDebBlocky Jun 10, 2024
f552e65
Merge pull request #120 from blockydevs/HAF-98-input-na-adres-walleta
MicDebBlocky Jun 10, 2024
a0bdf9c
fix(app/worker/profile/jobs): add missing filters and icons
KacperKoza343 Jun 10, 2024
16cd63f
refactor(app/worker/profile/jobs-discovery/table): move react query t…
KacperKoza343 Jun 10, 2024
4b11310
Merge pull request #2120 from humanprotocol/develop
portuu3 Jun 10, 2024
53c485d
Merge pull request #2131 from humanprotocol/develop
portuu3 Jun 11, 2024
784e235
Merge pull request #122 from blockydevs/HAF-96-dodanie-checkboxow-w-s…
MicDebBlocky Jun 14, 2024
73ee992
refactor(app/worker/jobs): improve table headers
KacperKoza343 Jun 14, 2024
d27f6ac
refactor(app/profile/worker/tabel): fix naming
KacperKoza343 Jun 14, 2024
a903838
refactor(app/profile/worker/tabel): remove reduntant headers
KacperKoza343 Jun 14, 2024
32ec6bd
Merge pull request #121 from blockydevs/HAF-97-dodanie-ikonek-do-hede…
MicDebBlocky Jun 14, 2024
75926e8
Merge branch 'feature/human-app-frontend' into fix/email-resend
KacperKoza343 Jun 14, 2024
ef3150f
Merge pull request #124 from blockydevs/fix/email-resend
MicDebBlocky Jun 14, 2024
aa07544
feat(app/worker/hcaptcha-labeling): update hcaptcha labeling
KacperKoza343 Jun 17, 2024
7465531
Merge branch 'feature/human-app-frontend' into HAF-37-wfc-page-h-capt…
KacperKoza343 Jun 17, 2024
b53c822
feat(app/worker/hcaptcha): add servces
KacperKoza343 Jun 17, 2024
e8d77d0
feat(app/worker/hcaptcha): add props
KacperKoza343 Jun 17, 2024
3c2d664
feat(app/worker): update services
KacperKoza343 Jun 17, 2024
7b80491
fix(app): layout
KacperKoza343 Jun 17, 2024
c024f65
feat(app): add json rpc error
KacperKoza343 Jun 17, 2024
1a859a6
feat(app/worker/auth): add updating JWT payload
KacperKoza343 Jun 17, 2024
6e0f4ac
feat(app/worker/auth): update signout
KacperKoza343 Jun 18, 2024
7935402
fix(app/worker): fix register address
KacperKoza343 Jun 18, 2024
501238f
fix(app/layout): add layout fixes
KacperKoza343 Jun 18, 2024
e7fdf86
fix(app/worker/stats): fix user stats details
KacperKoza343 Jun 18, 2024
5739b71
feat(app/worker/labeling): fix stats, labaling page reload and hard r…
KacperKoza343 Jun 19, 2024
a0c2ab8
fix(app/worker/labeling): fix copy
KacperKoza343 Jun 19, 2024
1343836
Merge pull request #129 from blockydevs/feat/json-rpc-error-handler
MicDebBlocky Jun 19, 2024
f30c99c
Merge pull request #130 from blockydevs/feat/add-extending-user-data
MicDebBlocky Jun 19, 2024
e05594f
Merge pull request #132 from blockydevs/fix/layout-v3
MicDebBlocky Jun 19, 2024
6374ecd
Merge pull request #133 from blockydevs/feat/update-labeling
MicDebBlocky Jun 19, 2024
e6c116f
Merge branch 'feature/human-app-frontend' into feat/user-register-add…
KacperKoza343 Jun 19, 2024
90ba3a8
refactor(app/worker/labeling): fix axxroding to review
KacperKoza343 Jun 19, 2024
715bedc
Merge branch 'HAF-37-wfc-page-h-captcha-labeling' of https://github.c…
KacperKoza343 Jun 19, 2024
3c6c697
Merge branch 'HAF-37-wfc-page-h-captcha-labeling' into test-demo
KacperKoza343 Jun 19, 2024
ba8d2a7
Merge branch 'feat/user-register-address-v2' into test-demo
KacperKoza343 Jun 19, 2024
f5ede0d
Merge pull request #131 from blockydevs/feat/user-register-address-v2
MicDebBlocky Jun 19, 2024
28460ae
add demo fixes
KacperKoza343 Jun 19, 2024
94c8169
add demo fixes
KacperKoza343 Jun 19, 2024
3daea03
fix(app): demo updates
KacperKoza343 Jun 20, 2024
b5e5c7a
fix(app/worker/profile): fix profile layout
KacperKoza343 Jun 20, 2024
0d3d59b
Merge pull request #123 from blockydevs/HAF-100-add-hcaptha-do-reset-…
MicDebBlocky Jun 20, 2024
3253125
refactor(app/woreker/profile/labling): refactor according to review
KacperKoza343 Jun 20, 2024
e74b921
Merge pull request #119 from blockydevs/HAF-37-wfc-page-h-captcha-lab…
MicDebBlocky Jun 20, 2024
ffe2679
Merge branch 'feature/human-app-frontend' into test-demo
KacperKoza343 Jun 20, 2024
ca75913
fix(app): fixes after demo
KacperKoza343 Jun 20, 2024
d0a8292
refactor(app): refactor according to review
KacperKoza343 Jun 20, 2024
615a6d3
fix(app/worker/profile/jobs): fix drawer
KacperKoza343 Jun 20, 2024
179358e
4th milestone features (#79)
macnablocky Jun 20, 2024
129edc0
Merge remote-tracking branch 'refs/remotes/upstream/develop' into dev…
macnablocky Jun 20, 2024
83a1b59
fixes after merge
macnablocky Jun 20, 2024
e1f4dbb
feat(app/worker/jobs): add tasks rejecting
KacperKoza343 Jun 21, 2024
a65ef42
Merge branch 'feature/human-app-frontend' into feat/reject-task
KacperKoza343 Jun 21, 2024
889f575
Merge pull request #135 from blockydevs/test-demo
MicDebBlocky Jun 21, 2024
92a0cb5
Merge branch 'feature/human-app-frontend' into fix/table-drawer
KacperKoza343 Jun 21, 2024
32394a6
Merge branch 'feature/human-app-frontend' into feat/reject-task
KacperKoza343 Jun 21, 2024
cce4dfa
Merge pull request #136 from blockydevs/fix/table-drawer
MicDebBlocky Jun 21, 2024
3678aec
feat(app/worker/jobs): add infinite scroll on mobile
KacperKoza343 Jun 21, 2024
41c4d19
fix(app/worker/jobs): fix jobs resigning (#138)
KacperKoza343 Jun 21, 2024
058b647
Merge branch 'feat/reject-task' into fix/connect-drawer-with-api
KacperKoza343 Jun 21, 2024
442d6c1
Merge pull request #137 from blockydevs/feat/reject-task
MicDebBlocky Jun 21, 2024
bd93b17
feat(app/worker/jobs): connect drawer with api
KacperKoza343 Jun 21, 2024
9e19f04
feat(app/worker/jobs): add sorting by escrow address
KacperKoza343 Jun 21, 2024
37260ca
Merge pull request #140 from blockydevs/feat/sort-by-escrow-address
MicDebBlocky Jun 21, 2024
479f188
refactor(app/worker/jobs): fix props naming
KacperKoza343 Jun 21, 2024
70ccdd1
Add TokenRefresh feature in reputation oracle integration (#141)
MWBlocky Jun 21, 2024
8f9d656
fix(app): build
KacperKoza343 Jun 21, 2024
bba5ab8
Merge pull request #142 from blockydevs/fix/build
MicDebBlocky Jun 21, 2024
dc6e734
Merge branch 'feature/human-app-frontend' into fix/connect-drawer-wit…
KacperKoza343 Jun 21, 2024
ea2e313
Merge branch 'feature/human-app-frontend' into fix/connect-drawer-wit…
KacperKoza343 Jun 21, 2024
e446e9a
Merge pull request #139 from blockydevs/fix/connect-drawer-with-api
MicDebBlocky Jun 21, 2024
c461c66
fix(app/auth): fix refresh token flow (#143)
KacperKoza343 Jun 24, 2024
c7be827
fix(app/worker/jobs/filters): update table filters
KacperKoza343 Jun 24, 2024
37bfd49
fix(app): layout fixes
KacperKoza343 Jun 24, 2024
85225b0
Update mapping conventions for pagination and sorting (#144)
MWBlocky Jun 24, 2024
28f8569
update(app/operator/set-up): update setup flow
KacperKoza343 Jun 24, 2024
37a4b0f
fix(app/nav-bar): show navbar buttons only on main page
KacperKoza343 Jun 24, 2024
f5f108b
fix(app/nav-bar): add envs links
KacperKoza343 Jun 24, 2024
c37f56e
feat(app): add refreshing token after requests
KacperKoza343 Jun 24, 2024
31f126d
update(app/worker/sign-up): update signup flow
KacperKoza343 Jun 25, 2024
26cbde7
Merge pull request #146 from blockydevs/fix/top-bar-fix
MicDebBlocky Jun 25, 2024
e571cf8
Merge pull request #148 from blockydevs/fix/qa-bugs-layout
MicDebBlocky Jun 25, 2024
f2e1317
Merge pull request #151 from blockydevs/update/signup-flow
MicDebBlocky Jun 25, 2024
b61e992
Merge pull request #149 from blockydevs/feat/add-refresh-token-to-upd…
MicDebBlocky Jun 25, 2024
1e312b3
fix(app): fix error page and evm address displaying
KacperKoza343 Jun 25, 2024
e7cbd82
fix(app/operator/sign-up): add skip button for existing keys
KacperKoza343 Jun 25, 2024
df66283
feat(app): add chat icon
KacperKoza343 Jun 25, 2024
e36b8ab
feat(app): fix chat icons styles
KacperKoza343 Jun 25, 2024
587be6f
Merge pull request #155 from blockydevs/feat/chat
MicDebBlocky Jun 25, 2024
6b33a54
Merge pull request #153 from blockydevs/fix/qa-bugs-layout-v2
MicDebBlocky Jun 25, 2024
8072ac7
Merge pull request #152 from blockydevs/fix/qa-bugs
MicDebBlocky Jun 25, 2024
2d5e2f6
refactor(app/worker/jobs): refactor filters
KacperKoza343 Jun 25, 2024
cf0c20f
refactor(app/operator/set-up): refactor according to review
KacperKoza343 Jun 25, 2024
a207eaa
Merge branch 'feature/human-app-frontend' into fix/qa-bugs-operator-path
KacperKoza343 Jun 25, 2024
17e3717
Merge pull request #147 from blockydevs/fix/filters
MicDebBlocky Jun 25, 2024
0b088c9
refactor(app/operator/set-up): refactor according to review
KacperKoza343 Jun 25, 2024
ce4bb65
Merge pull request #145 from blockydevs/fix/qa-bugs-operator-path
MicDebBlocky Jun 25, 2024
5dd2333
fix(app/operator/set-up): fix keys forms
KacperKoza343 Jun 25, 2024
f37f299
Merge pull request #156 from blockydevs/fix/KV-store-form
MicDebBlocky Jun 25, 2024
1a58260
fix(app/worker/jobs): oracles table fix
KacperKoza343 Jun 26, 2024
1a9274a
fix(app/operator/set-up): update inputs order
KacperKoza343 Jun 26, 2024
116f054
Merge pull request #157 from blockydevs/fix/oracles-table-filter
MicDebBlocky Jun 26, 2024
5a60e23
Merge pull request #158 from blockydevs/fix/form-inputs-order
MicDebBlocky Jun 26, 2024
4417c02
Merge branch 'develop' of https://github.com/humanprotocol/human-prot…
KacperKoza343 Jun 26, 2024
272c620
Fixes after client review (#150)
macnablocky Jun 26, 2024
537ec9b
Merge branch 'develop' of https://github.com/humanprotocol/human-prot…
KacperKoza343 Jun 26, 2024
101fad1
update server
KacperKoza343 Jun 26, 2024
4ad68fc
update yarn.lock
KacperKoza343 Jun 26, 2024
acd2269
Modifies filtering in oracle discovery to be case insensitive (but wi…
macnablocky Jun 26, 2024
606d325
fix(app/auth): fix getting refersh token
KacperKoza343 Jun 26, 2024
1dd5592
Merge pull request #160 from blockydevs/fix/deactivate-user
MicDebBlocky Jun 26, 2024
2ac1bd1
feat(app/operator/set-up): add url field
KacperKoza343 Jun 26, 2024
cee6695
Merge pull request #161 from blockydevs/feat/add-url-to-kv-store
MicDebBlocky Jun 26, 2024
804d8cc
feat(app/operator/profile): add fetching stats on profile (#162)
KacperKoza343 Jun 26, 2024
c0bf8fe
fix(app/worker/profile): refetch KVStore data after setting address (…
KacperKoza343 Jun 26, 2024
7e66275
Merge remote-tracking branch 'refs/remotes/upstream/develop' into dev…
macnablocky Jun 26, 2024
6f1c568
fix(app): fix chat icon position (#164)
KacperKoza343 Jun 27, 2024
59a2a70
fix(app/woreker/jobs): fix jobs tables
KacperKoza343 Jun 27, 2024
68953ae
Fixes in validators, fixes in parsing Oracle Discovery DTO
macnablocky Jun 27, 2024
bccd55f
Revert "Fixes in validators, fixes in parsing Oracle Discovery DTO"
macnablocky Jun 27, 2024
61ed73e
Validator fixes (#166)
macnablocky Jun 27, 2024
569abee
refactor(app/woreker/jobs): refactor according to review
KacperKoza343 Jun 27, 2024
75e54a5
Merge branch 'develop' of https://github.com/blockydevs/human-protoco…
KacperKoza343 Jun 27, 2024
cd38139
fix(app/worker/jobs): type pagination arguments
KacperKoza343 Jun 27, 2024
17b1621
Merge pull request #165 from blockydevs/fix/tables-fixes
MicDebBlocky Jun 27, 2024
784b18f
Adds optional validator to jobsDiscoveryParamsDto.sort_field (#168)
macnablocky Jun 27, 2024
fe65e89
feat(app/worker/jobs): fix oracles dto and jobs pagination (#169)
KacperKoza343 Jun 27, 2024
3b167d4
docs(app): update readme and .env.example (#170)
KacperKoza343 Jun 27, 2024
6805ab8
Merge branch 'develop' of https://github.com/blockydevs/human-protoco…
KacperKoza343 Jun 28, 2024
3a01c22
Add lock
KacperKoza343 Jul 1, 2024
4ff0a79
Merge branch 'feature/human-app-frontend' of https://github.com/block…
KacperKoza343 Jul 1, 2024
c0539de
Human app maintanance (#178)
macnablocky Jul 2, 2024
652acc5
HAM-16/30/31/32 (#181)
macnablocky Jul 3, 2024
6ce017e
Fixes in resing job (#187)
macnablocky Jul 4, 2024
08f5082
Changes assignment id back from number to string (#190)
macnablocky Jul 5, 2024
4436a37
Changes assignment id back from number to string (#188)
macnablocky Jul 5, 2024
3f183dd
Ham 8 backend implementation (#192)
macnablocky Jul 5, 2024
2249d8b
updates default allowed headers (#199)
macnablocky Jul 5, 2024
916c4a5
Feature/human app frontend 2nd milestone (#200)
KacperKoza343 Jul 8, 2024
8f4ae87
Merge branch 'develop' of https://github.com/blockydevs/human-protoco…
KacperKoza343 Jul 8, 2024
88a4c2e
Merge branch 'feature/human-app-frontend' of https://github.com/block…
KacperKoza343 Jul 8, 2024
661bbb2
Merge https://github.com/humanprotocol/human-protocol into develop
KacperKoza343 Jul 8, 2024
c9ce017
Merge branch 'develop' into feature/human-app-frontend
KacperKoza343 Jul 8, 2024
94b9bc6
revert unwanted changes
KacperKoza343 Jul 8, 2024
5a7b46f
fix(app/worker/profile): fix response validation and enable labeling …
KacperKoza343 Jul 8, 2024
99fe3fc
Ham 49 after password reset user should be logged out (#202)
KacperKoza343 Jul 8, 2024
8d3f1ad
Ham 50 log out user when enters signup page (#204)
KacperKoza343 Jul 8, 2024
ccfeee1
Ham 52 fix help button in worker profile (#205)
KacperKoza343 Jul 8, 2024
b5af430
Fix/help url (#206)
KacperKoza343 Jul 8, 2024
2dec981
fix(app/worker/password): fix cancel button (#207)
KacperKoza343 Jul 9, 2024
da7c2ac
feat(app/operator/profile): update UI according to operator (#208)
KacperKoza343 Jul 11, 2024
1faf61e
feat(app/networks): add deafult mainnet and testnet networks (#209)
KacperKoza343 Jul 11, 2024
109b669
Merge remote-tracking branch 'upstream/develop' into feature/human-ap…
KacperKoza343 Jul 15, 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
64 changes: 64 additions & 0 deletions packages/apps/human-app/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# api url
VITE_API_URL= #string
# link to privacy policy page
VITE_PRIVACY_POLICY_URL= #string
# link to terms of service
VITE_TERMS_OF_SERVICE_URL= #string
# link to help page
VITE_HUMAN_PROTOCOL_HELP_URL= #string
# link to human web page
VITE_HUMAN_PROTOCOL_URL= #string
# link to human web page in main page navbar
VITE_NAVBAR__LINK__PROTOCOL_URL= #string
# link to human web page section in main page navbar
VITE_NAVBAR__LINK__HOW_IT_WORK_URL= #string
# capthca site key for captcha other than labeling
VITE_H_CAPTCHA_SITE_KEY= #string
# HMT daily spent limit
VITE_HMT_DAILY_SPENT_LIMIT= #number
# daily solved captcha limit
VITE_DAILY_SOLVED_CAPTCHA_LIMIT= #number
# capthca url for captcha other than labeling
VITE_H_CAPTCHA_EXCHANGE_URL= #string
# capthca url for labeling
VITE_H_CAPTCHA_LABELING_BASE_URL= #string
# ID of project created with https://cloud.walletconnect.com/sign-in
VITE_WALLET_CONNECT_PROJECT_ID= #string
# Dapp name for wallet connect
VITE_DAPP_META_NAME= #string
# Dapp description for wallet connect
VITE_DAPP_META_DESCRIPTION= #string
# Dapp url for wallet connect
VITE_DAPP_META_URL= #string
# Dapp icons for wallet connect
VITE_DAPP_ICONS= #string => lists of icons eg.: icon1,icon2...

# network if network is equl to 'testnet' app will use first tesntet chain from .src/smart-contracts/chains.ts
# and first mainnet chain for 'mainnet'
VITE_NETWORK= # mainnet|testnet

## Web3 setup
# set SC addresses according to https://human-protocol.gitbook.io/hub/human-tech-docs/architecture/components/smart-contracts/contract-addresses

## testnet

# Amoy
VITE_TESTNET_AMOY_STAKING_CONTRACT=
VITE_TESTNET_AMOY_HMTOKEN_CONTRACT=
VITE_TESTNET_AMOY_ETH_KV_STORE_CONTRACT=

## mainnet

# Polygon
VITE_MAINNET_POLYGON_STAKING_CONTRACT=
VITE_MAINNET_POLYGON_HMTOKEN_CONTRACT=
VITE_MAINNET_POLYGON_ETH_KV_STORE_CONTRACT=

## other networks
# if you wish to add new network follow this instruction:
# - add your env-s set to .env file
# - add new env-s to validation schema in: ./src/shared/env.ts
# - include new valid env-s in: ./src/smart-contracts/contracts.ts
# - add chain data in: .src/smart-contracts/chains.ts

# all new chains will be available in wallet-connect modal
47 changes: 47 additions & 0 deletions packages/apps/human-app/frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const { resolve } = require('node:path');

const project = resolve(__dirname, 'tsconfig.json');

module.exports = {
root: true,
extends: [
require.resolve('@vercel/style-guide/eslint/browser'),
require.resolve('@vercel/style-guide/eslint/typescript'),
require.resolve('@vercel/style-guide/eslint/react'),
'plugin:prettier/recommended',
'plugin:@tanstack/eslint-plugin-query/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
tsx: 'never',
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
// allow imports from material react table library
camelcase: ['error', { allow: ['MRT_'] }],
'react/jsx-pascal-case': ['error', { ignore: ['MRT_'] }],
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
};
28 changes: 28 additions & 0 deletions packages/apps/human-app/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
.env.local
1 change: 1 addition & 0 deletions packages/apps/human-app/frontend/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
7 changes: 7 additions & 0 deletions packages/apps/human-app/frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"endOfLine": "lf"
}
90 changes: 90 additions & 0 deletions packages/apps/human-app/frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Human app - Frontend

## Build With

| Tool-Name | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [ESlint](https://github.com/vercel/style-guide) with [Prettier plugin](https://github.com/prettier/eslint-plugin-prettier) | Linting and Formatting |
| [ESlint Vercel style guide](https://github.com/vercel/style-guide) | eslint config preset |
| [Husky](https://typicode.github.io/husky/get-started.html) with [lint-staged](https://github.com/lint-staged/lint-staged?tab=readme-ov-file#-lint-staged----) | pre-commit |
| [TypeScript](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) | Static typing |
| [Vite](https://vitejs.dev/guide/why.html) | Bundler |
| [React](https://react.dev/learn/describing-the-ui) | Frontend Framework |
| [React Router](https://reactrouter.com/en/main/start/tutorial) | Client Side Routing |
| [TanStack Query](https://tanstack.com/query/latest/docs/framework/react/overview) | Async state management |
| [Material UI](https://mui.com/material-ui/getting-started/) | UI Components |
| [Material Icons](https://mui.com/material-ui/material-icons/) | Icons |
| [Material React Table](https://www.material-react-table.com/about) | Table component for material ui |
| [Zod](https://github.com/colinhacks/zod?tab=readme-ov-file#table-of-contents) | Runtime Validations |
| [i18next](https://react.i18next.com/getting-started) | Internationalization Framework |

## Getting Started

### Prerequisites

- [Node.js minimal v18](https://nodejs.org/en)
- [pnpm](https://pnpm.io/installation)

### Install Packages

```sh
yarn install
```

### Compile and Hot-Reload for Development

```sh
yarn dev
```

### Type-Check, Compile and Minify for Production

```sh
yarn build
```

### Linting and Formatting

```sh
yarn lint
```

### Tests

```sh
yarn test
```

## Web3 setup

The Web3 setup is closely tied to contract addresses. The best explanation for this can be found in the `.env.example` file, which shows where to set your smart contract addresses.

`.env.example`
```
...
## Web3 setup
# set SC addresses according to https://human-protocol.gitbook.io/hub/human-tech-docs/architecture/components/smart-contracts/contract-addresses

## testnet

# Amoy
VITE_TESTNET_AMOY_STAKING_CONTRACT=
VITE_TESTNET_AMOY_HMTOKEN_CONTRACT=
VITE_TESTNET_AMOY_ETH_KV_STORE_CONTRACT=

## mainnet

# Polygon
VITE_MAINNET_POLYGON_STAKING_CONTRACT=
VITE_MAINNET_POLYGON_HMTOKEN_CONTRACT=
VITE_MAINNET_POLYGON_ETH_KV_STORE_CONTRACT=

## other networks
# if you wish to add new network follow this instruction:
# - add your env-s set to .env file
# - add new env-s to validation schema in: ./src/shared/env.ts
# - include new valid env-s in: ./src/smart-contracts/contracts.ts
# - add chain data in: .src/smart-contracts/chains.ts

# all new chains will be available in wallet-connect modal
```
32 changes: 32 additions & 0 deletions packages/apps/human-app/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Complete jobs, earn HMT" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="/favicon.ico" />
<title>Human App</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="text/javascript" id="zsiqchat">
var $zoho = $zoho || {};
$zoho.salesiq = $zoho.salesiq || {
widgetcode:
'siqa18acfe081f579aac3e319f82ebb5e4009c0d32440c1be563e9aadb57830fa90',
values: {},
ready: function () {},
};
var d = document;
s = d.createElement('script');
s.type = 'text/javascript';
s.id = 'zsiqscript';
s.defer = true;
s.src = 'https://salesiq.zohopublic.com/widget';
t = d.getElementsByTagName('script')[0];
t.parentNode.insertBefore(s, t);
</script>
</body>
</html>
75 changes: 75 additions & 0 deletions packages/apps/human-app/frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"name": "@human-protocol/human-app-frontend",
"private": true,
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest",
"prepare": "husky"
},
"lint-staged": {
"*.{ts,tsx}": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@fontsource/inter": "^5.0.17",
"@hcaptcha/react-hcaptcha": "^0.3.6",
"@hookform/resolvers": "^3.3.4",
"@mui/icons-material": "^5.15.7",
"@mui/material": "^5.15.7",
"@synaps-io/verify-sdk": "^4.0.45",
"@tanstack/react-query": "^5.18.1",
"@walletconnect/ethereum-provider": "^2.12.2",
"@walletconnect/modal": "^2.6.2",
"@web3modal/ethers": "^4.1.9",
"@web3modal/scaffold-utils": "^4.1.11",
"date-fns": "^3.6.0",
"ethers": "^6.12.0",
"i18next": "^23.8.2",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"material-react-table": "^2.12.1",
"mui-image": "^1.0.7",
"query-string": "^9.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.50.0",
"react-i18next": "^14.0.2",
"react-imask": "^7.4.0",
"react-number-format": "^5.3.4",
"react-router-dom": "^6.22.0",
"vite-plugin-svgr": "^4.2.0",
"zod": "^3.22.4",
"zustand": "^4.5.0"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.18.1",
"@tanstack/react-query-devtools": "^5.18.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/lodash": "^4.14.202",
"@types/mui-image": "^1.0.5",
"@types/node": "^20.11.16",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@vercel/style-guide": "^5.2.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/ui": "^1.4.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-refresh": "^0.4.5",
"husky": "^9.0.10",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.1",
"prettier": "^3.2.5",
"typescript": "^5.2.2",
"vite": "^5.0.8",
"vitest": "^1.2.2"
}
}
Binary file not shown.
15 changes: 15 additions & 0 deletions packages/apps/human-app/frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "Human App",
"name": "Human App",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
14 changes: 14 additions & 0 deletions packages/apps/human-app/frontend/src/api/api-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// eslint-disable-next-line import/no-cycle -- cause by refresh token retry
import { createFetcher } from '@/api/fetcher';
import { env } from '@/shared/env';

export const apiClient = createFetcher({
baseUrl: env.VITE_API_URL,
options: () => {
const headers = new Headers({ 'Content-Type': 'application/json' });

return {
headers,
};
},
});
Loading