Skip to content

Commit c26b803

Browse files
committed
refactor: move to feature based folders
1 parent 03079b3 commit c26b803

File tree

84 files changed

+128
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+128
-133
lines changed

src/renderer/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { AuthScreen } from "@components/AuthScreen";
21
import { MainLayout } from "@components/MainLayout";
2+
import { AuthScreen } from "@features/auth/components/AuthScreen";
3+
import { useAuthStore } from "@features/auth/stores/authStore";
34
import { Flex, Spinner, Text } from "@radix-ui/themes";
4-
import { useAuthStore } from "@stores/authStore";
55
import { useEffect, useState } from "react";
66

77
function App() {

src/renderer/components/MainLayout.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { CommandMenu } from "@components/command";
21
import { MainSidebar } from "@components/MainSidebar";
3-
import { SettingsView } from "@components/SettingsView";
42
import { StatusBar } from "@components/StatusBar";
53
import { TabBar } from "@components/TabBar";
6-
import { TaskDetail } from "@components/tasks/TaskDetail";
7-
import { TaskList } from "@components/tasks/TaskList";
84
import { UpdatePrompt } from "@components/UpdatePrompt";
9-
import { RecordingsView } from "@features/recordings";
5+
import { CommandMenu } from "@features/command/components/CommandMenu";
6+
import { RecordingsView } from "@features/recordings/components/RecordingsView";
7+
import { SettingsView } from "@features/settings/components/SettingsView";
8+
import { TaskDetail } from "@features/tasks/components/TaskDetail";
9+
import { TaskList } from "@features/tasks/components/TaskList";
1010
import { useIntegrations } from "@hooks/useIntegrations";
1111
import { Box, Flex } from "@radix-ui/themes";
1212
import type { Task } from "@shared/types";

src/renderer/components/command/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/renderer/components/ui/sidebar/SidebarContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { SidebarTreeItem } from "@components/ui/sidebar/SidebarTreeItem";
22
import { useSidebarMenuData } from "@components/ui/sidebar/UseSidebarMenuData";
33
import { buildTreeLines, getAllNodeIds } from "@components/ui/sidebar/Utils";
4+
import { useAuthStore } from "@features/auth/stores/authStore";
45
import { useAudioRecorder } from "@features/recordings/hooks/useAudioRecorder";
56
import { useRecordings } from "@features/recordings/hooks/useRecordings";
67
import { ArrowsInSimpleIcon, ArrowsOutSimpleIcon } from "@phosphor-icons/react";
78
import { Box, Flex, IconButton, Tooltip } from "@radix-ui/themes";
89
import type { Task } from "@shared/types";
9-
import { useAuthStore } from "@stores/authStore";
1010
import { useLayoutStore } from "@stores/layoutStore";
1111
import { useSidebarStore } from "@stores/sidebarStore";
1212
import { useTabStore } from "@stores/tabStore";

src/renderer/components/ui/sidebar/UseSidebarMenuData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { TreeNode } from "@components/ui/sidebar/Types";
22
import { useRecordingStore } from "@features/recordings/stores/recordingStore";
3-
import { useTasks } from "@hooks/useTasks";
3+
import { useTasks } from "@features/tasks/hooks/useTasks";
44
import {
55
CheckCircleIcon,
66
CircleIcon,

src/renderer/components/AuthScreen.tsx renamed to src/renderer/features/auth/components/AuthScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AsciiArt } from "@components/AsciiArt";
2+
import { useAuthStore } from "@features/auth/stores/authStore";
23
import {
34
Box,
45
Button,
@@ -10,7 +11,6 @@ import {
1011
Text,
1112
TextField,
1213
} from "@radix-ui/themes";
13-
import { useAuthStore } from "@stores/authStore";
1414
import { useMutation } from "@tanstack/react-query";
1515
import type React from "react";
1616
import { useId, useState } from "react";
File renamed without changes.
File renamed without changes.

src/renderer/components/command/CommandKeyHints.tsx renamed to src/renderer/features/command/components/CommandKeyHints.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { KeyHint } from "@components/command/KeyHint";
1+
import { KeyHint } from "@features/command/components/KeyHint";
22
import { Code, Flex } from "@radix-ui/themes";
33

44
export function CommandKeyHints() {

src/renderer/components/command/CommandMenu.tsx renamed to src/renderer/features/command/components/CommandMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Command } from "@components/command/Command";
2-
import { CommandKeyHints } from "@components/command/CommandKeyHints";
3-
import { useTasks } from "@hooks/useTasks";
1+
import { Command } from "@features/command/components/Command";
2+
import { CommandKeyHints } from "@features/command/components/CommandKeyHints";
3+
import { useTasks } from "@features/tasks/hooks/useTasks";
44
import { MicrophoneIcon } from "@phosphor-icons/react";
55
import { FileTextIcon, ListBulletIcon } from "@radix-ui/react-icons";
66
import { Flex, Text } from "@radix-ui/themes";

0 commit comments

Comments
 (0)