[T08] Manufacturer Data File Export

Summary

Use-case spec to be authored. Tenant-scoped CSV export tool that generates a manufacturer data file (sequence-pivot view of the next batch a tenant wants printed). Complementary to the inbound T06 / T07 flow — T08 drives the outbound leg of the manufacturer cycle.

Operator filters by NumberType (required), optional sequence range and status filter; downloads a CSV with the agreed schema. The screen also surfaces the next available sequence hint per NumberType (re-homed here from T07 during the Track 3 design pass) so the operator can scope the next manufacturer order intelligently.

This page is a stub — full Main Flow / Alternative Flows / Acceptance Criteria / API Surface are still TBD. Author from the use-case template when Track 3 reaches T08 implementation.

Actor & Context

Actor: stock operator, tenant admin. Frequency: cadence-driven — once per manufacturer batch (typically every few months for active tenants). Precondition: user has tenant-admin role; at least one NumberType exists for the tenant. Entry point: tenant-scope sidebar nav Inventory → Manufacturer export (route /inventory/numbers/manufacturer-export).

API Surface

Call Purpose

GET /api/race-numbers/manufacturer-export.csv?numberTypeId=&fromSeq=&toSeq=&statusFilter=

CSV download (new — to be added under US #735’s backend slice).

GET /api/number-types/{id}/next-sequence

Returns the next available sequence for the given NumberType. Drives the header hint.

Out of Scope

  • Inbound manufactured-numbers import — see T06 / T07.

  • Per-row format negotiation with manufacturers (handled out-of-band).

  • Tenant-scoping enforcement on RaceNumber reads — tracked under ADO Bug #730 (carved out from this work; needs schema changes on race_number_type).

Design Anchors

Notes

US #735’s first acceptance criterion is to author this page in full. Until then this stub holds the slot in the catalogue and locks the screen ID + parent ADO references.