Skip to content

Commit 1bf3d0a

Browse files
committed
Added blox manager, made switching and status check better
1 parent 3095066 commit 1bf3d0a

17 files changed

Lines changed: 600 additions & 145 deletions

File tree

.claude/settings.local.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@
3737
"WebFetch(domain:docs.reown.com)",
3838
"WebFetch(domain:docs.metamask.io)",
3939
"WebFetch(domain:developer.trustwallet.com)",
40-
"WebFetch(domain:specs.walletconnect.com)"
40+
"WebFetch(domain:specs.walletconnect.com)",
41+
"Bash(wc:*)",
42+
"WebFetch(domain:raw.githubusercontent.com)",
43+
"WebFetch(domain:api.github.com)",
44+
"Bash(curl:*)"
4145
]
4246
}
4347
}

apps/box/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ android {
8686
applicationId "land.fx.blox"
8787
minSdkVersion rootProject.ext.minSdkVersion
8888
targetSdkVersion rootProject.ext.targetSdkVersion
89-
versionCode 252
90-
versionName "2.3.0"
89+
versionCode 253
90+
versionName "2.3.1"
9191

9292
testBuildType System.getProperty('testBuildType', 'debug')
9393
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

apps/box/ios/Box.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589
"$(inherited)",
590590
"@executable_path/Frameworks",
591591
);
592-
MARKETING_VERSION = 2.3.0;
592+
MARKETING_VERSION = 2.3.1;
593593
OTHER_LDFLAGS = (
594594
"$(inherited)",
595595
"-ObjC",
@@ -627,7 +627,7 @@
627627
"$(inherited)",
628628
"@executable_path/Frameworks",
629629
);
630-
MARKETING_VERSION = 2.3.0;
630+
MARKETING_VERSION = 2.3.1;
631631
OTHER_LDFLAGS = (
632632
"$(inherited)",
633633
"-ObjC",

apps/box/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "box",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"private": true,
55
"dependencies": {
66
"@babel/core": "*",

apps/box/src/components/BloxSelectionBottomSheet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const BloxListItem = ({ blox, isSelected, connectionStatus, onSelect }: BloxList
3131
switch (connectionStatus) {
3232
case 'CONNECTED':
3333
return 'successBase';
34+
case 'SWITCHING':
3435
case 'CHECKING':
3536
return 'warningBase';
3637
default:

apps/box/src/components/CurrentBloxIndicator.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const CurrentBloxIndicator = ({
3131
switch (connectionStatus) {
3232
case 'CONNECTED':
3333
return 'successBase';
34+
case 'SWITCHING':
3435
case 'CHECKING':
3536
return 'warningBase';
3637
default:
@@ -42,6 +43,8 @@ export const CurrentBloxIndicator = ({
4243
switch (connectionStatus) {
4344
case 'CONNECTED':
4445
return t('currentBloxIndicator.connected');
46+
case 'SWITCHING':
47+
return t('currentBloxIndicator.switching');
4548
case 'CHECKING':
4649
return t('currentBloxIndicator.checking');
4750
case 'DISCONNECTED':

apps/box/src/i18n/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@
229229
"noBloxSelected": "No Blox Selected",
230230
"connected": "Connected",
231231
"checking": "Checking",
232+
"switching": "Switching",
232233
"disconnected": "Disconnected"
233234
},
234235
"bleDeviceSelection": {

apps/box/src/models/blox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface TBloxFolderSize {
1717
export type TBloxConectionStatus =
1818
| 'CONNECTED'
1919
| 'CHECKING'
20+
| 'SWITCHING'
2021
| 'DISCONNECTED'
2122
| 'NO INTERNET'
2223
| 'NO CLIENT';

apps/box/src/navigation/Root.navigator.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
22
import { createStackNavigator } from '@react-navigation/stack';
33
import { InitialSetupNavigator } from './InitialSetup.navigator';
44
import { MainTabsNavigator } from './MainTabs.navigator';
5+
import { BloxManagerScreen } from '../screens/BloxManager.screen';
56
import { Routes, RootStackParamList } from './navigationConfig';
67
import { useUserProfileStore } from '../stores/useUserProfileStore';
78
import { useBloxsStore } from '../stores';
@@ -50,6 +51,11 @@ export const RootNavigator = () => {
5051
component={MainTabsNavigator}
5152
options={{ headerShown: false }}
5253
/>
54+
<RootStack.Screen
55+
name={Routes.BloxManager}
56+
component={BloxManagerScreen}
57+
options={{ headerShown: false }}
58+
/>
5359
</RootStack.Navigator>
5460
);
5561
};

apps/box/src/navigation/navigationConfig.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export enum Routes {
3333
SettingsTab = 'SettingsTab',
3434
ChatAITab = 'ChatAITab',
3535

36+
// Blox Manager
37+
BloxManager = 'BloxManager',
38+
3639
// Settings Stack
3740
Settings = 'Settings',
3841
ConnectedDApps = 'ConnectedDApps',
@@ -67,6 +70,7 @@ export type RootStackParamList = {
6770
[Routes.Hub]: undefined;
6871
[Routes.Plugin]: undefined;
6972
[Routes.ChatAI]: undefined;
73+
[Routes.BloxManager]: undefined;
7074
};
7175

7276
export type MainTabsParamList = {

0 commit comments

Comments
 (0)