Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

chore(release): gate sidebar invite button and stale workspace deep-link

Gabriel Steinca4abbbfe2f2
diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsx
index 51902b838..21b7d2b55 100644
--- a/src/components/ControlPanelSidebar.tsx
+++ b/src/components/ControlPanelSidebar.tsx
@@ -254,7 +254,7 @@ export default function ControlPanelSidebar({
</button>
)}
- {isSignedIn && (
+ {WORKSPACES_ENABLED && isSignedIn && (
<button
onClick={() =>
activeWorkspace ? setInviteOpen(true) : setCreateWorkspaceOpen(true)
diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx
index 8eee86cd2..2abd5923d 100644
--- a/src/components/SettingsModal.tsx
+++ b/src/components/SettingsModal.tsx
@@ -125,8 +125,12 @@ export default function SettingsModal({ open, onOpenChange, initialSection }: Se
[t]
);
- const resolveSection = (section: string | undefined): SettingsSectionType =>
- section ? ((SECTION_ALIASES[section] ?? section) as SettingsSectionType) : "account";
+ const resolveSection = (section: string | undefined): SettingsSectionType => {
+ if (!section) return "account";
+ const resolved = (SECTION_ALIASES[section] ?? section) as SettingsSectionType;
+ if (resolved === "workspace" && !WORKSPACES_ENABLED) return "account";
+ return resolved;
+ };
const [activeSection, setActiveSection] = React.useState<SettingsSectionType>(() =>
resolveSection(initialSection)