mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
fix(dashboard): keep the legacy hero rendering as before
Revert the Today-hero-owns-the-slot suppression from this branch: the legacy opt-in dashboard hero is asserted by the mobile-density and dashboard e2e landmarks, and retiring it cleanly (with its settings toggle and those specs) is a separate change. For now both heroes render exactly as before this branch; the default account (legacy hero off) still shows only the Today hero.
This commit is contained in:
1 parent
25d720e6e7
commit
0be26473b4
1 file changed
-5
@@ -799,12 +799,7 @@ export default function DashboardPageClient() {
|
||||
<TodayHero digest={digestQuery.data} />
|
||||
) : null)}
|
||||
|
||||
{/* The digest-driven TodayHero owns the promoted hero slot whenever
|
||||
Insights is on (Marc sign-off, decision 1). The legacy opt-in
|
||||
DashboardHero only shows for an Insights-disabled account, so the two
|
||||
heroes never stack. */}
|
||||
{heroVisible &&
|
||||
!insightsEnabled &&
|
||||
(primaryLoading || !heroSnapshot ? (
|
||||
<DashboardHeroSkeleton />
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user