add review submission flow (phase 3)
All checks were successful
deploy / deploy (push) Successful in 1m10s

- Add ReviewNotifier for verification emails
- Add review token generation and verification
- Add request_review_verification function
- Update reviews_section component with write-a-review form
- Create ReviewForm LiveView for submitting/editing reviews
- Add /reviews/new and /reviews/:id/edit routes
- Add review buttons to order detail page
- Update block_types to load real review data
- Tests for token and verification functions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-04-01 11:12:25 +01:00
parent 8dc17a6f4d
commit 32eb0c6758
12 changed files with 835 additions and 34 deletions

View File

@@ -296,6 +296,11 @@ defmodule BerrypodWeb.Router do
# └─────────────────────────────────────────────────────────────────────┘
live "/", Shop.Page, :home
# Review routes (before catch-all)
live "/reviews/new", Shop.ReviewForm, :new
live "/reviews/:id/edit", Shop.ReviewForm, :edit
live "/:prefix/:id_or_slug", Shop.Page, :dynamic_prefix
live "/:slug", Shop.Page, :custom_page
end