Skip to content

Ride detail (admin): Edit modal should use the DB-search AddressField, not free-text inputs #123

Description

@TusharW4ni

Admin side only.

Problem

The ride-detail Edit modal uses plain free-text UInput fields for pickup/dropoff (app/pages/rides/[id].vue:563-569), while the create flow now uses the DB-search AddressField (search existing saved addresses / "enter a new address", which reuses Address rows and dedupes on matchKey). Editing an address bypasses all of that.

Proposal

  • Replace the two text inputs with AddressField (v-model a RideAddressForm { street, city, state, zip }), mapping to pickupDisplay/dropoffDisplay for the PUT.
  • Server already upserts addresses on matchKey (R-101), so no duplicate rows.

Acceptance criteria

  • Editing an address uses the same search-existing / enter-new UX as create.
  • Save still works via PUT /api/put/rides/[id].

Notes

Current PUT takes pickupDisplay/dropoffDisplay strings — reconcile the structured form ↔ display string on save.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3: lowFix when touching the areaarea: frontendVue pages and components (app/)enhancementNew feature or requesttech debtCleanup, refactoring, repo hygiene

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions