Commit graph

77 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
0e35d18a21
fix(client): use request() helper for all client methods to include auth token
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:13 +00:00
copilot-swe-agent[bot]
97aaf9311d
fix(api): use TokenResponse DTO to exclude sensitive token_hash field
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:12 +00:00
copilot-swe-agent[bot]
5c05f35a59
fix(auth): make AuthenticatedUser extractor perform authentication directly
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:12 +00:00
copilot-swe-agent[bot]
5f4cbf5294
fix(auth): enforce authentication on write operations and fix CLI token auth
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:11 +00:00
copilot-swe-agent[bot]
6d0ee869f7
feat(api): add authentication middleware and token management routes
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:10 +00:00
copilot-swe-agent[bot]
0b9cfefce5
feat(cli): add token management commands
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:09 +00:00
copilot-swe-agent[bot]
d96f2c27e0
feat(auth): add password hashing, token generation, and admin bootstrap
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:03 +00:00
copilot-swe-agent[bot]
ca5d25ea10
feat(domain): add auth database schema and domain models
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:27:51 +00:00
Jon Seager
5aaeaa55c2
chore: update copliot instructions 2025-11-25 11:29:03 +00:00
Jon Seager
4f69d20bb1
feat: add pagination/infinite scroll to timeline 2025-11-24 21:45:59 +00:00
Jon Seager
f60e759935
test: add simple tests for timeline view 2025-11-24 19:15:45 +00:00
Jon Seager
9ca4b4930d
chore: run cargo fmt on test file 2025-11-24 19:15:22 +00:00
Jon Seager
8a445c4212
test: add some unit tests for datastar helpers 2025-11-24 18:06:43 +00:00
copilot-swe-agent[bot]
996f7b0432
refactor: rename test files to clarify API-only scope
Rename roasters.rs to roasters_api.rs and roasts.rs to roasts_api.rs
to make it clear these files only test the /api/v1 endpoints, not the
page endpoints.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:25 +00:00
copilot-swe-agent[bot]
807f438a82
test: remove pagination and sorting tests
Remove pagination and sorting tests from roasters and roasts test
files as these will be addressed in a future pull request.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:25 +00:00
copilot-swe-agent[bot]
05d856a41d
refactor: move server tests to standalone module
Move tests/server.rs to tests/server/main.rs and update module
paths to make the server tests more self-contained. All test
imports now use crate::helpers instead of crate::server::helpers.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:24 +00:00
copilot-swe-agent[bot]
1937981db3
fix: remove duplicate tokio dev-dependency
Tokio is already included in the main dependencies, no need to
duplicate it in dev-dependencies.

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:24 +00:00
copilot-swe-agent[bot]
b077de1491
refactor: improve test helpers and test data quality
- Extract roaster creation into reusable helper functions
- Add create_test_roaster_with_name for flexible roaster creation
- Replace generic 'Test' values with more descriptive test data
- Reduce code duplication in roast tests

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:23 +00:00
copilot-swe-agent[bot]
52301e64b9
test: add wiremock dependency and test infrastructure
Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-24 17:58:21 +00:00
Jon Seager
9c4734172f
docs: fix the admonition in the README 2025-11-24 17:15:27 +00:00
Jon Seager
1343ad0608
chore: add result* to the .gitignore 2025-11-24 16:52:19 +00:00
Jon Seager
2aad695870
docs: add a simple README 2025-11-24 16:37:13 +00:00
Jon Seager
5961aee6c2
chore: add copilot-instructions.md 2025-11-24 16:37:10 +00:00
Jon Seager
228306487e
refactor(roasts): simplify tasting note parsing 2025-11-24 11:44:17 +00:00
Jon Seager
fb9fb6cc23
refactor(roasts): require roast metadata 2025-11-24 11:44:16 +00:00
Jon Seager
90390c17ba
refactor(routes): share pagination helpers 2025-11-24 11:44:15 +00:00
Jon Seager
3241f3c961
feat: bootstrap brewlog platform 2025-11-24 11:44:12 +00:00