Commit Graph

46 Commits

Author SHA1 Message Date
Kirill bb7b40ac45 fix(server): remove all avatarType references after DB column drop 2026-05-22 11:36:11 +05:00
Kirill c3e4f5bdd2 feat(server): add POST /api/auth/register and /api/auth/login
- Add register endpoint with email/password validation, bcrypt hashing
- Add login endpoint with rate limiting per IP (5 attempts/min)
- Add helper functions: validatePassword, hashPassword, comparePassword, isAdminEmail
- Add checkLoginRateLimit for brute-force protection
- Add bcrypt dependency
- Remove avatarType column from User (migration)
2026-05-22 11:26:00 +05:00
Kirill 3177413acd chore: fix prettier formatting 2026-05-20 19:33:13 +05:00
Kirill abadbbd4c4 fix: add retry to getPayment, normalize return, env validation, webhook/builder tests 2026-05-20 18:11:14 +05:00
Kirill a3556367c6 fix: correct retryable check in yookassa fetchWithRetry 2026-05-20 18:04:07 +05:00
Kirill 3879e4b388 feat: add yookassa API client library with tests 2026-05-20 17:59:35 +05:00
Kirill 32a4406cb8 refactor: rename name→displayName in review files 2026-05-20 10:51:48 +05:00
Kirill 5adbe9baa7 test commit 2026-05-19 11:25:23 +05:00
Kirill d0b3c97803 feat: improve notifications - fix auth code tg duplicate, double order notify, add PAID label, expand text, add deliveryFeeAdjusted event 2026-05-18 14:48:54 +05:00
Kirill 2f67c37502 test commit 2026-05-18 13:54:05 +05:00
Kirill 6912008a2c test: add notification preferences tests 2026-05-18 12:06:29 +05:00
Kirill 912724082e test: add notification preferences tests 2026-05-18 11:45:51 +05:00
Kirill 1d36f6a31b feat: create admin notification settings on bootstrap 2026-05-18 11:40:24 +05:00
Kirill 84cdccaa17 feat: emit notification events from existing routes 2026-05-18 11:39:02 +05:00
Kirill 3f83a9be8e feat: add notification queue with retry worker 2026-05-18 11:33:06 +05:00
Kirill 4a424b68a2 feat: add notification preferences resolver 2026-05-18 11:31:16 +05:00
Kirill e0a045d5df feat: add Telegram notification channel 2026-05-18 11:29:58 +05:00
Kirill 8f3d1ae5ef feat: add email notification channel 2026-05-18 11:28:46 +05:00
Kirill 79c85b0a88 feat: add Telegram message templates 2026-05-18 11:26:52 +05:00
Kirill 86f8569840 feat: add email templates for notifications 2026-05-18 11:25:46 +05:00
Kirill 09ada62daf feat: add notification event bus 2026-05-18 11:24:01 +05:00
Kirill d18546c45a feat(client): slider picker shows only resized images
chore(server): remove unused gallery.js
2026-05-17 18:20:57 +05:00
Kirill 02172f7995 test(server): add gallery resize test, adapt upload tests 2026-05-17 18:00:15 +05:00
Kirill 347089b173 test commit 2026-05-15 22:09:24 +05:00
Kirill f855568687 refactor: simplify order status model — remove DELIVERY_FEE_ADJUSTMENT and PAYMENT_VERIFICATION
- Add deliveryFeeLocked field to Order model
- Remove DELIVERY_FEE_ADJUSTMENT and PAYMENT_VERIFICATION statuses (11→8)
- 3 order paths: delivery+online (locked→unlocked→paid), pickup+online (unlocked→paid), pickup+on_pickup (direct to in_progress)
- Update checkout to use PENDING_PAYMENT + deliveryFeeLocked
- Update payment flow to stay in PENDING_PAYMENT until admin confirms
- Update admin UI to use deliveryFeeLocked instead of status check
- Update client payment UI with new deliveryFeeLocked logic
2026-05-15 21:55:14 +05:00
Kirill d499aeb735 chore: remove plans and uploads from git tracking 2026-05-15 20:32:52 +05:00
Kirill b22c3f312c feat: add eager mode to persistMultipartImages 2026-05-15 20:10:45 +05:00
Kirill 3e5e495b9f fix: reuse sharp instance and UPLOADS_DIR constant in eager processing 2026-05-15 19:52:16 +05:00
Kirill 5de2694a14 feat: add eager image processing functions (generateAllSizes, convertOriginalToWebp) 2026-05-15 19:48:15 +05:00
Kirill d8798de49a test: add server tests for image resize library 2026-05-15 13:32:34 +05:00
Kirill c37743eee6 feat: separate review images into /uploads/reviews/ subdir 2026-05-15 13:24:14 +05:00
Kirill 66b0558a42 feat: add image resize library with sharp 2026-05-15 13:23:57 +05:00
@kirill.komarov 8165f75a78 Merge branch 'refactor2' 2026-05-13 22:40:45 +05:00
@kirill.komarov a06f9cf2c4 Merge branch 'refactor' 2026-05-13 22:07:46 +05:00
@kirill.komarov 130c12a1d3 deploy 2026-05-11 20:42:26 +05:00
@kirill.komarov 7a92991cff deploy 2026-05-11 20:15:01 +05:00
@kirill.komarov 4eda6d0f81 deploy 2026-05-11 15:14:35 +05:00
@kirill.komarov 20096c1eec deploy 2026-05-10 17:38:04 +05:00
@kirill.komarov 517cd23a55 deploy 2026-05-10 17:15:56 +05:00
@kirill.komarov f56d6a79fb base commit 2026-05-10 14:38:32 +05:00
@kirill.komarov 5ddde15fd3 base commit 2026-05-10 14:28:35 +05:00
@kirill.komarov fe10f25b8c base commit 2026-05-03 19:57:12 +05:00
@kirill.komarov 9139a24093 base commit 2026-04-30 22:34:55 +05:00
@kirill.komarov f26223091a base commit 2026-04-29 19:29:24 +05:00
@kirill.komarov 2148fd7a12 base commit 2026-04-28 21:36:30 +05:00
@kirill.komarov 55480d4aa5 init project 2026-04-28 11:02:08 +05:00