mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
1.6 KiB
1.6 KiB
Brewery index redesign — data gaps
Frontend for the new /breweries layout is integrated with real data wherever the API already supports it. These gaps are filled with lorem-ipsum-style filler until the backend catches up:
- Featured brewery — no "editorially flagged" concept exists (no field, no endpoint). Currently defaults to the most recently created brewery. Needs a real flag (e.g.
IsFeatured+ an admin toggle, or a rotation query) plus the "week" cadence implied by the "THIS WEEK" badge. - Brewery tagline / one-line note —
SimplifiedBreweryDto(used by both/locationsand/locations/nearby) has no description-like field. The nearby list and recently-added cards use filler note text. Needs a short field added to that DTO (or a truncatedDescription). - Founded year, beers listed count, house style — none of these exist anywhere in the domain (
BreweryPosthas no founding date or style; there's no beer-count aggregate;Features.Beershas no query handlers at all yet). Featured card stats are entirely filler. - Total brewery count — no lightweight count endpoint. CTA copy ("All N partner breweries...") uses a filler number rather than an unbounded fetch just to count rows. Needs something like
GET /api/brewery/count. - Distance is computed client-side (Haversine) from the coordinates
/locations/nearbyalready returns — no backend change needed there. - Manual location entry — "Change location" button re-requests browser geolocation only; there's no geocoding/place-search endpoint to resolve a typed address, so free-text entry isn't wired up yet.