Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(web): rename Import Video labels to Import Media
Richie McIlroyc84b12538565
diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/DashboardSearch.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/DashboardSearch.tsxindex bf8cee828..bb0281977 100644--- a/apps/web/app/(org)/dashboard/_components/Navbar/DashboardSearch.tsx+++ b/apps/web/app/(org)/dashboard/_components/Navbar/DashboardSearch.tsx@@ -166,10 +166,10 @@ export function DashboardSearch({},{id: "import-video",- title: "Import Video",- subtitle: "Bring an existing video into Cap",+ title: "Import Media",+ subtitle: "Bring an existing video or image into Cap",href: "/dashboard/import",- value: "import upload loom video file",+ value: "import upload loom video image media file",icon: Upload,},{@@ -387,7 +387,7 @@ export function DashboardSearch({<CommandList className="overflow-y-auto px-2 pt-1 pb-2 h-[min(60vh,440px)] max-h-[min(60vh,440px)]">{canSearchVideos && (<>- <SectionHeader>Videos</SectionHeader>+ <SectionHeader>Videos and screenshots</SectionHeader>{videoLoading ? (<div className="flex gap-3 items-center px-2.5 py-2 text-[13px] text-gray-10"><Loader2 className="flex-shrink-0 animate-spin size-4" />@@ -406,7 +406,7 @@ export function DashboardSearch({))) : (<p className="px-3 py-6 text-[13px] text-center text-gray-10">- No videos match{" "}+ No videos or screenshots match{" "}<span className="font-medium text-gray-12">“{query.trim()}”</span>diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsxindex 6cb52d2f0..54afd814b 100644--- a/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx+++ b/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx@@ -97,7 +97,7 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {subNav: [],},{- name: "Import Video",+ name: "Import Media",href: `/dashboard/import`,matchChildren: true,icon: <ImportIcon />,diff --git a/apps/web/app/(org)/dashboard/caps/Caps.tsx b/apps/web/app/(org)/dashboard/caps/Caps.tsxindex f96606d3f..6e7f6b916 100644--- a/apps/web/app/(org)/dashboard/caps/Caps.tsx+++ b/apps/web/app/(org)/dashboard/caps/Caps.tsx@@ -11,6 +11,8 @@ import { Effect, Exit } from "effect";import { useRouter, useSearchParams } from "next/navigation";import { useEffect, useMemo, useRef, useState } from "react";import { toast } from "sonner";+import { ChromeRecorderButton } from "@/components/ChromeRecorderButton";+import { CHROME_EXTENSION_BUTTON_CLASS } from "@/lib/chrome-extension";import { useEffectMutation, useRpcClient } from "@/lib/EffectRuntime";import { useVideosAnalyticsQuery } from "@/lib/Queries/Analytics";import { useDashboardContext } from "../Contexts";@@ -264,6 +266,9 @@ export const Caps = ({</Button><UploadCapButton size="sm" /><WebRecorderDialog />+ <ChromeRecorderButton+ className={`${CHROME_EXTENSION_BUTTON_CLASS} font-medium`}+ /></div>{folders.length > 0 && (<>@@ -280,7 +285,9 @@ export const Caps = ({{visibleVideos.length > 0 && (<><div className="flex justify-between items-center mb-6 w-full">- <h1 className="text-2xl font-medium text-gray-12">Videos</h1>+ <h1 className="text-2xl font-medium text-gray-12">+ Videos and screenshots+ </h1></div><div className="grid grid-cols-1 gap-4 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5">diff --git a/apps/web/app/(org)/dashboard/caps/components/EmptyCapState.tsx b/apps/web/app/(org)/dashboard/caps/components/EmptyCapState.tsxindex 31f380c26..627f00a2f 100644--- a/apps/web/app/(org)/dashboard/caps/components/EmptyCapState.tsx+++ b/apps/web/app/(org)/dashboard/caps/components/EmptyCapState.tsx@@ -1,6 +1,8 @@import { Button } from "@cap/ui";import { faDownload } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { ChromeRecorderButton } from "@/components/ChromeRecorderButton";+import { CHROME_EXTENSION_BUTTON_CLASS } from "@/lib/chrome-extension";import { useRive } from "@/lib/rive";import { useTheme } from "../../Contexts";import { UploadCapButton } from "./UploadCapButton";@@ -43,6 +45,10 @@ export const EmptyCapState: React.FC<EmptyCapStateProps> = ({ userName }) => {<p className="text-sm text-gray-10">or</p><WebRecorderDialog /><p className="text-sm text-gray-10">or</p>+ <ChromeRecorderButton+ className={`${CHROME_EXTENSION_BUTTON_CLASS} font-medium`}+ />+ <p className="text-sm text-gray-10">or</p><UploadCapButton /></div></div>diff --git a/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx b/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsxindex f55dbfe62..60b50009c 100644--- a/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx+++ b/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx@@ -38,7 +38,7 @@ export const UploadCapButton = ({size={size}><FontAwesomeIcon className="size-3.5" icon={faUpload} />- Import Video+ Import Media</Button><UpgradeModalopen={upgradeModalOpen}diff --git a/apps/web/app/(org)/dashboard/folder/[id]/components/FolderVideosSection.tsx b/apps/web/app/(org)/dashboard/folder/[id]/components/FolderVideosSection.tsxindex 0e8577475..f6ab57a62 100644--- a/apps/web/app/(org)/dashboard/folder/[id]/components/FolderVideosSection.tsx+++ b/apps/web/app/(org)/dashboard/folder/[id]/components/FolderVideosSection.tsx@@ -126,13 +126,15 @@ export default function FolderVideosSection({return (<><div className="flex justify-between items-center mb-6 w-full">- <h1 className="text-2xl font-medium text-gray-12">Videos</h1>+ <h1 className="text-2xl font-medium text-gray-12">+ Videos and screenshots+ </h1></div><div className="grid grid-cols-1 gap-4 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5">{visibleVideos.length === 0 && !isUploading ? (<p className="col-span-full text-gray-9">- No videos in this folder yet. Drag and drop into the folder or- upload.+ No videos or screenshots in this folder yet. Drag and drop into the+ folder or upload.</p>) : (<>