From d63b3441b6e1735bc26ad026f58d95e56c887a97 Mon Sep 17 00:00:00 2001 From: moojttaba Date: Tue, 9 Jun 2026 23:21:39 +0330 Subject: [PATCH] docs: activity log v2.11.40 DataGrid migration --- 09 - Audits/Activity Log.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/09 - Audits/Activity Log.md b/09 - Audits/Activity Log.md index 647e963..11f3695 100644 --- a/09 - Audits/Activity Log.md +++ b/09 - Audits/Activity Log.md @@ -1987,4 +1987,39 @@ Added `10 - Services/README.md` index. All docs now reflect current codebase sta **frontend v2.11.29** - `fix(seller): remove "درخواست جدید" button from seller request list view` — only buyers can create requests; button removed from seller dashboard header. +**frontend v2.11.35** +- `feat(seller-dashboard): Shopify-style seller dashboard` — overview-seller-view rewritten with header (greeting + date + realtime badge + 3 quick buttons), 4 KPI metric cards (pending offers / completed / in-negotiation / total), offer pipeline stacked bar with legend, recent requests table (last 6 with status Label + link), quick-actions card (4 soft buttons to offers/templates/shop-settings/payments). +- `fix(seller-offers): seam bug #4 — offer._id vs offer.id` — withdrawOffer, setOffers map, and TableRow key now use `_id || id` so PG-native offers work correctly. +- `fix(payment-list-seller): pass sellerId filter` — PaymentListSellerView now injects user._id as sellerId prop into PaymentListView; PaymentListView query includes sellerId so sellers only see their own payments. +- `fix(types): add id?: string to ISellerOffer` — aligns with IPurchaseRequest pattern for Mongo→PG seam. +- `fix(overview-seller): remove unused vars` — unused theme/user destructures cleaned up; req._id||req.id fix for requests. + +## v2.11.36 — 2026-06-09 + +- `feat(seller-customers): add Customers CRM page` — new `/dashboard/seller/customers` page derived from purchase requests; groups by buyer, shows totalRequests / acceptedOffers / lastActivity; summary cards + searchable table; active = activity in last 30 days. +- `feat(seller-reviews): add Reviews page` — new `/dashboard/seller/reviews` page using `getReviews`/`getReviewSummary`; rating breakdown bars, average card, paginated review list with verified buyer chips and published/pending status. +- `feat(nav): add Customers and Reviews nav items for seller role` — two new sidebar items under "خدمات" (مشتریان, نظرات) with `allowedRoles: ['seller']`. +- `fix(types): fontWeight as sx prop on Typography` — MUI v9 does not accept fontWeight as a direct Typography prop; moved to sx={{fontWeight:…}} in seller-customers-view and seller-reviews-view. + +## v2.11.37 — 2026-06-09 + +- `feat(table): add DashboardTable generic component` — reusable `DashboardTable` in `src/components/table/` with consistent header (text.secondary), search field, filter toolbar slot, loading/empty states, and pagination; all tables that use this share identical styling. +- `fix(table-head-custom): apply text.secondary to header cells by default` — all tables using `TableHeadCustom` (user-list, requests, disputes) now get consistent header color automatically. +- `refactor(seller-customers-view): migrate to DashboardTable` — extracted column definitions to COLUMNS constant; removed manual TableContainer/Table boilerplate. +- `refactor(payment-history-view): migrate to DashboardTable` — cleaner code; filter chips passed via toolbar prop; search moved into DashboardTable built-in. + +## v2.11.38 — 2026-06-09 + +- `feat(seller-analytics): add Analytics page` — new `/dashboard/seller/analytics` with summary cards (total revenue, payments, completed, pending), ApexCharts donut chart for status distribution, status breakdown panel, and recent payments table using DashboardTable. +- `feat(nav): add Analytics nav item for seller role` — sidebar entry under "خدمات" with chart icon. + +## v2.11.40 — 2026-06-09 + +- `feat(tables/datagrid): migrate all seller+payment tables to MUI X DataGrid format` — seller-customers, seller-reviews, payment-history, seller-analytics recent payments all migrated to DataGrid (like request-templates). Added `SimpleToolbar` to custom-data-grid; reduced columns per user feedback (removed txHash, network, acceptedOffers). + +## v2.11.39 — 2026-06-09 + +- `fix(tables/audit): remove hardcoded rgba(194,65,12,0.04) hover colors` — replaced with MUI built-in hover across admin tables, points leaderboard, and blog; violates AGENTS.md rule (no inline hex/rgba colors). +- `fix(payment-list): remove fontFamily:var(--amn-sans) from header cells` — hardcoded fontFamily violation removed; inherits theme font correctly. +