Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: Merge changelog and feedback into Settings window
Richie McIlroy752694fdcec9
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsindex 7fce99ff9..5b2a1d623 100644--- a/apps/desktop/src-tauri/src/lib.rs+++ b/apps/desktop/src-tauri/src/lib.rs@@ -1730,24 +1730,12 @@ fn open_main_window(app: AppHandle) {CapWindow::Main.show(&app).ok();}-#[tauri::command]-#[specta::specta]-async fn open_feedback_window(app: AppHandle) {- CapWindow::Feedback.show(&app).ok();-}-#[tauri::command]#[specta::specta]async fn open_upgrade_window(app: AppHandle) {CapWindow::Upgrade.show(&app).ok();}-#[tauri::command]-#[specta::specta]-async fn open_changelog_window(app: AppHandle) {- CapWindow::Changelog.show(&app);-}-#[tauri::command]#[specta::specta]async fn open_settings_window(app: AppHandle, page: String) {@@ -2434,7 +2422,6 @@ pub async fn run() {list_capture_screens,list_audio_devices,show_previous_recordings_window,- // show_notifications_window,close_previous_recordings_window,set_fake_window_bounds,remove_fake_window,@@ -2461,10 +2448,8 @@ pub async fn run() {upload_rendered_video,upload_screenshot,get_recording_meta,- open_feedback_window,- open_settings_window,- open_changelog_window,open_upgrade_window,+ open_settings_window,save_file_dialog,list_recordings,list_screenshots,@@ -2476,7 +2461,8 @@ pub async fn run() {reset_camera_permissions,reset_microphone_permissions,is_camera_window_open,- seek_to+ seek_to,+ send_feedback_request,]).events(tauri_specta::collect_events![RecordingOptionsChanged,@@ -2798,3 +2784,50 @@ fn screenshots_path(app: &AppHandle) -> PathBuf {fn screenshot_path(app: &AppHandle, screenshot_id: &str) -> PathBuf {screenshots_path(app).join(format!("{}.cap", screenshot_id))}++#[tauri::command]+#[specta::specta]+async fn send_feedback_request(app: AppHandle, feedback: String) -> Result<(), String> {+ let auth = AuthStore::get(&app)+ .map_err(|e| e.to_string())?+ .ok_or("Not authenticated")?;++ let feedback_url = web_api::make_url("/api/desktop/feedback");++ // Create a proper multipart form+ let form = reqwest::multipart::Form::new().text("feedback", feedback);++ let client = reqwest::Client::new();+ let response = client+ .post(feedback_url)+ .header("Authorization", format!("Bearer {}", auth.token))+ .multipart(form)+ .send()+ .await+ .map_err(|e| format!("Failed to send feedback: {}", e))?;++ if !response.status().is_success() {+ println!("Feedback request failed with status: {}", response.status());++ let error_text = response+ .text()+ .await+ .map_err(|_| "Failed to read error response")?;++ println!("Error response: {}", error_text);++ // Parse the error response and convert to owned String immediately+ let error = match serde_json::from_str::<serde_json::Value>(&error_text) {+ Ok(v) => v+ .get("error")+ .and_then(|e| e.as_str())+ .map(ToString::to_string)+ .unwrap_or_else(|| "Failed to submit feedback".to_string()),+ Err(_) => "Failed to submit feedback".to_string(),+ };++ return Err(error);+ }++ Ok(())+}diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rsindex ef2f9c03a..6445ecd1c 100644--- a/apps/desktop/src-tauri/src/windows.rs+++ b/apps/desktop/src-tauri/src/windows.rs@@ -12,13 +12,10 @@ pub enum CapWindow {Editor { project_id: String },Permissions,PrevRecordings,- // Notifications,WindowCaptureOccluder,Camera { ws_port: u16 },InProgressRecording { position: Option<(f64, f64)> },- Feedback,Upgrade,- Changelog,}#[derive(Clone)]@@ -28,13 +25,10 @@ pub enum CapWindowId {Editor { project_id: String },Permissions,PrevRecordings,- // Notifications,WindowCaptureOccluder,Camera,InProgressRecording,- Feedback,Upgrade,- Changelog,}impl CapWindowId {@@ -46,11 +40,8 @@ impl CapWindowId {"window-capture-occluder" => Self::WindowCaptureOccluder,"in-progress-recording" => Self::InProgressRecording,"prev-recordings" => Self::PrevRecordings,- // "notifications" => Self::Notifications,"permissions" => Self::Permissions,- "feedback" => Self::Feedback,"upgrade" => Self::Upgrade,- "changelog" => Self::Changelog,s if s.starts_with("editor-") => Self::Editor {project_id: s.replace("editor-", ""),},@@ -66,12 +57,9 @@ impl CapWindowId {Self::WindowCaptureOccluder => "window-capture-occluder".to_string(),Self::InProgressRecording => "in-progress-recording".to_string(),Self::PrevRecordings => "prev-recordings".to_string(),- // Self::Notifications => "notifications".to_string(),Self::Editor { project_id } => format!("editor-{}", project_id),Self::Permissions => "permissions".to_string(),- Self::Feedback => "feedback".to_string(),Self::Upgrade => "upgrade".to_string(),- Self::Changelog => "changelog".to_string(),}}@@ -81,9 +69,7 @@ impl CapWindowId {Self::WindowCaptureOccluder => "Cap Window Capture Occluder".to_string(),Self::InProgressRecording => "Cap In Progress Recording".to_string(),Self::Editor { .. } => "Cap Editor".to_string(),- // Self::Notifications => "Cap Notifications".to_string(),Self::Permissions => "Cap Permissions".to_string(),- Self::Changelog => "Cap Changelog".to_string(),_ => "Cap".to_string(),}}@@ -93,11 +79,8 @@ impl CapWindowId {Self::Main| Self::Editor { .. }| Self::Settings- // | Self::Notifications| Self::Permissions- | Self::Feedback- | Self::Upgrade- | Self::Changelog => true,+ | Self::Upgrade => true,_ => false,}}@@ -113,7 +96,6 @@ impl CapWindowId {| Self::InProgressRecording| Self::WindowCaptureOccluder| Self::PrevRecordings => None,- // | Self::Notifications => None,Self::Editor { .. } => Some(Some(LogicalPosition::new(20.0, 48.0))),_ => Some(None),}@@ -209,22 +191,6 @@ impl CapWindow {window_builder.build()?}- Self::Feedback => {- let mut window_builder = self- .window_builder(app, "/feedback")- .inner_size(400.0, 400.0)- .resizable(false)- .maximized(false)- .shadow(true)- .transparent(true);-- #[cfg(target_os = "windows")]- {- window_builder = window_builder.decorations(false);- }-- window_builder.build()?- }Self::Upgrade => {let mut window_builder = self.window_builder(app, "/upgrade")@@ -234,24 +200,6 @@ impl CapWindow {.shadow(true).transparent(true);--- window_builder.build()?- }- Self::Changelog => {- let mut window_builder = self- .window_builder(app, "/changelog")- .inner_size(600.0, 450.0)- .resizable(true)- .maximized(false)- .shadow(true)- .transparent(true);-- #[cfg(target_os = "windows")]- {- window_builder = window_builder.decorations(false);- }-window_builder.build()?}Self::Camera { ws_port } => {@@ -284,8 +232,6 @@ impl CapWindow {)).transparent(true);--window_builder.build()?}Self::WindowCaptureOccluder => {@@ -345,31 +291,6 @@ impl CapWindow {.visible(false).build()?}- // Self::Notifications => {- // let window = self- // .window_builder(app, "/notifications")- // .maximized(false)- // .transparent(true)- // .resizable(false)- // .fullscreen(false)- // .decorations(false)- // .shadow(false)- // .always_on_top(true)- // .visible_on_all_workspaces(true)- // .content_protected(true)- // .inner_size(350.0, 350.0)- // .skip_taskbar(true)- // .position(- // (monitor.size().width as f64) / monitor.scale_factor() - 350.0,- // 0.0,- // )- // .build()?;-- // // Make window non-interactive- // window.set_ignore_cursor_events(true)?;-- // window- // }Self::PrevRecordings => {let mut window_builder = self.window_builder(app, "/prev-recordings")@@ -463,13 +384,10 @@ impl CapWindow {},CapWindow::Permissions => CapWindowId::Permissions,CapWindow::PrevRecordings => CapWindowId::PrevRecordings,- // CapWindow::Notifications => CapWindowId::Notifications,CapWindow::WindowCaptureOccluder => CapWindowId::WindowCaptureOccluder,CapWindow::Camera { .. } => CapWindowId::Camera,CapWindow::InProgressRecording { .. } => CapWindowId::InProgressRecording,- CapWindow::Feedback => CapWindowId::Feedback,CapWindow::Upgrade => CapWindowId::Upgrade,- CapWindow::Changelog => CapWindowId::Changelog,}}}@@ -487,15 +405,17 @@ fn add_traffic_lights(window: &WebviewWindow<Wry>, controls_inset: Option<Logica);let c_win = target_window.clone();- target_window.on_window_event(move |event| if let tauri::WindowEvent::ThemeChanged(..) = event {- delegates::position_window_controls(- delegates::UnsafeWindowHandle(- c_win- .ns_window()- .expect("Failed to get native window handle"),- ),- &controls_inset.unwrap_or(LogicalPosition::new(14.0, 22.0)),- );+ target_window.on_window_event(move |event| {+ if let tauri::WindowEvent::ThemeChanged(..) = event {+ delegates::position_window_controls(+ delegates::UnsafeWindowHandle(+ c_win+ .ns_window()+ .expect("Failed to get native window handle"),+ ),+ &controls_inset.unwrap_or(LogicalPosition::new(14.0, 22.0)),+ );+ }});}).ok();diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsxindex 0b771a9bd..05ef38fe4 100644--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx@@ -109,7 +109,7 @@ export default function () {variant="secondary"size="xs"onClick={() => {- commands.openFeedbackWindow();+ commands.openSettingsWindow("feedback");}}>Feedback@@ -625,7 +625,7 @@ function ChangelogButton() {);const handleChangelogClick = () => {- commands.openChangelogWindow();+ commands.openSettingsWindow("changelog");const version = currentVersion();if (version) {setChangelogState({diff --git a/apps/desktop/src/routes/(window-chrome)/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/changelog.tsxdeleted file mode 100644index a0cf236cd..000000000--- a/apps/desktop/src/routes/(window-chrome)/changelog.tsx+++ /dev/null@@ -1,74 +0,0 @@-import { For, Show, createResource, ErrorBoundary } from "solid-js";-import { clientEnv } from "~/utils/env";-import { Button } from "@cap/ui-solid";-import { getCurrentWindow } from "@tauri-apps/api/window";-import { SolidMarkdown } from "solid-markdown";--interface ChangelogEntry {- title: string;- app: string;- version: string;- publishedAt: string;- content: string;-}--export default function Page() {- const [changelog] = createResource<Array<ChangelogEntry>>(async () => {- const response = await fetch(- `${clientEnv.VITE_SERVER_URL}/api/changelog?origin=${window.location.origin}`- );- if (!response.ok) throw new Error("Failed to fetch changelog");-- return await response.json();- });-- return (- <div class="flex flex-col p-6 gap-6 text-sm font-normal bg-gray-100 max-w-3xl mx-auto overflow-y-auto">- <ErrorBoundary- fallback={(e) => (- <div class="text-red-500 font-medium">{e.toString()}</div>- )}- >- <ul class="space-y-8">- <For each={changelog()}>- {(entry, i) => (- <li class="border-b-2 border-gray-200 pb-8">- <div class="flex mb-2">- <Show when={i() === 0}>- <div class="bg-blue-400 text-white px-2 py-1 rounded-md uppercase font-bold">- <span style="color: #fff" class="text-xs">- New- </span>- </div>- </Show>- </div>- <h3 class="text-xl font-semibold text-gray-800 mb-2">- {entry.title}- </h3>- <div class="text-gray-500 text-sm mb-4">- Version {entry.version} -{" "}- {new Date(entry.publishedAt).toLocaleDateString()}- </div>- <SolidMarkdown class="prose prose-sm max-w-none">- {entry.content}- </SolidMarkdown>- </li>- )}- </For>- </ul>- </ErrorBoundary>- <div>- <Button- onClick={() => {- const window = getCurrentWindow();- window.close();- }}- type="button"- class="mt-4 w-full"- >- Close Window- </Button>- </div>- </div>- );-}diff --git a/apps/desktop/src/routes/(window-chrome)/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/feedback.tsxdeleted file mode 100644index ec0c36820..000000000--- a/apps/desktop/src/routes/(window-chrome)/feedback.tsx+++ /dev/null@@ -1,121 +0,0 @@-import { Button } from "@cap/ui-solid";-import { clientEnv } from "~/utils/env";-import { createSignal, onMount, Show } from "solid-js";-import { authStore } from "../../store";-import { getCurrentWindow } from "@tauri-apps/api/window";--export default function Page() {- let textareaRef: HTMLTextAreaElement | undefined;- const [isSubmitting, setIsSubmitting] = createSignal(false);- const [feedbackText, setFeedbackText] = createSignal("");- const [isSubmitted, setIsSubmitted] = createSignal(false);-- onMount(() => {- if (textareaRef) {- textareaRef.focus();- }- });-- const handleSubmit = async (e: Event) => {- e.preventDefault();- if (!feedbackText().trim()) return;-- setIsSubmitting(true);- try {- const auth = await authStore.get();-- if (!auth) {- console.error("User not authenticated");- window.close();- return;- }-- const formData = new FormData();- formData.append("feedback", feedbackText());-- const response = await fetch(- `${clientEnv.VITE_SERVER_URL}/api/desktop/feedback?origin=${window.location.origin}`,- {- method: "POST",- headers: {- Authorization: `Bearer ${auth.token}`,- },- body: formData,- }- );-- if (!response.ok) {- throw new Error("Failed to submit feedback");- }-- const data = await response.json();- console.log("Feedback submitted:", data);- setFeedbackText("");- setIsSubmitted(true);- } catch (error) {- console.error("Error submitting feedback:", error);- } finally {- setIsSubmitting(false);- }- };-- return (- <div class="flex flex-col p-[1rem] gap-[0.75rem] text-[0.875rem] font-[400] flex-1 bg-gray-100">- <Show- when={!isSubmitted()}- fallback={- <div class="flex flex-col items-center justify-center h-full text-center">- <div>- <IconLucideSmile class="size-[5rem] text-gray-200 mb-[1rem]" />- </div>- <h2 class="text-[1.15rem] font-[500] mb-[1.5rem]">- Thank you, your feedback has been received.- </h2>- <Button- onClick={() => {- const window = getCurrentWindow();- window.close();- }}- type="button"- >- Close Window- </Button>- </div>- }- >- <h2 class="text-[1rem] font-[600] mb-[0.25rem]">- Feedback / Report a bug- </h2>- <p class="text-gray-400 mb-[1rem]">- Help us improve Cap by submitting feedback or reporting bugs. We'll- get right on it.- </p>- <form>- <textarea- ref={textareaRef}- value={feedbackText()}- onInput={(e) => setFeedbackText(e.currentTarget.value)}- class="w-full h-[150px] p-[0.5rem] border border-gray-300 rounded-md resize-none focus:outline-none focus:ring-2 focus:ring-blue-500"- placeholder="Please enter your feedback here..."- autofocus- ></textarea>- <Button- onClick={handleSubmit}- type="button"- class="mt-[1rem] flex items-center justify-between gap-[0.5rem]"- disabled={isSubmitting()}- >- {isSubmitting() ? (- <>- Submitting...- <IconLucideLoaderCircle class="size-[1rem] animate-spin" />- </>- ) : (- "Submit Feedback"- )}- </Button>- </form>- </Show>- </div>- );-}diff --git a/apps/desktop/src/routes/(window-chrome)/settings.tsx b/apps/desktop/src/routes/(window-chrome)/settings.tsxindex 410070708..00673340b 100644--- a/apps/desktop/src/routes/(window-chrome)/settings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings.tsx@@ -3,11 +3,21 @@ import { cx } from "cva";import { createResource, For } from "solid-js";import { Button } from "@cap/ui-solid";import { getVersion } from "@tauri-apps/api/app";+import { lazy } from "solid-js";import { commands } from "~/utils/tauri";-export default function (props: RouteSectionProps) {+// Lazy load the tab components+const FeedbackTab = lazy(() => import("./settings/feedback"));+const GeneralTab = lazy(() => import("./settings/general"));+const HotkeysTab = lazy(() => import("./settings/hotkeys"));+const RecordingsTab = lazy(() => import("./settings/recordings"));+const ScreenshotsTab = lazy(() => import("./settings/screenshots"));+const ChangelogTab = lazy(() => import("./settings/changelog"));++export default function Settings(props: RouteSectionProps) {const location = useLocation();+ const currentPath = () => location.pathname.split("/").pop();const handleSignOut = async () => {await commands.deleteAuthOpenSignin();@@ -16,6 +26,25 @@ export default function (props: RouteSectionProps) {const [version] = createResource(async () => getVersion());const versionString = () => version() ?? "0";+ const renderTab = () => {+ switch (currentPath()) {+ case "feedback":+ return <FeedbackTab />;+ case "general":+ return <GeneralTab />;+ case "hotkeys":+ return <HotkeysTab />;+ case "recordings":+ return <RecordingsTab />;+ case "screenshots":+ return <ScreenshotsTab />;+ case "changelog":+ return <ChangelogTab />;+ default:+ return <GeneralTab />;+ }+ };+return (<div class="h-[calc(100vh-3rem)] flex flex-row divide-x divide-gray-200 text-[0.875rem] leading-[1.25rem]"><div class="h-full flex flex-col">@@ -34,10 +63,20 @@ export default function (props: RouteSectionProps) {name: "Previous Screenshots",icon: IconLucideCamera,},+ {+ href: "feedback",+ name: "Feedback",+ icon: IconLucideMessageSquarePlus,+ },+ {+ href: "changelog",+ name: "Changelog",+ icon: IconLucideBell,+ },]}>{(item) => {- const isActive = () => location.pathname.includes(item.href);+ const isActive = () => currentPath() === item.href;return (<li><A@@ -66,7 +105,7 @@ export default function (props: RouteSectionProps) {</Button></div></div>- <div class="flex-1 bg-gray-50">{props.children}</div>+ <div class="flex-1 bg-gray-50 overflow-y-auto">{renderTab()}</div></div>);}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsxnew file mode 100644index 000000000..877a8ef93--- /dev/null+++ b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx@@ -0,0 +1,64 @@+import { For, Show, createResource, ErrorBoundary } from "solid-js";+import { clientEnv } from "~/utils/env";+import { SolidMarkdown } from "solid-markdown";++interface ChangelogEntry {+ title: string;+ app: string;+ version: string;+ publishedAt: string;+ content: string;+}++export default function Page() {+ const [changelog] = createResource<Array<ChangelogEntry>>(async () => {+ const response = await fetch(+ `${clientEnv.VITE_SERVER_URL}/api/changelog?origin=${window.location.origin}`+ );+ if (!response.ok) throw new Error("Failed to fetch changelog");++ return await response.json();+ });++ return (+ <div class="h-full flex flex-col">+ <div class="flex-1 overflow-y-auto">+ <div class="flex flex-col p-6 gap-6 text-sm font-normal">+ <ErrorBoundary+ fallback={(e) => (+ <div class="text-red-500 font-medium">{e.toString()}</div>+ )}+ >+ <ul class="space-y-8">+ <For each={changelog()}>+ {(entry, i) => (+ <li class="border-b-2 border-gray-200 pb-8 last:border-b-0">+ <div class="flex mb-2">+ <Show when={i() === 0}>+ <div class="bg-blue-400 text-white px-2 py-1 rounded-md uppercase font-bold">+ <span style="color: #fff" class="text-xs">+ New+ </span>+ </div>+ </Show>+ </div>+ <h3 class="font-semibold text-gray-800 mb-2">+ {entry.title}+ </h3>+ <div class="text-gray-500 text-sm mb-4">+ Version {entry.version} -{" "}+ {new Date(entry.publishedAt).toLocaleDateString()}+ </div>+ <SolidMarkdown class="prose prose-sm max-w-none">+ {entry.content}+ </SolidMarkdown>+ </li>+ )}+ </For>+ </ul>+ </ErrorBoundary>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsxnew file mode 100644index 000000000..d46e7c252--- /dev/null+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx@@ -0,0 +1,72 @@+import { createSignal } from "solid-js";+import { Button } from "@cap/ui-solid";+import { commands } from "~/utils/tauri";++export default function FeedbackTab() {+ const [feedback, setFeedback] = createSignal("");+ const [isSubmitting, setIsSubmitting] = createSignal(false);+ const [error, setError] = createSignal<string | null>(null);+ const [success, setSuccess] = createSignal(false);++ const handleSubmit = async (e: Event) => {+ e.preventDefault();+ if (!feedback().trim()) return;++ setIsSubmitting(true);+ setError(null);+ setSuccess(false);++ try {+ await commands.sendFeedbackRequest(feedback());+ setSuccess(true);+ setFeedback("");+ } catch (err) {+ console.error("Error submitting feedback:", err);+ setError(+ err instanceof Error ? err.message : "Failed to submit feedback"+ );+ } finally {+ setIsSubmitting(false);+ }+ };++ return (+ <div class="p-6 max-w-2xl">+ <h2 class="text-lg font-medium mb-2">Send Feedback</h2>+ <p class="text-gray-400 mb-[1rem]">+ Help us improve Cap by submitting feedback or reporting bugs. We'll get+ right on it.+ </p>+ <form class="space-y-4">+ <div>+ <textarea+ value={feedback()}+ onInput={(e) => setFeedback(e.currentTarget.value)}+ placeholder="Tell us what you think about Cap..."+ required+ minLength={10}+ class="w-full h-32 p-2 border border-gray-300 rounded-md resize-none focus:outline-none focus:ring-2 focus:ring-blue-500"+ disabled={isSubmitting()}+ />+ </div>++ {error() && <p class="text-red-500 text-sm">{error()}</p>}++ {success() && (+ <p class="text-green-500 text-sm">Thank you for your feedback!</p>+ )}++ <Button+ onClick={handleSubmit}+ type="button"+ disabled={+ isSubmitting() || !feedback().trim() || feedback().trim().length < 0+ }+ class="w-full"+ >+ {isSubmitting() ? "Submitting..." : "Submit Feedback"}+ </Button>+ </form>+ </div>+ );+}diff --git a/apps/desktop/src/routes/camera.tsx b/apps/desktop/src/routes/camera.tsxindex 6613870bd..cfbfbe34d 100644--- a/apps/desktop/src/routes/camera.tsx+++ b/apps/desktop/src/routes/camera.tsx@@ -261,7 +261,7 @@ function CameraLoadingState(props: { shape: CameraWindow.Shape }) {});return (- <div class="flex flex-col w-full h-full">+ <div class="flex flex-col w-full h-full bg-black"><div class="h-14" /><divclass={cx(diff --git a/apps/desktop/src/utils/tauri.ts b/apps/desktop/src/utils/tauri.tsindex a16f2614f..28d4147a7 100644--- a/apps/desktop/src/utils/tauri.ts+++ b/apps/desktop/src/utils/tauri.ts@@ -219,18 +219,12 @@ async uploadScreenshot(screenshotPath: string) : Promise<Result<UploadResult, stasync getRecordingMeta(id: string, fileType: string) : Promise<RecordingMeta> {return await TAURI_INVOKE("get_recording_meta", { id, fileType });},-async openFeedbackWindow() : Promise<void> {- await TAURI_INVOKE("open_feedback_window");+async openUpgradeWindow() : Promise<void> {+ await TAURI_INVOKE("open_upgrade_window");},async openSettingsWindow(page: string) : Promise<void> {await TAURI_INVOKE("open_settings_window", { page });},-async openChangelogWindow() : Promise<void> {- await TAURI_INVOKE("open_changelog_window");-},-async openUpgradeWindow() : Promise<void> {- await TAURI_INVOKE("open_upgrade_window");-},async saveFileDialog(fileName: string, fileType: string) : Promise<Result<string | null, string>> {try {return { status: "ok", data: await TAURI_INVOKE("save_file_dialog", { fileName, fileType }) };@@ -316,6 +310,14 @@ async isCameraWindowOpen() : Promise<boolean> {},async seekTo(videoId: string, frameNumber: number) : Promise<void> {await TAURI_INVOKE("seek_to", { videoId, frameNumber });+},+async sendFeedbackRequest(feedback: string) : Promise<Result<null, string>> {+ try {+ return { status: "ok", data: await TAURI_INVOKE("send_feedback_request", { feedback }) };+} catch (e) {+ if(e instanceof Error) throw e;+ else return { status: "error", error: e as any };+}}}diff --git a/packages/ui-solid/src/auto-imports.d.ts b/packages/ui-solid/src/auto-imports.d.tsindex 3e56a17d7..838e7f33d 100644--- a/packages/ui-solid/src/auto-imports.d.ts+++ b/packages/ui-solid/src/auto-imports.d.ts@@ -56,6 +56,7 @@ declare global {const IconLucideFolder: typeof import('~icons/lucide/folder.jsx')['default']const IconLucideFoler: typeof import("~icons/lucide/foler.jsx")["default"]const IconLucideLoaderCircle: typeof import('~icons/lucide/loader-circle.jsx')['default']+ const IconLucideMessageSquarePlus: typeof import('~icons/lucide/message-square-plus.jsx')['default']const IconLucideRewind: typeof import("~icons/lucide/rewind.jsx")["default"]const IconLucideSettings: typeof import("~icons/lucide/settings.jsx")["default"]const IconLucideSmile: typeof import('~icons/lucide/smile.jsx')['default']