Vitron-Front/app/hooks
Arda Samadi a642fc0fae feat(seller-team): multi-user dashboard — store switcher, role gating, team UI
- useMyStores + team hooks (invite by phone / list / remove) in use-seller-hooks.
- useStoreOwnership rewritten to allow staff (not just the owner) via my-stores;
  exposes `role` so callers can gate owner-only UI, and no longer redirects
  members away from a store they help manage.
- Store settings: owner-only items (financial, shipping, edit store, instagram
  sync, team) hidden from staff; new "مدیریت اعضای تیم" entry (owner-only).
- New /store/:storeId/team page: invite by phone + members list with pending/
  active status + remove (owner-only, redirects staff). MyLayout keeps store mode
  on the team route.
- StoreForm edit is owner-only (redirects staff). Profile "enter my store" now
  routes owners to their store and staff to the store they manage.
- Chat already split earlier: seller inbox vs personal buyer inbox.

Depends on the seller-team backend; ships on this branch, not main.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 16:43:53 +03:30
..
use-prefetch.ts first 2026-04-29 01:44:16 +03:30
use-root-data.ts first 2026-04-29 01:44:16 +03:30
use-toast.ts first 2026-04-29 01:44:16 +03:30
useBadgeCounts.ts feat(notifications): web push opt-in + unread nav badges 2026-06-17 14:02:56 +03:30
useCarousel.ts first 2026-04-29 01:44:16 +03:30
useDebounce.ts first 2026-04-29 01:44:16 +03:30
usePushNotifications.ts fix(notifications): read camelCase publicKey from VAPID endpoint 2026-06-17 12:06:35 +00:00
useStoreOwnership.ts feat(seller-team): multi-user dashboard — store switcher, role gating, team UI 2026-07-01 16:43:53 +03:30
useWebSocket.ts first 2026-04-29 01:44:16 +03:30