Commit Graph

413 Commits

Author SHA1 Message Date
parsa aghaei
1a0c98a34e feat: dynamic UI texts system + admin panel editor + Vazirmatn local font + bug fixes
- Add getText() system for all homepage sections (Header, Hero, FeaturedProducts, SmartAdvisor, VetGallery, Footer)
- Add UITexts admin page in frontend/admin-panel with search, group collapse, per-key save
- Add seed-ui-texts.ts with 102 texts in 9 groups
- Add local VazirmatnVariable.woff2 font, remove CDN + Inter references
- Fix hero image path, productService return type { data, meta }
- Fix ArchivePage pagination + CATEGORIES list + breadcrumbs
- Fix BlogPage/Wiki page links + brightness-0 invert removal
- Fix IngredientWiki search + product links + placeholder
- Fix all getProducts() callers for { data } destructuring
- Fix sitemap.ts, CartDrawer, B2BPortal, CheckoutPage type issues
- Add .gitignore for /fonts/ and /backend/uploads/
2026-07-11 17:19:55 +03:30
parsa aghaei
ab7ed279c8 fix: await params Promise in blog and wiki [slug] pages for Next.js 16
- blog/[slug]/page.tsx: fix params type to Promise and await it
- wiki/[slug]/page.tsx: fix params type to Promise and await it + Fix API port from 4000 to 4001
- blog/page.tsx: fix fallback API URL from port 4000 to 4001
2026-07-11 15:51:29 +03:30
parsa aghaei
3aebb9e176 fix(admin): show original filename and selected state in image gallery
- Add filename label and upload date under each thumbnail in MediaSelector
- Highlight currently selected image with purple border and badge
- Add selectedUrl prop to MediaSelector for visual indication
- Show image filename in product form Media tab
- Add helper text for clipboard paste and gallery selection
2026-07-11 15:45:17 +03:30
parsa aghaei
7615aa0e51 fix: resolve seed encoding, search param, and wiki data source issues
- Fix seed-products.ts TS error (implicit any) and BOM handling
- Re-run full seed to restore correct Persian encoding in DB
- Fix productService query→search param mismatch
- Fix IngredientWiki hardcoded port 4000→use settingsStore
- Restore seed-products-data.json from git after accidental corruption
2026-07-11 15:40:49 +03:30
parsa aghaei
804a596711 fix: map category from backend relation/name to frontend display 2026-07-11 14:06:29 +03:30
parsa aghaei
2103b105ac fix: map imageUrl from backend to frontend image field 2026-07-11 14:02:04 +03:30
parsa aghaei
cd17a532d9 fix: resolve backend TS compilation errors, startup order, and add clipboard paste upload
- Fix products.service.ts: ingredients -> ingredientList (Prisma relation name)
- Fix seed-blogs.ts: template literal refactor (array join) to avoid esbuild parse error
- Fix seed-custom.ts: category string -> connectOrCreate relation
- Add start-dev.js: sequential startup (backend first, then frontends)
- Add Ctrl+V paste upload to admin MediaSelector component
- Create missing images/vets/ and images/slider/ directories
2026-07-11 13:51:12 +03:30
parsa aghaei
0ea6c6d271 feat: enrich all site content with Canina pharma research data
- Add 20 new products to frontend products.ts (total 29 products)
- Enrich existing 9 product descriptions with biochemical/clinical details
- Add new blog articles with real content from research document
- Update UI texts with Canina brand history (1984 founding, IFS/HACCP)
- Add 9 new scientific terms (Ca:P, D3, BARF, biotin, taurine, etc.)
- Expand INGREDIENTS_WIKI with collagens, biotin, taurine entries
- Add new medical options (heart disease, parasites) to SmartAdvisor
2026-07-11 13:34:22 +03:30
parsa aghaei
140872c888 fix: resolve Hero image CORS, button contrast, floating labels, footer border + refactor product seeder with full catalog data from JSON + add barcode/buyPrice/productGroup fields to Product model 2026-07-11 13:21:30 +03:30
parsa aghaei
3dedc89ee1 تغییرات کلی در backend و frontend 2026-07-11 12:30:17 +03:30
a74f4bda48 design: implement heuristic UX, WCAG accessibility, touch targets, and cognitive load enhancements 2026-07-10 18:42:11 +03:30
756cb749b2 design: implement landing page UI/UX improvements based on Senior UI/UX audit 2026-07-10 18:31:23 +03:30
71f5ac2fa6 fix: resolve unique constraint bug in prisma seeders and run products/home seeders successfully 2026-07-10 18:20:05 +03:30
6db28f6231 feat: add scripts/open-browsers.js to automatically open services on dev startup 2026-07-10 17:40:35 +03:30
1c07efcc91 design: update color palette to match official brand and add gold top banner 2026-07-10 17:30:01 +03:30
f69537a688 feat: rename brand from canina to canino across codebase 2026-07-10 16:32:31 +03:30
2851ef8a25 feat: complete backend swagger annotations, admin pages pagination, and frontend application fixes 2026-07-10 16:13:52 +03:30
24137beb32 docs: complete swagger annotations for auth, home, blogs and wiki endpoints 2026-06-12 23:30:22 +03:30
e09adc03c3 fix: change SSR fetch URLs from 4000 to 4001 2026-06-12 23:21:56 +03:30
dcfc4acae4 fix: restore wiki to dictionary, create dynamic blog pages and backend wiki CRUD 2026-06-12 23:14:21 +03:30
945c007a79 feat: complete app democking, fix types, add blogs api 2026-06-12 22:53:57 +03:30
6027e635db feat: implement backend auth and fix pet profile payload 2026-06-12 22:37:35 +03:30
82ab454647 Fix Admin panel categories modal, add error handling, enforce cursor-pointer globally 2026-06-12 21:57:09 +03:30
69502fc380 feat: implement advanced reports, pagination for all tables, global settings, and discounts modules 2026-06-12 16:28:06 +03:30
a7ebb8d792 feat: complete admin panel major functionalities including responsive layout, recharts, custom modals, inline editing, and loading states 2026-06-12 16:19:57 +03:30
ee041d4e52 fix: resolve Hyper-V reserved port collisions and Tailwind v4 CSS 2026-06-12 14:18:55 +03:30
fa7333e93f fix: update postcss config and lockfiles 2026-06-12 14:09:30 +03:30
29ab7f4141 fix: change frontend and backend ports to resolve EACCES 3000 2026-06-12 14:05:50 +03:30
d430a341f0 fix: resolve unclosed block in index.css 2026-06-12 14:00:36 +03:30
15ffe8a0e6 chore: clean up leftover react project files in root 2026-06-12 13:56:27 +03:30
07b52f464c feat: add root workspace runner 2026-06-12 13:51:10 +03:30
0b698859d9 fix: resolve linter error in products page 2026-06-12 13:41:06 +03:30
beb8317fad feat: add order management page 2026-06-12 13:36:54 +03:30
060dc39fdd feat: add product catalog management page 2026-06-12 13:36:17 +03:30
aea6fa4127 feat: add user management page 2026-06-12 13:35:42 +03:30
4dc8786847 feat: add admin login page 2026-06-12 13:35:05 +03:30
222581c6a3 feat: setup admin layout and base routing 2026-06-12 13:34:25 +03:30
7fcfbda8cd chore: configure tailwindcss for admin-panel 2026-06-12 13:30:25 +03:30
95887738ea chore: initialize admin-panel react project 2026-06-12 13:25:34 +03:30
344be17b52 docs: add comprehensive developer documentation 2026-06-12 13:02:27 +03:30
95760d78b5 fix: remove invalid lucide-react imports 2026-06-12 01:33:39 +03:30
c4966136d7 fix: update import paths for lib folders in components 2026-06-12 01:32:10 +03:30
14bf2953ab feat: SEO metadata for static pages (search, wiki, blog) 2026-06-12 01:27:43 +03:30
88c3752238 feat: auto-generated sitemap and robots.txt 2026-06-12 01:27:02 +03:30
700f93e418 feat: dynamic SEO metadata and JSON-LD for products 2026-06-12 01:26:32 +03:30
bf1b11d6a9 feat: global SEO settings and JSON-LD in frontend layout 2026-06-12 01:25:34 +03:30
0fa65c0802 feat: backend database changes for advanced SEO fields 2026-06-12 01:25:08 +03:30
ee0b8a5ff8 feat: auxiliary pages migrated to Next.js (Blog, Videos, Track, Success) 2026-06-12 01:17:03 +03:30
976dfcd610 feat: interactive pages migrated to Next.js (Dashboard, Checkout, Profile, Wiki) 2026-06-12 01:10:52 +03:30
3de0408e6f feat: core pages and components migrated to Next.js (Home, Shop, Product) 2026-06-12 01:08:04 +03:30