Redesign mobile time clock, add shortcuts, and improve account management.
Add iOS Shortcuts/Siri intents, local send-reminder notifications, stable client picker with last-client defaults, account refresh/remove, and softer session handling on unauthorized API responses. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||
|
||||
function storageKey(accountId: string) {
|
||||
return `beenvoice:time-clock:last-client:${accountId}`;
|
||||
}
|
||||
|
||||
export async function getLastTimeClockClientId(accountId: string): Promise<string | null> {
|
||||
return AsyncStorage.getItem(storageKey(accountId));
|
||||
}
|
||||
|
||||
export async function setLastTimeClockClientId(
|
||||
accountId: string,
|
||||
clientId: string,
|
||||
): Promise<void> {
|
||||
if (!clientId) return;
|
||||
await AsyncStorage.setItem(storageKey(accountId), clientId);
|
||||
}
|
||||
|
||||
export async function clearTimeClockPrefsForAccount(accountId: string): Promise<void> {
|
||||
await AsyncStorage.removeItem(storageKey(accountId));
|
||||
}
|
||||
Reference in New Issue
Block a user