forked from humanprotocol/human-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
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
add proxy to reputation oracle's kyc/on-chain #190
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BartoszSolkaBD
approved these changes
Jul 5, 2024
KacperKoza343
added a commit
that referenced
this pull request
Jul 15, 2024
* Merge pull request #17 from blockydevs/error_handling Error handling - exception filters * Merge pull request #15 from blockydevs/10-jobs-discovery Endpoint to fetch jobs discovery * Merge pull request #16 from blockydevs/11-job-assignment Endpoint to assign a job to user and to retrieve assigned jobs * Merge pull request #18 from blockydevs/authorization-token-handling Middleware to pass the auth token * Merge pull request #21 from blockydevs/unit_tests_fix fix: unit tests * Merge pull request #14 from blockydevs/#13-Oracles-discovery Oracles-discovery * Merge pull request #20 from blockydevs/#Statistics-Exchange-oracle # Statistics exchange oracle * Naming covention alignemnt (#27) * Alignment of naming convention and endpoint structure * Alignment of naming convention and endpoint structure * ExchangeOracleApi->ExchangeOracle * externalApiGateway-> gateway * Coverage improvement * CI/CD workflow * fix(unit tests): Remove validationSchema from ConfigModule * Fixes after check * Removes unnecessary comment * Fixes SDK limitation * Removes unnecessary interceptor, changes Body to Query in request for oracle discovery * Adds statistics related DTO interfaces with api mapping * Changes in interface naming convention of received data * Review fixes * Review fixes * Review fixes * Review fixes * Changes logic of calling exchange oracle: url is obtained based on the address provided in the enpoint. Adds CORS * Adds test coverage * Adds test coverage * Adds kv store to the modules that use it * minor fixes * minor fixes * Alignment of the swagger and interface used in the project * Alignment after testing with stage exchange oracle (#29) * Fixes after check * Removes unnecessary comment * Fixes SDK limitation * Removes unnecessary interceptor, changes Body to Query in request for oracle discovery * Adds statistics related DTO interfaces with api mapping * Changes in interface naming convention of received data * Review fixes * Review fixes * Review fixes * Review fixes * Changes logic of calling exchange oracle: url is obtained based on the address provided in the enpoint. Adds CORS * Adds test coverage * Adds test coverage * Adds kv store to the modules that use it * minor fixes * minor fixes * Alignment of the swagger and interface used in the project * Minor fixes * Minor fixes * Minor fixes * Minor fixes * Removes todo * Review fixes * Review fixes * Review fixes * Review fixes * Add email verification endpoints and related logic. * name: human-app -> human-app-server in package.json (#63) * Implement password reset functionality. * Add disableOperator and prepareSignature methods. * A property has been set in the eslint config to avoid enforcing a line break style. * Implement KYC procedure start. * Integration with the KYC procedure, password reset and disable operator modules. * The variable name 'restorePasswordDto' in the sendRestorePassword function has been changed to 'restorePasswordData'. * Update 'type' field data type in PrepareSignature model. * Refactor prepareSignature test and update response fixture. * Refactor service injections in multiple controllers, renamed to a generic 'service' format. * Refactor services to use 'gateway' instead of 'reputationOracleService'. * Sets base paths in the controllers and simplify the path of each endpoint. * Refactor email verification test fixtures. * Refactor 'h_captcha_token'. * Enhance test coverage for oracle gateway. * bug fixed * Remove hCaptcha token mapping in user-worker and password-reset mappers. * Refactor code to separate PrepareSignature functionality into its own module. (#71) * fix: Change naming conventions in password-reset mapper. * Fixes after code review (2024-05-07) (#75) * File `global-common.interface.ts` has been renamed to `global-common.ts`. * Renamed and moved EnvironmentVariableMissingError class. * Renamed and moved Pageable classes to utils directory. * Remove unused import in exchange-oracle.gateway.spec.ts * Remove console.log from fetchAssignedJobs method. * Update dependencies in package.json. * Update terminology in README.md * Remove unused Headers import from job-assignment.controller.ts * Removed OnModuleInit import from kv-store-gateway.service.ts * Corrected the data types for REDIS_PORT and REDIS_HOST in .env.example file. * Remove redundant volume configuration in Docker-compose * Add RPC_URL environment variable to docker-compose * Replace hardcoded URL_KEY in KvStoreGateway with imported constant. * fix: Update KVStoreClient import and test in KvStoreGateway * Add Reputation Oracle address to .env and refactor Oracle Discovery. * Add token authentication for Oracle statistics. * Remove manual environment variable check. * Refactor address to use escrowAddress in job assignment service. * Ensure environment variables validation takes place before module loading. * Revert "Add token authentication for Oracle statistics." * Update terminology from 'Interfaces' to 'Model' in README * Refactor PageableClasses to PageableDto and the file renamed from pageable-classes.ts to pageable.model.ts * Update KV store gateway test to use actual SDK. * Added REPUTATION_ORACLE_ADDRESS in app configuration and docker compose file. * Integrate and use EscrowUtils for job assignment processing. * Added chainId parameter to `getExchangeOracleAddressByEscrowAddress` method. * Remove redundant code KV-store gateway test * Update EscrowUtilsGateway tests. * Add mock ConfigService to oracle-discovery service test. * Revert "Add mock ConfigService to oracle-discovery service test." This reverts commit a2134ad. * Update oracle-discovery.service.spec.ts tests. * Fixes CR 2024-05-10 (#78) * The KVStoreKeys.url constant is now directly called. * Changed Redis data volume path and updated gitignore. * Refactor oracle discovery and statistics modules. * Add CHAIN_IDS_ENABLED to .env.example * Fix typo in oracle-discovery.service file name and references. * Merge conflict fixes * Adds Email Confirmation, KYC procedure, Password Reset and Disable Operator modules. (#64) * Fixes after check * Removes unnecessary comment * Fixes SDK limitation * Removes unnecessary interceptor, changes Body to Query in request for oracle discovery * Adds statistics related DTO interfaces with api mapping * Changes in interface naming convention of received data * Review fixes * Review fixes * Review fixes * Review fixes * Changes logic of calling exchange oracle: url is obtained based on the address provided in the enpoint. Adds CORS * Adds test coverage * Adds test coverage * Adds kv store to the modules that use it * minor fixes * minor fixes * Alignment of the swagger and interface used in the project * Add email verification endpoints and related logic. * Implement password reset functionality. * Add disableOperator and prepareSignature methods. * A property has been set in the eslint config to avoid enforcing a line break style. * Implement KYC procedure start. * Integration with the KYC procedure, password reset and disable operator modules. * The variable name 'restorePasswordDto' in the sendRestorePassword function has been changed to 'restorePasswordData'. * Update 'type' field data type in PrepareSignature model. * Refactor prepareSignature test and update response fixture. * Refactor service injections in multiple controllers, renamed to a generic 'service' format. * Refactor services to use 'gateway' instead of 'reputationOracleService'. * Sets base paths in the controllers and simplify the path of each endpoint. * Refactor email verification test fixtures. * Refactor 'h_captcha_token'. * Enhance test coverage for oracle gateway. * bug fixed * Remove hCaptcha token mapping in user-worker and password-reset mappers. * Refactor code to separate PrepareSignature functionality into its own module. (#71) * fix: Change naming conventions in password-reset mapper. * Merge conflict fixes --------- Co-authored-by: maciek.nabialek <[email protected]> * Fixes CR 2024-05-15 (#88) * Implement token authentication in KYC procedure start. * Update endpoint in gateway config and add new signature types. * Fixed tests. * Remove 'CERTIFICATE_AUTHENTICATION' from global-common enums. * Fixed reputation-oracle.gateway.spec.ts (#90) * Removes authorisation from prepare-signature endpoint (#92) * 4th milestone features (#79) * Milestone 4 - draft: TODO * User stats endpoint, test and possible rework of response mapping * Add unit tests * Add proxy endpoints for: - user/register-address - auth/signin/web3 * Adds test coverage, minor fixes * Adds additional proxies for 4 milestone * Reworks reputation oracle gateway test suite, adds necessary mappings * adds missing await * Review fixes * Adds /user/register-address handling * Changes endpoint name * Adds import fixes * Adds controller and module to the main app module * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/user/worker): remove chain id validation (#114) * fix(app/user/worker): remove chain id validation * Test fix and JWT User data align * Updates README.md: Adds Caching section, Changes in signature type * Removes commented code * Changes after hcaptcha api check * Adds interceptor for axios requests * Fix/signature (#126) * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/worker): add signature field to req body * update(app): revert readme * fix(app/register-address): fix test --------- Co-authored-by: macnablocky <[email protected]> Co-authored-by: Kacper Koza <[email protected]> * Fixes undefined in POST data, fixes unit tests * Adds Resign job feature, small changes in the gateway config (#134) * Fixes * Fixes in dependencies --------- Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: maciej.nabialek <[email protected]> Co-authored-by: macnablocky <[email protected]> * Fixes restore password * Fixes restore password part 2. * review fixes --------- Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: Bartosz Solka <[email protected]> * fixes after merge * fix(app/worker/jobs): fix jobs resigning (#138) Co-authored-by: = <[email protected]> * Add TokenRefresh feature in reputation oracle integration (#141) * Update endpoint paths in `reputation-oracle.gateway.spec.ts`. * Add TokenRefresh feature in reputation oracle integration * Update mapping conventions for pagination and sorting (#144) * Fixes after client review (#150) * Fixes after client review * Fixes after client review * Fixes after client review * Fixes failing test * small fix in displaying axios interceptor logs * Adds filtering to oracle discovery (#154) * Adds filtering to oracle discovery * Adds and passes tests for controller, adds mapper * Adds and passes tests for service * Rework of oracle-discovery.service.ts in alignment with code review remark * Modifies filtering in oracle discovery to be case insensitive (but will return original data) (#159) * Fixes in validators, fixes in parsing Oracle Discovery DTO * Revert "Fixes in validators, fixes in parsing Oracle Discovery DTO" This reverts commit 68953ae. * Validator fixes (#166) * Fixes in validators, fixes in parsing Oracle Discovery DTO * Removes TransformToArray from decorator list, * Rollbacks yarn lock in dashboard admin * Changes to improve swagger readablity * Adds optional validator to jobsDiscoveryParamsDto.sort_field (#168) * Adds optional validator to jobsDiscoveryParamsDto.sort_field * Adds optional validator to jobsDiscoveryParamsDto.job_type * Human app maintanance (#178) * HAM-2 * HAM-6 * HAM-3 * HAM-3 part 2 * HAM-9 * HAM-1 * HAM-5 * HAM-1 rework * Fix to HAM-9 * Fix to HAM-6 * HAM-16/30/31/32 (#181) * HAM-16/30/31/32 * Fixes in resing job (#187) * fix(app/worker/jobs): fix resign job dto * Fixes ut --------- Co-authored-by: KacperKoza343 <[email protected]> * Changes assignment id back from number to string (#190) * Changes assignment id back from number to string (#188) * Changes assignment id back from number to string * Update job-assignment.model.ts * Ham 8 backend implementation (#192) * feat(app/worker/password): add hcaptcha field * Fixes endpoint model for forgot password, adds h-captcha token to email verification resend endpoint model * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * small fix * small fix * Adds cache reset on demand --------- Co-authored-by: KacperKoza343 <[email protected]> * updates default allowed headers (#199) * Reputation/Exchange oracle response parsing refactor (#203) * Jobs discovery should return only ACTIVE jobs * Removes unnecessary filtering, adds type guarding of responses from reputation and exchange oracle gateways --------- Co-authored-by: MWBlocky <[email protected]> Co-authored-by: macnablocky <[email protected]> Co-authored-by: MWBlocky <[email protected]> Co-authored-by: maciek.nabialek <[email protected]> Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: KacperKoza343 <[email protected]>
BartoszSolkaBD
added a commit
that referenced
this pull request
Jul 17, 2024
* Removes authorisation from prepare-signature endpoint (#92) * feat(app/worker-profile/jobs): handle cell content * feat(app/worker-profile/jobs): add job selecting * feat(app/worker-profile/jobs): remove redundant spread operator * feat(app/worker-profile/my-jobs): integrate my jobs table with api * feat(app/worker-profile/jobs): separate common logic to hooks * feat(app/worker-profile/jobs): fix naming * feat(app/worker-profile/my-jobs): fix according to review * save * feat(app/worker/profile): add synaps KYC verification * feat(app/worker/profile): remove empty file * feat(app/worker/profile): remove unused hook * feat(app/worker/profile/jobs): refactor according to review * feat(app/operator): prepare operator layout * feat(app/operator): add preapare siganture for web3 auth * feat(app/operator/profile): update signup flow * fix(app/use-connected-wallet-hook): add initial state handling * fix(app/worker-profile): fix actions buttons states * feat(app/operator/profile): add disable button * fix(app/protected-layouts): prevent multi logging * feat(app/operator): disable operator * feat(app/operator/profile): separate auth providers * feat(app/operator/profile): fix logout button * fix(app): add layout fixes * feat(app): prepare demo * feat(app): fix table buttons * feat(app/worker/jobs): add oracles table * fix(app/auth): use one browser auth provider * fix(app/worker/jobs): add oracles table * feat(app/worker/jobs-discovery-page: add jobs discovery page * reafactor(app/browser-auth-provider): remove useless methods * refactor(app/auth): refactor auth provider * fix(app/worker/profile): refactor according to review * HAF-93: Hide cancel button * HAF-92: Change add stake form submit text * HAF-89: Style fixes on Setup operator mobile page * HAF-87: Add arrow back to reset page * HAF-88: Hide cancel button on password changed page * HAF-85: Change text weight on reset password page * HAF-83: Change worker sign up link styles * HAF-81: Verify email page styles * HAF-80: Sign up worker styles * HAF-79: Sign Up choose accout type styles * HAF-77: Reset password page styles * HAF-75: Reset password styles update * HAF-74: Sign up form errors * HAF-73: Sign in validation messages * remove unused react imports * HAF-66: Add captcha to sign worker sign up * feat(app/operator/signin): add operator singin * fix(worker/profile/reset-password): fix link to profile * feat(app/operator/signin): handle logged operator * feat(app/worker/signin): add hcaptacha * feat(app/operator/signin): add error handler * Haf 59 wfb add successful kyc info on chain (#115) * feat(app/worker/profile): add register-address service * feat(app/user/worker): add KYC info on chain * feat(app/user/worker): handle rpc errors during KYC registration * feat(app/user/worker): add kyc on chain * feat(app/user/worker): fix according to review * feat(app): add wallet connect custom modal * feat(app/worker/profile/hcaptcha-labeling): add labeling page * feat(app/worker/profile): add text field for connected wallet address * feat(app/worker/profile/my-jobs): add icons to my-jobs table headers * feat(app/multi-select): fix and apply new mulit select * feat(app/worker/send-email-verification): fix copy and remove resend button * feat(app/worker/reset-password): add hcaptcha and resend button * fix(app/layout): fix layout * feat(app/worker/email-verification): add verification mutation state * fix(app/worker/email-verification): add resend email error handling * fix(app/worker/profile/jobs): add missing filters and icons * refactor(app/worker/profile/jobs-discovery/table): move react query to parent component * refactor(app/worker/jobs): improve table headers * refactor(app/profile/worker/tabel): fix naming * refactor(app/profile/worker/tabel): remove reduntant headers * feat(app/worker/hcaptcha-labeling): update hcaptcha labeling * feat(app/worker/hcaptcha): add servces * feat(app/worker/hcaptcha): add props * feat(app/worker): update services * fix(app): layout * feat(app): add json rpc error * feat(app/worker/auth): add updating JWT payload * feat(app/worker/auth): update signout * fix(app/worker): fix register address * fix(app/layout): add layout fixes * fix(app/worker/stats): fix user stats details * feat(app/worker/labeling): fix stats, labaling page reload and hard reload after signin * fix(app/worker/labeling): fix copy * refactor(app/worker/labeling): fix axxroding to review * add demo fixes * add demo fixes * fix(app): demo updates * fix(app/worker/profile): fix profile layout * refactor(app/woreker/profile/labling): refactor according to review * fix(app): fixes after demo * refactor(app): refactor according to review * fix(app/worker/profile/jobs): fix drawer * 4th milestone features (#79) * Milestone 4 - draft: TODO * User stats endpoint, test and possible rework of response mapping * Add unit tests * Add proxy endpoints for: - user/register-address - auth/signin/web3 * Adds test coverage, minor fixes * Adds additional proxies for 4 milestone * Reworks reputation oracle gateway test suite, adds necessary mappings * adds missing await * Review fixes * Adds /user/register-address handling * Changes endpoint name * Adds import fixes * Adds controller and module to the main app module * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/user/worker): remove chain id validation (#114) * fix(app/user/worker): remove chain id validation * Test fix and JWT User data align * Updates README.md: Adds Caching section, Changes in signature type * Removes commented code * Changes after hcaptcha api check * Adds interceptor for axios requests * Fix/signature (#126) * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/worker): add signature field to req body * update(app): revert readme * fix(app/register-address): fix test --------- Co-authored-by: macnablocky <[email protected]> Co-authored-by: Kacper Koza <[email protected]> * Fixes undefined in POST data, fixes unit tests * Adds Resign job feature, small changes in the gateway config (#134) * Fixes * Fixes in dependencies --------- Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: maciej.nabialek <[email protected]> Co-authored-by: macnablocky <[email protected]> * Fixes restore password * Fixes restore password part 2. * review fixes --------- Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: Bartosz Solka <[email protected]> * fixes after merge * feat(app/worker/jobs): add tasks rejecting * feat(app/worker/jobs): add infinite scroll on mobile * fix(app/worker/jobs): fix jobs resigning (#138) Co-authored-by: = <[email protected]> * feat(app/worker/jobs): connect drawer with api * feat(app/worker/jobs): add sorting by escrow address * refactor(app/worker/jobs): fix props naming * Add TokenRefresh feature in reputation oracle integration (#141) * Update endpoint paths in `reputation-oracle.gateway.spec.ts`. * Add TokenRefresh feature in reputation oracle integration * fix(app): build * fix(app/auth): fix refresh token flow (#143) * fix(app/worker/jobs/filters): update table filters * fix(app): layout fixes * Update mapping conventions for pagination and sorting (#144) * update(app/operator/set-up): update setup flow * fix(app/nav-bar): show navbar buttons only on main page * fix(app/nav-bar): add envs links * feat(app): add refreshing token after requests * update(app/worker/sign-up): update signup flow * fix(app): fix error page and evm address displaying * fix(app/operator/sign-up): add skip button for existing keys * feat(app): add chat icon * feat(app): fix chat icons styles * refactor(app/worker/jobs): refactor filters * refactor(app/operator/set-up): refactor according to review * refactor(app/operator/set-up): refactor according to review * fix(app/operator/set-up): fix keys forms * fix(app/worker/jobs): oracles table fix * fix(app/operator/set-up): update inputs order * Fixes after client review (#150) * Fixes after client review * Fixes after client review * Fixes after client review * Fixes failing test * small fix in displaying axios interceptor logs * Adds filtering to oracle discovery (#154) * Adds filtering to oracle discovery * Adds and passes tests for controller, adds mapper * Adds and passes tests for service * Rework of oracle-discovery.service.ts in alignment with code review remark * update server * update yarn.lock * Modifies filtering in oracle discovery to be case insensitive (but will return original data) (#159) * fix(app/auth): fix getting refersh token * feat(app/operator/set-up): add url field * feat(app/operator/profile): add fetching stats on profile (#162) * fix(app/worker/profile): refetch KVStore data after setting address (#163) * fix(app): fix chat icon position (#164) * fix(app/woreker/jobs): fix jobs tables * Fixes in validators, fixes in parsing Oracle Discovery DTO * Revert "Fixes in validators, fixes in parsing Oracle Discovery DTO" This reverts commit 68953ae. * Validator fixes (#166) * Fixes in validators, fixes in parsing Oracle Discovery DTO * Removes TransformToArray from decorator list, * Rollbacks yarn lock in dashboard admin * Changes to improve swagger readablity * refactor(app/woreker/jobs): refactor according to review * fix(app/worker/jobs): type pagination arguments * Adds optional validator to jobsDiscoveryParamsDto.sort_field (#168) * Adds optional validator to jobsDiscoveryParamsDto.sort_field * Adds optional validator to jobsDiscoveryParamsDto.job_type * feat(app/worker/jobs): fix oracles dto and jobs pagination (#169) * feat(app/worker/jobs): fix oracles dto and jobs pagination * fix(app/worker/jobs): fix oracles dto * docs(app): update readme and .env.example (#170) * Add lock * Human app maintanance (#178) * HAM-2 * HAM-6 * HAM-3 * HAM-3 part 2 * HAM-9 * HAM-1 * HAM-5 * HAM-1 rework * Fix to HAM-9 * Fix to HAM-6 * HAM-16/30/31/32 (#181) * HAM-16/30/31/32 * Fixes in resing job (#187) * fix(app/worker/jobs): fix resign job dto * Fixes ut --------- Co-authored-by: KacperKoza343 <[email protected]> * Changes assignment id back from number to string (#190) * Changes assignment id back from number to string (#188) * Changes assignment id back from number to string * Update job-assignment.model.ts * Ham 8 backend implementation (#192) * feat(app/worker/password): add hcaptcha field * Fixes endpoint model for forgot password, adds h-captcha token to email verification resend endpoint model * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * small fix * small fix * Adds cache reset on demand --------- Co-authored-by: KacperKoza343 <[email protected]> * updates default allowed headers (#199) * Feature/human app frontend 2nd milestone (#200) * Add lock * feat(app/worker): add missing hcaptcha * fix(app/hcaptcha): refresh form captcha after FetchError * feat(app): add missing captcha * feat(app): add error to captcha * feat(app): add gracefull error handling (#172) * fix(app/worker/profile): fix KYC start process * feat(app/worker/profile): fix mobile jobs tables * fix(app): fix copy (#176) * fix(app/worker/profile): disable job discovery when did not register address (#175) * fix(app/wallet-connect): improve networks narrowing * fix(app/operator/set-up/stake): redirect after successfull stake * fix(app/operator/set-up/stake): remove useless changes * feat(app/auth): logout user when tokens expire * fix(app/worker/jobs): extend job routing * feat(app/operator/set-up): ommit approve if not nesseccary while staking * feat(app/auth): allow user to switch account on homepage * fix(app/auth/jwt-expiration): fix naming * fix(app/worker/profile): remove callbacks from KYC mutation hook * feat(app/worker/email-verification): redirect unverified user to veri… (#189) * feat(app/worker/email-verification): redirect unverified user to verify page * feat(app/worker/email-verification): logout on cancel button * fix(app/auth): update jwt payload (#194) * feat(app/worker/email-verification): prevent unathenticated user from resend email verification (#195) * Ham 20 register address and add kyc on chain should be two different steps (#191) * feat(app/worker/register-address): separate address registering from KVStore setup * feat(app/worker/profile): change adding value to KVStore * feat(app/worker/profile): update KYC on chain feature * feat(app/worker/profile): update profile actions * feat(app/worker/profile): handle new KYC responses (#196) * feat(app/worker/profile): remove oracle address * fix(app/worker/jobs): change assigment_id type (#193) * Ham 44 missing oracle address in my jobs table (#197) * fix(app/worker/jobs): fix my jobs fetching * fix(app/worker/jobs/resign-job): fix resign jobs dto * feat(app/layout): close drawer on link click (#198) * fix(app): add fixes after review * revert yarn.lock --------- Co-authored-by: MicDebBlocky <[email protected]> * revert unwanted changes * fix(app/worker/profile): fix response validation and enable labeling notification (#201) * Ham 49 after password reset user should be logged out (#202) * fix(app/worker/profile): fix response validation and enable labeling notification * fix(app/worker/profile/reset-password): logout user after password reset * Ham 50 log out user when enters signup page (#204) * fix(app/worker/signout): logout user when visiting sign up page * fix(app/auth-pages): logout users * Ham 52 fix help button in worker profile (#205) * fix(app/worker/signout): logout user when visiting sign up page * fix(app/auth-pages): logout users * fix(app/profiles): update help buttons in drawers * Fix/help url (#206) * fix(app/worker/signout): logout user when visiting sign up page * fix(app/auth-pages): logout users * fix(app/profiles): update help buttons in drawers * fix(app/profiles): help url redirect * fix(app/worker/password): fix cancel button (#207) * feat(app/operator/profile): update UI according to operator (#208) * feat(app/operator/profile): update UI according to operator * fix(app/operator/profile): update JWT data after deactivation * feat(app/networks): add deafult mainnet and testnet networks (#209) --------- Co-authored-by: macnablocky <[email protected]> Co-authored-by: MicDebBlocky <[email protected]> Co-authored-by: portuu3 <[email protected]> Co-authored-by: BartoszSolkaBD <[email protected]> Co-authored-by: Mateusz Marcinkowski <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: Bartosz Solka <[email protected]> Co-authored-by: maciej.nabialek <[email protected]> Co-authored-by: Michał Walczak <[email protected]>
KacperKoza343
added a commit
that referenced
this pull request
Jul 22, 2024
* feat(app/worker-profile/my-jobs): integrate my jobs table with api * feat(app/worker-profile/jobs): separate common logic to hooks * feat(app/worker-profile/jobs): fix naming * feat(app/worker-profile/my-jobs): fix according to review * save * feat(app/worker/profile): add synaps KYC verification * feat(app/worker/profile): remove empty file * feat(app/worker/profile): remove unused hook * feat(app/worker/profile/jobs): refactor according to review * feat(app/operator): prepare operator layout * feat(app/operator): add preapare siganture for web3 auth * feat(app/operator/profile): update signup flow * fix(app/use-connected-wallet-hook): add initial state handling * fix(app/worker-profile): fix actions buttons states * feat(app/operator/profile): add disable button * fix(app/protected-layouts): prevent multi logging * feat(app/operator): disable operator * feat(app/operator/profile): separate auth providers * feat(app/operator/profile): fix logout button * fix(app): add layout fixes * feat(app): prepare demo * feat(app): fix table buttons * feat(app/worker/jobs): add oracles table * fix(app/auth): use one browser auth provider * fix(app/worker/jobs): add oracles table * feat(app/worker/jobs-discovery-page: add jobs discovery page * reafactor(app/browser-auth-provider): remove useless methods * refactor(app/auth): refactor auth provider * fix(app/worker/profile): refactor according to review * HAF-93: Hide cancel button * HAF-92: Change add stake form submit text * HAF-89: Style fixes on Setup operator mobile page * HAF-87: Add arrow back to reset page * HAF-88: Hide cancel button on password changed page * HAF-85: Change text weight on reset password page * HAF-83: Change worker sign up link styles * HAF-81: Verify email page styles * HAF-80: Sign up worker styles * HAF-79: Sign Up choose accout type styles * HAF-77: Reset password page styles * HAF-75: Reset password styles update * HAF-74: Sign up form errors * HAF-73: Sign in validation messages * remove unused react imports * HAF-66: Add captcha to sign worker sign up * feat(app/operator/signin): add operator singin * fix(worker/profile/reset-password): fix link to profile * feat(app/operator/signin): handle logged operator * feat(app/worker/signin): add hcaptacha * feat(app/operator/signin): add error handler * Haf 59 wfb add successful kyc info on chain (#115) * feat(app/worker/profile): add register-address service * feat(app/user/worker): add KYC info on chain * feat(app/user/worker): handle rpc errors during KYC registration * feat(app/user/worker): add kyc on chain * feat(app/user/worker): fix according to review * feat(app): add wallet connect custom modal * feat(app/worker/profile/hcaptcha-labeling): add labeling page * feat(app/worker/profile): add text field for connected wallet address * feat(app/worker/profile/my-jobs): add icons to my-jobs table headers * feat(app/multi-select): fix and apply new mulit select * feat(app/worker/send-email-verification): fix copy and remove resend button * feat(app/worker/reset-password): add hcaptcha and resend button * fix(app/layout): fix layout * feat(app/worker/email-verification): add verification mutation state * fix(app/worker/email-verification): add resend email error handling * fix(app/worker/profile/jobs): add missing filters and icons * refactor(app/worker/profile/jobs-discovery/table): move react query to parent component * refactor(app/worker/jobs): improve table headers * refactor(app/profile/worker/tabel): fix naming * refactor(app/profile/worker/tabel): remove reduntant headers * feat(app/worker/hcaptcha-labeling): update hcaptcha labeling * feat(app/worker/hcaptcha): add servces * feat(app/worker/hcaptcha): add props * feat(app/worker): update services * fix(app): layout * feat(app): add json rpc error * feat(app/worker/auth): add updating JWT payload * feat(app/worker/auth): update signout * fix(app/worker): fix register address * fix(app/layout): add layout fixes * fix(app/worker/stats): fix user stats details * feat(app/worker/labeling): fix stats, labaling page reload and hard reload after signin * fix(app/worker/labeling): fix copy * refactor(app/worker/labeling): fix axxroding to review * add demo fixes * add demo fixes * fix(app): demo updates * fix(app/worker/profile): fix profile layout * refactor(app/woreker/profile/labling): refactor according to review * fix(app): fixes after demo * refactor(app): refactor according to review * fix(app/worker/profile/jobs): fix drawer * 4th milestone features (#79) * Milestone 4 - draft: TODO * User stats endpoint, test and possible rework of response mapping * Add unit tests * Add proxy endpoints for: - user/register-address - auth/signin/web3 * Adds test coverage, minor fixes * Adds additional proxies for 4 milestone * Reworks reputation oracle gateway test suite, adds necessary mappings * adds missing await * Review fixes * Adds /user/register-address handling * Changes endpoint name * Adds import fixes * Adds controller and module to the main app module * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/user/worker): remove chain id validation (#114) * fix(app/user/worker): remove chain id validation * Test fix and JWT User data align * Updates README.md: Adds Caching section, Changes in signature type * Removes commented code * Changes after hcaptcha api check * Adds interceptor for axios requests * Fix/signature (#126) * Updates README.md (#125) * Updates README.md: Adds Caching section, Changes in signature type * README.md updates * README.md updates * fix(app/worker): add signature field to req body * update(app): revert readme * fix(app/register-address): fix test --------- Co-authored-by: macnablocky <[email protected]> Co-authored-by: Kacper Koza <[email protected]> * Fixes undefined in POST data, fixes unit tests * Adds Resign job feature, small changes in the gateway config (#134) * Fixes * Fixes in dependencies --------- Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: maciej.nabialek <[email protected]> Co-authored-by: macnablocky <[email protected]> * Fixes restore password * Fixes restore password part 2. * review fixes --------- Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: Bartosz Solka <[email protected]> * fixes after merge * feat(app/worker/jobs): add tasks rejecting * feat(app/worker/jobs): add infinite scroll on mobile * fix(app/worker/jobs): fix jobs resigning (#138) Co-authored-by: = <[email protected]> * feat(app/worker/jobs): connect drawer with api * feat(app/worker/jobs): add sorting by escrow address * refactor(app/worker/jobs): fix props naming * Add TokenRefresh feature in reputation oracle integration (#141) * Update endpoint paths in `reputation-oracle.gateway.spec.ts`. * Add TokenRefresh feature in reputation oracle integration * fix(app): build * fix(app/auth): fix refresh token flow (#143) * fix(app/worker/jobs/filters): update table filters * fix(app): layout fixes * Update mapping conventions for pagination and sorting (#144) * update(app/operator/set-up): update setup flow * fix(app/nav-bar): show navbar buttons only on main page * fix(app/nav-bar): add envs links * feat(app): add refreshing token after requests * update(app/worker/sign-up): update signup flow * fix(app): fix error page and evm address displaying * fix(app/operator/sign-up): add skip button for existing keys * feat(app): add chat icon * feat(app): fix chat icons styles * refactor(app/worker/jobs): refactor filters * refactor(app/operator/set-up): refactor according to review * refactor(app/operator/set-up): refactor according to review * fix(app/operator/set-up): fix keys forms * fix(app/worker/jobs): oracles table fix * fix(app/operator/set-up): update inputs order * Fixes after client review (#150) * Fixes after client review * Fixes after client review * Fixes after client review * Fixes failing test * small fix in displaying axios interceptor logs * Adds filtering to oracle discovery (#154) * Adds filtering to oracle discovery * Adds and passes tests for controller, adds mapper * Adds and passes tests for service * Rework of oracle-discovery.service.ts in alignment with code review remark * update server * update yarn.lock * Modifies filtering in oracle discovery to be case insensitive (but will return original data) (#159) * fix(app/auth): fix getting refersh token * feat(app/operator/set-up): add url field * feat(app/operator/profile): add fetching stats on profile (#162) * fix(app/worker/profile): refetch KVStore data after setting address (#163) * fix(app): fix chat icon position (#164) * fix(app/woreker/jobs): fix jobs tables * Fixes in validators, fixes in parsing Oracle Discovery DTO * Revert "Fixes in validators, fixes in parsing Oracle Discovery DTO" This reverts commit 68953ae. * Validator fixes (#166) * Fixes in validators, fixes in parsing Oracle Discovery DTO * Removes TransformToArray from decorator list, * Rollbacks yarn lock in dashboard admin * Changes to improve swagger readablity * refactor(app/woreker/jobs): refactor according to review * fix(app/worker/jobs): type pagination arguments * Adds optional validator to jobsDiscoveryParamsDto.sort_field (#168) * Adds optional validator to jobsDiscoveryParamsDto.sort_field * Adds optional validator to jobsDiscoveryParamsDto.job_type * feat(app/worker/jobs): fix oracles dto and jobs pagination (#169) * feat(app/worker/jobs): fix oracles dto and jobs pagination * fix(app/worker/jobs): fix oracles dto * docs(app): update readme and .env.example (#170) * Add lock * Human app maintanance (#178) * HAM-2 * HAM-6 * HAM-3 * HAM-3 part 2 * HAM-9 * HAM-1 * HAM-5 * HAM-1 rework * Fix to HAM-9 * Fix to HAM-6 * HAM-16/30/31/32 (#181) * HAM-16/30/31/32 * Fixes in resing job (#187) * fix(app/worker/jobs): fix resign job dto * Fixes ut --------- Co-authored-by: KacperKoza343 <[email protected]> * Changes assignment id back from number to string (#190) * Changes assignment id back from number to string (#188) * Changes assignment id back from number to string * Update job-assignment.model.ts * Ham 8 backend implementation (#192) * feat(app/worker/password): add hcaptcha field * Fixes endpoint model for forgot password, adds h-captcha token to email verification resend endpoint model * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * Adds proper handling of ttl and changes address to wallet_address in JWT token decoding * small fix * small fix * Adds cache reset on demand --------- Co-authored-by: KacperKoza343 <[email protected]> * updates default allowed headers (#199) * Feature/human app frontend 2nd milestone (#200) * Add lock * feat(app/worker): add missing hcaptcha * fix(app/hcaptcha): refresh form captcha after FetchError * feat(app): add missing captcha * feat(app): add error to captcha * feat(app): add gracefull error handling (#172) * fix(app/worker/profile): fix KYC start process * feat(app/worker/profile): fix mobile jobs tables * fix(app): fix copy (#176) * fix(app/worker/profile): disable job discovery when did not register address (#175) * fix(app/wallet-connect): improve networks narrowing * fix(app/operator/set-up/stake): redirect after successfull stake * fix(app/operator/set-up/stake): remove useless changes * feat(app/auth): logout user when tokens expire * fix(app/worker/jobs): extend job routing * feat(app/operator/set-up): ommit approve if not nesseccary while staking * feat(app/auth): allow user to switch account on homepage * fix(app/auth/jwt-expiration): fix naming * fix(app/worker/profile): remove callbacks from KYC mutation hook * feat(app/worker/email-verification): redirect unverified user to veri… (#189) * feat(app/worker/email-verification): redirect unverified user to verify page * feat(app/worker/email-verification): logout on cancel button * fix(app/auth): update jwt payload (#194) * feat(app/worker/email-verification): prevent unathenticated user from resend email verification (#195) * Ham 20 register address and add kyc on chain should be two different steps (#191) * feat(app/worker/register-address): separate address registering from KVStore setup * feat(app/worker/profile): change adding value to KVStore * feat(app/worker/profile): update KYC on chain feature * feat(app/worker/profile): update profile actions * feat(app/worker/profile): handle new KYC responses (#196) * feat(app/worker/profile): remove oracle address * fix(app/worker/jobs): change assigment_id type (#193) * Ham 44 missing oracle address in my jobs table (#197) * fix(app/worker/jobs): fix my jobs fetching * fix(app/worker/jobs/resign-job): fix resign jobs dto * feat(app/layout): close drawer on link click (#198) * fix(app): add fixes after review * revert yarn.lock --------- Co-authored-by: MicDebBlocky <[email protected]> * revert unwanted changes * fix(app/worker/profile): fix response validation and enable labeling notification (#201) * Ham 49 after password reset user should be logged out (#202) * fix(app/worker/profile): fix response validation and enable labeling notification * fix(app/worker/profile/reset-password): logout user after password reset * Ham 50 log out user when enters signup page (#204) * fix(app/worker/signout): logout user when visiting sign up page * fix(app/auth-pages): logout users * Ham 52 fix help button in worker profile (#205) * fix(app/worker/signout): logout user when visiting sign up page * fix(app/auth-pages): logout users * fix(app/profiles): update help buttons in drawers * Fix/help url (#206) * fix(app/worker/signout): logout user when visiting sign up page * fix(app/auth-pages): logout users * fix(app/profiles): update help buttons in drawers * fix(app/profiles): help url redirect * fix(app/worker/password): fix cancel button (#207) * feat(app/operator/profile): update UI according to operator (#208) * feat(app/operator/profile): update UI according to operator * fix(app/operator/profile): update JWT data after deactivation * feat(app/networks): add deafult mainnet and testnet networks (#209) * feat(app): fixes after review (#210) * feat(app): fixes after review * fix(app): styles * Fixes after merge * Removed indentation in test_transaction_utils --------- Co-authored-by: MicDebBlocky <[email protected]> Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: portuu3 <[email protected]> Co-authored-by: Mateusz Marcinkowski <[email protected]> Co-authored-by: KacperKoza343 <[email protected]> Co-authored-by: macnablocky <[email protected]> Co-authored-by: Kacper Koza <[email protected]> Co-authored-by: maciej.nabialek <[email protected]> Co-authored-by: Michał Walczak <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.