Commit Graph

572 Commits

Author SHA1 Message Date
Aaron Po
7cc14630a9 Add Storybook stories for the new brewery detail page components 2026-08-28 15:06:27 -04:00
Aaron Po
83863b0bd8 Wire up the brewery detail route with all new cards, and add the data-requirements handoff doc 2026-08-28 14:19:07 -04:00
Aaron Po
013b4860e1 Add brewery header, your-rating, beer list, and comments components 2026-08-28 14:17:42 -04:00
Aaron Po
989aa3ca52 Add sidebar cards and shared star-rating component for brewery detail page 2026-08-28 14:16:52 -04:00
Aaron Po
28148e9ec4 update zoom radii 2026-08-28 02:18:36 -04:00
Aaron Po
9d74f17fc9 Replace hand-rolled card, placeholder, and marker styling in the brewery UI with daisyUI card, skeleton, and theme-color classes 2026-08-28 01:18:49 -04:00
Aaron Po
9f39a305d5 testing updates 2026-08-27 03:40:08 -04:00
Aaron Po
d7e1a79fb2 Reformat with Prettier's updated line-wrapping for ternaries and JSX. 2026-08-27 02:44:25 -04:00
Aaron Po
7330eabebe Compute nearby-brewery distance in SQL instead of client-side Haversine, and add the spatial index it relies on. 2026-08-27 02:40:58 -04:00
Aaron Po
dab7aa2458 Merge branch 'main' into frontend/brewery-feature 2026-08-27 01:08:37 -04:00
92a30b11db Update docs to reflect per-table DDL scripts and schema.dbml from #251 (#252) 2026-08-27 01:02:58 -04:00
Aaron Po
1254797fe1 Update docs for brewery maps/location work: frontend feature-slice layout, spatial proximity query, and new location-query tests 2026-08-27 00:55:59 -04:00
Aaron Po
3457646558 Let users toggle nearby-breweries distances between km and mi 2026-08-27 00:46:54 -04:00
Aaron Po
365ee9828e Expand brewery index data gaps into a full data requirements doc 2026-08-27 00:36:16 -04:00
Aaron Po
ffbff991ab Center brewery directory map on the user's current location 2026-08-27 00:33:39 -04:00
Aaron Po
f033dc589a Let users adjust the nearby-breweries search radius 2026-08-27 00:32:55 -04:00
Aaron Po
d32f6fa4e1 Build curated brewery index page: featured card, nearby list/map sync, recently added 2026-08-27 00:29:07 -04:00
Aaron Po
643ecb76db Move full brewery list to /breweries/directory, add nearby resource route 2026-08-27 00:23:27 -04:00
Aaron Po
8fae3f564a Document brewery index data gaps and add nearby-locations query 2026-08-27 00:22:32 -04:00
Aaron Po
eebb87811f Add brewery location query endpoints 2026-08-26 23:19:50 -04:00
fcee0f9213 Organise ddl statements into separate files per create table (#251) 2026-08-26 22:16:56 -04:00
Aaron Po
d6306cbcba Add leaflet-powered brewery map 2026-08-26 03:40:11 -04:00
4ca35de7ef Integrate NetTopologySuite and create CoordinateData mapping (#250) 2026-08-26 01:10:09 -04:00
ad1c09f139 Move brewery reverse geocoding from C# seeding to C++ pipeline (#249) 2026-08-25 22:24:11 -04:00
2b82d1918b Extract shared configuration helpers into Infrastructure.Configuration library (#248) 2026-08-25 14:16:57 -04:00
8a047e8d9f Update database handling code (#247) 2026-08-25 13:42:51 -04:00
Aaron Po
03ca966708 C++ code formatting 2026-08-24 01:13:41 -04:00
Aaron Po
b64c42ebde formatting 2026-08-24 01:09:48 -04:00
c825d99b0a Refactor comments and update documentation for backend and pipeline (#246)
* Remove restating comments in backend

* Remove restating comments in frontend stories

* Remove restating comments in pipeline

* Remove restating comments in pipeline scripts

* Restore location-clear comment in BreweryRepository

* Remove stale/restating comments found in second pass

* Restore mock curated-data branch comment in main.cc

* Remove more restating/filler comments in backend

* Document account-management endpoints, compose files, and env generator

* Squashed commit of the following:

commit a8a5b8abd9969859c695092fae6990d03b2135ed
Author: Aaron Po <aaron.po97@gmail.com>
Date:   Sun Aug 23 23:53:56 2026 -0400

    Add reverse geocoding for brewery street addresses (#245)

    * Add geocoding to seed application, remove postal codes from generator

    Update comments

* Update pipeline class diagram for OpenAI generator

* Update pipeline activity diagram for brewery coordinates and OpenAI backend

* Add mailpit, production, db-only, and minimal environments to deployment diagram

* Fix authentication flow diagram for Identity migration

* Add account-management flows to authentication diagram

* Fix database schema diagram note referencing removed AuthRepository
2026-08-24 01:09:48 -04:00
cd5fd2d998 Add reverse geocoding for brewery street addresses (#245)
* Add geocoding to seed application, remove postal codes from generator

Update comments
2026-08-24 01:09:48 -04:00
e738fe484a Update generate pipeline to add OpenAI api as an additional backend (for comparison testing), add brewery coordinates (#244)
* add brewery coordinates

* Add openai mode

* Add coordinates to schema

* Fix C++ review findings in pipeline: k-prefixed enum values, include ordering, populated validation error messages, conventional const notation, and endl replaced with newline
2026-08-24 01:09:48 -04:00
31da1d557c Handle fetch fail in client app, fix data binding in location data (#243)
* Improve error handling for server rendered routes

* Fix data binding issue for country/state codes (use alias in sql)
2026-08-24 01:09:48 -04:00
bfd45842fe Refactor authentication and account management with modular UI components (#242) 2026-08-24 01:09:48 -04:00
Aaron Po
6a44afd6b6 Replace raw environment variable reads with IConfiguration in backend 2026-08-24 01:09:48 -04:00
Aaron Po
c380bebdd6 Add self-service account management commands (delete, update username/email/password/profile) 2026-08-24 01:09:48 -04:00
Aaron Po
93e0d089f9 Remove obsolete AuthRepository/IAuthRepository 2026-08-24 01:09:47 -04:00
Aaron Po
77c3407792 Migrate Database.Seed to UserManager<ApplicationUser> 2026-08-24 01:09:47 -04:00
Aaron Po
fe83c47e37 Migrate TokenService.RefreshTokenAsync to UserManager
Last remaining IAuthRepository call site; RefreshTokenResult now
carries a plain (Guid, string) instead of UserAccount.
2026-08-24 01:09:47 -04:00
Aaron Po
63d195ddf7 Migrate handlers to UserManager<> 2026-08-24 01:09:47 -04:00
Aaron Po
f06f4bf3a9 Wire ASP.NET Core Identity DI alongside existing AuthRepository
Both stacks coexist until handlers are migrated one by one.
2026-08-24 01:09:47 -04:00
Aaron Po
3c0ca485b8 Decouple ITokenService from UserAccount entity
Token generation only ever needed the id/username, not the full UserAccount.
2026-08-24 01:09:47 -04:00
Aaron Po
1a7267ca4a Add ApplicationUser, DapperUserStore, Argon2PasswordHasher scaffolding
Unwired Identity store/hasher adapters, ahead of wiring them into DI.
2026-08-24 01:09:47 -04:00
Aaron Po
b61a440994 Delete report.sarif 2026-08-24 01:09:47 -04:00
Aaron Po
f433b21bc1 Fix code analysis warnings 2026-08-24 01:09:47 -04:00
1031a76099 Create launchSettings.json (#239) 2026-08-24 01:09:47 -04:00
df160f1f72 Web/backend/solution rename (#238)
* Rename solution

* Remove unused item group in API.Core
2026-08-24 01:09:47 -04:00
de1e9ac02b Migrate Auth/Brewery/Location repositories to pure Dapper; rename Timer to RowVersion (#237)
* Integrate Spectre.Console into seed application, use async data loading

* Replace stored-procedure repositories with Dapper-based repositories

Removes the USP_* stored procedures for Auth, Location, and Brewery
data access in favour of services built with Dapper.

Adds a new Features.Locations slice and optimistic concurrency support
for the Brewery slice.

* Add new documentation for Dapper migration/database schema

* Update FluentAssertions to most recent open source ver

* Update XML doc comment in backend projects

* Modify brewery location dto to include denormalized data

* - Updated column names from 'Timer' to 'RowVersion' in schema.sql for
- Introduced new BeerPost entity and updated BreweryPost and BreweryPostLocation entities to use 'RowVersion' for concurrency.
- Modified UserAccount, UserCredential, UserVerification, City, StateProvince, and Country entities to use 'RowVersion' instead of 'Timer'.
- Updated tests and command handlers to reflect changes in concurrency token from 'Timer' to 'RowVersion'.
- Adjusted BreweryDto and BreweryDtoMapper to include 'RowVersion' and updated mapping logic accordingly.
- Ensured all repository methods and interfaces are aligned with the new concurrency handling approach.

* updates

* Add BeerStyle entity and related properties; refactor BreweryDto to remove BeerPosts

* Fix Api.Specs test failures: stale Timer column refs and missing test.user fixture

* Remove repository tests, usages of registration dto used in repo

* archive old stored procs/functions

* update stale docs

* Add instructions for generating cryptographically secure base64 secrets on macOS/Linux and Windows
2026-08-24 01:09:47 -04:00
Aaron Po
b27b5bdb40 Documentation updates (#236)
Remove vague or flowery language, use Simplified Technical English whenever possible
2026-08-24 01:09:47 -04:00
Aaron Po
30cdb48491 remove comment 2026-08-24 01:09:47 -04:00
Aaron Po
37667db2f6 Format 2026-08-24 01:09:47 -04:00