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:
@@ -62,6 +62,7 @@ export default function DashboardScreen() {
|
||||
: "No change vs last month";
|
||||
|
||||
const maxRevenue = Math.max(...stats.revenueChartData.map((d) => d.revenue), 1);
|
||||
const sendReminderDue = stats.sendReminderDue ?? [];
|
||||
|
||||
return (
|
||||
<AppBackground>
|
||||
@@ -118,6 +119,26 @@ export default function DashboardScreen() {
|
||||
</GlassSurface>
|
||||
) : null}
|
||||
|
||||
{sendReminderDue.length > 0 ? (
|
||||
<GlassSurface style={styles.alertGlass}>
|
||||
<View style={styles.alertBanner}>
|
||||
<Text style={styles.alertTitle}>
|
||||
{sendReminderDue.length} draft{" "}
|
||||
{sendReminderDue.length === 1 ? "invoice" : "invoices"} ready to send
|
||||
</Text>
|
||||
<Text style={styles.alertText}>
|
||||
{sendReminderDue
|
||||
.slice(0, 2)
|
||||
.map(
|
||||
(inv) =>
|
||||
`${inv.invoicePrefix ?? "#"}${inv.invoiceNumber} (${inv.client?.name ?? "Client"})`,
|
||||
)
|
||||
.join(" · ")}
|
||||
</Text>
|
||||
</View>
|
||||
</GlassSurface>
|
||||
) : null}
|
||||
|
||||
<View style={styles.quickActions}>
|
||||
<Button title="Start timer" onPress={() => router.push("/(app)/timer")} />
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user