[Human App] Remove Staking Info leftovers - #3969
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 5 Skipped Deployments
|
There was a problem hiding this comment.
Pull request overview
This PR removes the previously introduced staking / exchange-API-keys feature set and its related UI gating from the Human App (frontend + server) and the Reputation Oracle server, including dropping the exchange_api_keys DB table and removing staking-related JWT/UI config fields.
Changes:
- Reputation Oracle: removes staking + exchange-api-keys modules/services/controllers, related config/env schema, and stake-eligibility JWT field.
- Human App server: removes staking/exchange-api-keys routes and stake-eligibility enforcement; trims UI-config response accordingly.
- Human App frontend: removes staking UI/API-key flows and stake-based route/menu gating; switches callers to use
useGetUiConfigdirectly (no provider).
Reviewed changes
Copilot reviewed 100 out of 100 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/apps/reputation-oracle/server/src/utils/stake.ts | Removes stake formatting utility. |
| packages/apps/reputation-oracle/server/src/modules/staking/types.ts | Removes staking DTO/types. |
| packages/apps/reputation-oracle/server/src/modules/staking/staking.service.ts | Removes staking aggregation/service logic. |
| packages/apps/reputation-oracle/server/src/modules/staking/staking.service.spec.ts | Removes staking service tests. |
| packages/apps/reputation-oracle/server/src/modules/staking/staking.module.ts | Removes Nest staking module. |
| packages/apps/reputation-oracle/server/src/modules/staking/staking.error-filter.ts | Removes staking controller error filter. |
| packages/apps/reputation-oracle/server/src/modules/staking/staking.dto.ts | Removes staking Swagger DTOs. |
| packages/apps/reputation-oracle/server/src/modules/staking/staking.controller.ts | Removes staking controller endpoints. |
| packages/apps/reputation-oracle/server/src/modules/staking/index.ts | Removes staking module exports. |
| packages/apps/reputation-oracle/server/src/modules/exchange/utils.ts | Removes exchange HTTP helper. |
| packages/apps/reputation-oracle/server/src/modules/exchange/types.ts | Removes exchange client interfaces/types. |
| packages/apps/reputation-oracle/server/src/modules/exchange/mexc-exchange.client.ts | Removes MEXC exchange client. |
| packages/apps/reputation-oracle/server/src/modules/exchange/mexc-exchange.client.spec.ts | Removes MEXC client tests. |
| packages/apps/reputation-oracle/server/src/modules/exchange/index.ts | Removes exchange module exports. |
| packages/apps/reputation-oracle/server/src/modules/exchange/gate-exchange.client.ts | Removes Gate exchange client. |
| packages/apps/reputation-oracle/server/src/modules/exchange/gate-exchange.client.spec.ts | Removes Gate client tests. |
| packages/apps/reputation-oracle/server/src/modules/exchange/fixtures/index.ts | Removes exchange fixtures barrel. |
| packages/apps/reputation-oracle/server/src/modules/exchange/fixtures/exchange.ts | Removes exchange fixtures. |
| packages/apps/reputation-oracle/server/src/modules/exchange/exchange.module.ts | Removes exchange Nest module. |
| packages/apps/reputation-oracle/server/src/modules/exchange/exchange-client.factory.ts | Removes exchange client factory. |
| packages/apps/reputation-oracle/server/src/modules/exchange/errors.ts | Removes exchange error types. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/index.ts | Removes exchange-api-keys module exports. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/fixtures/index.ts | Removes exchange-api-keys fixtures. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.service.ts | Removes exchange-api-keys service. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.service.spec.ts | Removes exchange-api-keys service tests. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.repository.ts | Removes exchange-api-keys repository. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.module.ts | Removes exchange-api-keys Nest module. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.errors.ts | Removes exchange-api-keys domain errors. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.error-filter.ts | Removes exchange-api-keys controller filter. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.dto.ts | Removes exchange-api-keys Swagger DTOs. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-keys.controller.ts | Removes exchange-api-keys controller. |
| packages/apps/reputation-oracle/server/src/modules/exchange-api-keys/exchange-api-key.entity.ts | Removes exchange-api-keys entity. |
| packages/apps/reputation-oracle/server/src/modules/auth/auth.service.ts | Removes stake-eligibility evaluation + JWT field. |
| packages/apps/reputation-oracle/server/src/modules/auth/auth.service.spec.ts | Updates auth tests for removed stake eligibility. |
| packages/apps/reputation-oracle/server/src/modules/auth/auth.module.ts | Removes staking/exchange deps from auth module. |
| packages/apps/reputation-oracle/server/src/database/migrations/1783955400433-dropExchangeApiKeys.ts | Adds migration to drop exchange_api_keys table. |
| packages/apps/reputation-oracle/server/src/database/database.module.ts | Removes ExchangeApiKeyEntity from TypeORM entities list. |
| packages/apps/reputation-oracle/server/src/config/staking-config.service.ts | Removes staking config service. |
| packages/apps/reputation-oracle/server/src/config/index.ts | Removes staking config export. |
| packages/apps/reputation-oracle/server/src/config/env-schema.ts | Removes staking-related env var schema entries. |
| packages/apps/reputation-oracle/server/src/config/config.module.ts | Removes staking config service registration. |
| packages/apps/reputation-oracle/server/src/common/constants/index.ts | Removes supported-exchange constants. |
| packages/apps/reputation-oracle/server/src/app.module.ts | Removes staking/exchange-api-keys modules from app wiring. |
| packages/apps/human-app/server/src/modules/ui-configuration/ui-configuration.module.ts | Removes staking module dependency. |
| packages/apps/human-app/server/src/modules/ui-configuration/ui-configuration.dto.ts | Removes staking fields from UI config DTO. |
| packages/apps/human-app/server/src/modules/ui-configuration/ui-configuration.controller.ts | Stops fetching staking config; updates cache header. |
| packages/apps/human-app/server/src/modules/ui-configuration/ui-configuration.controller.spec.ts | Updates UI config controller tests after DTO change. |
| packages/apps/human-app/server/src/modules/staking/staking.service.ts | Removes Human App staking service. |
| packages/apps/human-app/server/src/modules/staking/staking.module.ts | Removes Human App staking module. |
| packages/apps/human-app/server/src/modules/staking/staking.controller.ts | Removes Human App staking controller. |
| packages/apps/human-app/server/src/modules/staking/spec/staking.service.spec.ts | Removes staking service tests. |
| packages/apps/human-app/server/src/modules/staking/spec/staking.service.mock.ts | Removes staking service mock. |
| packages/apps/human-app/server/src/modules/staking/spec/staking.fixtures.ts | Removes staking fixtures. |
| packages/apps/human-app/server/src/modules/staking/spec/staking.controller.spec.ts | Removes staking controller tests. |
| packages/apps/human-app/server/src/modules/staking/model/staking.model.ts | Removes staking API models. |
| packages/apps/human-app/server/src/modules/jobs-discovery/spec/jobs-discovery.controller.spec.ts | Updates jobs discovery tests for removed stake gating. |
| packages/apps/human-app/server/src/modules/jobs-discovery/jobs-discovery.controller.ts | Removes stake-eligibility gate for discovery. |
| packages/apps/human-app/server/src/modules/job-assignment/spec/job-assignment.controller.spec.ts | Updates job assignment tests for removed stake gating. |
| packages/apps/human-app/server/src/modules/job-assignment/job-assignment.controller.ts | Removes stake-eligibility gate for assignment APIs. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/spec/exchange-api-keys.service.spec.ts | Removes exchange-api-keys service tests. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/spec/exchange-api-keys.service.mock.ts | Removes exchange-api-keys service mock. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/spec/exchange-api-keys.fixtures.ts | Removes exchange-api-keys fixtures. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/spec/exchange-api-keys.controller.spec.ts | Removes exchange-api-keys controller tests. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/model/exchange-api-keys.model.ts | Removes exchange-api-keys API models. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/exchange-api-keys.service.ts | Removes exchange-api-keys service. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/exchange-api-keys.module.ts | Removes exchange-api-keys module. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/exchange-api-keys.mapper.profile.ts | Removes exchange-api-keys mapper profile. |
| packages/apps/human-app/server/src/modules/exchange-api-keys/exchange-api-keys.controller.ts | Removes exchange-api-keys controller. |
| packages/apps/human-app/server/src/main.ts | Restricts CORS allowed methods list. |
| packages/apps/human-app/server/src/integrations/reputation-oracle/reputation-oracle.mapper.profile.ts | Removes exchange-api-keys mapping. |
| packages/apps/human-app/server/src/integrations/reputation-oracle/reputation-oracle.gateway.ts | Removes staking/exchange-api-keys gateway calls. |
| packages/apps/human-app/server/src/common/utils/jwt-token.model.ts | Removes is_stake_eligible from JWT model. |
| packages/apps/human-app/server/src/common/guards/strategy/jwt.http.ts | Stops reading is_stake_eligible from JWT payload. |
| packages/apps/human-app/server/src/common/enums/reputation-oracle-endpoints.ts | Removes staking/exchange-api-keys endpoint enums. |
| packages/apps/human-app/server/src/common/enums/http-method.ts | Removes DELETE from HTTP method enum. |
| packages/apps/human-app/server/src/common/config/gateway-config.service.ts | Removes staking/exchange-api-keys endpoint configs. |
| packages/apps/human-app/server/src/app.module.ts | Removes staking/exchange-api-keys modules/controllers from app. |
| packages/apps/human-app/frontend/src/shared/services/ui-config.service.ts | Removes staking fields from UI config schema. |
| packages/apps/human-app/frontend/src/shared/providers/ui-config-provider.tsx | Removes UI config context provider. |
| packages/apps/human-app/frontend/src/shared/i18n/en.json | Removes staking/api-key related translations. |
| packages/apps/human-app/frontend/src/router/router.tsx | Removes stake-gated route wrapper and ui-config provider usage. |
| packages/apps/human-app/frontend/src/router/components/drawer-menu-items/drawer-menu-items-worker.tsx | Removes stake-based disabling of worker menu items. |
| packages/apps/human-app/frontend/src/modules/worker/services/staking.service.ts | Removes staking API client. |
| packages/apps/human-app/frontend/src/modules/worker/services/exchangeApiKeys.service.ts | Removes exchange-api-keys API client. |
| packages/apps/human-app/frontend/src/modules/worker/providers/require-stake.tsx | Removes stake-based route guard. |
| packages/apps/human-app/frontend/src/modules/worker/profile/views/profile.page.tsx | Removes staking info section from profile page. |
| packages/apps/human-app/frontend/src/modules/worker/profile/hooks/use-api-key-modals.tsx | Removes api-key modal hooks. |
| packages/apps/human-app/frontend/src/modules/worker/profile/components/staking-info.tsx | Removes staking info UI component. |
| packages/apps/human-app/frontend/src/modules/worker/profile/components/index.ts | Removes exports for staking/api-key UI components. |
| packages/apps/human-app/frontend/src/modules/worker/profile/components/edit-api-key-modal.tsx | Removes edit api-key modal. |
| packages/apps/human-app/frontend/src/modules/worker/profile/components/delete-api-key-modal.tsx | Removes delete api-key modal. |
| packages/apps/human-app/frontend/src/modules/worker/profile/components/api-key-data.tsx | Removes api-key display component. |
| packages/apps/human-app/frontend/src/modules/worker/profile/components/add-api-key-modal.tsx | Removes add api-key modal. |
| packages/apps/human-app/frontend/src/modules/worker/jobs/my-jobs/hooks/use-my-jobs-filter-modal.tsx | Switches to useGetUiConfig hook for chain IDs. |
| packages/apps/human-app/frontend/src/modules/worker/jobs/jobs.page.tsx | Switches to useGetUiConfig hook for chain IDs. |
| packages/apps/human-app/frontend/src/modules/worker/jobs/available-jobs/hooks/use-available-jobs-filter-modal.tsx | Switches to useGetUiConfig hook for chain IDs. |
| packages/apps/human-app/frontend/src/modules/worker/hooks/use-staking.ts | Removes staking React Query hook. |
| packages/apps/human-app/frontend/src/modules/worker/hooks/use-exchange-api-keys.ts | Removes exchange-api-keys React Query hooks. |
| packages/apps/human-app/frontend/src/modules/auth/context/auth-context.tsx | Removes is_stake_eligible from JWT user schema. |
| packages/apps/human-app/frontend/src/main.tsx | Removes UiConfigProvider from app root composition. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dnechay
reviewed
Jul 14, 2026
dnechay
left a comment
Collaborator
There was a problem hiding this comment.
Please include necessary cleanup steps to release plan (e.g. what env vars to remove and when)
dnechay
approved these changes
Jul 14, 2026
This file contains hidden or 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
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.
Issue tracking
Freestyle
Context behind the change
Reverts the code related to the feature out of human-app/frontend, human-app/server and repO;
the feature has been implemented in #3632
How has this been tested?
locally: rebuilt docker and checked out the client
Release plan
regular;
after successful deployment, to remove unused env vars:
STAKING_ELIGIBILITY_ENABLED from RepO
Potential risks; What to monitor; Rollback plan
need to monitor, if server returns correct data