Skip to content

Separate College Bus & Private Bus Logic in Bus #10

Description

@shadil-rayyan

The current Bus Timings page mixes college buses and private buses, which causes confusion and does not match real-world usage.

College buses and private buses work very differently, so they need separate logic and UI behavior.


Problem

College Bus (Simple)

  • Same pickup point
  • Morning and afternoon trips
  • FN / AN works correctly

Private Bus (Complex)

  • FN / AN does not apply

  • Buses are:

    • Route-based (SKP → Ottappalam / Palakkad / Mannarkkad)
    • Direction-based
    • Sometimes one-way only
  • Same destination may have:

    • Direct route
    • Route via another town (e.g., via Cherpulassery → slower)

Current UI cannot represent this properly.


Proposed UI Change

1. Add Top Tabs

[ Private Bus ] | [ College Bus ]
  • Private Bus is default
  • Same layout, different data logic

2. Private Bus Behavior

  • Fixed starting location (SKP)

  • User selects:

    • Route (SKP → Ottappalam / Palakkad / Mannarkkad)
    • Direction
  • Show bus list with:

    • Bus name
    • Time
    • Route info (Direct / via Cherpulassery)

❌ Do NOT show FN / AN for private buses


3. College Bus Behavior

  • Different boarding points

  • User selects:

    • Boarding point
    • FN or AN
  • FN / AN toggle remains


Acceptance Criteria

  • Private and College buses are clearly separated
  • FN / AN only used for college buses
  • Private buses use route + direction logic
  • “Via” routes are visible for private buses
  • Existing college bus data still works
  • UI feels clear and complete

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions