Description
The "Kalendario" button in the "Orario Ohin" (Today's Timeline) section header on the Dashboard screen currently does nothing (has a callback).
File: app/src/main/java/com/example/ordermanagementcake/ui/dashboard/DashboardScreen.kt
Line 408: TextButton(onClick = { /* TODO */ })
Expected Behavior
Tapping "Kalendario" should navigate to the existing Schedule/Calendar screen (ScheduleViewScreen at route Routes.SCHEDULES).
Steps to Implement
- Add an
onCalendar: () -> Unit parameter to the DashboardScreen composable (similar to onAddClient and onAddOrder).
- Pass it through to the
SectionHeader call at line 149.
- Update
SectionHeader to accept an onActionClick lambda instead of the hardcoded TODO.
- In
NavGraph.kt, wire onCalendar to navController.navigate(Routes.SCHEDULES).
Additional Context
Routes.SCHEDULES is already defined and mapped to ScheduleViewScreen.
- The Schedule screen embeds a full
SelectableCalendar (from io.github.boguszpawlowski.composecalendar).
Description
The "Kalendario" button in the "Orario Ohin" (Today's Timeline) section header on the Dashboard screen currently does nothing (has a callback).
File:
app/src/main/java/com/example/ordermanagementcake/ui/dashboard/DashboardScreen.ktLine 408:
TextButton(onClick = { /* TODO */ })Expected Behavior
Tapping "Kalendario" should navigate to the existing Schedule/Calendar screen (
ScheduleViewScreenat routeRoutes.SCHEDULES).Steps to Implement
onCalendar: () -> Unitparameter to theDashboardScreencomposable (similar toonAddClientandonAddOrder).SectionHeadercall at line 149.SectionHeaderto accept anonActionClicklambda instead of the hardcodedTODO.NavGraph.kt, wireonCalendartonavController.navigate(Routes.SCHEDULES).Additional Context
Routes.SCHEDULESis already defined and mapped toScheduleViewScreen.SelectableCalendar(fromio.github.boguszpawlowski.composecalendar).