- {option.description && option.description}
+ {option.description}
{showSelected && (
<>
diff --git a/frontend/libs/components/gallery-modal/src/lib/FolderNameDialog.tsx b/frontend/libs/components/gallery-modal/src/lib/FolderNameDialog.tsx
index 8e232b85ae..26b006c461 100644
--- a/frontend/libs/components/gallery-modal/src/lib/FolderNameDialog.tsx
+++ b/frontend/libs/components/gallery-modal/src/lib/FolderNameDialog.tsx
@@ -64,7 +64,6 @@ export const FolderNameDialog: React.FC
= ({
if (e.key === "Enter") submit();
}}
className="w-full rounded-[3px] border border-ui-panel-border bg-ui-controls/40 px-3 py-1.5 text-sm text-base-fg outline-none focus:ring-1 focus:ring-primary/50"
- autoFocus
/>
@@ -47,21 +45,6 @@ export function EditorHeader({ endSlot, exitTo = "/projects" }: EditorHeaderProp
);
}
-function CurrentUserBadge() {
- const { authUser } = useEditorAdapters();
- const user = useAuthUser(authUser);
- if (!user) return null;
- return (
- //
- // {user.displayName}
- //
- null
- );
-}
-
function ProjectDropdown({ exitTo }: { exitTo: string }) {
const [openDialog, setOpenDialog] = useState<
"delete" | "rename" | "shortcuts" | null
diff --git a/frontend/libs/components/video-editor/src/lib/components/ui/alert.tsx b/frontend/libs/components/video-editor/src/lib/components/ui/alert.tsx
index cfcf4cbc84..84c4a648d4 100644
--- a/frontend/libs/components/video-editor/src/lib/components/ui/alert.tsx
+++ b/frontend/libs/components/video-editor/src/lib/components/ui/alert.tsx
@@ -44,7 +44,7 @@ Alert.displayName = "Alert";
const AlertTitle = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes
->(({ className, ...props }, ref) => (
+>(({ className, children, ...props }, ref) => (
+ >
+ {children}
+
));
AlertTitle.displayName = "AlertTitle";
diff --git a/frontend/libs/components/video-editor/src/lib/core/managers/audio-manager.ts b/frontend/libs/components/video-editor/src/lib/core/managers/audio-manager.ts
index 8f0aaea5a0..85a7e00054 100644
--- a/frontend/libs/components/video-editor/src/lib/core/managers/audio-manager.ts
+++ b/frontend/libs/components/video-editor/src/lib/core/managers/audio-manager.ts
@@ -539,7 +539,7 @@ export class AudioManager {
}): Promise {
const cacheKey = this.buildPreparedClipCacheKey({ clip });
const existing = this.preparedClipBuffers.get(cacheKey);
- if (existing) {
+ if (existing !== undefined) {
return existing;
}
@@ -574,7 +574,7 @@ export class AudioManager {
clip: AudioClipSource;
}): Promise {
const existing = this.decodedBuffers.get(clip.sourceKey);
- if (existing) {
+ if (existing !== undefined) {
return existing;
}
diff --git a/frontend/libs/components/video-editor/src/lib/fonts/google-fonts.ts b/frontend/libs/components/video-editor/src/lib/fonts/google-fonts.ts
index d3303c6b06..fa537feb4c 100644
--- a/frontend/libs/components/video-editor/src/lib/fonts/google-fonts.ts
+++ b/frontend/libs/components/video-editor/src/lib/fonts/google-fonts.ts
@@ -26,7 +26,7 @@ export function clearFontAtlasCache(): void {
export function loadFontAtlas(): Promise {
if (cachedAtlas) return Promise.resolve(cachedAtlas);
- if (atlasFetchPromise) return atlasFetchPromise;
+ if (atlasFetchPromise !== null) return atlasFetchPromise;
atlasFetchPromise = fetch(FONT_ATLAS_PATH)
.then(async (response) => {
diff --git a/frontend/libs/components/video-editor/src/lib/fonts/use-font-atlas.ts b/frontend/libs/components/video-editor/src/lib/fonts/use-font-atlas.ts
index cb71f70c3d..a4d7fc12ae 100644
--- a/frontend/libs/components/video-editor/src/lib/fonts/use-font-atlas.ts
+++ b/frontend/libs/components/video-editor/src/lib/fonts/use-font-atlas.ts
@@ -46,7 +46,9 @@ export function useFontAtlas({ open }: { open: boolean }) {
const fontNames = useMemo(() => {
if (!atlas) return [];
- return [...Object.keys(atlas.fonts), ...SYSTEM_FONTS].sort();
+ return [...Object.keys(atlas.fonts), ...SYSTEM_FONTS].sort((a, b) =>
+ a.localeCompare(b),
+ );
}, [atlas]);
return { atlas, status, fontNames, retry };
diff --git a/frontend/libs/components/video-editor/src/lib/guides/definitions/grid.tsx b/frontend/libs/components/video-editor/src/lib/guides/definitions/grid.tsx
index afa74a773a..e957301e35 100644
--- a/frontend/libs/components/video-editor/src/lib/guides/definitions/grid.tsx
+++ b/frontend/libs/components/video-editor/src/lib/guides/definitions/grid.tsx
@@ -7,7 +7,6 @@ import { HugeiconsIcon } from "@hugeicons/react";
import {
GRID_MIN,
GRID_MAX,
- DEFAULT_GRID_CONFIG,
} from "../grid";
import { usePreviewStore } from "../../preview/preview-store";
import { clampRound } from "../../utils/math";
@@ -113,9 +112,6 @@ function GridGuideOptions() {
}}
/>
- {/* Acknowledge DEFAULT_GRID_CONFIG so the reset import stays parked
- for when NumberField (with its onReset affordance) is ported. */}
- {DEFAULT_GRID_CONFIG ? null : null}