Commit graph

97 commits

Author SHA1 Message Date
f4f2d22440
merge frontend-auth-views 2026-05-06 22:49:32 +03:00
ff071c71ca
implement signup, confirm-email, login, check-email views 2026-05-06 22:49:32 +03:00
d85d460fd1
merge frontend-auth-store 2026-05-06 22:48:22 +03:00
ae7db07ec3
add api client and auth store
apiFetch wrapper sends JSON with credentials, parses error
shapes off the backend's {error: '...'} responses, and exposes
typed helpers (apiGet, apiPost, apiDelete). Auth store now
drives the real /signup -> /confirm-email -> /login -> /me ->
/logout flow. Vite dev proxy points /api at the backend on
:8000.
2026-05-06 22:48:17 +03:00
7b00fa5f68
merge frontend-scaffold 2026-05-06 22:47:14 +03:00
568dc4aabe
scaffold blog_portal vue 3 + pinia + cypress frontend
Mirrors youngstartup/frontend/startups_portal scaffolding:
Vite, Vue 3 (composition API + script setup), TypeScript strict,
Pinia, Vue Router 5, oxlint + eslint + oxfmt, and Cypress with
db:reset / db:seed tasks. Views and the auth store are stubs
filled in by the next branches; routes and the header chrome
are wired so the build passes.
2026-05-06 22:47:09 +03:00
6f95a5b7b8
merge seeders 2026-05-06 22:38:18 +03:00
beb4ddd1e9
split seeders by domain entity
Replaces the laravel-default scaffold seeder with one file per
domain (AdminUser, User, Post, Comment) plus a config/seed.php
to source admin credentials from env. DatabaseSeeder is now a
pure orchestrator that calls the sub-seeders in dependency
order.
2026-05-06 22:38:14 +03:00
c55852ec12
merge user-search-and-admin-promote 2026-05-06 22:36:19 +03:00
a3f90d1e85
implement user search and admin promote endpoints
GET /users?q=... is public; POST /admin/users/promote is auth
required and admin-checked inside the use case.
2026-05-06 22:36:15 +03:00
56136f8bcf
test user search and admin promote endpoints 2026-05-06 22:36:10 +03:00
ac7295faf3
implement PromoteUserToAdmin use case 2026-05-06 22:34:53 +03:00
8cbc84b051
test PromoteUserToAdmin use case 2026-05-06 22:34:29 +03:00
d917e76f1b
implement SearchUsers use case 2026-05-06 22:34:08 +03:00
31a807f0ae
test SearchUsers use case 2026-05-06 22:33:22 +03:00
3c97a19e2d
merge featured-posts 2026-05-06 22:32:50 +03:00
8ac5a5b18a
implement featured post admin endpoints
Adds POST /admin/posts/feature, POST /admin/posts/unfeature
(both auth-required, admin-checked inside controller via the
use case's ForbiddenException), and public GET /posts/featured.
Post serialization now includes featureSlot.
2026-05-06 22:32:46 +03:00
8983b69fa1
test featured posts admin endpoints 2026-05-06 22:32:36 +03:00
e4791de81a
implement ListFeaturedPosts use case 2026-05-06 22:30:49 +03:00
e61492f864
test ListFeaturedPosts use case 2026-05-06 22:30:32 +03:00
a8f59afc30
implement ClearFeaturedPost use case 2026-05-06 22:30:17 +03:00
7bd3ff78b4
test ClearFeaturedPost use case 2026-05-06 22:29:54 +03:00
ee95bcafc9
implement SetFeaturedPost use case 2026-05-06 22:29:34 +03:00
13ca655f9b
test SetFeaturedPost use case 2026-05-06 22:29:09 +03:00
f73e5a1af5
extend Post entity with feature slot
Adds nullable feature_slot column (unique) plus repo
findByFeatureSlot/findFeatured/update methods so admins can
pin a post into one of two slots.
2026-05-06 22:28:45 +03:00
64a334c63e
test Post entity feature slot 2026-05-06 22:27:18 +03:00
ec4f729c63
merge post-comment-controllers 2026-05-06 22:26:40 +03:00
59d4ed88c4
implement post and comment controllers
Wires PostController (recent, show, create, delete, listByUser)
and CommentController (listForPost, create, delete) to the
existing use cases. Posts and comments expose author display
names alongside user IDs. CommentRepository binding added to
RepositoryServiceProvider.
2026-05-06 22:26:35 +03:00
8614858558
test post and comment controllers
Adds AuthenticatesUsers feature trait that runs the full
signup -> confirm -> login flow and exposes the resulting auth
cookie. Bumps phpunit defaultTimeLimit to 30 seconds so the
multi-bcrypt-per-test feature flow finishes inside the limit.
2026-05-06 22:26:10 +03:00
fa63005db7
merge comment-domain 2026-05-06 22:16:43 +03:00
d24bde3761
implement DeleteComment use case 2026-05-06 22:16:34 +03:00
5bbef871db
test DeleteComment use case 2026-05-06 22:16:10 +03:00
a59fc4890f
implement ListCommentsForPost use case
Renames seed() helper to seedComment() to avoid clashing with
Illuminate\Foundation\Testing\TestCase::seed().
2026-05-06 22:15:49 +03:00
f9e2529994
test ListCommentsForPost use case 2026-05-06 22:15:10 +03:00
e8d2ff3fdf
implement CreateComment use case 2026-05-06 22:14:55 +03:00
2557c9b6a9
test CreateComment use case 2026-05-06 22:14:31 +03:00
93da08756c
add Comment persistence: model, migration, eloquent + fake repo 2026-05-06 22:14:11 +03:00
0d589340d9
add Comment entity, dto, repository interface 2026-05-06 22:13:37 +03:00
015e61caf7
merge auth-controller-and-routes 2026-05-06 22:12:56 +03:00
9049f1581b
implement auth controller and routes
Wires AuthController (signup, confirmEmail, login, me, logout)
to the existing auth use cases. Routes mounted under /api with
AuthMiddleware on logout/me. RepositoryServiceProvider gains
EmailConfirmationToken and Post bindings; AppServiceProvider
binds the Emailer/EmailFactory and constructs SignupUser with
the configured from-address.
2026-05-06 22:12:51 +03:00
0ffc4b546c
test auth controller signup, confirm-email, login, me, logout 2026-05-06 22:12:27 +03:00
99433a21c2
merge signup-flow-rewrite 2026-05-06 22:08:58 +03:00
f3c6e2e000
implement SignupUser two-step confirm flow
Signup now collects only email + displayName, creates an
unconfirmed user with empty password hash, mints an
EmailConfirmationToken, and dispatches a confirmation email.
Password is set during ConfirmUserEmail.
2026-05-06 22:08:54 +03:00
11f2823a30
test SignupUser two-step confirm flow 2026-05-06 22:08:25 +03:00
edb0bc0478
merge email-confirmation-domain 2026-05-06 22:07:38 +03:00
6823bdeb50
implement ConfirmUserEmail use case 2026-05-06 22:07:30 +03:00
60308988f7
test ConfirmUserEmail use case 2026-05-06 22:07:08 +03:00
2890781a56
add Emailer and EmailFactory interfaces with laravel + fake impls 2026-05-06 22:06:30 +03:00
e16cb45387
add EmailConfirmationToken persistence: model, migration, eloquent + fake repo 2026-05-06 22:05:52 +03:00
9747d07c31
test EmailConfirmationToken entity 2026-05-06 22:04:57 +03:00