Skip to content

[PRODUCT INTEGRITY][VEHICLE DISCOVERY] Source investment vehicles from the live inventory API #196

Description

@Obiajulu-gif

Summary

The discovery component ships a fixed list of named drivers, returns, funding progress, and risk levels instead of the repository's vehicle data. This can present fictional investment opportunities as current inventory.

Repository evidence

  • components/dashboard/discover-vehicles.tsx:34-195 defines eight hard-coded vehicles.
  • components/dashboard/discover-vehicles.tsx:197-203 initializes the live UI directly from mockVehicles, despite app/api/vehicles/route.ts existing.

Scope

  • Fetch authorized inventory with explicit freshness and error states.
  • Map only server-owned valuation, risk, funding, and driver summary fields into cards.

Acceptance criteria

  • No production opportunity comes from a source-code fixture.
  • Delisted, funded, or stale vehicles cannot remain actionable.

Tests

  • Cover empty inventory, pagination, stale responses, delisting, partial fields, and API failure.

Non-goals

  • Changing the fleet risk methodology.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions