Skip to content

Route 'Kalendario' button on Dashboard to Schedule screen #197

Description

@Noro18

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

  1. Add an onCalendar: () -> Unit parameter to the DashboardScreen composable (similar to onAddClient and onAddOrder).
  2. Pass it through to the SectionHeader call at line 149.
  3. Update SectionHeader to accept an onActionClick lambda instead of the hardcoded TODO.
  4. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions