Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
579e947
import local remote feature flag
asalsys Dec 1, 2025
5587dfe
fix import issue and working remote-feature-flag-controller
asalsys Dec 2, 2025
369d995
support ab-test options
asalsys Dec 2, 2025
caaafbf
remove engine ready
asalsys Dec 4, 2025
06336f2
update abTestRawFlags to rawProcessedRemoteFeatureFlags
asalsys Dec 4, 2025
eee57f6
Merge branch 'main' into use-updated-remote-feature-flag-to-handle-ov…
asalsys Dec 11, 2025
4cdecbd
update the rawFeatureFlag options
asalsys Dec 11, 2025
79726ad
use preiview remote-feature-flag-controller
asalsys Dec 16, 2025
8b612df
enum flag type
asalsys Dec 16, 2025
5c9cd1e
clean up context
asalsys Dec 16, 2025
570dd64
fix override dashboard
asalsys Dec 16, 2025
2283792
null state
asalsys Dec 16, 2025
330c103
remove featureflag Description
asalsys Dec 16, 2025
99f1c93
fix tsc
asalsys Dec 16, 2025
0066cac
use remote-feature-flag-controller 3.1.0
asalsys Dec 17, 2025
674cc59
override logic requires rerender
asalsys Dec 17, 2025
022b5fc
Merge branch 'main' into use-updated-remote-feature-flag-to-handle-ov…
asalsys Dec 17, 2025
c372a47
fix tests
asalsys Dec 17, 2025
00f686d
Merge branch 'main' into use-updated-remote-feature-flag-to-handle-ov…
asalsys Dec 17, 2025
8152416
update initial background state
asalsys Dec 17, 2025
081617c
update snapshots
asalsys Dec 17, 2025
c622a8b
Merge branch 'main' into use-updated-remote-feature-flag-to-handle-ov…
asalsys Dec 18, 2025
b3d03c6
fix stat discrepency
asalsys Dec 18, 2025
f1fd362
update tests
asalsys Dec 19, 2025
3a59724
return default display if ab test break
asalsys Dec 19, 2025
51d4ce9
Merge branch 'main' into use-updated-remote-feature-flag-to-handle-ov…
asalsys Dec 19, 2025
a94723a
update overrides on dashboard
asalsys Dec 19, 2025
ed788fb
fix error
asalsys Dec 19, 2025
492ce47
fix test
asalsys Dec 19, 2025
885935d
fix test
asalsys Dec 19, 2025
d4c707c
add test coverage
asalsys Dec 19, 2025
60174f3
update tests
asalsys Dec 19, 2025
f2c27d7
add FeatureFlagBooleanNested case
asalsys Dec 19, 2025
13544fa
ab test undefined issue
asalsys Dec 19, 2025
236faec
fix FeatureFlagBooleanWithMinimumVersion
asalsys Dec 19, 2025
0aa6981
diable ab test if raw flag values not loaded
asalsys Dec 19, 2025
8caf5eb
for string inputs dont refresh while editing
asalsys Dec 19, 2025
a39e09c
handle ref gracefully
asalsys Dec 19, 2025
75069a8
fix resetting ref issue
asalsys Dec 19, 2025
04dea27
Merge branch 'main' into use-updated-remote-feature-flag-to-handle-ov…
asalsys Dec 19, 2025
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
Prev Previous commit
Next Next commit
remove featureflag Description
  • Loading branch information
asalsys committed Dec 16, 2025
commit 330c1037078b1debff11912b105a55540b5dbb6e
112 changes: 1 addition & 111 deletions app/util/feature-flags/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { getVersion } from 'react-native-device-info';
import compareVersions from 'compare-versions';

import {
getFeatureFlagType,
getFeatureFlagDescription,
isMinimumRequiredVersionSupported,
} from './index';
import { getFeatureFlagType, isMinimumRequiredVersionSupported } from './index';

jest.mock('react-native-device-info', () => ({
getVersion: jest.fn(),
Expand Down Expand Up @@ -165,112 +161,6 @@ describe('Feature Flags Utility Functions', () => {
});
});

describe('getFeatureFlagDescription', () => {
it('returns correct description for confirmation_redesign', () => {
const result = getFeatureFlagDescription('confirmation_redesign');

expect(result).toBe('Controls redesigned confirmation flows');
});

it('returns correct description for sendRedesign', () => {
const result = getFeatureFlagDescription('sendRedesign');

expect(result).toBe('Controls redesigned send flow');
});

it('returns correct description for bridgeConfigV2', () => {
const result = getFeatureFlagDescription('bridgeConfigV2');

expect(result).toBe('Bridge configuration and supported chains');
});

it('returns correct description for enableMultichainAccounts', () => {
const result = getFeatureFlagDescription('enableMultichainAccounts');

expect(result).toBe('Multichain account functionality');
});

it('returns correct description for enableMultichainAccountsState2', () => {
const result = getFeatureFlagDescription(
'enableMultichainAccountsState2',
);

expect(result).toBe('Enhanced multichain account features');
});

it('returns correct description for assetsDefiPositionsEnabled', () => {
const result = getFeatureFlagDescription('assetsDefiPositionsEnabled');

expect(result).toBe('DeFi positions tracking');
});

it('returns correct description for assetsAccountApiBalancesEnabled', () => {
const result = getFeatureFlagDescription(
'assetsAccountApiBalancesEnabled',
);

expect(result).toBe('Account API balance fetching');
});

it('returns correct description for bitcoinTestnetsEnabled', () => {
const result = getFeatureFlagDescription('bitcoinTestnetsEnabled');

expect(result).toBe('Bitcoin testnet support');
});

it('returns correct description for solanaTestnetsEnabled', () => {
const result = getFeatureFlagDescription('solanaTestnetsEnabled');

expect(result).toBe('Solana testnet support');
});

it('returns correct description for walletFrameworkRpcFailoverEnabled', () => {
const result = getFeatureFlagDescription(
'walletFrameworkRpcFailoverEnabled',
);

expect(result).toBe('RPC failover functionality');
});

it('returns correct description for trxStakingEnabled', () => {
const result = getFeatureFlagDescription('trxStakingEnabled');

expect(result).toBe('TRON staking features');
});

it('returns correct description for tokenSearchDiscoveryEnabled', () => {
const result = getFeatureFlagDescription('tokenSearchDiscoveryEnabled');

expect(result).toBe('Token search and discovery');
});

it('returns correct description for productSafetyDappScanningEnabled', () => {
const result = getFeatureFlagDescription(
'productSafetyDappScanningEnabled',
);

expect(result).toBe('DApp security scanning');
});

it('returns correct description for minimumAppVersion', () => {
const result = getFeatureFlagDescription('minimumAppVersion');

expect(result).toBe('Minimum app version requirements');
});

it('returns undefined for unknown feature flag keys', () => {
const result = getFeatureFlagDescription('unknownFeatureFlag');

expect(result).toBeUndefined();
});

it('returns undefined for empty string keys', () => {
const result = getFeatureFlagDescription('');

expect(result).toBeUndefined();
});
});

describe('isMinimumRequiredVersionSupported', () => {
beforeEach(() => {
mockedGetVersion.mockReturnValue('1.5.0');
Expand Down
Loading