Vitron-Front/app/requestHandler
Arda Samadi bb44ebf0e5 fix(seller-team): guard owner-only routes + robust useMyStores
Review fixes:
- useMyStores throws on a failed response instead of resolving to [] — a
  transient 401/blip no longer looks like "no stores" and bounces an owner off
  their own dashboard (query stays in error/retry, keeps prior data).
- Add useRequireOwner() guard and apply it to the owner-only routes
  (financial-dashboard + its cash-funds/reports/transactions sub-routes and
  shipping-method) so staff who hit those URLs directly are redirected to the
  dashboard. (Financial data was already backend-protected; this is the matching
  client-side gate.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 17:04:06 +03:30
..
use-address-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-auth-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-bookmark-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-cart-hooks.ts first 2026-04-29 01:44:16 +03:30
use-chat-hooks.tsx feat(seller-team): split buyer inbox vs store inbox in chat UI 2026-07-01 16:00:23 +03:30
use-collection-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-comments-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-courier-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-discount-hooks.ts first 2026-04-29 01:44:16 +03:30
use-explore-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-following-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-home-hooks.ts fix(product): detail page price now matches list tiles + fresher feeds 2026-06-22 19:55:11 +00:00
use-instagram-hooks.ts first 2026-04-29 01:44:16 +03:30
use-media-hooks.ts first 2026-04-29 01:44:16 +03:30
use-order-hooks.ts first 2026-04-29 01:44:16 +03:30
use-product-hooks.ts first 2026-04-29 01:44:16 +03:30
use-profile-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-search-hooks.ts first 2026-04-29 01:44:16 +03:30
use-seller-hooks.ts fix(seller-team): guard owner-only routes + robust useMyStores 2026-07-01 17:04:06 +03:30
use-shipping-hooks.ts first 2026-04-29 01:44:16 +03:30
use-user-collection-hooks.tsx first 2026-04-29 01:44:16 +03:30
use-view-hooks.ts feat(product): record product views for recommendations 2026-06-29 13:57:04 +03:30
use-wallet-hooks.tsx first 2026-04-29 01:44:16 +03:30