diff --git a/packages/app/src/home/start/start.tsx b/packages/app/src/home/start/start.tsx index 2cdf6b44204..51f984443db 100644 --- a/packages/app/src/home/start/start.tsx +++ b/packages/app/src/home/start/start.tsx @@ -50,6 +50,8 @@ function StartGreeting(props: { model: StartModel }) { const language = useLanguage() const command = useCommand() const platform = usePlatform() + // `settings.open` is registered only by the session and new-session routes, so Home opens the surface directly. + const settings = useSettingsSurface() const groups = props.model.groups const hour = () => new Date(props.model.inbox.now()).getHours() const period = () => (hour() < 12 ? "morning" : hour() < 18 ? "afternoon" : "evening") @@ -105,7 +107,7 @@ function StartGreeting(props: { model: StartModel }) { size="large" aria-label={language.t("sidebar.settings")} icon={} - onClick={() => command.trigger("settings.open")} + onClick={() => settings.open()} /> -
- }> - {(entry) => } - -
+ 0} fallback={}> +
+ {(entry) => } +
+
0}>
{props.text} +/** Nothing is waiting on you: the one state worth celebrating, so it takes Needs you's place instead of an empty list. */ +function InboxZero() { + const language = useLanguage() + + return ( +
+ + + +
+ {language.t("start.inboxZero")} + {language.t("start.inboxZero.description")} +
+
+ ) } function StartRow(props: { model: StartModel; entry: InboxEntry }) { diff --git a/packages/app/src/runtime/i18n/en.ts b/packages/app/src/runtime/i18n/en.ts index 81daedb7e91..cb3fbba1f6b 100644 --- a/packages/app/src/runtime/i18n/en.ts +++ b/packages/app/src/runtime/i18n/en.ts @@ -680,7 +680,9 @@ export const dict = { "start.markRead": "Mark as read", "start.markAllRead": "Mark all as read", "start.question": "Waiting for your answer", - "start.caughtUp": "Nothing needs you", + "start.caughtUp": "You're all caught up", + "start.inboxZero": "Inbox zero", + "start.inboxZero.description": "Nothing is waiting on you right now", "start.greeting.morning": "Good morning", "start.greeting.afternoon": "Good afternoon", "start.greeting.evening": "Good evening",