Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

wip

shaik-zeeshan67b25d0ac73c
diff --git a/openrewind/app/globals.css b/openrewind/app/globals.css
index 8be40d03a..9c500a5e1 100644
--- a/openrewind/app/globals.css
+++ b/openrewind/app/globals.css
@@ -108,7 +108,6 @@
@layer base {
* {
@apply border-border;
- scrollbar-width: thin !important;
}
body {
@apply bg-background text-foreground !pointer-events-auto !overscroll-none;
@@ -129,6 +128,17 @@
user-select: none;
/* cursor: default; */
}
+
+ .scrollbar-hide {
+ -ms-overflow-style: none; /* IE and Edge */
+ scrollbar-width: none; /* Firefox */
+ }
+
+ .scrollbar-hide::-webkit-scrollbar {
+ display: none; /* Chrome, Safari and Opera */
+ }
+
+
}
.pf-v6-c-text-input-group__text-input {
@@ -155,3 +165,4 @@
line-height: 21px !important;
position: absolute !important;
}
+
diff --git a/openrewind/app/layout.tsx b/openrewind/app/layout.tsx
index 1dab4e9c7..5f0cafa14 100644
--- a/openrewind/app/layout.tsx
+++ b/openrewind/app/layout.tsx
@@ -63,7 +63,7 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<Providers>
- <body className={inter.className}>
+ <body className={`${inter.className} scrollbar-hide`}>
{children}
<Toaster />
</body>
diff --git a/openrewind/app/page.tsx b/openrewind/app/page.tsx
index ff8166f5d..92cb5543c 100644
--- a/openrewind/app/page.tsx
+++ b/openrewind/app/page.tsx
@@ -166,7 +166,7 @@ export default function Home() {
}, []);
return (
- <div className="flex flex-col items-center flex-1 mx-auto relative">
+ <div className="flex flex-col items-center flex-1 mx-auto relative scrollbar-hide">
<LoginDialog />
<ModelDownloadTracker />
<NotificationHandler />
@@ -176,8 +176,7 @@ export default function Home() {
<>
<ChangelogDialog />
{/* <BreakingChangesInstructionsDialog /> */}
- <Header />
- <div className="w-full">
+ <div className="w-full scrollbar-hide">
<Timeline />
</div>
</>
diff --git a/openrewind/components/rewind/timeline.tsx b/openrewind/components/rewind/timeline.tsx
index 81ef33735..d42af273c 100644
--- a/openrewind/components/rewind/timeline.tsx
+++ b/openrewind/components/rewind/timeline.tsx
@@ -331,24 +331,19 @@ export default function Timeline() {
msUserSelect: "none",
}}
>
- <div className="absolute top-4 left-1/2 -translate-x-1/2 z-50">
+ <div className="absolute z-50 top-4 w-full">
<div className="flex items-center gap-4">
<TimelineControls
currentDate={currentDate}
startAndEndDates={startAndEndDates}
onDateChange={handleDateChange}
onJumpToday={handleJumpToday}
- className="shadow-lg"
/>
{/* <TimelineSearch2
frames={frames}
onResultSelect={animateToIndex}
onSearchResults={setSearchResults}
/> */}
- <div>
- <CommandShortcut>⌘K</CommandShortcut>{" "}
- <span className="text-xs text-muted-foreground">to search</span>
- </div>
</div>
</div>
diff --git a/openrewind/components/rewind/timeline/timeline-controls.tsx b/openrewind/components/rewind/timeline/timeline-controls.tsx
index ef53fa890..7af993e4b 100644
--- a/openrewind/components/rewind/timeline/timeline-controls.tsx
+++ b/openrewind/components/rewind/timeline/timeline-controls.tsx
@@ -1,24 +1,60 @@
"use client";
import { Button } from "@/components/ui/button";
-import { ChevronLeft, ChevronRight, RefreshCw } from "lucide-react";
+import { ChevronLeft, ChevronRight, RefreshCw, Mail, User, Settings2, Book, Heart, Play, Folder } from "lucide-react";
import {
endOfDay,
format,
isAfter,
- isSameDay,
startOfDay,
subDays,
} from "date-fns";
import { cn } from "@/lib/utils";
import { motion, AnimatePresence } from "framer-motion";
-import { useMemo } from "react";
+import { useMemo, useState } from "react";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuGroup,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@/components/ui/dropdown-menu";
+import { open } from "@tauri-apps/plugin-shell";
+import HealthStatus from "@/components/screenpipe-status";
+import { Settings } from "@/components/settings";
+import { ShareLogsButton } from "@/components/share-logs-button";
+import { useOnboarding } from "@/lib/hooks/use-onboarding";
+import { useChangelogDialog } from "@/lib/hooks/use-changelog-dialog";
+import { useSettingsDialog } from "@/lib/hooks/use-settings-dialog";
+
+import { CommandShortcut } from "@/components/ui/command";
interface TimeRange {
start: Date;
end: Date;
}
+interface InboxMessageAction {
+ label: string;
+ action: string;
+}
+
+interface Message {
+ id: string;
+ title: string;
+ body: string;
+ date: string;
+ read: boolean;
+ actions?: InboxMessageAction[];
+}
+
interface TimelineControlsProps {
startAndEndDates: TimeRange;
currentDate: Date;
@@ -27,6 +63,8 @@ interface TimelineControlsProps {
className?: string;
}
+
+
export function TimelineControls({
startAndEndDates,
currentDate,
@@ -34,6 +72,12 @@ export function TimelineControls({
onJumpToday,
className,
}: TimelineControlsProps) {
+ const [isFeedbackOpen, setIsFeedbackOpen] = useState(false);
+
+ const { setShowOnboarding } = useOnboarding();
+ const { setShowChangelogDialog } = useChangelogDialog();
+ const { setIsOpen: setSettingsOpen } = useSettingsDialog();
+
const jumpDay = async (days: number) => {
const today = new Date();
@@ -67,59 +111,159 @@ export function TimelineControls({
return (
<div
className={cn(
- "flex items-center gap-2 p-2 bg-muted/50 rounded-md",
+ "flex items-center justify-between w-full p-2 rounded-md",
className,
)}
>
- <Button
- variant="ghost"
- size="icon"
- onClick={() => jumpDay(-1)}
- className="h-8 w-8"
- disabled={canGoBack}
- >
- <ChevronLeft className="h-4 w-4" />
- </Button>
-
- <AnimatePresence mode="wait">
- <motion.div
- key={currentDate.toISOString()}
- initial={{ y: -20, opacity: 0 }}
- animate={{ y: 0, opacity: 1 }}
- exit={{ y: 20, opacity: 0 }}
- transition={{
- type: "spring",
- stiffness: 500,
- damping: 30,
- duration: 0.2,
- }}
- className="bg-background border rounded px-3 py-1 text-sm font-mono"
+ {/* Empty left section for balance */}
+ <div className="flex-1" />
+
+ {/* Center section - Timeline controls */}
+ <div className="flex items-center gap-2">
+ <div className="flex items-center gap-2 bg-muted/50 rounded-md p-2 shadow-lg">
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => jumpDay(-1)}
+ className="h-8 w-8"
+ disabled={canGoBack}
>
- {format(currentDate, "d MMM yyyy")}
- </motion.div>
- </AnimatePresence>
-
- <Button
- variant="ghost"
- size="icon"
- onClick={() => jumpDay(1)}
- className="h-8 w-8"
- disabled={isAtToday}
- >
- <ChevronRight className="h-4 w-4" />
- </Button>
-
- <div className="h-4 w-px bg-border mx-2" />
-
- <Button
- variant="ghost"
- size="icon"
- onClick={onJumpToday}
- className="h-8 w-8"
- disabled={isAtToday}
- >
- <RefreshCw className="h-4 w-4" />
- </Button>
+ <ChevronLeft className="h-4 w-4" />
+ </Button>
+
+ <AnimatePresence mode="wait">
+ <motion.div
+ key={currentDate.toISOString()}
+ initial={{ y: -20, opacity: 0 }}
+ animate={{ y: 0, opacity: 1 }}
+ exit={{ y: 20, opacity: 0 }}
+ transition={{
+ type: "spring",
+ stiffness: 500,
+ damping: 30,
+ duration: 0.2,
+ }}
+ className="bg-background border rounded px-3 py-1 text-sm font-mono"
+ >
+ {format(currentDate, "d MMM yyyy")}
+ </motion.div>
+ </AnimatePresence>
+
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => jumpDay(1)}
+ className="h-8 w-8"
+ disabled={isAtToday}
+ >
+ <ChevronRight className="h-4 w-4" />
+ </Button>
+
+ <div className="h-4 w-px bg-border mx-2" />
+
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={onJumpToday}
+ className="h-8 w-8"
+ disabled={isAtToday}
+ >
+ <RefreshCw className="h-4 w-4" />
+ </Button>
+ </div>
+ <div>
+ <CommandShortcut>⌘K</CommandShortcut>{" "}
+ <span className="text-xs text-muted-foreground">to search</span>
+ </div>
+ </div>
+
+ {/* Right section - Header elements */}
+ <div className="flex items-center gap-2 flex-1 justify-end">
+ <Popover open={isFeedbackOpen} onOpenChange={setIsFeedbackOpen}>
+ <PopoverTrigger asChild>
+ <Button variant="outline" size="sm">
+ <Mail className="h-3.5 w-3.5 mr-2" />
+ feedback
+ </Button>
+ </PopoverTrigger>
+ <PopoverContent className="w-100 rounded-2xl">
+ <ShareLogsButton
+ showShareLink={false}
+ onComplete={() => setIsFeedbackOpen(false)}
+ />
+ </PopoverContent>
+ </Popover>
+
+ <HealthStatus className="cursor-pointer" />
+ <Settings />
+
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button
+ variant="ghost"
+ size="icon"
+ className="cursor-pointer h-8 w-8 p-0"
+ >
+ <User className="h-4 w-4" />
+ <span className="sr-only">user menu</span>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuLabel>account</DropdownMenuLabel>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup>
+ <DropdownMenuItem
+ onSelect={(e) => {
+ e.preventDefault();
+ setSettingsOpen(true);
+ }}
+ className="cursor-pointer p-1.5"
+ >
+ <Settings2 className="mr-2 h-4 w-4" />
+ <span>settings</span>
+ </DropdownMenuItem>
+ </DropdownMenuGroup>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() => open("https://docs.screenpi.pe")}
+ >
+ <Book className="mr-2 h-4 w-4" />
+ <span>check docs</span>
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() =>
+ open(
+ "https://twitter.com/intent/tweet?text=here's%20how%20i%20use%20@screen_pipe%20...%20%5Bscreenshot%5D%20an%20awesome%20tool%20for%20..."
+ )
+ }
+ >
+ <Heart className="mr-2 h-4 w-4" />
+ <span>support us</span>
+ </DropdownMenuItem>
+ </DropdownMenuGroup>
+ <DropdownMenuSeparator />
+ <DropdownMenuGroup>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() => setShowOnboarding(true)}
+ >
+ <Play className="mr-2 h-4 w-4" />
+ <span>show onboarding</span>
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ className="cursor-pointer"
+ onClick={() => setShowChangelogDialog(true)}
+ >
+ <Folder className="mr-2 h-4 w-4" />
+ <span>show changelog</span>
+ </DropdownMenuItem>
+ </DropdownMenuGroup>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
</div>
);
-}
+}
\ No newline at end of file
diff --git a/openrewind/components/rewind/timeline/timeline.tsx b/openrewind/components/rewind/timeline/timeline.tsx
index 7bd3dff15..b51562c58 100644
--- a/openrewind/components/rewind/timeline/timeline.tsx
+++ b/openrewind/components/rewind/timeline/timeline.tsx
@@ -212,7 +212,7 @@ export const TimelineSlider = ({
}}
>
<motion.div
- className="whitespace-nowrap flex flex-nowrap w-max justify-center px-[50vw] h-40 sticky right-0"
+ className="whitespace-nowrap flex flex-nowrap w-max justify-center px-[50vw] h-40 sticky right-0 scrollbar-hide"
onMouseUp={handleDragEnd}
onMouseLeave={handleDragEnd}
>
diff --git a/openrewind/src-tauri/src/main.rs b/openrewind/src-tauri/src/main.rs
index 54223db1f..562ca2a4b 100755
--- a/openrewind/src-tauri/src/main.rs
+++ b/openrewind/src-tauri/src/main.rs
@@ -107,7 +107,7 @@ impl ShortcutConfig {
Ok(Self {
show: store
- .get("showScreenpipeShortcut")
+ .get("showOpenRewindShortcut")
.and_then(|v| v.as_str().map(String::from))
.unwrap_or_else(|| "Super+Alt+S".to_string()),
start: store
@@ -359,7 +359,7 @@ fn get_data_dir(app: &tauri::AppHandle) -> anyhow::Result<PathBuf> {
let store = get_store(app, None)?;
- let default_path = app.path().home_dir().unwrap().join(".screenpipe");
+ let default_path = app.path().home_dir().unwrap().join(".openrewind");
let data_dir = store
.get("dataDir")
@@ -630,12 +630,12 @@ async fn main() {
// Set up rolling file appender
let file_appender = RollingFileAppender::builder()
.rotation(Rotation::DAILY)
- .filename_prefix("screenpipe-app")
+ .filename_prefix("openrewind-app")
.filename_suffix("log")
.max_log_files(5)
.build(
get_data_dir(app.handle())
- .unwrap_or_else(|_| dirs::home_dir().unwrap().join(".screenpipe")),
+ .unwrap_or_else(|_| dirs::home_dir().unwrap().join(".openrewind")),
)?;
// Create a custom layer for file logging
@@ -736,7 +736,7 @@ async fn main() {
let update_manager = start_update_check(&app_handle, 5)?;
// Setup tray
- if let Some(_) = app_handle.tray_by_id("screenpipe_main") {
+ if let Some(_) = app_handle.tray_by_id("openrewind_main") {
let update_item = update_manager.update_now_menu_item_ref().clone();
if let Err(e) = tray::setup_tray(&app_handle, &update_item) {
error!("Failed to setup tray: {}", e);