feat(ui): add A1 dashboard and resumable onboarding
This commit is contained in:
@@ -321,7 +321,12 @@ function Shell({ jobPageSize, setJobPageSize, jobColumns, setJobColumns, themeMo
|
||||
if (requireAuth === null || !authResolved) return <Box sx={{ p: 4 }}><Typography variant="h6">{t("loading")}</Typography></Box>;
|
||||
if (requireAuth && !me) return <Navigate to="/" replace state={{ from: `${path}${location.search}${location.hash}`, fromState: location.state }} />;
|
||||
|
||||
const pageTitle = titleFor(path, t);
|
||||
const greetingName = me?.firstName?.trim() || me?.displayName?.trim();
|
||||
const hour = new Date().getHours();
|
||||
const pageTitle = path === "/dashboard" && greetingName
|
||||
? hour < 12 ? t("dashboardGoodMorning", { name: greetingName })
|
||||
: hour < 18 ? t("dashboardGoodAfternoon", { name: greetingName }) : t("dashboardGoodEvening", { name: greetingName })
|
||||
: titleFor(path, t);
|
||||
const pageSubtitle = subtitleFor(path, t);
|
||||
const breadcrumbs = breadcrumbsFor(path, t);
|
||||
const setAndPersistPageSize = (n: 15 | 20 | 25) => { setJobPageSize(n); window.localStorage.setItem("jobPageSize", String(n)); };
|
||||
|
||||
Reference in New Issue
Block a user