mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* refactor(spaces): migrate Spaces feature to the new architecture * refactor(spaces): update import path for useCurrentSpaceId hook * refactor(spaces): move Spaces page components to the new feature architecture folder * refactor(spaces): consolidate imports for hooks and member roles in spaces feature * refactor(spaces): consolidate hook imports * refactor(spaces): consolidate imports across components * refactor(spaces): update component structure * test: fix tests * refactor(spaces): fix review comments * refactor(tests): update analytics mocks across multiple test files * refactor(spaces): remove unused hook imports from InviteBanner and SpaceCard components * refactor(spaces): remove useSpaceSafeCount hook and its import * fix: resolve circular dependency in useIsSpaceRoute Import useCurrentSpaceId directly from hook file instead of barrel to break circular dependency chain: __core__/index → createFeatureHandle → useChains → ... → useIsSpaceRoute → features/spaces/index → __core__/index This was causing "Cannot access '_createFeatureHandle' before initialization" in 4 test suites. * fix: resolve circular deps and feature architecture violation - utils.ts: use relative import for MemberStatus/MemberRole instead of barrel to break circular dependency (utils ↔ index.ts) - useIsSpaceRoute: inline Redux selector instead of importing useCurrentSpaceId from internal feature path, fixing both the circular dep chain and the feature architecture rule violation --------- Co-authored-by: katspaugh <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>