Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit b76ae3a

Browse files
committed
Refactor modal and notification components
- Deleted old modal components and styles, and created new modal components under the ui directory. - Updated modal stories and tests to reflect the new structure. - Refactored notification components, fixing import paths and correcting component names. - Introduced context menu components with associated styles and types. - Added dropdown components with stories and tests for better UI interaction. - Updated app slice and selectors for better state management. - Adjusted TypeScript configuration and Vite aliasing for improved module resolution.
1 parent 28aa6d3 commit b76ae3a

Some content is hidden

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

42 files changed

+132
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ dist-ssr
2424
*.sw?
2525

2626
*storybook.log
27+
coverage

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "boardify",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -10,6 +10,7 @@
1010
"tauri": "tauri",
1111
"prepare": "husky",
1212
"test": "vitest",
13+
"coverage": "vitest run --coverage",
1314
"test:watch": "vitest --watch"
1415
},
1516
"husky": {

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { AppLayout } from "./AppLayout"
1212
import Editor from "./Routes/Editor"
1313
import Home from "./Routes/Home"
14-
import { ContextMenuProvider } from "./features/app/context-menu"
14+
import { ContextMenuProvider } from "./ui/context-menu"
1515

1616
function App() {
1717
return (

src/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NotificationOverlay } from "./features/notifications"
33
import { isSettingsModalOpen, SettingsModal, toggleSettingsModal } from "./features/settings"
44
import CSSSnippets from "./features/snippets/Snippets"
55
import { Titlebar, ToolbarProvider } from "./features/titlebar"
6-
import { ModalContainer } from "./features/modal"
6+
import { ModalContainer } from "./ui/modal"
77
import { AppTheme } from "./features/theme"
88
import { PluginManager } from "./features/plugins"
99
import { useAppDispatch, useAppSelector } from "./store"

src/Routes/Editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import DotGrid from "@/features/graph/grid/DotGrid";
44
import NodeCanvas from "@/features/graph/renderer/components/NodesRenderer";
55
import { AppDropzone } from "@/features/importing/filedrop";
66
import SidebarButton, { Sidebar } from "@/features/sidebar";
7-
import { isSidebarOpen } from "@/features/app/selectors";
7+
import { isSidebarOpen } from "@/store/app/appSelectors";
88
import { useSelector } from "react-redux";
99
import { useAppDispatch, useAppSelector } from "@/store";
1010
import { addLayer, selectAllLayers, selectLayer, selectSelectedLayerId } from "@/features/graph";

src/features/app/context-menu/contextmenu.styles.css

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

src/features/importing/filedrop/components/AppDropzone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FileDropModal from "./FileDropModal"
77
import { readFile } from "@tauri-apps/plugin-fs";
88
import { basename } from "@tauri-apps/api/path";
99
import { useAppDispatch } from "@/store"
10-
import { ModalContainer } from "@/features/modal"
10+
import { ModalContainer } from "@/ui/modal"
1111

1212
export default function DragDropHandler(): JSX.Element {
1313
const [draggingFiles, setDraggingFiles] = useState(false)

src/features/importing/filedrop/components/FileDropModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Icon } from "@iconify/react"
22
import "./fildedrop.styles.css"
3-
import { Modal } from "@/features/modal";
3+
import { Modal } from "@/ui/modal";
44

55
export default function FileDropModal() {
66
return (

src/features/keybinds/components/KeybindControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
markAllNodesSelected,
88
updateNode,
99
} from "@/features/graph/store/graphSlice"
10-
import { toggleSidebar } from "@/features/app/appSlice"
10+
import { toggleSidebar } from "@/store/app/appSlice"
1111
import { selectKeybinds } from "../store/keybindSelectors"
1212
import { KeyAction, Keybind } from "../types"
1313
import { selectSelectedNodes } from "@/features/graph"

0 commit comments

Comments
 (0)