Skip to content

Commit 15134ea

Browse files
committed
ready to be tested boss
1 parent 0936ab3 commit 15134ea

5 files changed

Lines changed: 90 additions & 40 deletions

File tree

src/frontend/App.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,8 @@ export function App() {
7575
});
7676

7777

78-
// Theme state
79-
const [theme, setTheme] = useState<"light" | "dark">(() => {
80-
if (typeof window !== "undefined") {
81-
const saved = localStorage.getItem("theme");
82-
if (saved === "dark" || saved === "light") return saved;
83-
}
84-
return "light";
85-
});
78+
// Theme state — forced to light mode (dark mode disabled)
79+
const [theme, setTheme] = useState<"light" | "dark">("light");
8680

8781
// Toggle Theme Function
8882
const toggleTheme = () => {

src/frontend/pages/home/components/FABMenu.tsx

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function FABMenu({
2525
onResumeTranscribing,
2626
}: FABMenuProps) {
2727
const [isOpen, setIsOpen] = useState(false);
28+
const isMicOn = !transcriptionPaused;
2829

2930
const actions = [
3031
transcriptionPaused
@@ -124,20 +125,46 @@ export function FABMenu({
124125
</button>
125126
))}
126127

127-
{/* Main FAB button */}
128-
<button
129-
onClick={() => setIsOpen((v) => !v)}
130-
className="flex items-center justify-center w-[52px] h-[52px] rounded-2xl bg-[#DC2626] [box-shadow:#DC262640_0px_4px_16px] pointer-events-auto"
131-
style={{
132-
transform: `rotate(${isOpen ? 45 : 0}deg)`,
133-
transition: "transform 0.2s ease-in-out",
134-
}}
135-
>
136-
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
137-
<line x1="12" y1="5" x2="12" y2="19" />
138-
<line x1="5" y1="12" x2="19" y2="12" />
139-
</svg>
140-
</button>
128+
{/* Main FAB row — mic tag + FAB button */}
129+
<div className="flex items-center gap-2.5 pointer-events-auto">
130+
{/* Mic status indicator */}
131+
<div
132+
className={`flex items-center justify-center rounded-full size-8 ${
133+
isMicOn
134+
? "bg-[#FEF2F2] border border-[#FEE2E2]"
135+
: "bg-[#F5F5F4] border border-[#E7E5E4]"
136+
}`}
137+
style={{
138+
opacity: isOpen ? 0 : 1,
139+
transition: "opacity 0.15s ease",
140+
}}
141+
>
142+
{isMicOn ? (
143+
<div className="rounded-full bg-[#DC2626] size-2 animate-pulse" />
144+
) : (
145+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#A8A29E" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round">
146+
<line x1="1" y1="1" x2="23" y2="23" />
147+
<path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6" />
148+
<path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2c0 .76-.13 1.49-.35 2.17" />
149+
</svg>
150+
)}
151+
</div>
152+
153+
{/* FAB button */}
154+
<button
155+
onClick={() => setIsOpen((v) => !v)}
156+
className="flex items-center justify-center w-[52px] h-[52px] rounded-2xl bg-[#DC2626] [box-shadow:#DC262640_0px_4px_16px]"
157+
style={{
158+
transform: `rotate(${isOpen ? 45 : 0}deg)`,
159+
transition: "transform 0.2s ease-in-out",
160+
}}
161+
>
162+
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
163+
<line x1="12" y1="5" x2="12" y2="19" />
164+
<line x1="5" y1="12" x2="19" y2="12" />
165+
</svg>
166+
</button>
167+
</div>
141168
</div>
142169
</>
143170
);

src/frontend/pages/note/NotePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export function NotePage() {
425425
{isSaving ? "Saving..." : showSaved ? "Saved" : ""}
426426
</span>
427427
{/* Export button */}
428-
<button onClick={() => setShowEmailDrawer(true)} className="p-1">
428+
{/* <button onClick={() => setShowEmailDrawer(true)} className="p-1">
429429
<svg width="20" height="20" viewBox="0 0 24 24" fill="none">
430430
<path
431431
d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"
@@ -451,7 +451,7 @@ export function NotePage() {
451451
strokeLinecap="round"
452452
/>
453453
</svg>
454-
</button>
454+
</button> */}
455455
{/* More menu */}
456456
<DropdownMenu
457457
options={(() => {

src/frontend/pages/notes/NotesFABMenu.tsx

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ interface NotesFABMenuProps {
1313
onAddNote: () => void;
1414
onAskAI: () => void;
1515
onCreateFolder: () => void;
16+
transcriptionPaused?: boolean;
1617
}
1718

1819
export function NotesFABMenu({
1920
onAddNote,
2021
onAskAI,
2122
onCreateFolder,
23+
transcriptionPaused = false,
2224
}: NotesFABMenuProps) {
2325
const [isOpen, setIsOpen] = useState(false);
26+
const isMicOn = !transcriptionPaused;
2427

2528
const actions = [
2629
// {
@@ -104,20 +107,46 @@ export function NotesFABMenu({
104107
</button>
105108
))}
106109

107-
{/* Main FAB button */}
108-
<button
109-
onClick={() => setIsOpen((v) => !v)}
110-
className="flex items-center justify-center w-[52px] h-[52px] rounded-2xl bg-[#DC2626] [box-shadow:#DC262640_0px_4px_16px] pointer-events-auto"
111-
style={{
112-
transform: `rotate(${isOpen ? 45 : 0}deg)`,
113-
transition: "transform 0.2s ease-in-out",
114-
}}
115-
>
116-
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
117-
<line x1="12" y1="5" x2="12" y2="19" />
118-
<line x1="5" y1="12" x2="19" y2="12" />
119-
</svg>
120-
</button>
110+
{/* Main FAB row — mic indicator + FAB button */}
111+
<div className="flex items-center gap-2.5 pointer-events-auto">
112+
{/* Mic status indicator */}
113+
<div
114+
className={`flex items-center justify-center rounded-full size-8 ${
115+
isMicOn
116+
? "bg-[#FEF2F2] border border-[#FEE2E2]"
117+
: "bg-[#F5F5F4] border border-[#E7E5E4]"
118+
}`}
119+
style={{
120+
opacity: isOpen ? 0 : 1,
121+
transition: "opacity 0.15s ease",
122+
}}
123+
>
124+
{isMicOn ? (
125+
<div className="rounded-full bg-[#DC2626] size-2 animate-pulse" />
126+
) : (
127+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#A8A29E" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round">
128+
<line x1="1" y1="1" x2="23" y2="23" />
129+
<path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6" />
130+
<path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2c0 .76-.13 1.49-.35 2.17" />
131+
</svg>
132+
)}
133+
</div>
134+
135+
{/* FAB button */}
136+
<button
137+
onClick={() => setIsOpen((v) => !v)}
138+
className="flex items-center justify-center w-[52px] h-[52px] rounded-2xl bg-[#DC2626] [box-shadow:#DC262640_0px_4px_16px]"
139+
style={{
140+
transform: `rotate(${isOpen ? 45 : 0}deg)`,
141+
transition: "transform 0.2s ease-in-out",
142+
}}
143+
>
144+
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
145+
<line x1="12" y1="5" x2="12" y2="19" />
146+
<line x1="5" y1="12" x2="19" y2="12" />
147+
</svg>
148+
</button>
149+
</div>
121150
</div>
122151
</>
123152
);

src/frontend/pages/notes/NotesPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ export function NotesPage() {
543543
</div>
544544
</div>
545545

546-
<NotesFABMenu onAddNote={handleAddNote} onAskAI={() => setLocation("/")} onCreateFolder={() => setLocation("/collections")} />
546+
<NotesFABMenu onAddNote={handleAddNote} onAskAI={() => setLocation("/")} onCreateFolder={() => setLocation("/collections")} transcriptionPaused={transcriptionPaused} />
547547
</div>
548548
);
549549
}
@@ -818,7 +818,7 @@ export function NotesPage() {
818818

819819
{/* FAB Menu — hidden during selection */}
820820
{!multiSelect.isSelecting && (
821-
<NotesFABMenu onAddNote={handleAddNote} onAskAI={() => setLocation("/")} onCreateFolder={() => setLocation("/collections")} />
821+
<NotesFABMenu onAddNote={handleAddNote} onAskAI={() => setLocation("/")} onCreateFolder={() => setLocation("/collections")} transcriptionPaused={transcriptionPaused} />
822822
)}
823823

824824
{/* Multi-select bottom bar */}

0 commit comments

Comments
 (0)