Skip to content

Commit 6f7c688

Browse files
committed
feat(frontend): add fallback text for empty summary section
- Enhance dashboard summary section with informative message - Display user-friendly text when no summary is available - Improve user experience by providing clear guidance for empty summary state
1 parent 404162e commit 6f7c688

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

apps/frontend/app/routes/_dashboard._index.tsx

+12-7
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,21 @@ export default function Page() {
184184
) : null}
185185
</Section>
186186
))
187-
.with([DashboardElementLot.Summary, false], ([v, _]) =>
188-
latestUserSummary ? (
189-
<Section key={v} lot={v}>
190-
<SectionTitle text="Summary" />
187+
.with([DashboardElementLot.Summary, false], ([v, _]) => (
188+
<Section key={v} lot={v}>
189+
<SectionTitle text="Summary" />
190+
{latestUserSummary ? (
191191
<DisplaySummarySection
192192
latestUserSummary={latestUserSummary}
193193
/>
194-
</Section>
195-
) : null,
196-
)
194+
) : (
195+
<Text c="dimmed">
196+
No summary available. Please add some media to your watched
197+
history.
198+
</Text>
199+
)}
200+
</Section>
201+
))
197202
.otherwise(() => undefined),
198203
)}
199204
</Stack>

0 commit comments

Comments
 (0)