diff --git a/src/common/components/HotkeyTooltipWrapper.tsx b/src/space/common/components/HotkeyTooltipWrapper.tsx
similarity index 96%
rename from src/common/components/HotkeyTooltipWrapper.tsx
rename to src/space/common/components/HotkeyTooltipWrapper.tsx
index a5720d2d..5279e8da 100644
--- a/src/common/components/HotkeyTooltipWrapper.tsx
+++ b/src/space/common/components/HotkeyTooltipWrapper.tsx
@@ -4,7 +4,7 @@ import {
Tooltip,
TooltipTrigger,
TooltipContent,
-} from "@/components/ui/tooltip";
+} from "@/shared/ui/tooltip";
import { TooltipArrow } from "@radix-ui/react-tooltip";
type HotkeyTooltipWrapperProps = {
diff --git a/src/common/components/Loading.tsx b/src/space/common/components/Loading.tsx
similarity index 100%
rename from src/common/components/Loading.tsx
rename to src/space/common/components/Loading.tsx
diff --git a/src/common/components/Modal.tsx b/src/space/common/components/Modal.tsx
similarity index 100%
rename from src/common/components/Modal.tsx
rename to src/space/common/components/Modal.tsx
diff --git a/src/common/components/NewPostEntry.tsx b/src/space/common/components/NewPostEntry.tsx
similarity index 97%
rename from src/common/components/NewPostEntry.tsx
rename to src/space/common/components/NewPostEntry.tsx
index f37d8b98..5167cf5b 100644
--- a/src/common/components/NewPostEntry.tsx
+++ b/src/space/common/components/NewPostEntry.tsx
@@ -1,6 +1,6 @@
import React, { useEffect } from "react";
-import { useNewPostStore } from "@/stores/useNewPostStore";
-import { useAccountStore } from "@/stores/useAccountStore";
+import { useNewPostStore } from "@/space/stores/useNewPostStore";
+import { useAccountStore } from "@/space/stores/useAccountStore";
import { DraftType } from "../constants/farcaster";
import { useHotkeys } from "react-hotkeys-hook";
import { useEditor, EditorContent } from "@mod-protocol/react-editor";
@@ -18,7 +18,7 @@ import {
import { createRenderMentionsSuggestionConfig } from "@mod-protocol/react-ui-shadcn/dist/lib/mentions";
import { CastLengthUIIndicator } from "@mod-protocol/react-ui-shadcn/dist/components/cast-length-ui-indicator";
import { debounce, map } from "lodash";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/shared/ui/button";
import { MentionList } from "@mod-protocol/react-ui-shadcn/dist/components/mention-list";
import { take } from "lodash";
import { ChannelPicker } from "./ChannelPicker";
@@ -26,7 +26,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/shared/ui/popover";
import { CreationMod } from "@mod-protocol/react";
import { creationMods } from "@mod-protocol/mod-registry";
import { renderers } from "@mod-protocol/react-ui-shadcn/dist/renderers";
diff --git a/src/common/components/PostEmbeddedContent/ImgurImage.tsx b/src/space/common/components/PostEmbeddedContent/ImgurImage.tsx
similarity index 100%
rename from src/common/components/PostEmbeddedContent/ImgurImage.tsx
rename to src/space/common/components/PostEmbeddedContent/ImgurImage.tsx
diff --git a/src/common/components/PostEmbeddedContent/index.tsx b/src/space/common/components/PostEmbeddedContent/index.tsx
similarity index 100%
rename from src/common/components/PostEmbeddedContent/index.tsx
rename to src/space/common/components/PostEmbeddedContent/index.tsx
diff --git a/src/common/components/ProfileHoverCard.tsx b/src/space/common/components/ProfileHoverCard.tsx
similarity index 94%
rename from src/common/components/ProfileHoverCard.tsx
rename to src/space/common/components/ProfileHoverCard.tsx
index ea49213d..121364a8 100644
--- a/src/common/components/ProfileHoverCard.tsx
+++ b/src/space/common/components/ProfileHoverCard.tsx
@@ -3,12 +3,12 @@ import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
-} from "@/components/ui/hover-card";
-import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
+} from "@/shared/ui/hover-card";
+import { Avatar, AvatarFallback, AvatarImage } from "@/shared/ui/avatar";
import { openWindow } from "../helpers/navigation";
import { Loading } from "./Loading";
import { useInView } from "react-intersection-observer";
-import { useDataStore } from "@/stores/useDataStore";
+import { useDataStore } from "@/space/stores/useDataStore";
import { get } from "lodash";
import FollowButton from "./FollowButton";
import { NeynarAPIClient } from "@neynar/nodejs-sdk";
diff --git a/src/common/components/QrCode.tsx b/src/space/common/components/QrCode.tsx
similarity index 88%
rename from src/common/components/QrCode.tsx
rename to src/space/common/components/QrCode.tsx
index 0ddb8a53..bd17095c 100644
--- a/src/common/components/QrCode.tsx
+++ b/src/space/common/components/QrCode.tsx
@@ -1,6 +1,6 @@
import React from "react";
import QRCode from "react-qr-code";
-import { openWindow } from "@/common/helpers/navigation";
+import { openWindow } from "@/space/common/helpers/navigation";
export const QrCode = ({ deepLink }: { deepLink: string }) => {
return
diff --git a/src/common/components/RecommendedProfilesCard.tsx b/src/space/common/components/RecommendedProfilesCard.tsx
similarity index 97%
rename from src/common/components/RecommendedProfilesCard.tsx
rename to src/space/common/components/RecommendedProfilesCard.tsx
index 0479bf45..ae42d5f1 100644
--- a/src/common/components/RecommendedProfilesCard.tsx
+++ b/src/space/common/components/RecommendedProfilesCard.tsx
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import { NeynarAPIClient } from "@neynar/nodejs-sdk";
import { User } from "@neynar/nodejs-sdk/build/neynar-api/v2";
import FollowButton from "./FollowButton";
-import { useDataStore } from "@/stores/useDataStore";
+import { useDataStore } from "@/space/stores/useDataStore";
const defaultProfiles: User[] = [
{
diff --git a/src/common/components/RegisterFarcasterUsernameForm.tsx b/src/space/common/components/RegisterFarcasterUsernameForm.tsx
similarity index 98%
rename from src/common/components/RegisterFarcasterUsernameForm.tsx
rename to src/space/common/components/RegisterFarcasterUsernameForm.tsx
index e56723a4..3dd0ce81 100644
--- a/src/common/components/RegisterFarcasterUsernameForm.tsx
+++ b/src/space/common/components/RegisterFarcasterUsernameForm.tsx
@@ -10,9 +10,9 @@ import {
FormItem,
FormLabel,
FormMessage,
-} from "@/components/ui/form";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
+} from "@/shared/ui/form";
+import { Button } from "@/shared/ui/button";
+import { Input } from "@/shared/ui/input";
import { useAccount, useSignTypedData, useWalletClient } from "wagmi";
import {
getFidForAddress,
@@ -26,7 +26,7 @@ import { getAddress, toHex } from "viem";
import {
PENDING_ACCOUNT_NAME_PLACEHOLDER,
useAccountStore,
-} from "@/stores/useAccountStore";
+} from "@/space/stores/useAccountStore";
import { AccountPlatformType, AccountStatusType } from "../constants/accounts";
import { mainnet } from "viem/chains";
import { UserDataType } from "@farcaster/hub-web";
diff --git a/src/common/components/ReplyModal.tsx b/src/space/common/components/ReplyModal.tsx
similarity index 94%
rename from src/common/components/ReplyModal.tsx
rename to src/space/common/components/ReplyModal.tsx
index 9aa05f4c..058227c5 100644
--- a/src/common/components/ReplyModal.tsx
+++ b/src/space/common/components/ReplyModal.tsx
@@ -1,10 +1,10 @@
import React, { useEffect } from 'react';
import Modal from './Modal';
import NewPostEntry from './NewPostEntry';
-import { useNewPostStore } from '@/stores/useNewPostStore';
+import { useNewPostStore } from '@/space/stores/useNewPostStore';
import { CastRow } from './CastRow';
import { useHotkeys } from 'react-hotkeys-hook';
-import { useAccountStore } from '@/stores/useAccountStore';
+import { useAccountStore } from '@/space/stores/useAccountStore';
type CastToReplyType = {
hash: string;
diff --git a/src/common/components/RightSidebar/AccountsRightSidebar.tsx b/src/space/common/components/RightSidebar/AccountsRightSidebar.tsx
similarity index 95%
rename from src/common/components/RightSidebar/AccountsRightSidebar.tsx
rename to src/space/common/components/RightSidebar/AccountsRightSidebar.tsx
index ab7d4ff7..ca5c083c 100644
--- a/src/common/components/RightSidebar/AccountsRightSidebar.tsx
+++ b/src/space/common/components/RightSidebar/AccountsRightSidebar.tsx
@@ -3,10 +3,10 @@ import {
AccountObjectType,
PENDING_ACCOUNT_NAME_PLACEHOLDER,
useAccountStore,
-} from "@/stores/useAccountStore";
+} from "@/space/stores/useAccountStore";
import { ArrowDownTrayIcon, UserPlusIcon } from "@heroicons/react/24/outline";
-import EmptyStateWithAction from "@/common/components/EmptyStateWithAction";
-import { classNames } from "@/common/helpers/css";
+import EmptyStateWithAction from "@/space/common/components/EmptyStateWithAction";
+import { classNames } from "@/space/common/helpers/css";
import { isEmpty } from "lodash";
import ChannelsOverview from "./ChannelsOverview";
import { SidebarHeader } from "./SidebarHeader";
@@ -16,7 +16,7 @@ import { useRouter } from "next/router";
import {
AccountPlatformType,
AccountStatusType,
-} from "@/common/constants/accounts";
+} from "@/space/common/constants/accounts";
type AccountsRightSidebarProps = {
showChannels?: boolean;
diff --git a/src/common/components/RightSidebar/ChannelsOverview.tsx b/src/space/common/components/RightSidebar/ChannelsOverview.tsx
similarity index 94%
rename from src/common/components/RightSidebar/ChannelsOverview.tsx
rename to src/space/common/components/RightSidebar/ChannelsOverview.tsx
index ca928b76..1dca6486 100644
--- a/src/common/components/RightSidebar/ChannelsOverview.tsx
+++ b/src/space/common/components/RightSidebar/ChannelsOverview.tsx
@@ -1,12 +1,12 @@
import React from "react";
-import { ChannelType } from "@/common/constants/channels";
-import { classNames } from "@/common/helpers/css";
-import { CUSTOM_CHANNELS, useAccountStore } from "@/stores/useAccountStore";
+import { ChannelType } from "@/space/common/constants/channels";
+import { classNames } from "@/space/common/helpers/css";
+import { CUSTOM_CHANNELS, useAccountStore } from "@/space/stores/useAccountStore";
import { SidebarHeader } from "./SidebarHeader";
import * as Tooltip from "@radix-ui/react-tooltip";
import { useRouter } from "next/router";
import HotkeyTooltipWrapper from "../HotkeyTooltipWrapper";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/shared/ui/badge";
const ChannelsOverview = () => {
const router = useRouter();
diff --git a/src/common/components/RightSidebar/ChannelsRightSidebar.tsx b/src/space/common/components/RightSidebar/ChannelsRightSidebar.tsx
similarity index 100%
rename from src/common/components/RightSidebar/ChannelsRightSidebar.tsx
rename to src/space/common/components/RightSidebar/ChannelsRightSidebar.tsx
diff --git a/src/common/components/RightSidebar/EmptyRightSidebar.tsx b/src/space/common/components/RightSidebar/EmptyRightSidebar.tsx
similarity index 100%
rename from src/common/components/RightSidebar/EmptyRightSidebar.tsx
rename to src/space/common/components/RightSidebar/EmptyRightSidebar.tsx
diff --git a/src/common/components/RightSidebar/SidebarHeader.tsx b/src/space/common/components/RightSidebar/SidebarHeader.tsx
similarity index 100%
rename from src/common/components/RightSidebar/SidebarHeader.tsx
rename to src/space/common/components/RightSidebar/SidebarHeader.tsx
diff --git a/src/common/components/SelectableListWithHotkeys.tsx b/src/space/common/components/SelectableListWithHotkeys.tsx
similarity index 100%
rename from src/common/components/SelectableListWithHotkeys.tsx
rename to src/space/common/components/SelectableListWithHotkeys.tsx
diff --git a/src/common/components/SharedAccountOwnershipSetup.tsx b/src/space/common/components/SharedAccountOwnershipSetup.tsx
similarity index 96%
rename from src/common/components/SharedAccountOwnershipSetup.tsx
rename to src/space/common/components/SharedAccountOwnershipSetup.tsx
index 1654bbb6..c95cf5ab 100644
--- a/src/common/components/SharedAccountOwnershipSetup.tsx
+++ b/src/space/common/components/SharedAccountOwnershipSetup.tsx
@@ -1,7 +1,7 @@
import React, { useState } from "react";
-import BigOptionSelector from "@/common/components/BigOptionSelector";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
+import BigOptionSelector from "@/space/common/components/BigOptionSelector";
+import { Button } from "@/shared/ui/button";
+import { Input } from "@/shared/ui/input";
import { isAddress } from "viem";
import DeployHatsDelegatorContract from "./DeployHatsDelegatorContract";
import { ImgurImage } from "./PostEmbeddedContent/ImgurImage";
diff --git a/src/common/components/ShowLinkCard.tsx b/src/space/common/components/ShowLinkCard.tsx
similarity index 85%
rename from src/common/components/ShowLinkCard.tsx
rename to src/space/common/components/ShowLinkCard.tsx
index a9a9e734..5533decc 100644
--- a/src/common/components/ShowLinkCard.tsx
+++ b/src/space/common/components/ShowLinkCard.tsx
@@ -6,10 +6,10 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from "@/components/ui/card";
-import { Button } from "@/components/ui/button";
-import { Label } from "@/components/ui/label";
-import { Input } from "@/components/ui/input";
+} from "@/shared/ui/card";
+import { Button } from "@/shared/ui/button";
+import { Label } from "@/shared/ui/label";
+import { Input } from "@/shared/ui/input";
import { openWindow } from "../helpers/navigation";
type ShowLinkCardProps = {
diff --git a/src/common/components/Steps/SidebarNav.tsx b/src/space/common/components/Steps/SidebarNav.tsx
similarity index 93%
rename from src/common/components/Steps/SidebarNav.tsx
rename to src/space/common/components/Steps/SidebarNav.tsx
index 4a67800e..1639572e 100644
--- a/src/common/components/Steps/SidebarNav.tsx
+++ b/src/space/common/components/Steps/SidebarNav.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Button } from "@/components/ui/button";
-import { classNames } from "@/common/helpers/css";
+import { Button } from "@/shared/ui/button";
+import { classNames } from "@/space/common/helpers/css";
import { CheckCircleIcon } from "@heroicons/react/20/solid";
import { findIndex } from "lodash";
diff --git a/src/common/components/Steps/StepSequence.tsx b/src/space/common/components/Steps/StepSequence.tsx
similarity index 93%
rename from src/common/components/Steps/StepSequence.tsx
rename to src/space/common/components/Steps/StepSequence.tsx
index 272d179b..3fab434f 100644
--- a/src/common/components/Steps/StepSequence.tsx
+++ b/src/space/common/components/Steps/StepSequence.tsx
@@ -1,6 +1,6 @@
import React, { ReactNode } from "react";
-import { Progress } from "@/components/ui/progress";
-import { Separator } from "@/components/ui/separator";
+import { Progress } from "@/shared/ui/progress";
+import { Separator } from "@/shared/ui/separator";
import { SidebarNav } from "./SidebarNav";
import { findIndex } from "lodash";
diff --git a/src/common/components/SwitchWalletButton.tsx b/src/space/common/components/SwitchWalletButton.tsx
similarity index 89%
rename from src/common/components/SwitchWalletButton.tsx
rename to src/space/common/components/SwitchWalletButton.tsx
index 7173df70..bb547c4c 100644
--- a/src/common/components/SwitchWalletButton.tsx
+++ b/src/space/common/components/SwitchWalletButton.tsx
@@ -1,7 +1,7 @@
import React, { useEffect } from "react";
-import { Button } from "@/components/ui/button";
-import { Label } from "@/components/ui/label";
+import { Button } from "@/shared/ui/button";
+import { Label } from "@/shared/ui/label";
import { useAccountModal, useConnectModal } from "@rainbow-me/rainbowkit";
import { useAccount } from "wagmi";
diff --git a/src/common/components/ThemeToggle.tsx b/src/space/common/components/ThemeToggle.tsx
similarity index 93%
rename from src/common/components/ThemeToggle.tsx
rename to src/space/common/components/ThemeToggle.tsx
index b7e8497c..d175f3bf 100644
--- a/src/common/components/ThemeToggle.tsx
+++ b/src/space/common/components/ThemeToggle.tsx
@@ -2,13 +2,13 @@ import * as React from "react"
import { MoonIcon, SunIcon } from "@radix-ui/react-icons"
import { useTheme } from "next-themes"
-import { Button } from "@/components/ui/button"
+import { Button } from "@/shared/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu"
+} from "@/shared/ui/dropdown-menu"
export function ThemeToggle() {
const { setTheme } = useTheme()
diff --git a/src/common/components/Toggle.tsx b/src/space/common/components/Toggle.tsx
similarity index 100%
rename from src/common/components/Toggle.tsx
rename to src/space/common/components/Toggle.tsx
diff --git a/src/common/components/TransferAccountToHatsDelegator.tsx b/src/space/common/components/TransferAccountToHatsDelegator.tsx
similarity index 97%
rename from src/common/components/TransferAccountToHatsDelegator.tsx
rename to src/space/common/components/TransferAccountToHatsDelegator.tsx
index b4024207..cefedf6d 100644
--- a/src/common/components/TransferAccountToHatsDelegator.tsx
+++ b/src/space/common/components/TransferAccountToHatsDelegator.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/shared/ui/button";
import { useAccount, useReadContract, useSignTypedData } from "wagmi";
import {
ID_REGISTRY_EIP_712_DOMAIN,
@@ -9,22 +9,22 @@ import {
import { Cog6ToothIcon } from "@heroicons/react/20/solid";
import { ID_REGISTRY_ADDRESS } from "@farcaster/hub-web";
import { writeContract } from "@wagmi/core";
-import { config, publicClient } from "@/common/helpers/rainbowkit";
+import { config, publicClient } from "@/space/common/helpers/rainbowkit";
import { encodePacked, hashTypedData, keccak256, toHex } from "viem";
import { useWaitForTransactionReceipt } from "wagmi";
-import { getDeadline } from "@/common/helpers/farcaster";
-import { HatsFarcasterDelegatorAbi } from "@/common/constants/contracts/HatsFarcasterDelegator";
+import { getDeadline } from "@/space/common/helpers/farcaster";
+import { HatsFarcasterDelegatorAbi } from "@/space/common/constants/contracts/HatsFarcasterDelegator";
import { openWindow } from "../helpers/navigation";
import {
SIGNED_KEY_REQUEST_TYPEHASH,
isValidSignature,
isValidSigner,
-} from "@/lib/hats";
+} from "@/space/lib/hats";
import { waitForTransactionReceipt } from "@wagmi/core";
import { useAccountModal, useConnectModal } from "@rainbow-me/rainbowkit";
import SwitchWalletButton from "./SwitchWalletButton";
import { ID_REGISTRY } from "../constants/contracts/id-registry";
-import { Label } from "@/components/ui/label";
+import { Label } from "@/shared/ui/label";
import { User } from "@neynar/nodejs-sdk/build/neynar-api/v2";
const readNonces = async (account: `0x${string}`) => {
diff --git a/src/common/components/UserAuthForm.tsx b/src/space/common/components/UserAuthForm.tsx
similarity index 97%
rename from src/common/components/UserAuthForm.tsx
rename to src/space/common/components/UserAuthForm.tsx
index 26151fb5..726578c2 100644
--- a/src/common/components/UserAuthForm.tsx
+++ b/src/space/common/components/UserAuthForm.tsx
@@ -1,9 +1,9 @@
import * as React from "react";
-import { cn } from "@/lib/utils";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
-import { Label } from "@/components/ui/label";
+import { cn } from "@/space/lib/utils";
+import { Button } from "@/shared/ui/button";
+import { Input } from "@/shared/ui/input";
+import { Label } from "@/shared/ui/label";
import { Loading } from "./Loading";
import { SignInButton, useProfile } from "@farcaster/auth-kit";
import { useEffect, useState } from "react";
@@ -19,12 +19,12 @@ import {
FormField,
FormItem,
FormMessage,
-} from "@/components/ui/form";
+} from "@/shared/ui/form";
import {
hydrate,
hydrateChannels,
useAccountStore,
-} from "@/stores/useAccountStore";
+} from "@/space/stores/useAccountStore";
import { NeynarAPIClient } from "@neynar/nodejs-sdk";
import { AccountPlatformType, AccountStatusType } from "../constants/accounts";
import { v4 as uuidv4 } from "uuid";
diff --git a/src/common/components/WalletLogin.tsx b/src/space/common/components/WalletLogin.tsx
similarity index 100%
rename from src/common/components/WalletLogin.tsx
rename to src/space/common/components/WalletLogin.tsx
diff --git a/src/common/components/WarpcastLogin.tsx b/src/space/common/components/WarpcastLogin.tsx
similarity index 98%
rename from src/common/components/WarpcastLogin.tsx
rename to src/space/common/components/WarpcastLogin.tsx
index ffb0f1b1..b58c2604 100644
--- a/src/common/components/WarpcastLogin.tsx
+++ b/src/space/common/components/WarpcastLogin.tsx
@@ -5,8 +5,8 @@ import {
createSignerRequest,
generateWarpcastSigner,
getWarpcastSignerStatus,
-} from "@/common/helpers/warpcastLogin";
-import { hydrate, useAccountStore } from "@/stores/useAccountStore";
+} from "@/space/common/helpers/warpcastLogin";
+import { hydrate, useAccountStore } from "@/space/stores/useAccountStore";
import { isEmpty } from "lodash";
import { AccountPlatformType, AccountStatusType } from "../constants/accounts";
import {
diff --git a/src/common/constants/accounts.ts b/src/space/common/constants/accounts.ts
similarity index 100%
rename from src/common/constants/accounts.ts
rename to src/space/common/constants/accounts.ts
diff --git a/src/common/constants/channels.ts b/src/space/common/constants/channels.ts
similarity index 100%
rename from src/common/constants/channels.ts
rename to src/space/common/constants/channels.ts
diff --git a/src/common/constants/commands.ts b/src/space/common/constants/commands.ts
similarity index 100%
rename from src/common/constants/commands.ts
rename to src/space/common/constants/commands.ts
diff --git a/src/common/constants/contracts/HatsFarcasterDelegator.ts b/src/space/common/constants/contracts/HatsFarcasterDelegator.ts
similarity index 100%
rename from src/common/constants/contracts/HatsFarcasterDelegator.ts
rename to src/space/common/constants/contracts/HatsFarcasterDelegator.ts
diff --git a/src/common/constants/contracts/HatsModuleFactory.ts b/src/space/common/constants/contracts/HatsModuleFactory.ts
similarity index 100%
rename from src/common/constants/contracts/HatsModuleFactory.ts
rename to src/space/common/constants/contracts/HatsModuleFactory.ts
diff --git a/src/common/constants/contracts/id-registry.ts b/src/space/common/constants/contracts/id-registry.ts
similarity index 100%
rename from src/common/constants/contracts/id-registry.ts
rename to src/space/common/constants/contracts/id-registry.ts
diff --git a/src/common/constants/contracts/key-gateway.ts b/src/space/common/constants/contracts/key-gateway.ts
similarity index 100%
rename from src/common/constants/contracts/key-gateway.ts
rename to src/space/common/constants/contracts/key-gateway.ts
diff --git a/src/common/constants/contracts/key-registry.ts b/src/space/common/constants/contracts/key-registry.ts
similarity index 100%
rename from src/common/constants/contracts/key-registry.ts
rename to src/space/common/constants/contracts/key-registry.ts
diff --git a/src/common/constants/farcaster.ts b/src/space/common/constants/farcaster.ts
similarity index 100%
rename from src/common/constants/farcaster.ts
rename to src/space/common/constants/farcaster.ts
diff --git a/src/common/constants/navigation.ts b/src/space/common/constants/navigation.ts
similarity index 100%
rename from src/common/constants/navigation.ts
rename to src/space/common/constants/navigation.ts
diff --git a/src/common/constants/tauri.ts b/src/space/common/constants/tauri.ts
similarity index 84%
rename from src/common/constants/tauri.ts
rename to src/space/common/constants/tauri.ts
index 70a3ce12..dcd77383 100644
--- a/src/common/constants/tauri.ts
+++ b/src/space/common/constants/tauri.ts
@@ -1,4 +1,4 @@
-import packageJson from '../../../package.json';
+import packageJson from '../../../../package.json';
// import { getTauriVersion } from '@tauri-apps/api/app';
export const SAVE_DELAY = 500;
diff --git a/src/common/helpers/css.ts b/src/space/common/helpers/css.ts
similarity index 100%
rename from src/common/helpers/css.ts
rename to src/space/common/helpers/css.ts
diff --git a/src/common/helpers/date.ts b/src/space/common/helpers/date.ts
similarity index 100%
rename from src/common/helpers/date.ts
rename to src/space/common/helpers/date.ts
diff --git a/src/common/helpers/farcaster.ts b/src/space/common/helpers/farcaster.ts
similarity index 100%
rename from src/common/helpers/farcaster.ts
rename to src/space/common/helpers/farcaster.ts
diff --git a/src/common/helpers/graphql.ts b/src/space/common/helpers/graphql.ts
similarity index 100%
rename from src/common/helpers/graphql.ts
rename to src/space/common/helpers/graphql.ts
diff --git a/src/common/helpers/hooks.ts b/src/space/common/helpers/hooks.ts
similarity index 100%
rename from src/common/helpers/hooks.ts
rename to src/space/common/helpers/hooks.ts
diff --git a/src/common/helpers/linkify.ts b/src/space/common/helpers/linkify.ts
similarity index 100%
rename from src/common/helpers/linkify.ts
rename to src/space/common/helpers/linkify.ts
diff --git a/src/common/helpers/math.ts b/src/space/common/helpers/math.ts
similarity index 100%
rename from src/common/helpers/math.ts
rename to src/space/common/helpers/math.ts
diff --git a/src/common/helpers/navigation.ts b/src/space/common/helpers/navigation.ts
similarity index 85%
rename from src/common/helpers/navigation.ts
rename to src/space/common/helpers/navigation.ts
index 519cde2d..787854cb 100644
--- a/src/common/helpers/navigation.ts
+++ b/src/space/common/helpers/navigation.ts
@@ -1,4 +1,4 @@
-import { RUNNING_IN_TAURI } from "@/common/constants/tauri"
+import { RUNNING_IN_TAURI } from "@/space/common/constants/tauri"
import { open } from '@tauri-apps/api/shell';
export const openWindow = (url: string) => {
diff --git a/src/common/helpers/neynar.ts b/src/space/common/helpers/neynar.ts
similarity index 100%
rename from src/common/helpers/neynar.ts
rename to src/space/common/helpers/neynar.ts
diff --git a/src/common/helpers/paragraph.ts b/src/space/common/helpers/paragraph.ts
similarity index 100%
rename from src/common/helpers/paragraph.ts
rename to src/space/common/helpers/paragraph.ts
diff --git a/src/common/helpers/rainbowkit.tsx b/src/space/common/helpers/rainbowkit.tsx
similarity index 100%
rename from src/common/helpers/rainbowkit.tsx
rename to src/space/common/helpers/rainbowkit.tsx
diff --git a/src/common/helpers/searchcaster.ts b/src/space/common/helpers/searchcaster.ts
similarity index 100%
rename from src/common/helpers/searchcaster.ts
rename to src/space/common/helpers/searchcaster.ts
diff --git a/src/common/helpers/supabase.ts b/src/space/common/helpers/supabase.ts
similarity index 100%
rename from src/common/helpers/supabase.ts
rename to src/space/common/helpers/supabase.ts
diff --git a/src/common/helpers/supabase/api.ts b/src/space/common/helpers/supabase/api.ts
similarity index 100%
rename from src/common/helpers/supabase/api.ts
rename to src/space/common/helpers/supabase/api.ts
diff --git a/src/common/helpers/supabase/component.ts b/src/space/common/helpers/supabase/component.ts
similarity index 100%
rename from src/common/helpers/supabase/component.ts
rename to src/space/common/helpers/supabase/component.ts
diff --git a/src/common/helpers/supabase/server-props.ts b/src/space/common/helpers/supabase/server-props.ts
similarity index 100%
rename from src/common/helpers/supabase/server-props.ts
rename to src/space/common/helpers/supabase/server-props.ts
diff --git a/src/common/helpers/supabase/static-props.ts b/src/space/common/helpers/supabase/static-props.ts
similarity index 100%
rename from src/common/helpers/supabase/static-props.ts
rename to src/space/common/helpers/supabase/static-props.ts
diff --git a/src/common/helpers/tauri/contextMenu.ts b/src/space/common/helpers/tauri/contextMenu.ts
similarity index 100%
rename from src/common/helpers/tauri/contextMenu.ts
rename to src/space/common/helpers/tauri/contextMenu.ts
diff --git a/src/common/helpers/tauri/storage.ts b/src/space/common/helpers/tauri/storage.ts
similarity index 100%
rename from src/common/helpers/tauri/storage.ts
rename to src/space/common/helpers/tauri/storage.ts
diff --git a/src/common/helpers/text.ts b/src/space/common/helpers/text.ts
similarity index 100%
rename from src/common/helpers/text.ts
rename to src/space/common/helpers/text.ts
diff --git a/src/common/helpers/toast.ts b/src/space/common/helpers/toast.ts
similarity index 100%
rename from src/common/helpers/toast.ts
rename to src/space/common/helpers/toast.ts
diff --git a/src/common/helpers/warpcastLogin.ts b/src/space/common/helpers/warpcastLogin.ts
similarity index 100%
rename from src/common/helpers/warpcastLogin.ts
rename to src/space/common/helpers/warpcastLogin.ts
diff --git a/src/common/hooks/ThemeProvider.tsx b/src/space/common/hooks/ThemeProvider.tsx
similarity index 100%
rename from src/common/hooks/ThemeProvider.tsx
rename to src/space/common/hooks/ThemeProvider.tsx
diff --git a/src/common/hooks/usePollingUpdate.ts b/src/space/common/hooks/usePollingUpdate.ts
similarity index 100%
rename from src/common/hooks/usePollingUpdate.ts
rename to src/space/common/hooks/usePollingUpdate.ts
diff --git a/src/common/hooks/useTauriStore.ts b/src/space/common/hooks/useTauriStore.ts
similarity index 100%
rename from src/common/hooks/useTauriStore.ts
rename to src/space/common/hooks/useTauriStore.ts
diff --git a/src/common/types/declaration.d.ts b/src/space/common/types/declaration.d.ts
similarity index 100%
rename from src/common/types/declaration.d.ts
rename to src/space/common/types/declaration.d.ts
diff --git a/src/common/types/global.d.ts b/src/space/common/types/global.d.ts
similarity index 100%
rename from src/common/types/global.d.ts
rename to src/space/common/types/global.d.ts
diff --git a/src/home/index.tsx b/src/space/home/index.tsx
similarity index 87%
rename from src/home/index.tsx
rename to src/space/home/index.tsx
index e38750ea..e2d6fc0d 100644
--- a/src/home/index.tsx
+++ b/src/space/home/index.tsx
@@ -1,7 +1,7 @@
import React from "react";
import { Fragment, useState } from "react";
import { Dialog, Transition } from "@headlessui/react";
-import { createClient } from "@/common/helpers/supabase/component";
+import { createClient } from "@/space/common/helpers/supabase/component";
import {
Cog6ToothIcon,
PlusCircleIcon,
@@ -11,11 +11,11 @@ import {
Bars3Icon,
UserPlusIcon,
} from "@heroicons/react/20/solid";
-import { classNames } from "@/common/helpers/css";
-import { RIGHT_SIDEBAR_ENUM } from "@/common/constants/navigation";
-import AccountsRightSidebar from "@/common/components/RightSidebar/AccountsRightSidebar";
-import ChannelsRightSidebar from "@/common/components/RightSidebar/ChannelsRightSidebar";
-import { CUSTOM_CHANNELS, useAccountStore } from "@/stores/useAccountStore";
+import { classNames } from "@/space/common/helpers/css";
+import { RIGHT_SIDEBAR_ENUM } from "@/space/common/constants/navigation";
+import AccountsRightSidebar from "@/space/common/components/RightSidebar/AccountsRightSidebar";
+import ChannelsRightSidebar from "@/space/common/components/RightSidebar/ChannelsRightSidebar";
+import { CUSTOM_CHANNELS, useAccountStore } from "@/space/stores/useAccountStore";
import {
BellIcon,
MagnifyingGlassIcon,
@@ -23,13 +23,13 @@ import {
RectangleGroupIcon,
} from "@heroicons/react/24/solid";
import { useRouter } from "next/router";
-import { ThemeToggle } from "@/common/components/ThemeToggle";
+import { ThemeToggle } from "@/space/common/components/ThemeToggle";
import herocastImg from "@public/images/logo.png";
import {
TooltipProvider,
-} from "@/components/ui/tooltip";
-import HotkeyTooltipWrapper from "@/common/components/HotkeyTooltipWrapper";
-import { Toaster } from "@/components/ui/sonner";
+} from "@/shared/ui/tooltip";
+import HotkeyTooltipWrapper from "@/space/common/components/HotkeyTooltipWrapper";
+import { Toaster } from "@/shared/ui/sonner";
type NavigationItemType = {
name: string;
@@ -339,14 +339,14 @@ const Home = ({ children }: { children: React.ReactNode }) => {
*/}
-
-
{children}
-
-
-
-
-
-
+
{/*{renderRightSidebar()}*/}
diff --git a/src/lib/analytics.ts b/src/space/lib/analytics.ts
similarity index 100%
rename from src/lib/analytics.ts
rename to src/space/lib/analytics.ts
diff --git a/src/lib/hats.ts b/src/space/lib/hats.ts
similarity index 99%
rename from src/lib/hats.ts
rename to src/space/lib/hats.ts
index 22e0d12e..db7339cd 100644
--- a/src/lib/hats.ts
+++ b/src/space/lib/hats.ts
@@ -1,5 +1,5 @@
-import { HatsFarcasterDelegatorAbi } from "@/common/constants/contracts/HatsFarcasterDelegator";
-import { config } from "@/common/helpers/rainbowkit";
+import { HatsFarcasterDelegatorAbi } from "@/space/common/constants/contracts/HatsFarcasterDelegator";
+import { config } from "@/space/common/helpers/rainbowkit";
import { Registry } from "@hatsprotocol/modules-sdk";
import { readContract } from "@wagmi/core";
diff --git a/src/lib/utils.ts b/src/space/lib/utils.ts
similarity index 100%
rename from src/lib/utils.ts
rename to src/space/lib/utils.ts
diff --git a/src/stores/useAccountStore.ts b/src/space/stores/useAccountStore.ts
similarity index 97%
rename from src/stores/useAccountStore.ts
rename to src/space/stores/useAccountStore.ts
index 8ca91e65..cde175f1 100644
--- a/src/stores/useAccountStore.ts
+++ b/src/space/stores/useAccountStore.ts
@@ -1,8 +1,8 @@
-import { AccountPlatformType, AccountStatusType } from "@/common/constants/accounts";
-import { ChannelType } from "@/common/constants/channels";
-import { CommandType } from "@/common/constants/commands";
-import { randomNumberBetween } from "@/common/helpers/math";
-import { getAccountsForUser } from "@/common/helpers/supabase";
+import { AccountPlatformType, AccountStatusType } from "@/space/common/constants/accounts";
+import { ChannelType } from "@/space/common/constants/channels";
+import { CommandType } from "@/space/common/constants/commands";
+import { randomNumberBetween } from "@/space/common/helpers/math";
+import { getAccountsForUser } from "@/space/common/helpers/supabase";
import { Draft, create as mutativeCreate } from 'mutative';
import { create } from "zustand";
import { createJSONStorage, persist } from "zustand/middleware";
@@ -10,9 +10,9 @@ import { isEmpty, findIndex, sortBy, cloneDeep, includes, uniqBy } from "lodash"
import { UUID } from "crypto";
import { NeynarAPIClient } from "@neynar/nodejs-sdk";
import { User } from "@neynar/nodejs-sdk/build/neynar-api/v2";
-import { createClient } from "@/common/helpers/supabase/component";
+import { createClient } from "@/space/common/helpers/supabase/component";
import { v4 as uuidv4 } from 'uuid';
-import { getUsernameForFid } from "@/common/helpers/farcaster";
+import { getUsernameForFid } from "@/space/common/helpers/farcaster";
const APP_FID = Number(process.env.NEXT_PUBLIC_APP_FID!);
const TIMEDELTA_REHYDRATE = 1000 * 60 * 60 * 12; // 12 hrs;
diff --git a/src/stores/useDataStore.ts b/src/space/stores/useDataStore.ts
similarity index 100%
rename from src/stores/useDataStore.ts
rename to src/space/stores/useDataStore.ts
diff --git a/src/stores/useNavigationStore.ts b/src/space/stores/useNavigationStore.ts
similarity index 100%
rename from src/stores/useNavigationStore.ts
rename to src/space/stores/useNavigationStore.ts
diff --git a/src/stores/useNewPostStore.ts b/src/space/stores/useNewPostStore.ts
similarity index 95%
rename from src/stores/useNewPostStore.ts
rename to src/space/stores/useNewPostStore.ts
index 7a82b0c6..3ad88711 100644
--- a/src/stores/useNewPostStore.ts
+++ b/src/space/stores/useNewPostStore.ts
@@ -1,19 +1,19 @@
import { create } from "zustand";
import { devtools } from "zustand/middleware";
import { create as mutativeCreate, Draft } from 'mutative';
-import { CommandType } from "@/common/constants/commands";
+import { CommandType } from "@/space/common/constants/commands";
import { PlusCircleIcon, TagIcon, TrashIcon } from "@heroicons/react/24/outline";
import { AccountObjectType } from "./useAccountStore";
-import { DraftStatus, DraftType, ParentCastIdType } from "@/common/constants/farcaster";
+import { DraftStatus, DraftType, ParentCastIdType } from "@/space/common/constants/farcaster";
import {
getMentionFidsByUsernames,
formatPlaintextToHubCastMessage,
} from '@mod-protocol/farcaster';
-import { submitCast } from "@/common/helpers/farcaster";
+import { submitCast } from "@/space/common/helpers/farcaster";
import { toHex } from "viem";
import { CastId, Embed } from "@farcaster/hub-web";
-import { AccountPlatformType } from "@/common/constants/accounts";
-import { toastInfoReadOnlyMode } from "@/common/helpers/toast";
+import { AccountPlatformType } from "@/space/common/constants/accounts";
+import { toastInfoReadOnlyMode } from "@/space/common/helpers/toast";
const getMentionFids = getMentionFidsByUsernames(process.env.NEXT_PUBLIC_MOD_PROTOCOL_API_URL!);