- New shared SVG icon set (src/components/ui/icons.tsx): Menu, User,
Cart, Close, ChevronLeft — replaces emoji (☰ 👤🛒 ✕) across the
header, and the literal "←" text arrow on every "view more"-style
link (SectionTitle's action, the mega-menu link, BlogCarousel's
"ادامه مطلب").
- Header desktop account/cart area redesigned as a borderless chip:
cart icon button (right) + divider + account icon-badge/two-line
"حساب کاربری / ورود/ثبتنام" (left), matching a supplied reference.
Got the RTL DOM order backwards on the first pass (cart needs to be
first in DOM to render rightmost) and corrected it.
- Header logo: -10px (was already doubled from an earlier request).
- Footer: background is now bg-[#9a21291a] (exact hex given, not a
token substitute) with black text throughout instead of solid
dark-red/white; footer logo doubled; the meshkee-credit logo gets
brightness-0 so the white source asset stays visible on the new
light background.
- Fixed a real layout bug: <main> had no flex-1, so on any page
shorter than the viewport the footer stuck to the content instead of
the bottom of the screen, leaving a gap of bare background beneath
it. Standard sticky-footer flex fix.
- CONTEXT.md: documented the icon set, the account/cart chip's RTL DOM
ordering (to stop this regressing again), and the footer's new
color scheme + the flex-1 fix.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Header logo (desktop variant) doubled: 40/48px -> 80/96px.
- Each dynamic store-specials carousel now shows an English caption
under its title at 50% opacity, derived from the group's real `key`
(e.g. "top-selling" -> "TOP SELLING") rather than inventing a
translation of the Persian title, which the API doesn't provide.
New SectionTitle `enSubtitle` prop (separate from the existing
inline `enTitle`) carries this.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- StoreSpecialCarousels now inserts one of the two banner sections
(TwoBanners/ThreeBanners, cycling) between every pair of carousels
instead of stacking all carousels together with the banners fixed
elsewhere on the page — works for any number of dynamic carousels.
- SectionTitle's action button is a real link now (actionHref), not an
inert <button>. Each carousel's "مشاهده همه" goes to
/products?specialId={group.id}, which renders that exact
admin-curated group in the full product grid — store-specials groups
have no pagination, so this is genuinely the complete set, not a
truncated preview. Also fixed BlogCarousel's dead "وبلاگ" button the
same way, now linking to /blog.
- Reduced FeaturedCategories' vertical padding (py-10/14 -> py-4/6).
- Desktop header logo was smaller than the mobile one (36px vs 46px) —
bumped to 40/48px so it reads properly at desktop width.
- CONTEXT.md: document the banner-interleaving and specialId patterns.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Replace the two hardcoded homepage carousels (SpecialSaleCarousel
pinned to store-specials group 0 only, TopSellingCarousel reading
from an unrelated plain product query) with StoreSpecialCarousels:
loops over every group GET /store-specials returns, using each
group's own title. A new carousel created in the admin panel (e.g.
the "بهترینها از نگاه شما" one just added) shows up automatically,
no code change needed.
- Remove the brand-groups integration and its "سامسونگ" carousel
entirely (getBrandGroups, BrandGroupCarousels) — brand-name
carousels aren't wanted on this site per explicit instruction.
- SectionTitle's enTitle is now optional, since dynamic store-specials
groups only have one title string, not a Persian/English pair.
- Move featured categories above the hero-adjacent special carousels
per the requested homepage order; drop the "دستهبندیهای پرطرفدار"
heading and its "همه دستهها" button, per request.
- Wire the header/footer logo and the favicon to the real business
data (logoUrl/logoDarkUrl/faviconUrl from GET business-info) instead
of static files; removed src/app/favicon.ico, which was silently
winning over the new dynamic <link rel="icon">.
- CONTEXT.md: document the dynamic-carousel contract and the
logo/favicon wiring so neither regresses to hardcoded.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Real in-site login/register (password + SMS OTP) against Meshkee's
/auth API, with self-healing access-token refresh (15 min lifetime) and
an in-flight-refresh guard so AuthContext and CartContext don't race
each other into a failed concurrent refresh.
- Real cart: header cart button/badge, a cart popup, and a working
"add to cart" on both product cards (where a specific variant id is
known) and the product/store-item detail buy-box (always resolves a
purchasable variant, even for single-SKU products with no selectable
variation).
- /checkout: address + cash/bank-transfer payment, posts to the real
checkout API and creates an order; refreshes the cart afterward so the
header badge doesn't go stale.
- New /store-items and /store-items/[id] pages (variant-level browsing,
separate from the product-level /products catalog), cross-referencing
the parent product for images/description/technical-info.
- Product gallery: click-to-open fullscreen lightbox alongside the
existing hover-zoom.
- Comments tab wired to the real comments API, gated to logged-in users
(a product decision — the API itself doesn't require auth) with a
login prompt otherwise.
- Similar-products row on product/store-item detail pages.
- Contact page wired to the real contact-submissions API, with a toast
and inline confirmation on success, and the form resetting.
- CONTEXT.md: a maintained architecture/conventions doc for this repo,
now auto-loaded via CLAUDE.md, covering the Meshkee integration quirks
and UI conventions established across this project.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add /products (list + detail) and /blog (list + detail) routes backed by
the real Meshkee API, a real category-hierarchy mega menu (level 2/3 only),
debounced instant search proxied through a same-origin API route, and
tel:-link fallbacks on product cards when no price is set. Also fixes
Product price normalization to read the real API shape instead of a
guessed one, and hardens product linking against catalog sources that
don't expose a slug.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>