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

Commit bab46dc

Browse files
committed
updated SearchModal and BrowseFilesModal
1 parent cbbd54b commit bab46dc

17 files changed

Lines changed: 1742 additions & 996 deletions

article.txt

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

bun.lock

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

electron-builder.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"files": ["dist-electron", "dist-react"],
44
"icon": "./icon.png",
55
"extraResources": ["dist-electron/preload.cjs"],
6-
"mac": {
7-
"target": "dmg"
6+
"mac": {
7+
"target": "dmg"
88
},
99
"win": {
1010
"target": ["portable", "msi"]

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>CloudNotes</title>
88
<script src="https://unpkg.com/react-scan/dist/auto.global.js"></script>

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
"@radix-ui/react-tabs": "^1.1.11",
3939
"@radix-ui/react-toggle": "^1.1.8",
4040
"@radix-ui/react-tooltip": "^1.2.6",
41-
"@tailwindcss/vite": "^4.1.5",
41+
"@tailwindcss/vite": "^4.1.6",
4242
"class-variance-authority": "^0.7.1",
4343
"clsx": "^2.1.1",
44-
"framer-motion": "^12.10.1",
44+
"framer-motion": "^12.11.0",
4545
"i18next": "^24.2.3",
4646
"i18next-http-backend": "^3.0.2",
4747
"input-otp": "^1.4.2",
@@ -51,35 +51,35 @@
5151
"pdfjs-dist": "^5.2.133",
5252
"react": "^19.1.0",
5353
"react-dom": "^19.1.0",
54-
"react-hook-form": "^7.56.2",
54+
"react-hook-form": "^7.56.3",
5555
"react-i18next": "^15.5.1",
5656
"react-pdf": "^9.2.1",
57-
"react-router-dom": "^7.5.3",
57+
"react-router-dom": "^7.6.0",
5858
"react-scan": "^0.3.3",
5959
"sonner": "^2.0.3",
60-
"tailwind-merge": "^3.2.0",
60+
"tailwind-merge": "^3.3.0",
6161
"tailwindcss-animate": "^1.0.7",
6262
"tw-animate-css": "^1.2.9",
6363
"zod": "^3.24.4"
6464
},
6565
"devDependencies": {
6666
"@eslint/js": "^9.26.0",
6767
"@faker-js/faker": "^9.7.0",
68-
"@types/node": "^22.15.14",
69-
"@types/react": "^19.1.3",
70-
"@types/react-dom": "^19.1.3",
68+
"@types/node": "^22.15.17",
69+
"@types/react": "^19.1.4",
70+
"@types/react-dom": "^19.1.5",
7171
"@vitejs/plugin-react": "^4.4.1",
7272
"cross-env": "^7.0.3",
73-
"electron": "^34.5.4",
73+
"electron": "^34.5.5",
7474
"electron-builder": "^25.1.8",
7575
"eslint": "^9.26.0",
7676
"eslint-plugin-react-hooks": "^5.2.0",
7777
"eslint-plugin-react-refresh": "^0.4.20",
7878
"globals": "^15.15.0",
7979
"npm-run-all": "^4.1.5",
80-
"tailwindcss": "^4.1.5",
80+
"tailwindcss": "^4.1.6",
8181
"typescript": "~5.7.3",
82-
"typescript-eslint": "^8.32.0",
82+
"typescript-eslint": "^8.32.1",
8383
"vite": "^6.3.5"
8484
}
8585
}

src/frontend/components/layout/LeftSidebar.tsx

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
import type React from 'react';
2-
import { useState, useEffect } from 'react';
2+
import { useState } from 'react';
33
import {
44
HomeIcon,
55
BookmarkIcon,
66
MoreHorizontalIcon,
77
SettingsIcon,
8-
BugIcon,
98
UserIcon,
109
BellIcon,
11-
FileTextIcon,
12-
LoaderIcon
10+
FileTextIcon
1311
} from 'lucide-react';
1412
import { Button } from "../ui/button";
1513
import { cn } from "@/lib/utils";
1614
import { AppLink } from "../ui/app-link";
1715
import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar";
1816
import SettingsModal from '../modals/SettingsModal';
1917
import SessionExpiredModal from '../modals/SessionExpiredModal';
20-
import { toggleDevTools } from '@/lib/utils';
21-
import { triggerLoadingScreen } from '@/App';
2218

2319
interface NavItemProps {
2420
icon: React.ReactNode;
@@ -66,27 +62,15 @@ type UserStatus = 'online' | 'away' | 'busy' | 'offline';
6662
const LeftSidebar: React.FC = () => {
6763
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
6864
const [isSessionExpiredOpen, setIsSessionExpiredOpen] = useState(false);
69-
const [isDev, setIsDev] = useState(false);
7065
const [userStatus, _setUserStatus] = useState<UserStatus>('online');
7166

72-
// Check if we're in development mode
73-
useEffect(() => {
74-
// Check if we're in development mode
75-
setIsDev(process.env.NODE_ENV === 'development');
76-
}, []);
77-
7867
// Status color mapping
7968
const statusColors = {
8069
online: 'bg-green-500',
8170
away: 'bg-yellow-500',
8271
busy: 'bg-red-500',
8372
offline: 'bg-gray-400'
8473
};
85-
86-
// Handler for the "Show Loading Screen" button
87-
const handleShowLoadingScreen = () => {
88-
triggerLoadingScreen();
89-
};
9074

9175
return (
9276
<>
@@ -98,25 +82,6 @@ const LeftSidebar: React.FC = () => {
9882
<NavItem icon={<BookmarkIcon size={32} />} label="SAVED" to="/saved" />
9983
<NavItem icon={<BellIcon size={32} />} label="NOTICE" to="/notifications" />
10084
<NavItem icon={<MoreHorizontalIcon size={32} />} label="MORE" to="/more" />
101-
102-
{/* Loading screen trigger button */}
103-
<NavItem
104-
icon={<LoaderIcon size={32} className="text-blue-500" />}
105-
label="SPLASH"
106-
to="#"
107-
onClick={handleShowLoadingScreen}
108-
title="Show loading splash screen"
109-
/>
110-
111-
{/* Debug tools - only shown in development mode */}
112-
{isDev && (
113-
<NavItem
114-
icon={<BugIcon size={28} className="text-yellow-600" />}
115-
label="DEBUG"
116-
to="#"
117-
onClick={() => toggleDevTools()}
118-
/>
119-
)}
12085
</div>
12186

12287
{/* Bottom Items - Settings and Profile */}

0 commit comments

Comments
 (0)