From 692c26600f637dee22a9985fbc29e4c9caafe07d Mon Sep 17 00:00:00 2001
From: gm852 <184552300+gm852@users.noreply.github.com>
Date: Tue, 13 Oct 2026 20:29:57 +0000
Subject: [PATCH 1/6] bug fix for auth keys; minor ui fixes
---
app.json | 2 +-
app/(tabs)/_layout.tsx | 4 +-
app/(tabs)/preauthkeys.tsx | 160 ++++++++++++++++++++++++++++++++-----
app/funcs/preauthkeys.ts | 51 ++++++++----
package.json | 2 +-
5 files changed, 182 insertions(+), 37 deletions(-)
diff --git a/app.json b/app.json
index 80aa4d1..e5b7fd8 100644
--- a/app.json
+++ b/app.json
@@ -2,7 +2,7 @@
"expo": {
"name": "Scale Manager",
"slug": "scaleManager",
- "version": "1.2.7",
+ "version": "1.2.8",
"orientation": "portrait",
"icon": "./assets/images/noBgScaleManagerLogo.png",
"scheme": "myapp",
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
index 8871524..28d3f1b 100644
--- a/app/(tabs)/_layout.tsx
+++ b/app/(tabs)/_layout.tsx
@@ -29,14 +29,14 @@ export default function TabLayout() {
tabBarStyle: {
backgroundColor: theme.colors.tabBar,
borderTopColor: theme.colors.tabBarBorder,
- borderTopWidth: 1,
- height: 74,
+ height: 84,
paddingTop: spacing.xs,
paddingBottom: spacing.sm,
},
tabBarLabelStyle: {
...theme.typography.label,
marginTop: 2,
+ fontSize: 11
},
tabBarItemStyle: {
paddingVertical: spacing.xs,
diff --git a/app/(tabs)/preauthkeys.tsx b/app/(tabs)/preauthkeys.tsx
index 83a5616..f0f5de8 100644
--- a/app/(tabs)/preauthkeys.tsx
+++ b/app/(tabs)/preauthkeys.tsx
@@ -3,14 +3,108 @@ import {
Text, View, ScrollView, TouchableOpacity,
RefreshControl, Modal, TextInput, Alert, Clipboard,
KeyboardAvoidingView, Platform, TouchableWithoutFeedback, Keyboard,
+ useWindowDimensions,
} from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { MaterialIcons } from "@expo/vector-icons";
import Toast from "react-native-toast-message";
import { usePreAuthManager } from "@/app/funcs/preauthkeys";
import { ScreenLoading } from "@/app/components/ScreenLoading";
+import { isV028OrHigher } from "@/app/utils/headscaleVersion";
import { useTheme } from "@/theme";
+function CreatedPreAuthKeyView({
+ preAuthKey,
+ oneTimeOnly,
+ onClose,
+ onCopy,
+}: {
+ preAuthKey: string;
+ oneTimeOnly: boolean;
+ onClose: () => void;
+ onCopy: (value: string) => void;
+}) {
+ const { theme } = useTheme();
+ const colors = theme.colors;
+ const { height } = useWindowDimensions();
+
+ return (
+
+
+
+
+
+
+
+ Pre-Auth Key Created
+
+
+ Copy this key to enroll a device.
+
+
+
+ {oneTimeOnly && (
+
+
+
+ This is the only time you'll be able to access this key.
+
+
+ )}
+
+ onCopy(preAuthKey)}
+ activeOpacity={0.8}
+ className="p-4 rounded-xl mb-5 border"
+ style={{ backgroundColor: colors.background, borderColor: colors.border }}
+ >
+
+
+ Pre-Auth Key
+
+
+ Tap to copy
+
+
+
+ {preAuthKey}
+
+
+
+
+ onCopy(preAuthKey)}
+ className="flex-1 py-3 rounded-lg flex-row items-center justify-center"
+ style={{ backgroundColor: colors.primary }}
+ activeOpacity={0.7}
+ >
+
+ Copy Key
+
+
+
+ Done
+
+
+
+
+ );
+}
+
export default function PreAuthKeysScreen() {
const { theme } = useTheme();
const colors = theme.colors;
@@ -29,6 +123,8 @@ export default function PreAuthKeysScreen() {
const [expireTime, setExpireTime] = useState("24h");
const [isReusable, setIsReusable] = useState(false);
const [expandedUsers, setExpandedUsers] = useState>(new Set());
+ const [createdKey, setCreatedKey] = useState(null);
+ const [creating, setCreating] = useState(false);
useEffect(() => {
fetchData();
@@ -93,6 +189,15 @@ export default function PreAuthKeysScreen() {
setExpandedUsers(newExpanded);
};
+ const resetCreateForm = () => {
+ setShowCreateModal(false);
+ setSelectedUser("");
+ setExpireTime("24h");
+ setIsReusable(false);
+ setCreatedKey(null);
+ setCreating(false);
+ };
+
const handleCreateKeySubmit = async () => {
if (!selectedUser || !expireTime) {
Toast.show({
@@ -104,11 +209,22 @@ export default function PreAuthKeysScreen() {
return;
}
- await handleCreateKey(selectedUser, expireTime, isReusable);
- setShowCreateModal(false);
- setSelectedUser("");
- setExpireTime("24h");
- setIsReusable(false);
+ setCreating(true);
+ try {
+ const created = await handleCreateKey(selectedUser, expireTime, isReusable);
+ if (created?.key) {
+ setExpandedUsers((current) => {
+ const next = new Set(current);
+ next.add(selectedUser);
+ return next;
+ });
+ setCreatedKey(created.key);
+ } else if (created) {
+ resetCreateForm();
+ }
+ } finally {
+ setCreating(false);
+ }
};
const confirmExpireKey = (keyId: string, userName: string) => {
@@ -322,10 +438,8 @@ export default function PreAuthKeysScreen() {
transparent
animationType="slide"
onRequestClose={() => {
- setShowCreateModal(false);
- setSelectedUser("");
- setExpireTime("24h");
- setIsReusable(false);
+ if (creating) return;
+ resetCreateForm();
}}
>
@@ -334,6 +448,14 @@ export default function PreAuthKeysScreen() {
behavior={Platform.OS === "ios" ? "padding" : undefined}
className="w-full max-w-md"
>
+ {createdKey ? (
+ copyToClipboard(value, "Pre-auth key")}
+ />
+ ) : (
Create Pre-Auth Key
@@ -367,6 +489,7 @@ export default function PreAuthKeysScreen() {
onChangeText={setExpireTime}
placeholder="e.g. 24h, 7d, 30d"
placeholderTextColor={colors.textMuted}
+ editable={!creating}
/>
Examples: 1h (1 hour), 24h (24 hours), 7d (7 days), 30d (30 days)
@@ -376,6 +499,7 @@ export default function PreAuthKeysScreen() {
{/* Reusable Toggle */}
setIsReusable(!isReusable)}
+ disabled={creating}
className="flex-row items-center mb-6"
>
{
- setShowCreateModal(false);
- setSelectedUser("");
- setExpireTime("24h");
- setIsReusable(false);
- }}
- className="flex-1 py-3 rounded-lg" style={{ backgroundColor: colors.secondary }}
+ onPress={resetCreateForm}
+ disabled={creating}
+ className="flex-1 py-3 rounded-lg" style={{ backgroundColor: colors.secondary, opacity: creating ? 0.6 : 1 }}
>
Cancel
- Create Key
+
+ {creating ? "Creating..." : "Create Key"}
+
+ )}
diff --git a/app/funcs/preauthkeys.ts b/app/funcs/preauthkeys.ts
index 93bfc69..983ee60 100644
--- a/app/funcs/preauthkeys.ts
+++ b/app/funcs/preauthkeys.ts
@@ -6,6 +6,19 @@ import { isV026OrHigher, isV028OrHigher } from "../utils/headscaleVersion";
import Toast from "react-native-toast-message";
import { calculateExpirationDate } from "../utils/time";
+/** Full secret from create. List responses on v0.28+ only include a masked prefix. */
+function createdPreAuthKeyValue(result: unknown): string | null {
+ if (!result || typeof result !== "object") return null;
+ const body = result as Record;
+ const nested = body.preAuthKey ?? body.preauthKey;
+ if (nested && typeof nested === "object") {
+ const key = (nested as Record).key;
+ if (typeof key === "string" && key.trim()) return key.trim();
+ }
+ if (typeof body.key === "string" && body.key.trim()) return body.key.trim();
+ return null;
+}
+
export const usePreAuthManager = () => {
const [users, setUsers] = useState([]);
const [preAuthKeys, setPreAuthKeys] = useState>({});
@@ -172,26 +185,34 @@ export const usePreAuthManager = () => {
const result = await createPreAuthKey(userIdentifier, expirationDate, reusable);
if (isApiSuccess(result)) {
- Toast.show({
- type: "success",
- position: "top",
- text1: "✅ Key Created",
- text2: `Key created successfully for ${userName}.`,
- });
-
+ const key = createdPreAuthKeyValue(result);
+
try {
- fetchData()
+ await fetchData();
} catch (error) {
console.error("Failed to refresh preauth keys:", error);
}
- } else {
- Toast.show({
- type: "error",
- position: "top",
- text1: "Failed to Create Key",
- text2: `Failed to create key for ${userName}.`,
- });
+
+ if (!key) {
+ Toast.show({
+ type: "success",
+ position: "top",
+ text1: "✅ Key Created",
+ text2: `Key created for ${userName}, but the server did not return the full key.`,
+ });
+ return { key: null };
+ }
+
+ return { key };
}
+
+ Toast.show({
+ type: "error",
+ position: "top",
+ text1: "Failed to Create Key",
+ text2: `Failed to create key for ${userName}.`,
+ });
+ return null;
};
return {
diff --git a/package.json b/package.json
index 047471b..ee699ab 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "scalemanager",
"main": "expo-router/entry",
- "version": "1.2.7",
+ "version": "1.2.8",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
From 529385ef43b3e5e3c15307c70c1eaf045cb92d5d Mon Sep 17 00:00:00 2001
From: gm852 <184552300+gm852@users.noreply.github.com>
Date: Tue, 13 Oct 2026 20:32:21 +0000
Subject: [PATCH 2/6] dep updates
---
package.json | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/package.json b/package.json
index ee699ab..0cb1f44 100644
--- a/package.json
+++ b/package.json
@@ -17,17 +17,17 @@
"dependencies": {
"@expo/vector-icons": "^15.1.1",
"@react-native-async-storage/async-storage": "^2.2.0",
- "@react-navigation/bottom-tabs": "^7.19.2",
- "@react-navigation/native": "^7.4.1",
- "expo": "^57.0.25",
+ "@react-navigation/bottom-tabs": "^7.20.0",
+ "@react-navigation/native": "^7.5.0",
+ "expo": "^57.0.28",
"expo-blur": "~57.0.3",
- "expo-constants": "~57.0.19",
+ "expo-constants": "~57.0.21",
"expo-font": "~57.0.4",
"expo-haptics": "~57.0.3",
- "expo-linking": "~57.0.11",
- "expo-router": "~57.0.23",
- "expo-sharing": "~57.0.22",
- "expo-splash-screen": "~57.0.9",
+ "expo-linking": "~57.0.12",
+ "expo-router": "~57.0.26",
+ "expo-sharing": "~57.0.23",
+ "expo-splash-screen": "~57.0.10",
"expo-status-bar": "~57.0.1",
"expo-symbols": "~57.0.3",
"expo-system-ui": "~57.0.4",
@@ -42,7 +42,7 @@
"react-native-screens": "~4.26.2",
"react-native-syntax-highlighter": "^2.1.0",
"react-native-toast-message": "^2.5.2",
- "react-native-web": "^0.21.2",
+ "react-native-web": "^0.21.4",
"react-native-webview": "13.16.1",
"react-native-worklets": "0.10.1",
"react-syntax-highlighter": "^15.6.6",
@@ -58,7 +58,7 @@
"eslint": "^8.57.1",
"eslint-config-expo": "~57.0.2",
"jest": "^29.7.0",
- "jest-expo": "~57.0.5",
+ "jest-expo": "~57.0.6",
"react-test-renderer": "^19.3.0",
"typescript": "~6.0.3"
},
From 7c596e6e24771581b85f899148876c5050c1ce46 Mon Sep 17 00:00:00 2001
From: gm852 <184552300+gm852@users.noreply.github.com>
Date: Tue, 13 Oct 2026 20:54:49 +0000
Subject: [PATCH 3/6] swipe to change screen
---
app/(tabs)/_layout.tsx | 136 +++++++++++++++++++++++------------------
package.json | 2 +
2 files changed, 79 insertions(+), 59 deletions(-)
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
index 28d3f1b..ac78fb8 100644
--- a/app/(tabs)/_layout.tsx
+++ b/app/(tabs)/_layout.tsx
@@ -1,11 +1,43 @@
-import { Tabs } from "expo-router";
+import { TopTabs } from "expo-router/js-top-tabs";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import { getServerConfig } from "../utils/getServer";
-import { useEffect, useState } from "react";
+import { useEffect, useState, type ComponentProps } from "react";
+import { StyleSheet, Text, type ColorValue } from "react-native";
import { isV026OrHigher } from "../utils/headscaleVersion";
import { useTheme } from "@/theme";
import { spacing } from "@/theme/spacing";
+function tabIcon(name: ComponentProps["name"]) {
+ return ({ color }: { color: string }) => (
+
+ );
+}
+
+function TabLabel({
+ color,
+ children,
+}: {
+ color: ColorValue;
+ children: string;
+}) {
+ const { theme } = useTheme();
+
+ return (
+
+ {children}
+
+ );
+}
+
export default function TabLayout() {
const [hideRoutes, setHideRoutes] = useState(false);
const { theme } = useTheme();
@@ -21,113 +53,99 @@ export default function TabLayout() {
}, []);
return (
- {children},
+ sceneStyle: { backgroundColor: theme.colors.background },
}}
>
- (
-
- ),
+ tabBarIcon: tabIcon("home"),
}}
/>
- (
-
- ),
+ tabBarIcon: tabIcon("account-group"),
}}
/>
- (
-
- ),
+ tabBarIcon: tabIcon("devices"),
}}
/>
- (
-
- ),
+ tabBarIcon: tabIcon("key-chain"),
}}
/>
- (
-
- ),
+ tabBarIcon: tabIcon("key"),
}}
/>
- (
-
- ),
- }}
- />
+
+
+
- (
-
- ),
+ tabBarIcon: tabIcon("shield-account"),
}}
/>
-
+
);
}
diff --git a/package.json b/package.json
index 0cb1f44..2f41a4c 100644
--- a/package.json
+++ b/package.json
@@ -37,10 +37,12 @@
"react-dom": "19.2.3",
"react-native": "0.86.3",
"react-native-gesture-handler": "~2.32.0",
+ "react-native-pager-view": "8.0.2",
"react-native-reanimated": "4.5.1",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.26.2",
"react-native-syntax-highlighter": "^2.1.0",
+ "react-native-tab-view": "^4.3.3",
"react-native-toast-message": "^2.5.2",
"react-native-web": "^0.21.4",
"react-native-webview": "13.16.1",
From ee3440b09bfe007fd1f5954370edbf664aec73b2 Mon Sep 17 00:00:00 2001
From: gm852 <184552300+gm852@users.noreply.github.com>
Date: Tue, 13 Oct 2026 21:00:57 +0000
Subject: [PATCH 4/6] expire preauth key fix
---
app/(tabs)/preauthkeys.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/app/(tabs)/preauthkeys.tsx b/app/(tabs)/preauthkeys.tsx
index f0f5de8..973d4a2 100644
--- a/app/(tabs)/preauthkeys.tsx
+++ b/app/(tabs)/preauthkeys.tsx
@@ -227,6 +227,10 @@ export default function PreAuthKeysScreen() {
}
};
+ // v0.28+ expires by numeric id. Older versions look the key up by its full secret.
+ const expireKeyValue = (key: { id?: string | number; key?: string }) =>
+ isV028OrHigher(apiVersion) ? String(key.id) : String(key.key ?? "");
+
const confirmExpireKey = (keyId: string, userName: string) => {
Alert.alert(
"Expire Key",
@@ -396,7 +400,7 @@ export default function PreAuthKeysScreen() {
{!key.used && !isExpired(key.expiration) && (
confirmExpireKey(String(key.id), user.name)}
+ onPress={() => confirmExpireKey(expireKeyValue(key), user.name)}
className="p-2 rounded ml-2" style={{ backgroundColor: colors.error }}
>
From 927537942ae225e19933595c606fd7b036ae35f2 Mon Sep 17 00:00:00 2001
From: gm852 <184552300+gm852@users.noreply.github.com>
Date: Wed, 14 Oct 2026 16:01:18 +0000
Subject: [PATCH 5/6] ACL popup fix
---
hooks/useACL.ts | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
diff --git a/hooks/useACL.ts b/hooks/useACL.ts
index ef4dc8c..3fc4cf0 100644
--- a/hooks/useACL.ts
+++ b/hooks/useACL.ts
@@ -1,5 +1,6 @@
-import { useState, useEffect, useCallback } from "react";
+import { useState, useEffect, useCallback, useRef } from "react";
import { Alert } from "react-native";
+import { useIsFocused } from "expo-router/build/useIsFocused";
import { checkACLPolicy, getACLPolicy, updateACLPolicy } from "@/app/api/acl";
import { getApiEndpoints } from "@/app/utils/apiUtils";
import { isV029OrHigher } from "@/app/utils/headscaleVersion";
@@ -55,6 +56,25 @@ export const useACL = (): ACLHookReturn => {
const [showErrorModal, setShowErrorModal] = useState(false);
const [currentError, setCurrentError] = useState(null);
const [serverVersion, setServerVersion] = useState("");
+ const isFocused = useIsFocused();
+ const isFocusedRef = useRef(isFocused);
+ const pendingFetchAlert = useRef<{ title: string; message: string } | null>(null);
+
+ useEffect(() => {
+ isFocusedRef.current = isFocused;
+ if (!isFocused || !pendingFetchAlert.current) return;
+ const pending = pendingFetchAlert.current;
+ pendingFetchAlert.current = null;
+ Alert.alert(pending.title, pending.message);
+ }, [isFocused]);
+
+ const alertIfFocused = (title: string, message: string) => {
+ if (isFocusedRef.current) {
+ Alert.alert(title, message);
+ return;
+ }
+ pendingFetchAlert.current = { title, message };
+ };
const fetchPolicy = useCallback(async () => {
try {
@@ -79,8 +99,9 @@ export const useACL = (): ACLHookReturn => {
setPolicy(formattedPolicy);
setOriginalPolicy(formattedPolicy);
+ pendingFetchAlert.current = null;
} else {
- Alert.alert("Error", "Failed to fetch ACL policy");
+ alertIfFocused("Error", "Failed to fetch ACL policy");
}
} catch (error: any) {
console.error("Error fetching policy:", error);
@@ -108,7 +129,7 @@ export const useACL = (): ACLHookReturn => {
}
setCurrentError({ message: errorMessage });
- Alert.alert("Error", "Failed to fetch ACL policy. Check your connection.");
+ alertIfFocused("Error", "Failed to fetch ACL policy. Check your connection.");
} finally {
setLoading(false);
}
From 1554568b7103e97b6fe58a9f139aa19759da7070 Mon Sep 17 00:00:00 2001
From: gm852 <184552300+gm852@users.noreply.github.com>
Date: Wed, 14 Oct 2026 16:04:49 +0000
Subject: [PATCH 6/6] removal of emojis
---
app/funcs/accounts.ts | 8 ++++----
app/funcs/apikeys.ts | 8 ++++----
app/funcs/deviceDetail.ts | 10 +++++-----
app/funcs/devices.ts | 4 ++--
app/funcs/index.ts | 4 ++--
app/funcs/preauthkeys.ts | 2 +-
app/funcs/routes.ts | 4 ++--
app/funcs/users.ts | 6 +++---
8 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/app/funcs/accounts.ts b/app/funcs/accounts.ts
index 14eda45..e7d7392 100644
--- a/app/funcs/accounts.ts
+++ b/app/funcs/accounts.ts
@@ -76,7 +76,7 @@ export function useAccountsManager() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Account Removed",
+ text1: "Account Removed",
text2: `Account "${accountName}" has been removed.`,
});
@@ -148,7 +148,7 @@ export function useAccountsManager() {
Toast.show({
type: "error",
position: "top",
- text1: "❌ Duplicate Entry",
+ text1: "Duplicate Entry",
text2: nameTaken
? "That name is already taken."
: "That server is already added.",
@@ -199,7 +199,7 @@ export function useAccountsManager() {
Toast.show({
type: "success",
- text1: "✅ Connected",
+ text1: "Connected",
text2: "Account added successfully.",
});
@@ -224,7 +224,7 @@ export function useAccountsManager() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Version Updated",
+ text1: "Version Updated",
text2: `${accountName} updated to ${newVersion}`,
});
};
diff --git a/app/funcs/apikeys.ts b/app/funcs/apikeys.ts
index 6bbc00d..88c786f 100644
--- a/app/funcs/apikeys.ts
+++ b/app/funcs/apikeys.ts
@@ -87,7 +87,7 @@ export function useApiKeys() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ API Key Created",
+ text1: "API Key Created",
text2: "New API key generated successfully",
});
@@ -99,7 +99,7 @@ export function useApiKeys() {
Toast.show({
type: "error",
position: "top",
- text1: "❌ Creation Failed",
+ text1: "Creation Failed",
text2: "Failed to create API key",
});
return null;
@@ -108,7 +108,7 @@ export function useApiKeys() {
Toast.show({
type: "error",
position: "top",
- text1: "❌ Creation Failed",
+ text1: "Creation Failed",
text2: "An error occurred while creating the key",
});
return null;
@@ -121,7 +121,7 @@ export function useApiKeys() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Key Expired",
+ text1: "Key Expired",
text2: "API Key Expired Successfully",
});
await fetchApiKeys();
diff --git a/app/funcs/deviceDetail.ts b/app/funcs/deviceDetail.ts
index 2c2bc33..209d556 100644
--- a/app/funcs/deviceDetail.ts
+++ b/app/funcs/deviceDetail.ts
@@ -97,7 +97,7 @@ export function useDeviceDetail(deviceData: string | undefined) {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Device Renamed",
+ text1: "Device Renamed",
text2: `Device renamed to "${tempValue.trim()}"`,
});
} else {
@@ -155,7 +155,7 @@ export function useDeviceDetail(deviceData: string | undefined) {
Toast.show({
type: "success",
position: "top",
- text1: "✅ User Changed",
+ text1: "User Changed",
text2: `Device assigned to "${newUser}"`,
});
} else {
@@ -220,7 +220,7 @@ export function useDeviceDetail(deviceData: string | undefined) {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Tags Added",
+ text1: "Tags Added",
text2: `Added ${tagsArray.length} tag(s)`,
});
} else {
@@ -262,7 +262,7 @@ export function useDeviceDetail(deviceData: string | undefined) {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Routes Updated",
+ text1: "Routes Updated",
text2: `Approved ${selectedRoutes.length} route(s)`,
});
} else {
@@ -309,7 +309,7 @@ export function useDeviceDetail(deviceData: string | undefined) {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Route Removed",
+ text1: "Route Removed",
text2: `Route "${route}" removed from approved`,
});
} else {
diff --git a/app/funcs/devices.ts b/app/funcs/devices.ts
index 27aef7b..06f0c23 100644
--- a/app/funcs/devices.ts
+++ b/app/funcs/devices.ts
@@ -150,7 +150,7 @@ export function useDevices() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Device Registered",
+ text1: "Device Registered",
text2: `Device registered successfully for ${user.name}!`,
});
await fetchDevices();
@@ -192,7 +192,7 @@ export function useDevices() {
Toast.show({
type: "success",
position: "top",
- text1: action === "approve" ? "✅ Auth Approved" : "✅ Auth Rejected",
+ text1: action === "approve" ? "Auth Approved" : "Auth Rejected",
text2: `Auth request ${authId} ${action}d.`,
});
setShowRegisterModal(false);
diff --git a/app/funcs/index.ts b/app/funcs/index.ts
index e94109f..bab8072 100644
--- a/app/funcs/index.ts
+++ b/app/funcs/index.ts
@@ -69,7 +69,7 @@ export function useLogin() {
Toast.show({
type: fellBack ? "info" : "success",
position: "top",
- text1: fellBack ? "Switched server" : "✅ Connected",
+ text1: fellBack ? "Switched server" : "Connected",
text2: fellBack
? `"${selectedName}" failed the connection test. Connected to ${candidate.name}.`
: `Connected to ${candidate.name}.`,
@@ -139,7 +139,7 @@ export function useLogin() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Connected",
+ text1: "Connected",
text2: "Successfully connected to Headscale.",
});
const newEntry = {
diff --git a/app/funcs/preauthkeys.ts b/app/funcs/preauthkeys.ts
index 983ee60..628f37e 100644
--- a/app/funcs/preauthkeys.ts
+++ b/app/funcs/preauthkeys.ts
@@ -197,7 +197,7 @@ export const usePreAuthManager = () => {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Key Created",
+ text1: "Key Created",
text2: `Key created for ${userName}, but the server did not return the full key.`,
});
return { key: null };
diff --git a/app/funcs/routes.ts b/app/funcs/routes.ts
index 4bc58f0..75001d5 100644
--- a/app/funcs/routes.ts
+++ b/app/funcs/routes.ts
@@ -40,7 +40,7 @@ export function useRoutes() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Route Disabled",
+ text1: "Route Disabled",
text2: "Route Disabled Successfully",
});
fetchRoutes();
@@ -70,7 +70,7 @@ export function useRoutes() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ Route Enabled",
+ text1: "Route Enabled",
text2: "Route Enabled Successfully",
});
fetchRoutes();
diff --git a/app/funcs/users.ts b/app/funcs/users.ts
index 6ea798b..6994c67 100644
--- a/app/funcs/users.ts
+++ b/app/funcs/users.ts
@@ -103,7 +103,7 @@ export function useUsers() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ User Added",
+ text1: "User Added",
text2: `User "${trimmed}" added successfully!`,
});
} else {
@@ -188,7 +188,7 @@ export function useUsers() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ User Renamed",
+ text1: "User Renamed",
text2: `"${name}" renamed to "${newName}"`,
});
} else {
@@ -245,7 +245,7 @@ export function useUsers() {
Toast.show({
type: "success",
position: "top",
- text1: "✅ User Deleted",
+ text1: "User Deleted",
text2: `User "${userName}" deleted successfully!`,
});
} else {