Skip to content

feat(auth): implement api order matching, capacity routing and tourist auth#225

Merged
masch merged 6 commits into
mainfrom
issue-219/api-order-matching-capacity-routing
May 26, 2026
Merged

feat(auth): implement api order matching, capacity routing and tourist auth#225
masch merged 6 commits into
mainfrom
issue-219/api-order-matching-capacity-routing

Conversation

@masch

@masch masch commented May 25, 2026

Copy link
Copy Markdown
Owner

Linked Issue

Closes #226

Summary

  • Implements order-matching logic against available capacity slots
  • Adds capacity-based routing to direct requests through the correct handler
  • Hardens tourist /create auth endpoint with integration + unit test coverage

Changes

File Change
apps/backend/src/routes/auth.ts Tourist create endpoint improvements
apps/backend/src/services/auth.service.ts Tourist creation service logic
apps/backend/src/routes/auth.test.ts Integration tests for tourist registration
apps/mobile/src/services/__tests__/auth.service.test.ts Unit tests for mobile auth service (globalThis fix)
apps/backend/src/db/schema/users.ts Schema reviewed for tourist user type

Test Summary

✅ PASS: All tests passing, make check successful (typecheck + lint + GGA verification)

Contributor Checklist

  • Linked an approved issue
  • Added exactly one type:* label
  • Ran make check and tests pass
  • Conventional commit format
  • No Co-Authored-By trailers

@masch masch added the type:feature New feature label May 25, 2026
@masch
masch temporarily deployed to development May 25, 2026 16:47 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented May 25, 2026

Copy link
Copy Markdown

React Doctor

Score: 87 / 100

react-doctor v0.2.6

✔ Select projects to scan › impenetrable-mobile
Scanning changes: issue-219/api-order-matching-capacity-routing → main

Scanning /home/runner/work/impenetrable-connect/impenetrable-connect/apps/mobile...


No issues found!

  ┌─────┐  100 / 100 Great
  │ ◠ ◠ │  ██████████████████████████████████████████████████
  │  ▽  │  React Doctor (www.react.doctor)
  └─────┘

- Add postgres-js connection timeouts (connect_timeout, idle_timeout, max_lifetime)
- Preserve zzz_notes on order items during create
- Enrich getAll() with catalog product data
- Fix login screen error display, i18n, testID, LoadingView
- Add tests for mock placeOrder with reservation/catalog data
- Fix overflow-hidden on login hero image container
- Remove unused DEFAULT_PRICE constant
@masch
masch temporarily deployed to development May 25, 2026 23:45 — with GitHub Actions Inactive
@masch
masch deployed to development May 26, 2026 00:22 — with GitHub Actions Active

@masch masch left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥦

@masch
masch merged commit 0a534e6 into main May 26, 2026
3 checks passed
@masch
masch deleted the issue-219/api-order-matching-capacity-routing branch May 26, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: API order matching and capacity-based routing

1 participant