feat(plugins): pass the dashboard's spotlight trip id to widget plugins

Widget plugins now receive the current (spotlight) trip id in their bridge
context, so a widget like Trip Countdown can show a real countdown instead of
the empty state.
This commit is contained in:
mauriceboe
2026-07-03 18:52:38 +02:00
parent 2a24af63f5
commit 2d492d4f4e
+1 -1
View File
@@ -237,7 +237,7 @@ export default function DashboardPage(): React.ReactElement {
{showCollections && <CollectionsWidget onOpen={() => navigate('/collections')} />}
{showTimezones && <TimezoneTool locale={locale} />}
{showUpcoming && <UpcomingTool items={upcoming} locale={locale} onOpen={(tripId) => navigate(`/trips/${tripId}`)} />}
<PluginWidgets plugins={widgetPlugins} />
<PluginWidgets plugins={widgetPlugins} tripId={spotlight ? String(spotlight.id) : null} />
</aside>
)}
</main>