Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
coderabbit bits
Richie McIlroy312710320fc5
diff --git a/apps/desktop/src-tauri/src/general_settings.rs b/apps/desktop/src-tauri/src/general_settings.rsindex d255a6884..4c1373d43 100644--- a/apps/desktop/src-tauri/src/general_settings.rs+++ b/apps/desktop/src-tauri/src/general_settings.rs@@ -263,10 +263,6 @@ pub fn init(app: &AppHandle) {store.recording_picker_preference_set = true;}- if store.enable_new_recording_flow {- store.enable_new_recording_flow = false;- }-if let Err(e) = store.save(app) {error!("Failed to save general settings: {}", e);}diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsxindex bbb36c063..f8fa97450 100644--- a/apps/desktop/src/App.tsx+++ b/apps/desktop/src/App.tsx@@ -88,20 +88,6 @@ const queryClient = new QueryClient({});export default function App() {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "App.tsx:App",- message: "App component rendering",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C",- }),- }).catch(() => {});- // #endregionreturn (<QueryClientProvider client={queryClient}><Suspense>@@ -112,38 +98,10 @@ export default function App() {}function Inner() {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "App.tsx:Inner",- message: "Inner component rendering",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C",- }),- }).catch(() => {});- // #endregionconst currentWindow = getCurrentWebviewWindow();createThemeListener(currentWindow);onMount(() => {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "App.tsx:Inner:onMount",- message: "Inner onMount",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C",- }),- }).catch(() => {});- // #endregioninitAnonymousUser();});@@ -173,29 +131,6 @@ function Inner() {const matches = useCurrentMatches();onMount(() => {- // #region agent log- fetch(- "http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23",- {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "App.tsx:Router:root:onMount",- message: "Router root onMount",- data: {- pathname: location.pathname,- matchCount: matches().length,- autoShowFlags: matches().map(- (m) => m.route.info?.AUTO_SHOW_WINDOW,- ),- },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C,D",- }),- },- ).catch(() => {});- // #endregionfor (const match of matches()) {if (match.route.info?.AUTO_SHOW_WINDOW === false) return;}diff --git a/apps/desktop/src/routes/(window-chrome).tsx b/apps/desktop/src/routes/(window-chrome).tsxindex 88ad075eb..f2a78bfc0 100644--- a/apps/desktop/src/routes/(window-chrome).tsx+++ b/apps/desktop/src/routes/(window-chrome).tsx@@ -16,36 +16,7 @@ import {export default function (props: RouteSectionProps) {let unlistenResize: UnlistenFn | undefined;- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "(window-chrome).tsx:render",- message: "WindowChrome component rendering",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C",- }),- }).catch(() => {});- // #endregion-onMount(async () => {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "(window-chrome).tsx:onMount",- message: "WindowChrome onMount",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C",- }),- }).catch(() => {});- // #endregionconsole.log("window chrome mounted");unlistenResize = await initializeTitlebar();if (location.pathname === "/") getCurrentWindow().show();@@ -115,35 +86,7 @@ function Header() {}function Inner(props: ParentProps) {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "(window-chrome).tsx:Inner:render",- message: "Inner component rendering",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "C",- }),- }).catch(() => {});- // #endregiononMount(() => {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "(window-chrome).tsx:Inner:onMount",- message: "Inner onMount, about to show window",- data: { pathname: location.pathname },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "B,C",- }),- }).catch(() => {});- // #endregionif (location.pathname !== "/") getCurrentWindow().show();});diff --git a/apps/desktop/src/routes/(window-chrome)/setup.tsx b/apps/desktop/src/routes/(window-chrome)/setup.tsxindex 5adb3ed3e..cbf4113df 100644--- a/apps/desktop/src/routes/(window-chrome)/setup.tsx+++ b/apps/desktop/src/routes/(window-chrome)/setup.tsx@@ -94,61 +94,9 @@ export default function () {);const handleContinue = () => {- // #region agent log- fetch("http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "setup.tsx:handleContinue",- message: "handleContinue called",- data: {},- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "A",- }),- }).catch(() => {});- // #endregion- commands- .showWindow({ Main: { init_target_mode: null } })- .then(() => {- // #region agent log- fetch(- "http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23",- {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "setup.tsx:handleContinue:then",- message: "showWindow resolved, closing setup",- data: {},- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "A,B",- }),- },- ).catch(() => {});- // #endregion- getCurrentWindow().close();- })- .catch((err) => {- // #region agent log- fetch(- "http://127.0.0.1:7243/ingest/1cff95e2-fcb2-4b1f-a666-2aa2ac4f0e23",- {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- location: "setup.tsx:handleContinue:catch",- message: "showWindow failed",- data: { error: String(err) },- timestamp: Date.now(),- sessionId: "debug-session",- hypothesisId: "A",- }),- },- ).catch(() => {});- // #endregion- });+ commands.showWindow({ Main: { init_target_mode: null } }).then(() => {+ getCurrentWindow().close();+ });};return (diff --git a/apps/desktop/src/routes/editor/Editor.tsx b/apps/desktop/src/routes/editor/Editor.tsxindex 72c51af4c..21db86bf3 100644--- a/apps/desktop/src/routes/editor/Editor.tsx+++ b/apps/desktop/src/routes/editor/Editor.tsx@@ -448,7 +448,7 @@ function Dialogs() {if (time < elapsed + segDuration) {return {index: seg.recordingSegment ?? 0,- localTime: seg.start + (time - elapsed) * seg.timescale,+ localTime: seg.start / seg.timescale + (time - elapsed),};}elapsed += segDuration;diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.tsindex bc1f622b7..4fc7b59e2 100644--- a/apps/desktop/src/routes/editor/context.ts+++ b/apps/desktop/src/routes/editor/context.ts@@ -12,6 +12,7 @@ import {batch,createEffect,createResource,+ createRoot,createSignal,on,onCleanup,@@ -748,6 +749,12 @@ export const [EditorInstanceContextProvider, useEditorInstanceContext] =const [canvasControls, setCanvasControls] =createSignal<CanvasControls | null>(null);+ let disposeWorkerReadyEffect: (() => void) | undefined;++ onCleanup(() => {+ disposeWorkerReadyEffect?.();+ });+const [editorInstance] = createResource(async () => {console.log("[Editor] Creating editor instance...");const instance = await commands.createEditorInstance();@@ -773,8 +780,11 @@ export const [EditorInstanceContextProvider, useEditorInstanceContext] =setCanvasControls(controls);- createEffect(() => {- setIsWorkerReady(workerReady());+ disposeWorkerReadyEffect = createRoot((dispose) => {+ createEffect(() => {+ setIsWorkerReady(workerReady());+ });+ return dispose;});ws.addEventListener("open", () => {