Commit Graph

249 Commits

Author SHA1 Message Date
Kirill cf6b5da4fc feat(client): add isResized type, uploadGalleryImages, resizeGalleryImage API 2026-05-17 18:03:32 +05:00
Kirill 02172f7995 test(server): add gallery resize test, adapt upload tests 2026-05-17 18:00:15 +05:00
Kirill 5637bb7db9 feat(server): remove old /admin/uploads, validate isResized on product endpoints 2026-05-17 17:54:13 +05:00
Kirill 9226bcc571 feat(server): add POST /api/admin/gallery/:id/resize endpoint 2026-05-17 17:50:27 +05:00
Kirill 248f8766aa feat(server): add POST /api/admin/gallery/upload endpoint 2026-05-17 17:43:47 +05:00
Kirill c8281a39e5 feat(db): add isResized to GalleryImage 2026-05-17 17:39:44 +05:00
Kirill f36439de38 Merge branch 'FIX-ORDER' 2026-05-15 22:09:38 +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 2db6258b33 test commit 2026-05-15 21:14:07 +05:00
Kirill 518879dabb test commit 2026-05-15 20:44:17 +05:00
Kirill 0a3aa2b891 update goods 2026-05-15 20:40:09 +05:00
Kirill d499aeb735 chore: remove plans and uploads from git tracking 2026-05-15 20:32:52 +05:00
Kirill 7e231dbdd8 feat: use WebP original for full-screen product image viewer 2026-05-15 20:27:45 +05:00
Kirill 56bdcc0351 feat: update OptimizedImage for WebP originals and add getOriginalWebpUrl 2026-05-15 20:21:29 +05:00
Kirill dc448d6538 feat: improve error messages for user upload size validation 2026-05-15 20:19:00 +05:00
Kirill d73d88d034 feat: enable eager image processing for admin uploads 2026-05-15 20:16:07 +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 8b79c01985 fix: downgrade sharp to 0.32.6 for older CPU compatibility, add /uploads-resized/ to nginx config 2026-05-15 19:06:22 +05:00
Kirill 1739f52ad3 update goods 2026-05-15 15:49:04 +05:00
Kirill be48606ae3 update goods 2026-05-15 14:58:47 +05:00
Kirill 551c9b027c update goods 2026-05-15 14:43:26 +05:00
Kirill 48dc9de456 update goods 2026-05-15 14:24:25 +05:00
Kirill 25901ae224 update goods 2026-05-15 14:23:54 +05:00
Kirill ed475be289 fix: apply lint fixes and fix vite manualChunks for Vite 8 compatibility 2026-05-15 13:43:51 +05:00
Kirill d8798de49a test: add server tests for image resize library 2026-05-15 13:32:34 +05:00
Kirill 50eb427f5c perf: use OptimizedImage in admin pages 2026-05-15 13:30:27 +05:00
Kirill 9c238bd542 perf: use OptimizedImage in ProductPage 2026-05-15 13:30:05 +05:00
Kirill 35ddb17247 perf: use OptimizedImage in CatalogSlider 2026-05-15 13:29:58 +05:00
Kirill 8965eb6dad perf: use OptimizedImage in ReviewsBlock 2026-05-15 13:29:50 +05:00
Kirill b4f436cbdf perf: use OptimizedImage in GalleryGrid 2026-05-15 13:29:47 +05:00
Kirill b52471ec97 perf: use OptimizedImage in ProductCard 2026-05-15 13:29:45 +05:00
Kirill 5856a9eaf6 feat: add OptimizedImage component with AVIF/WebP srcset 2026-05-15 13:27:22 +05:00
Kirill 301f3eee5c perf: lazy load admin and me routes with Suspense 2026-05-15 13:27:15 +05:00
Kirill 5246a4e52e perf: add Vite manualChunks for vendor code splitting 2026-05-15 13:26:24 +05:00
Kirill ec1d2c4b1a seo: add meta tags for description, OG, theme-color, canonical 2026-05-15 13:26:20 +05:00
Kirill db5e3c4d52 chore: add uploads/.cache/ to gitignore 2026-05-15 13:26:11 +05:00
Kirill 0bef02bc6d feat: add uploads-resized route with sharp resizing and cache headers 2026-05-15 13:24:16 +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 906dc61d0a docs: add lighthouse optimization implementation plan 2026-05-15 13:19:15 +05:00
Kirill 78fc1d4d96 docs: add lighthouse optimization design spec 2026-05-15 13:12:42 +05:00
Kirill 1b7ec703ee Merge branch 'update-goods' 2026-05-15 12:55:32 +05:00
Kirill 10ffa21c66 update goods 2026-05-15 12:55:23 +05:00
Kirill 89d605adf4 update goods 2026-05-15 12:50:39 +05:00
Kirill c5634deb51 test refactor 2026-05-14 22:40:35 +05:00
Kirill 1de7649276 Merge branch 'style2' 2026-05-14 22:03:10 +05:00
Kirill 298c4f63d5 test refactor 2026-05-14 22:02:56 +05:00