Remove client code for deprecated V1 /user-notification and /feature-flags (useSorobanPublic)
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 64/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- frontend, testing-qa
Research direction
Start with the listed account helpers, loadBackendSettings/saveSettings handlers, and popup settings state to trace both deprecated paths. Update the named Account, asset-visibility, and asset-selection consumers, then run the referenced Account tests and e2e stubs. Done means no V1 endpoint or Soroban flag references remain, the selector uses isRpcHealthy, and V2 flags and MaintenanceBanner are unchanged.
Written by the indexing model from the issue text.
Description
Client-side follow-up to stellar/freighter-backend-v2#122 (V1 endpoint deprecation, part of the V1 decommission).
The backend team is dropping two V1-only endpoints that were never ported to V2. Both are consumed exclusively by this extension, so we need to remove the related client code. Neither feature is lost — /user-notification is superseded by the Amplitude-driven MaintenanceBanner, and useSorobanPublic has been hardcoded true on the backend for its entire life.
⚠️ Sequencing (must ship before/with the V1 removal)
The /feature-flags fetch falls back to { useSorobanPublic: false } on failure. On mainnet that flips isSorobanPublicEnabled false and fires a false "Soroban is temporarily experiencing issues" toast to all mainnet users. So this client change must land before or simultaneously with the V1 endpoint removal. (/user-notification falls back to {enabled:false} and is harmless if removed first, but we should clean it up regardless.)
⚠️ Do NOT confuse three "feature-flags" systems
- V1 backend
/feature-flags→useSorobanPublic— this is the only one being removed. - V2 backend
/feature-flags→swap_enabled/discover_enabled/onramp_enabled— different endpoint, actively used, leave alone. - Amplitude
fetchFeatureFlagsinremoteConfig.ts→maintenance_banner— unrelated, leave alone.
Scope — remove /user-notification
extension/src/background/helpers/account.ts:344-356—getUserNotification()fetchextension/src/background/messageListener/handlers/loadBackendSettings.ts— stop returninguserNotificationextension/src/popup/ducks/settings.ts—initialState.userNotification(:87),saveBackendSettingswrites (:412,:418)extension/src/popup/views/Account/index.tsx:255-266— the<Notification>render block (the only render site) + selector read at:59@shared/api/internal.ts—loadBackendSettings()return shape (:1914-1923),UserNotificationimport (:63)@shared/api/types/types.ts—UserNotificationinterface (:213-216) +userNotificationfields (:75,:222)- e2e stubs / test mocks:
extension/e2e-tests/helpers/stubs.ts:41-46,2952,Account.test.tsx:358,400(testidaccount-view-user-notification), and other*.test.tsxsupplyinguserNotification
Scope — remove useSorobanPublic / V1 /feature-flags
extension/src/background/helpers/account.ts:358-370—getFeatureFlags()fetchextension/src/background/messageListener/handlers/loadBackendSettings.tsandsaveSettings.ts— dropisSorobanPublicEnabled: featureFlags.useSorobanPublicmapping (two consumers)extension/src/popup/ducks/settings.ts—initialState.isSorobanPublicEnabled(:85), debug reset (:158), reducer writes (:412-416,:446-468), and simplifysettingsSorobanSupportedSelector(:663-669) to justisRpcHealthy- UI consumers via that selector (no behavior change intended, verify each):
Account/index.tsx:58,92-102(Soroban toast),manageAssets/AssetVisibility/index.tsx:33,111(--shortclass),manageAssets/ChooseAsset/index.tsx:34,139(--shortclass) @shared/api/types/types.ts:73,220,232and@shared/api/internal.ts:1672,1915—isSorobanPublicEnabledtype/default
Done when
- No client references to
/user-notificationor the V1/feature-flagsendpoint /useSorobanPublic/isSorobanPublicEnabledremain. settingsSorobanSupportedSelectorreturnsisRpcHealthyon all networks; no mainnet regression (no spurious Soroban toast).- V2
/feature-flags(swap/discover/onramp) and the Amplitudemaintenance_bannerpath are untouched. - Tests/e2e stubs updated; MaintenanceBanner remains the notification surface.
Refs: stellar/freighter-backend-v2#122
- Dominant language
- TypeScript
- Stars
- 122
- Forks
- 62
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/freighter
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Write the banner publishing guidePossibly taken @aristidesstaffieri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stellar/freighter#3152 · 1 assignee ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
Dont call blockaid on empty token listMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
All issues in stellar/freighter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day