Compare commits

...

5 Commits

Author SHA1 Message Date
kelly
b287c224f7 Merge branch 'develop' into feature/fix-multi-tenancy-architecture 2025-11-05 01:27:16 +00:00
kelly
42b9c1f1e5 fix: add missing buyer route definitions for backward compatibility
Add legacy redirect routes for buyer orders, invoices, and business profile
that redirect to the new business-scoped routes. This maintains backward
compatibility with existing tests and links while preserving the secure
multi-tenant architecture.

Changes:
- Add /b/orders redirect route (buyer.orders.show)
- Add /b/invoices redirect route (buyer.invoices.show)
- Add /b/business/profile redirect route
- Fix route redirects to use business slug explicitly
- Update SmokeTest to expect redirects instead of 200 OK
- Update OrderSurchargeDisplayTest to follow redirects

Test Results:
- Fixed 7 previously failing route tests
- All smoke tests now passing (19/19)
- OrderSurchargeDisplayTest all passing (4/4)
- 79/82 tests passing (1 pre-existing schema issue, 2 skipped)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 14:49:38 -07:00
kelly
2f8b8c49a5 fix: update OrderFactory to use valid order statuses
Updates the OrderFactory to use statuses that match the database
check constraint. Replaces invalid statuses (pending, picked,
manifested, shipped) with valid ones (new, accepted, in_progress,
ready_for_manifest, ready_for_delivery, delivered, cancelled).

Fixes test failures caused by check constraint violations.
2025-11-04 14:48:39 -07:00
kelly
140411840d fix: add delivery_date and delivery_instructions columns to orders table
Adds nullable delivery_date and delivery_instructions columns to
support delivery scheduling in orders. Fixes failing tests that
expected these columns to exist.
2025-11-04 14:47:29 -07:00
kelly
5ee662c6e0 style: fix code formatting issues identified by CI
- Fix braces_position in NotificationController
- Fix blank_line_before_statement in 5 controllers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 12:16:25 -07:00

Diff Content Not Available