Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
fix: keep launch-at-login on, age card times, and put image files only in Images
Deepender25cfbe4e3d3bc7
diff --git a/README.md b/README.mdindex 3141a5e..fc39a85 100644--- a/README.md+++ b/README.md@@ -365,9 +365,7 @@ npm run build:store # outputs an MSIX .appx for Microsoft Store submission- **HD Anti-Aliased Curved Edges**: GPU layer promotion (`transform: translateZ(0)`), `-webkit-background-clip: padding-box`, and smooth vector rasterization delivering 100% HD anti-aliased curved borders across all display scales.- **Tactile Micro-Interactions & Spring Motion**: Card hover 2px lift with ambient backlight glow, micro radial copy ripple effect, and smooth Framer Motion `layoutId` spring list reflow (`stiffness: 500`, `damping: 32`).- **Refined Obsidian Aesthetics & Multi-Layer Depth**: Dual-layer 3D glass hairline highlights (`inset 0 1px 0 rgba(255, 255, 255, 0.12)`) and dual typography hierarchy (monospaced *JetBrains Mono* metadata + *Inter/SF Pro* system title font stack).-- **Ergonomic Card Action Bar & Safety Guard**: Re-ordered card actions (`Pin`, `Expand`, `Copy`, `Open Link`, `Divider`, `Delete`) with a physical safety hairline divider and 100% layout consistency across normal hover and preview mode.-- **What's New Release History View**: Integrated in-app release notes timeline viewer (`ChangelogView.tsx`) connected to live GitHub Releases API with pure formatted text highlights and zero-lag offline fallbacks.-- **Lucide-React Vector Icon Suite**: Powered by official `lucide-react` vector icons for crisp graphics across headers, item cards, and settings.+- **What's New Web Changelog**: Direct link from the header and settings footer to the official release notes and changelog timeline at [edgedrop.app/changelog](https://www.edgedrop.app/changelog).- **Dynamic Preview Flyout**: Responsive layout for single files and multi-file collections with calibrated hover boundary tracking.- **Customizable Copy Indicator Styles**: Select from 4 vector copy indicators (**Edge-Drop Logo**, **Tick**, **Copy**, and **Sparkle**) in a 2x2 grid flyout selector.- **Universal Click-to-Paste**: Click any text snippet, image thumbnail, or file tile inside Preview Flyout to instantly paste into active desktop applications.@@ -454,7 +452,7 @@ Edge-Drop/│ ├─ settings.ts User config & startup registration│ └─ paths.ts AppData + temp directory resolution├─ src/ React renderer-│ ├─ components/ Panel, ItemList, ClipboardItem, SearchBar, Settings, HotkeyRecorder, ChangelogView, Icons+│ ├─ components/ Panel, ItemList, ClipboardItem, SearchBar, Settings, HotkeyRecorder, Icons│ ├─ hooks/ useEdgeHover (hysteresis), useDragOut, useFilteredItems│ ├─ lib/ soundEffects (Web Audio API), theme tokens, format helpers│ ├─ store/ Zustand appStorediff --git a/electron/main/ipc.ts b/electron/main/ipc.tsindex 2a3e89a..2f89f80 100644--- a/electron/main/ipc.ts+++ b/electron/main/ipc.ts@@ -218,15 +218,6 @@ export function registerIpc(): void {app.quit()})- handle('app:get-releases', async () => {- if (_releasesCache) {- // Re-validate in background asynchronously without blocking UI render- fetchAndCacheReleases().catch(() => {})- return _releasesCache- }- return fetchAndCacheReleases()- })-handle('file:reveal', (filePath) => {if (isExistingFilePath(filePath)) {try {@@ -904,347 +895,3 @@ export async function writeItemToClipboard(data: ItemData, capturedAt?: number):return writeFileListToClipboard(data.paths)}}--/** Parses raw GitHub markdown release notes into clean plain text highlights (stripping image/video/HTML tags). */-function parseReleaseBodyToCleanText(body: string): { summary: string; highlights: Array<{ title: string; description: string }> } {- // 1. Strip images, videos, and raw HTML tags completely (pure plain text)- const clean = body- .replace(/!\[.*?\]\(.*?\)/g, '') // Strip markdown images - .replace(/<img[^>]*>/gi, '') // Strip HTML img tags- .replace(/<video[^>]*>.*?<\/video>/gi, '') // Strip HTML video tags- .replace(/<[^>]+>/g, '') // Strip any remaining HTML tags-- const lines = clean.split(/\r?\n/).map(l => l.trim()).filter(Boolean)- let summary = ''- const highlights: Array<{ title: string; description: string }> = []-- for (const line of lines) {- if (line.startsWith('#') || line.startsWith('>')) {- const text = line.replace(/^[#>\s]+/, '').trim()- if (!summary && text && !text.toLowerCase().includes('what\'s changed') && !text.toLowerCase().includes('full changelog')) {- summary = text- }- continue- }-- if (line.startsWith('-') || line.startsWith('*') || line.startsWith('•') || /^\d+\./.test(line)) {- const content = line.replace(/^[-*•\d.\s]+/, '').trim()- if (!content) continue-- const boldMatch = content.match(/^\*\*(.*?)\*\*[\s:-]*(.*)/)- if (boldMatch) {- const title = boldMatch[1].trim()- const description = boldMatch[2].trim()- if (title) {- highlights.push({ title, description: description || title })- continue- }- }-- const colonIdx = content.indexOf(':')- if (colonIdx > 0 && colonIdx < 45) {- const title = content.substring(0, colonIdx).trim()- const description = content.substring(colonIdx + 1).trim()- if (title) {- highlights.push({ title, description: description || title })- continue- }- }-- highlights.push({ title: content, description: '' })- } else if (!summary && line.length > 10) {- summary = line- }- }-- return {- summary: summary || 'Latest updates and fixes.',- highlights: highlights.length > 0 ? highlights : [{ title: 'Bug Fixes & Performance Enhancements', description: 'Includes minor bug fixes and stability improvements.' }]- }-}--const STATIC_CHANGELOG_FALLBACK = [- {- version: 'v0.3.0',- date: 'Aug 26, 2026',- isLatest: true,- summary: 'Smarter multi-monitor edge activation, cleaner drag-and-drop handling, larger file stack previews with animated GIF support, silky smooth scrolling, and improved startup reliability.',- highlights: [- {- title: 'Smarter Multi-Monitor Edge Opening',- description: 'Moving between multiple displays is smooth and natural. Edge-Drop distinguishes passing across screens from intentionally stopping at the edge to open your shelf.'- },- {- title: 'Cleaner Drag & Drop Experience',- description: 'Returning items back onto the shelf is a clean no-op without duplicating files, splitting card stacks, or bumping usage counts.'- },- {- title: 'Bigger File Stack Previews & Animated GIFs',- description: 'Grouped file cards feature 20% larger preview tiles with folder styling, animated GIF playback, and clean outside-click folding.'- },- {- title: 'Silky Smooth Scrolling & Motion',- description: 'Browsing long clipboard histories stays completely fluid and responsive with hardware-accelerated animations for pinning, filtering, and previews.'- },- {- title: 'Original File & Image Names',- description: 'Images and files added to Edge-Drop preserve their original filenames when dragged into other applications or saved to disk.'- },- {- title: 'Reliable Startup After Updates',- description: 'Launch at Login preferences persist seamlessly across automatic updates without manual re-configuration.'- }- ]- },- {- version: 'v0.2.9',- date: 'Aug 20, 2026',- isLatest: false,- summary: 'Customizable shortcut, selective history clearing, pastel file icons, and smoother deletion animations.',- highlights: [- {- title: 'Custom Global Shortcut',- description: 'Customize the shelf toggle hotkey (defaults to Alt+C) directly in Settings.'- },- {- title: 'Selective History Clearing',- description: 'Clear history by time window (1h, 6h, 24h) or clear only the active category (Images, Files, etc.).'- },- {- title: 'Pastel File Icons',- description: 'New vector icons for folders, code, spreadsheets, PDFs, documents, and media files.'- },- {- title: 'Smoother Item Removal',- description: 'Deleting items now collapses smoothly without leaving empty gaps.'- },- {- title: 'Windows Snipping Tool Integration',- description: 'Screenshots taken with Win+Shift+S are automatically captured with clean file names.'- }- ]- },- {- version: 'v0.2.7',- date: 'Aug 13, 2026',- isLatest: false,- summary: 'Disk-backed on-demand text payloads, image thumbnailing, RAM footprint stabilization (~130 MB), universal drag-and-drop vault, zero-cost URL previews, and Windows OS integration fixes.',- highlights: [- {- title: 'Disk-Backed Payloads & RAM Footprint Stabilization',- description: 'Large text entries (>300 chars) are stored as disk payload files, locking operational RAM down to ~130 MB–160 MB with zero copy/paste latency.'- },- {- title: 'Image Thumbnailing Protocol (edgelocal://thumb/)',- description: 'History cards now render 240px custom thumbnails instead of multi-megapixel raw images, preventing Chromium GPU memory bloat.'- },- {- title: 'Windows Home Screen & Fullscreen Detection Fix',- description: 'Differentiates Windows Desktop/Home Screen shell focus from full-screen games via Win32 API window class filtering, enabling smooth edge opening on the Home Screen.'- },- {- title: 'Self-Healing Launch at Login Sync',- description: 'Unconditionally synchronizes Windows Registry startup entries with live binary paths and --hidden flags after every app update.'- },- {- title: 'Universal Drag-and-Drop & Zero-Cost URL Previews',- description: 'Drag text, links, web images, and files directly into Edge-Drop, with offline rich URL link preview cards and favicons.'- }- ]- },- {- version: 'v0.2.6',- date: 'Aug 05, 2026',- isLatest: false,- summary: 'Performance optimizations, redesigned settings footer, custom support portal integration, and enhanced 30-language typography.',- highlights: [- {- title: 'Performance Improvements',- description: 'Removed CPU blur effects across UI components for smoother panel opening and scrolling.'- },- {- title: 'Settings UI & Navigation Redesign',- description: 'Reordered settings footer to place the Support section above the Quit button, redesigned buttons into matching pill shapes with a soft pastel red support button, and simplified Quit into a low-profile bottom button.'- },- {- title: 'Official Support Portal Integration',- description: 'Updated support link to open official Edge-Drop support page supporting both International Ko-fi and Indian UPI options.'- },- {- title: 'Localization & Typography Enhancements',- description: 'Updated filter category labels across 30 languages with shorter native terms and added dynamic font scaling so filter text fits cleanly without overlapping.'- }- ]- },- {- version: 'v0.2.5',- date: 'Aug 03, 2026',- isLatest: false,- summary: 'Full 30-language localization with auto-scroll selector, powerMonitor sleep/wake protection, text size typography settings, and multi-file action bar.',- highlights: [- {- title: 'Complete 30-Language Localization & Smart Language Selector',- description: 'Implemented full translation dictionaries across 30 languages, added RTL layout support for Arabic and Hebrew, integrated audio haptics, and added auto-scrolling to position the selected language in the dropdown viewport.'- },- {- title: 'Laptop Sleep & Unlock Protection',- description: 'Eliminated false Copy Indicator activations when opening laptop lid or unlocking screen using native powerMonitor lifecycle handlers.'- },- {- title: 'Text Size Typography Scale Setting',- description: 'Added customizable typography scale settings (Small, Normal, Medium, Large) applying dynamic font scaling across the app.'- },- {- title: 'Multi-File Selection & Preview Action Bar',- description: 'Added tap-to-toggle multi-file selection with a batch action bar (Select All, Copy Selected, Paste Selected, Clear Selection).'- }- ]- },- {- version: 'v0.2.2',- date: 'Jul 29, 2026',- isLatest: false,- summary: 'Stationary 3-category Settings navigation, Web Audio API haptic sound suite, edge trigger alignment presets, and magnetic 5% tick slider.',- highlights: [- {- title: 'Stationary 3-Category Settings Navigation',- description: 'Organized Settings into three clean tabs (Behaviour, Position, Appearance) with a stationary header and independent scroll position memory per section.'- },- {- title: 'Synthesized Web Audio Haptic Suite',- description: 'Zero-asset Web Audio API sound engine providing tactile audio feedback for dial ticks, button clicks, toggle pops, and mechanical delete thuds.'- },- {- title: 'Independent Edge Trigger Alignment & Proximity Beacon',- description: 'Choose Top, Center, or Bottom trigger strip placement with dynamic clipPath alignment, alongside an edge location hint hairline pulse.'- },- {- title: '5% Magnetic Tick Slider & Quit Action',- description: 'Continuous 0.002 1-to-1 real-time drag tracking with magnetic 5% snapping on release, plus an integrated Quit Edge-Drop button.'- }- ]- },- {- version: 'v0.2.1',- date: 'Jul 28, 2026',- isLatest: false,- summary: 'Cross-reboot multi-monitor display persistence, 5-category macOS segmented filter control, unified image classification, and HD anti-aliased curved edges.',- highlights: [- {- title: 'Cross-Reboot Display Persistence',- description: '4-tier display resolution pipeline (geometry fuzzy-matching) remembers your chosen monitor across device restarts with an automatic primary display fallback.'- },- {- title: '5-Category Segmented Filter Bar',- description: 'Integrated All, Text, Links, Images, and Files quick filter chips with a persistent sliding spring pill and zero shape distortion.'- },- {- title: 'Unified Image Entity Classification',- description: 'Native screenshots (Win+Shift+S) and copied image files (.png, .jpg, .webp, .svg) are unified under the Images filter tab.'- },- {- title: 'HD Anti-Aliased Curved Edges',- description: 'GPU layer promotion (transform: translateZ(0)) and padding-box clipping deliver crisp, vector-smooth curved borders across all display scales.'- }- ]- },- {- version: 'v0.2.0',- date: 'Jul 26, 2026',- isLatest: false,- summary: 'Silent background auto-updater, GitHub Releases changelog synchronization, and glassmorphic pinned deck.',- highlights: [- {- title: 'Silent Background Auto-Updater',- description: 'GitHub releases feature silent background downloading and a single-click Restart to Update installation button.'- },- {- title: 'Microsoft Store Build Isolation',- description: 'Isolated build pipelines ensure Microsoft Store (MSIX) builds remain 100% compliant with Store policies.'- },- {- title: 'Direct URL Launcher',- description: 'Added quick action buttons to launch links in your default web browser directly from item cards and preview flyouts.'- },- {- title: 'Pinned Items Deck Container',- description: 'Encapsulated pinned items inside a dedicated deck container with smooth spring height animations.'- }- ]- },- {- version: 'v0.1.5',- date: 'Jul 24, 2026',- isLatest: false,- summary: 'Customizable Copy Indicator styles with a 2x2 grid selector flyout alongside panel hover stability fixes.',- highlights: [- {- title: 'Four Vector Indicator Options',- description: 'Added support for 4 customizable copy indicator styles including Logo, Tick, Copy, and Sparkle.'- },- {- title: 'Balanced 2x2 Grid Flyout Selector',- description: 'Integrated a 2x2 grid selector flyout inside Settings under Indicator Style for quick previews.'- }- ]- }-]--let _releasesCache: Array<{- version: string- date: string- isLatest: boolean- summary: string- highlights: Array<{ title: string; description: string }>-}> | null = null--async function fetchAndCacheReleases() {- try {- const response = await fetch('https://api.github.com/repos/Deepender25/Edge-Drop/releases', {- headers: { 'User-Agent': 'Edge-Drop-App' },- signal: AbortSignal.timeout(12000)- })- if (!response.ok) {- return _releasesCache || STATIC_CHANGELOG_FALLBACK- }- const data = (await response.json()) as any[]- if (!Array.isArray(data) || data.length === 0) {- return _releasesCache || STATIC_CHANGELOG_FALLBACK- }-- const parsed = data.slice(0, 10).map((rel, index) => {- const tag = rel.tag_name || rel.name || `v0.1.${index}`- const dateStr = rel.published_at- ? new Date(rel.published_at).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })- : ''-- const rawBody = rel.body || ''- const { summary, highlights } = parseReleaseBodyToCleanText(rawBody)-- return {- version: tag.startsWith('v') ? tag : `v${tag}`,- date: dateStr,- isLatest: index === 0,- summary: summary || `Release ${tag}`,- highlights- }- })-- _releasesCache = parsed- return parsed- } catch {- console.log('[IPC] GitHub releases fetch offline or timed out; using static fallback.')- return _releasesCache || STATIC_CHANGELOG_FALLBACK- }-}--// Background pre-fetch 3 seconds after startup ONLY if autoUpdates is enabled-setTimeout(() => {- if (loadSettings().autoUpdates !== false) {- fetchAndCacheReleases().catch(() => {})- } else {- console.log('[IPC] Automatic updates disabled by setting; using bundled static release notes.')- }-}, 3000)--diff --git a/electron/main/loginItems.ts b/electron/main/loginItems.tsindex b291818..910f567 100644--- a/electron/main/loginItems.ts+++ b/electron/main/loginItems.ts@@ -152,6 +152,54 @@ export function isGithubRunKeyHealthy(exePath?: string): boolean {}}+export const STARTUP_APPROVED_KEY =+ 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartupApproved\\Run'++/**+ * Check whether Windows Task Manager / Windows Settings has disabled this startup item.+ * Windows stores startup item approval in StartupApproved\Run as a REG_BINARY.+ * If the value is missing, the item is approved (enabled).+ * If the value exists, the first byte indicates state:+ * - 0x02: Enabled+ * - 0x03 (or any odd number): Disabled by user+ */+export function isBlockedInStartupApproved(name: string): boolean {+ if (process.platform !== 'win32') return false+ try {+ const out = execFileSync(+ 'reg',+ ['query', STARTUP_APPROVED_KEY, '/v', name],+ { windowsHide: true, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }+ ) as unknown as string+ const m = String(out ?? '').match(/REG_BINARY\s+([0-9a-fA-F]+)/)+ if (!m) return false+ const hex = m[1]+ if (!hex || hex.length < 2) return false+ const firstByte = parseInt(hex.slice(0, 2), 16)+ return firstByte !== 2 && (firstByte & 1) !== 0+ } catch {+ // Missing key or value means Windows defaults to enabled (not blocked).+ return false+ }+}++/**+ * Clear any disabled flag in StartupApproved\Run so Windows allows the item to launch.+ */+export function clearStartupApprovedBlock(name: string): boolean {+ if (process.platform !== 'win32') return true+ try {+ execFileSync(+ 'reg',+ ['delete', STARTUP_APPROVED_KEY, '/v', name, '/f'],+ { windowsHide: true, stdio: 'ignore' }+ )+ return true+ } catch {+ return true+ }+}+function resultFromState(state: number | null, wantEnabled?: boolean): LaunchAtLoginResult {if (state === null) {if (wantEnabled === undefined) {@@ -180,24 +228,58 @@ function collectGithubLoginNames(exePath: string): Set<string> {return names}-function readGithubLaunchAtLogin(): LaunchAtLoginResult {+export function readGithubLaunchAtLogin(): LaunchAtLoginResult {const exePath = app.getPath('exe')- const seen = app.getLoginItemSettings({- path: exePath,- args: ['--hidden']- })- const items = seen.launchItems ?? []- const ours = items.filter((item) => isOurLoginExe(item.path, exePath))- const anyEnabled = ours.some((item) => item.enabled)- const enabled = anyEnabled || !!seen.executableWillLaunchAtLogin- return {- enabled,- blockedByUser: ours.length > 0 && !anyEnabled && ours.some((item) => !item.enabled) && !seen.executableWillLaunchAtLogin,- ok: true++ // Windows NSIS / portable builds: Read registry directly as authoritative source.+ // Electron's getLoginItemSettings() fails to match paths containing spaces (e.g. "Renato Souza")+ // and quoted arguments, returning false negatives that cause UI toggles to flap OFF.+ if (process.platform === 'win32') {+ let foundName: string | null = null+ let rawCmd: string | null = null++ for (const name of GITHUB_LOGIN_ITEM_NAMES) {+ const cmd = getRawGithubRunCommand(name)+ if (cmd && isOurLoginExe(cmd, exePath)) {+ foundName = name+ rawCmd = cmd+ break+ }+ }++ if (rawCmd && foundName) {+ if (isBlockedInStartupApproved(foundName)) {+ return { enabled: false, blockedByUser: true, ok: true }+ }+ return { enabled: true, blockedByUser: false, ok: true }+ }+ }++ // Fallback to Electron's getLoginItemSettings:+ // 1) On non-Windows platforms+ // 2) In test environments where `reg` is mocked out or returns null but `getLoginItemSettings` is mocked+ try {+ const seen = app.getLoginItemSettings({+ path: exePath,+ args: ['--hidden']+ })+ const items = seen.launchItems ?? []+ const ours = items.filter((item) => isOurLoginExe(item.path, exePath))+ const anyEnabled = ours.some((item) => item.enabled)+ const enabled = anyEnabled || !!seen.executableWillLaunchAtLogin+ const blockedByUser =+ ours.length > 0 && !anyEnabled && ours.some((item) => !item.enabled) && !seen.executableWillLaunchAtLogin+ return {+ enabled,+ blockedByUser,+ ok: true+ }+ } catch {+ return { enabled: false, blockedByUser: false, ok: false }}}-function applyGithubLaunchAtLogin(wantLaunch: boolean): LaunchAtLoginResult {+export function applyGithubLaunchAtLogin(wantLaunch: boolean): LaunchAtLoginResult {const exePath = app.getPath('exe')const names = collectGithubLoginNames(exePath)@@ -221,11 +303,16 @@ function applyGithubLaunchAtLogin(wantLaunch: boolean): LaunchAtLoginResult {const raw = getRawGithubRunCommand(name)if (raw !== null && !isRunValueHealthy(raw, exePath)) {deleteRawGithubRunValue(name)+ clearStartupApprovedBlock(name)}} catch {/* ignore */}}++ // Clear any previous disable block in Windows StartupApproved for Edge-Drop+ clearStartupApprovedBlock(CANONICAL_LOGIN_ITEM_NAME)+try {app.setLoginItemSettings({openAtLogin: true,@@ -237,23 +324,21 @@ function applyGithubLaunchAtLogin(wantLaunch: boolean): LaunchAtLoginResult {} catch (err) {console.error('[LoginItems] setLoginItemSettings enable failed:', err)}+// Electron writes an unquoted path. Re-write quoted so usernames with// spaces launch. This is the authoritative write — Electron's value is// only a compatibility shim from here on.const quotedOk = writeQuotedGithubRunCommand(exePath)const read = readGithubLaunchAtLogin()if (read.blockedByUser) return { ...read, ok: false }+// Verify the on-disk value is actually healthy. When `reg` is blocked// (AV/policy) the Electron API can still report enabled while Windows// would fail to launch — treat that as not-ok so the UI can retry.try {if (!isGithubRunKeyHealthy(exePath)) {- // If we could not even write the key, report failure. If the key- // is missing only because `reg query` is mocked/unavailable in- // tests (returns null) but Electron reports enabled, preserve the- // historical optimistic success so first-run toggles don't bounce.const raw = getRawGithubRunCommand(CANONICAL_LOGIN_ITEM_NAME)- if (raw !== null) {+ if (raw !== null && !isRunValueHealthy(raw, exePath)) {return { enabled: false, blockedByUser: false, ok: false }}if (!quotedOk) {@@ -276,11 +361,18 @@ function applyGithubLaunchAtLogin(wantLaunch: boolean): LaunchAtLoginResult {} catch {/* ignore */}+ try {+ deleteRawGithubRunValue(name)+ clearStartupApprovedBlock(name)+ } catch {+ /* ignore */+ }}// Ensure the canonical raw value is gone so a later enable starts clean// and Task Manager never lists a disabled ghost. Best-effort only.try {deleteRawGithubRunValue(CANONICAL_LOGIN_ITEM_NAME)+ clearStartupApprovedBlock(CANONICAL_LOGIN_ITEM_NAME)} catch {/* ignore */}@@ -350,6 +442,20 @@ export async function reconcileLaunchAtLoginOnStartup(): Promise<Settings> {}if (settings.launchAtLogin === false && os.enabled) {+ // GitHub recovery check:+ // If user has settings=false, but the Run key exists for Edge-Drop and is NOT blocked by user:+ // This happens when 0.3.1's false-negative poll bug erroneously saved launchAtLogin: false.+ // Self-heal: restore settings to true and ensure key is properly quoted!+ if (!isStoreBuild()) {+ const exe = app.getPath('exe')+ const raw = getRawGithubRunCommand(CANONICAL_LOGIN_ITEM_NAME)+ if (raw && isOurLoginExe(raw, exe) && !isBlockedInStartupApproved(CANONICAL_LOGIN_ITEM_NAME)) {+ console.log('[LoginItems] Recovering launchAtLogin from existing active Run key')+ applyGithubLaunchAtLogin(true)+ return saveSettings({ launchAtLogin: true })+ }+ }+const applied = await applyLaunchAtLogin(false)if (applied.enabled !== settings.launchAtLogin) {return saveSettings({ launchAtLogin: applied.enabled })diff --git a/electron/preload/index.ts b/electron/preload/index.tsindex 4c4bc1a..e3ec660 100644--- a/electron/preload/index.ts+++ b/electron/preload/index.ts@@ -203,7 +203,6 @@ const api = {mergeItems: (sourceId: string, targetId: string) => invoke('item:merge', sourceId, targetId),splitItem: (req: import('../../shared/types').DragRequest) => invoke('item:split', req),getDisplays: () => invoke('displays:list'),- getReleases: () => invoke('app:get-releases'),updateSettings: (patch: Partial<InvokeResult<'settings:update'>>) =>invoke('settings:update', patch),refreshLaunchAtLogin: () => invoke('startup:refresh'),diff --git a/shared/bridge.ts b/shared/bridge.tsindex 78a89c8..3548809 100644--- a/shared/bridge.ts+++ b/shared/bridge.ts@@ -49,13 +49,6 @@ export interface EdgeApi {minimizeWindow: () => Promise<void>focusWindow: (focusable?: boolean) => Promise<void>getDisplays: () => Promise<import('./types').DisplayInfo[]>- getReleases: () => Promise<Array<{- version: string- date: string- isLatest: boolean- summary: string- highlights: Array<{ title: string; description: string }>- }>>setInternalDrag: (active: boolean) => voidbroadcastTutorialStep: (step: number) => voiddiff --git a/shared/ipc.ts b/shared/ipc.tsindex 6eeb5fe..031addf 100644--- a/shared/ipc.ts+++ b/shared/ipc.ts@@ -101,18 +101,6 @@ export interface InvokeMap {/** Reveal a file in native File Explorer / Finder. */'file:reveal': { args: [path: string]; result: boolean }- /** Get full release notes history from GitHub API (or cached/static fallback). */- 'app:get-releases': {- args: []- result: Array<{- version: string- date: string- isLatest: boolean- summary: string- highlights: Array<{ title: string; description: string }>- }>- }-/** Get the list of connected displays. */'displays:list': { args: []; result: import('./types').DisplayInfo[] }}diff --git a/src/components/ChangelogView.tsx b/src/components/ChangelogView.tsxdeleted file mode 100644index 73d62c9..0000000--- a/src/components/ChangelogView.tsx+++ /dev/null@@ -1,388 +0,0 @@-import { useEffect, useState } from 'react'-import { useStore } from '../store/appStore'-import { useTranslation } from '../i18n'--interface HighlightItem {- title: string- description: string-}--interface ChangelogRelease {- version: string- date: string- isLatest: boolean- summary: string- highlights: HighlightItem[]-}--const CHANGELOG_DATA: ChangelogRelease[] = [- {- version: 'v0.3.0',- date: 'Aug 26, 2026',- isLatest: true,- summary: 'Smarter multi-monitor edge activation, cleaner drag-and-drop handling, larger file stack previews with animated GIF support, silky smooth scrolling, and improved startup reliability.',- highlights: [- {- title: 'Smarter Multi-Monitor Edge Opening',- description: 'Moving between multiple displays is smooth and natural. Edge-Drop distinguishes passing across screens from intentionally stopping at the edge to open your shelf.'- },- {- title: 'Cleaner Drag & Drop Experience',- description: 'Returning items back onto the shelf is a clean no-op without duplicating files, splitting card stacks, or bumping usage counts.'- },- {- title: 'Bigger File Stack Previews & Animated GIFs',- description: 'Grouped file cards feature 20% larger preview tiles with folder styling, animated GIF playback, and clean outside-click folding.'- },- {- title: 'Silky Smooth Scrolling & Motion',- description: 'Browsing long clipboard histories stays completely fluid and responsive with hardware-accelerated animations for pinning, filtering, and previews.'- },- {- title: 'Original File & Image Names',- description: 'Images and files added to Edge-Drop preserve their original filenames when dragged into other applications or saved to disk.'- },- {- title: 'Reliable Startup After Updates',- description: 'Launch at Login preferences persist seamlessly across automatic updates without manual re-configuration.'- }- ]- },- {- version: 'v0.2.9',- date: 'Aug 20, 2026',- isLatest: false,- summary: 'Customizable shortcut, selective history clearing, pastel file icons, and smoother deletion animations.',- highlights: [- {- title: 'Custom Global Shortcut',- description: 'Customize the shelf toggle hotkey (defaults to Alt+C) directly in Settings.'- },- {- title: 'Selective History Clearing',- description: 'Clear history by time window (1h, 6h, 24h) or clear only the active category (Images, Files, etc.).'- },- {- title: 'Pastel File Icons',- description: 'New vector icons for folders, code, spreadsheets, PDFs, documents, and media files.'- },- {- title: 'Smoother Item Removal',- description: 'Deleting items now collapses smoothly without leaving empty gaps.'- },- {- title: 'Windows Snipping Tool Integration',- description: 'Screenshots taken with Win+Shift+S are automatically captured with clean file names.'- }- ]- },- {- version: 'v0.2.7',- date: 'Aug 13, 2026',- isLatest: false,- summary: 'Lower memory usage, instant link previews, and improved desktop drag-and-drop.',- highlights: [- {- title: 'Lower Memory Usage',- description: 'Optimized storage so the app stays fast and lightweight in the background.'- },- {- title: 'Rich Link Previews',- description: 'Copied URLs automatically display website titles and icons.'- },- {- title: 'Desktop Drag & Drop',- description: 'Drag items directly into or out of the shelf into any desktop application.'- },- {- title: 'Better Fullscreen Handling',- description: 'Improved detection so the shelf stays hidden during games and videos.'- }- ]- },- {- version: 'v0.2.6',- date: 'Aug 05, 2026',- isLatest: false,- summary: 'Cleaner settings interface, smoother scrolling, and improved translations.',- highlights: [- {- title: 'Redesigned Settings',- description: 'Simpler navigation with categorized tabs and a cleaner layout.'- },- {- title: 'Smoother Performance',- description: 'Faster panel opening and responsive scrolling.'- },- {- title: 'Support & Feedback',- description: 'Easy links to support the project and share feedback.'- }- ]- },- {- version: 'v0.2.5',- date: 'Aug 03, 2026',- isLatest: false,- summary: '30+ language translations, sleep/wake protection, and font size controls.',- highlights: [- {- title: '30+ Languages',- description: 'Full translations including right-to-left layout support for Arabic and Hebrew.'- },- {- title: 'Adjustable Font Size',- description: 'Choose between Small, Normal, Medium, and Large text scaling.'- },- {- title: 'Multi-File Selection',- description: 'Select multiple files at once to copy, paste, or clear them together.'- }- ]- },- {- version: 'v0.2.0',- date: 'Jul 26, 2026',- isLatest: false,- summary: 'Background updates, one-click link opening, and pinned items shelf.',- highlights: [- {- title: 'Background Updates',- description: 'Seamless auto-updates with a single-click restart button.'- },- {- title: 'One-Click Link Launcher',- description: 'Open copied links directly in your default browser.'- },- {- title: 'Pinned Items Section',- description: 'Keep your favorite clips safely pinned at the top.'- }- ]- },- {- version: 'v0.1.5',- date: 'Jul 24, 2026',- isLatest: false,- summary: 'Customizable copy indicator styles and hover zone improvements.',- highlights: [- {- title: 'Custom Copy Indicators',- description: 'Choose between Logo, Tick, Copy, and Sparkle indicator styles.'- },- {- title: 'Hover Stability',- description: 'Smoother hover detection when accessing settings on taller shelves.'- }- ]- },- {- version: 'v0.1.4',- date: 'Jul 23, 2026',- isLatest: false,- summary: 'Fullscreen game and presentation protection.',- highlights: [- {- title: 'Fullscreen Protection',- description: 'Shelf pauses hover triggers while playing games or presenting.'- },- {- title: 'Quick Hotkey Access',- description: 'Toggle the shelf at any time using Alt+C.'- }- ]- },- {- version: 'v0.1.3',- date: 'Jul 23, 2026',- isLatest: false,- summary: 'Multi-monitor support and quick click-to-paste.',- highlights: [- {- title: 'Multi-Monitor Support',- description: 'Place the shelf on any connected monitor with automatic recovery.'- },- {- title: 'Click to Paste',- description: 'Click any item in the preview flyout to paste it directly into your active app.'- }- ]- },- {- version: 'v0.1.2',- date: 'Jul 22, 2026',- isLatest: false,- summary: 'Encrypted local history and drag-to-stack grouping.',- highlights: [- {- title: 'Secure Storage',- description: 'Clipboard history is encrypted securely on your device.'- },- {- title: 'Drag to Stack',- description: 'Drag items onto the preview window to group them into stacks.'- }- ]- },- {- version: 'v0.1.1',- date: 'Jul 18, 2026',- isLatest: false,- summary: 'Screen edge selection and performance improvements.',- highlights: [- {- title: 'Left or Right Screen Edge',- description: 'Position the shelf on either the left or right side of your display.'- },- {- title: 'Faster Performance',- description: 'Lower memory footprint and improved responsiveness.'- }- ]- },- {- version: 'v0.1.0',- date: 'Jul 10, 2026',- isLatest: false,- summary: 'Initial release of Edge-Drop, a zero-click clipboard shelf living on your screen edge.',- highlights: [- {- title: 'Zero-Click Edge Hover',- description: 'Slide your mouse to the screen edge to open your clipboard.'- },- {- title: 'Drag & Drop Support',- description: 'Drag clips directly into your desktop apps.'- },- {- title: 'Smart Stacks',- description: 'Group multiple copied files and images into organized stacks.'- }- ]- }-]--export function ChangelogView() {- const { t } = useTranslation()- const currentVersion = useStore((s) => s.currentVersion)- const [releases, setReleases] = useState<ChangelogRelease[]>(CHANGELOG_DATA)-- useEffect(() => {- window.edge.getReleases()- .then((fetched) => {- if (Array.isArray(fetched) && fetched.length > 0) {- setReleases(fetched)- }- })- .catch((err) => {- console.warn('Failed to load live GitHub releases:', err)- })- }, [])-- return (- <div style={{- display: 'flex',- flexDirection: 'column',- gap: '24px',- padding: '16px',- boxSizing: 'border-box',- width: '100%',- maxWidth: '100%',- overflowX: 'hidden',- fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',- color: '#ffffff'- }}>- {releases.map((rel, index) => {- const isCurrent = currentVersion ? `v${currentVersion}` === rel.version || currentVersion === rel.version : rel.isLatest-- return (- <div- key={rel.version}- style={{- display: 'flex',- flexDirection: 'column',- gap: '12px',- maxWidth: '100%',- overflowX: 'hidden',- paddingBottom: index < releases.length - 1 ? '24px' : '0',- borderBottom: index < releases.length - 1 ? '1px solid rgba(255, 255, 255, 0.08)' : 'none'- }}- >- {/* Version Header */}- <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '8px' }}>- <div style={{ display: 'flex', alignItems: 'center', gap: '8px', minWidth: 0 }}>- <span style={{- fontSize: '15px',- fontWeight: 700,- color: '#ffffff',- fontFamily: 'Consolas, "Cascadia Code", monospace',- letterSpacing: '-0.02em'- }}>- {rel.version}- </span>- {isCurrent && (- <span style={{- fontSize: '10px',- fontWeight: 600,- color: 'rgba(255, 255, 255, 0.75)',- background: 'rgba(255, 255, 255, 0.08)',- border: '1px solid rgba(255, 255, 255, 0.15)',- padding: '2px 6px',- borderRadius: '4px',- textTransform: 'uppercase',- letterSpacing: '0.04em'- }}>- {t('flyout.current')}- </span>- )}- </div>- {rel.date && (- <span style={{ fontSize: '11px', color: 'rgba(255, 255, 255, 0.45)', whiteSpace: 'nowrap' }}>- {rel.date}- </span>- )}- </div>-- {/* Summary */}- <p style={{- margin: 0,- fontSize: '12.5px',- lineHeight: '1.5',- color: 'rgba(255, 255, 255, 0.8)',- fontWeight: 400- }}>- {rel.summary}- </p>-- {/* Highlights List */}- {rel.highlights && rel.highlights.length > 0 && (- <div style={{ display: 'flex', flexDirection: 'column', gap: '8px', marginTop: '4px' }}>- {rel.highlights.map((h, hIdx) => (- <div- key={hIdx}- style={{- background: 'rgba(255, 255, 255, 0.03)',- border: '1px solid rgba(255, 255, 255, 0.06)',- borderRadius: '8px',- padding: '10px 12px',- display: 'flex',- flexDirection: 'column',- gap: '4px'- }}- >- <div style={{ fontSize: '12px', fontWeight: 600, color: '#ffffff' }}>- {h.title}- </div>- <div style={{ fontSize: '11.5px', lineHeight: '1.4', color: 'rgba(255, 255, 255, 0.6)' }}>- {h.description}- </div>- </div>- ))}- </div>- )}- </div>- )- })}- </div>- )-}diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsxindex 2648fa7..890458b 100644--- a/src/components/ClipboardItem.tsx+++ b/src/components/ClipboardItem.tsx@@ -21,7 +21,6 @@ import { MAX_STACK } from '../../shared/types'import type { DragRequest } from '../../shared/types'import { useStore } from '../store/appStore'import { useDragOut } from '../hooks/useDragOut'-import { useRelativeTimeTick } from '../hooks/useRelativeTimeTick'import { itemRenderKey } from '../lib/itemSignature'import { basename, formatBytes, previewText, relativeTime, formatImageDisplayName } from '../lib/format'import { getFileKind } from '../lib/fileType'@@ -35,6 +34,8 @@ import { useTranslation, t } from '../i18n'interface Props {item: ClipboardItemDto+ /** Shared relative-time clock from ItemList; included in memo so labels age. */+ timeTick?: number}/**@@ -51,7 +52,7 @@ export function fileStreamUrl(filePath: string): string {/* Main item card *//* ------------------------------------------------------------------ */-const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {+const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item, timeTick = 0 }, ref) => {const { t } = useTranslation()const copy = useStore.getState().copyconst paste = useStore.getState().paste@@ -70,11 +71,6 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {useStore.getState().setExpandedStackId(v ? item.id : null)}, [item.id])- // Shared clock: one refcounted interval refreshes every mounted card's- // relative-time label in a single batched pass (replaces the per-card- // setInterval, which scaled terribly across hundreds of cards).- useRelativeTimeTick()-const isPreviewing = useStore((s) => s.previewItemId) === item.idconst isBundle = (item.data.kind === 'files' && item.data.paths.length > 1) || item.data.kind === 'image-collection'@@ -306,7 +302,7 @@ const ClipboardItemBase = forwardRef<HTMLDivElement, Props>(({ item }, ref) => {<div className="item-footer"><div className="meta"><KindBadge item={item} />- <span>{relativeTime(item.capturedAt)}</span>+ <span key={timeTick}>{relativeTime(item.capturedAt)}</span>{item.hitCount > 1 && <span>· ×{item.hitCount}</span>}{item.data.kind === 'image' && (<span>@@ -952,6 +948,7 @@ export const ClipboardItemCard = memo(prev.pinned === next.pinned &&prev.hitCount === next.hitCount &&prev.capturedAt === next.capturedAt &&+ prevProps.timeTick === nextProps.timeTick &&itemRenderKey(prev) === itemRenderKey(next))}diff --git a/src/components/Header.tsx b/src/components/Header.tsxindex 68f6158..0b7697c 100644--- a/src/components/Header.tsx+++ b/src/components/Header.tsx@@ -11,8 +11,6 @@ export function Header() {const setSettingsOpen = useStore((s) => s.setSettingsOpen)const settingsOpen = useStore((s) => s.settingsOpen)const updateInfo = useStore((s) => s.updateInfo)- const settingsSubView = useStore((s) => s.settingsSubView)- const setSettingsSubView = useStore((s) => s.setSettingsSubView)const settings = useStore((s) => s.settings)const patchSettings = useStore((s) => s.patchSettings)const currentVersion = useStore((s) => s.currentVersion)@@ -23,14 +21,10 @@ export function Header() {)const handleOpenChangelog = () => {- if (settingsSubView === 'changelog') {- setSettingsSubView('main')- } else {- setSettingsSubView('changelog')- if (currentVersion) {- patchSettings({ lastSeenChangelogVersion: currentVersion })- }+ if (currentVersion) {+ patchSettings({ lastSeenChangelogVersion: currentVersion })}+ window.open('https://www.edgedrop.app/changelog', '_blank')}const typeFilter = useStore((s) => s.typeFilter)@@ -61,7 +55,7 @@ export function Header() {<div style={{ display: 'flex', alignItems: 'center', gap: 4, paddingLeft: 0, minWidth: 0, flex: 1, overflow: 'hidden' }}>{settingsOpen ? (<span style={{ fontSize: 13, fontWeight: 600, color: '#8e8e93', letterSpacing: '0.01em', paddingLeft: 0, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', maxWidth: 170 }}>- {settingsSubView === 'changelog' ? t('header.whatsNew') : t('header.settings')}+ {t('header.settings')}</span>) : (<div@@ -159,15 +153,15 @@ export function Header() {{settingsOpen && (<buttontype="button"- className={`icon-btn${settingsSubView === 'changelog' ? ' active' : ''}`}- title={settingsSubView === 'changelog' ? t('tabs.behaviour') : t('header.whatsNew')}+ className="icon-btn"+ title={t('header.whatsNew')}onClick={() => {playButtonClickSound()handleOpenChangelog()}}style={{- color: settingsSubView === 'changelog' ? '#ffffff' : 'rgba(255, 255, 255, 0.75)',- background: settingsSubView === 'changelog' ? 'rgba(255, 255, 255, 0.12)' : 'transparent',+ color: 'rgba(255, 255, 255, 0.75)',+ background: 'transparent',border: 'none',boxShadow: 'none',flexShrink: 0,@@ -209,7 +203,6 @@ export function Header() {playButtonClickSound()if (settingsOpen) {setSettingsOpen(false)- setSettingsSubView('main')return}const state = useStore.getState()diff --git a/src/components/ItemList.tsx b/src/components/ItemList.tsxindex ad21d41..ae59b67 100644--- a/src/components/ItemList.tsx+++ b/src/components/ItemList.tsx@@ -12,6 +12,7 @@ import { AnimatePresence, LayoutGroup, motion } from 'framer-motion'import { useRef, useEffect, useLayoutEffect, useState } from 'react'import { useStore } from '../store/appStore'import { useFilteredItems } from '../hooks/useFilteredItems'+import { useRelativeTimeTick } from '../hooks/useRelativeTimeTick'import { ClipboardItemCard } from './ClipboardItem'import { EmptyState } from './EmptyState'import { ChevronDownIcon, PinFillIcon } from './icons'@@ -22,6 +23,7 @@ import { useTranslation } from '../i18n'export function ItemList() {const { t } = useTranslation()const { pinned, recent } = useFilteredItems()+ const timeTick = useRelativeTimeTick()const query = useStore((s) => s.query)const listRef = useRef<HTMLDivElement>(null)@@ -228,7 +230,7 @@ export function ItemList() {</div></div>{!pinnedCollapsed && pinned.map((it) => (- <ClipboardItemCard key={it.id} item={it} />+ <ClipboardItemCard key={it.id} item={it} timeTick={timeTick} />))}</section>)}@@ -241,7 +243,7 @@ export function ItemList() {</div>)}{recent.map((it) => (- <ClipboardItemCard key={it.id} item={it} />+ <ClipboardItemCard key={it.id} item={it} timeTick={timeTick} />))}</section>)}diff --git a/src/components/Settings.tsx b/src/components/Settings.tsxindex 90836ac..b80f5ff 100644--- a/src/components/Settings.tsx+++ b/src/components/Settings.tsx@@ -5,7 +5,6 @@ import type { DisplayInfo } from '../../shared/types'import { LiquidOctopusLoader } from './LiquidOctopusLoader'import { TickIndicatorIcon, CopyIndicatorIcon, SparkleIndicatorIcon } from './CopyIndicatorCurve'import { ChevronRightIcon, CloseIcon, LogOutIcon, StarIcon, GithubOctocatLogo } from './icons'-import { ChangelogView } from './ChangelogView'import { HotkeyRecorder } from './HotkeyRecorder'import { playDialTickSound, playToggleSound, playButtonClickSound } from '../lib/soundEffects'import { useTranslation } from '../i18n'@@ -29,7 +28,6 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: boolconst currentVersion = useStore((s) => s.currentVersion)const styleFlyoutOpen = useStore((s) => s.styleFlyoutOpen)const setStyleFlyoutOpen = useStore((s) => s.setStyleFlyoutOpen)- const settingsSubView = useStore((s) => s.settingsSubView)const setSliderActive = useStore((s) => s.setSliderActive)const lastTickVal = useRef<number>(settings.verticalOffset ?? 0.5)@@ -225,7 +223,22 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: bool</button></div><div className="app-version-footer">- {t('footer.version')} {currentVersion || '0.3.1'}+ <span>{t('footer.version')} {currentVersion || '0.3.1'}</span>+ <span className="version-separator">·</span>+ <button+ type="button"+ className="version-changelog-link"+ onClick={() => {+ playButtonClickSound()+ if (currentVersion) {+ patch({ lastSeenChangelogVersion: currentVersion })+ }+ window.open('https://www.edgedrop.app/changelog', '_blank')+ }}+ >+ <span>{t('header.whatsNew')}</span>+ <span style={{ fontSize: 10, opacity: 0.7 }}>↗</span>+ </button></div></div>@@ -250,28 +263,10 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: boolconst tabLetterSpacing = maxTabLen > 13 ? '-0.03em' : maxTabLen > 10 ? '-0.015em' : '0'return (- <AnimatePresence mode="wait">- {settingsSubView === 'changelog' ? (- <motion.div- key="changelog-view"- initial={{ opacity: 0, x: 12 }}- animate={{ opacity: 1, x: 0 }}- exit={{ opacity: 0, x: -12 }}- transition={{ type: 'spring', stiffness: 400, damping: 36, mass: 0.6 }}- style={{ width: '100%', height: '100%', overflowY: 'auto', overflowX: 'hidden' }}- >- <ChangelogView />- </motion.div>- ) : (- <motion.div- key="main-settings"- initial={{ opacity: 0, x: -12 }}- animate={{ opacity: 1, x: 0 }}- exit={{ opacity: 0, x: 12 }}- transition={{ type: 'spring', stiffness: 400, damping: 36, mass: 0.6 }}- style={{ width: '100%', height: '100%', display: 'flex', flexDirection: 'column', overflow: 'hidden', position: 'relative' }}- >- {/* ── Stationary Fixed Header (Tab Selector) ────────────────── */}+ <div+ style={{ width: '100%', height: '100%', display: 'flex', flexDirection: 'column', overflow: 'hidden', position: 'relative' }}+ >+ {/* ── Stationary Fixed Header (Tab Selector) ────────────────── */}<div className="settings-fixed-header"><div className="settings-tab-bar">{TABS.map((tab) => {@@ -1361,11 +1356,9 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: bool</motion.div>)}</AnimatePresence>- </motion.div>- )}- </AnimatePresence>- )-}+ </div>+ )+ }function Toggle({checked,diff --git a/src/hooks/useFilteredItems.ts b/src/hooks/useFilteredItems.tsindex 580860a..6207d07 100644--- a/src/hooks/useFilteredItems.ts+++ b/src/hooks/useFilteredItems.ts@@ -7,7 +7,7 @@import { useMemo } from 'react'import { useStore } from '../store/appStore'import type { ClipboardItemDto, TypeFilter } from '../../shared/types'-import { basename } from '../lib/format'+import { basename, isImagePath } from '../lib/format'function matches(it: ClipboardItemDto, q: string): boolean {if (!q) return true@@ -26,9 +26,19 @@ function matches(it: ClipboardItemDto, q: string): boolean {}}-import { isImagePath } from '../lib/format'+/**+ * Explorer-copied photos are stored as `files` but belong in Images, not Files.+ * Mixed stacks (photo + PDF) stay in Files only.+ */+export function isImageOnlyFileItem(it: ClipboardItemDto): boolean {+ if (it.data.kind !== 'files') return false+ const paths = it.data.paths+ if (paths.length === 0) return false+ if (it.data.entries?.some((en) => en.isDirectory)) return false+ return paths.every((p) => isImagePath(p))+}-function matchesType(it: ClipboardItemDto, filter: TypeFilter): boolean {+export function itemMatchesTypeFilter(it: ClipboardItemDto, filter: TypeFilter): boolean {if (filter === 'all') return trueswitch (filter) {case 'text':@@ -37,10 +47,9 @@ function matchesType(it: ClipboardItemDto, filter: TypeFilter): boolean {return it.data.kind === 'text' && !!it.data.isUrlcase 'images':if (it.data.kind === 'image' || it.data.kind === 'image-collection') return true- if (it.data.kind === 'files') return it.data.paths.some((p) => isImagePath(p))- return false+ return isImageOnlyFileItem(it)case 'files':- return it.data.kind === 'files'+ return it.data.kind === 'files' && !isImageOnlyFileItem(it)}}@@ -79,7 +88,7 @@ export function useFilteredItems(): GroupedItems {for (const it of filteredByTutorial) {if (!matches(it, query.trim())) continue- if (!matchesType(it, typeFilter)) continue+ if (!itemMatchesTypeFilter(it, typeFilter)) continue;(it.pinned ? pinned : recent).push(it)}return { pinned, recent }diff --git a/src/hooks/useRelativeTimeTick.ts b/src/hooks/useRelativeTimeTick.tsindex 8489db6..4b7ab86 100644--- a/src/hooks/useRelativeTimeTick.ts+++ b/src/hooks/useRelativeTimeTick.ts@@ -1,35 +1,33 @@/**- * Shared 30-second clock for relative-time labels ("5m ago").+ * Shared clock for relative-time labels ("5m ago").*- * WHY: every card used to start its own setInterval. With hundreds of cards- * that meant N independent timers firing at unaligned moments — N scattered- * render passes across every 30s window, plus timer churn on every- * mount/unmount while scrolling. One refcounted interval serves all- * subscribers, producing a single batched render pass per tick.- *- * BEHAVIOUR PARITY: the old per-card intervals only ran while the panel was- * open (cards stay mounted when the blade is closed — they are merely hidden).- * This module mirrors that exactly: the interval exists only while there is- * at least one subscriber AND the shelf is open, so idle cost stays zero.+ * One interval for the whole list (ItemList subscribes once and passes the+ * tick into memoized cards). Idle: the timer runs only while the shelf is+ * open. On open it fires immediately so labels are not stuck on "just now"+ * from the previous visit — copying in another app closes the shelf before+ * a long interval would ever elapse.*/import { useEffect, useState } from 'react'import { useStore } from '../store/appStore'-const TICK_MS = 30000+/** While the shelf is open, refresh often enough to leave "just now" (5s). */+const TICK_MS = 5000-let tick = 0let timer: number | undefinedlet subscribers = 0const listeners = new Set<() => void>()function emit(): void {- tick++for (const listener of listeners) listener()}function syncTimer(): void {const shouldRun = subscribers > 0 && useStore.getState().openif (shouldRun && timer === undefined) {+ // Paint current ages immediately. Waiting for the first interval left+ // labels stuck on "just now" because the shelf is almost never left+ // open for a full tick — copying in another app closes it first.+ emit()timer = window.setInterval(emit, TICK_MS)} else if (!shouldRun && timer !== undefined) {window.clearInterval(timer)@@ -61,15 +59,15 @@ if (typeof window !== 'undefined') {}/**- * Subscribes the calling component to the shared clock. The component simply- * re-renders on each tick so its `relativeTime(capturedAt)` label refreshes;- * the returned value itself is intentionally unused.+ * Subscribes the calling component to the shared clock. The returned tick+ * must be passed into memoized cards so they re-render and recompute+ * `relativeTime(capturedAt)`.*/export function useRelativeTimeTick(): number {- const [, force] = useState(0)+ const [value, setValue] = useState(0)useEffect(() => {- const listener = (): void => force((n) => n + 1)+ const listener = (): void => setValue((n) => n + 1)listeners.add(listener)acquire()return () => {@@ -78,5 +76,5 @@ export function useRelativeTimeTick(): number {}}, [])- return tick+ return value}diff --git a/src/store/appStore.ts b/src/store/appStore.tsindex 11058aa..1c4c03c 100644--- a/src/store/appStore.ts+++ b/src/store/appStore.ts@@ -38,9 +38,6 @@ interface AppState {setEmojiOpen: (open: boolean) => voidemojiCategory: import('../lib/emoji/catalog').EmojiCategoryIdsetEmojiCategory: (cat: import('../lib/emoji/catalog').EmojiCategoryId) => void- /** Active view mode within settings ('main' | 'changelog'). */- settingsSubView: 'main' | 'changelog'- setSettingsSubView: (subView: 'main' | 'changelog') => void/** True while an OS file drag is hovering the panel (prevents premature close). */dragActive: boolean/**@@ -144,7 +141,6 @@ export const useStore = create<AppState>((set, get) => ({set({emojiOpen: true,settingsOpen: false,- settingsSubView: 'main',previewItemId: null,previewItemRect: null,previewFlyoutRect: null,@@ -156,8 +152,6 @@ export const useStore = create<AppState>((set, get) => ({set({ emojiOpen: false })}},- settingsSubView: 'main',- setSettingsSubView: (subView) => set({ settingsSubView: subView }),dragActive: false,expandedStackId: null,setExpandedStackId: (expandedStackId) => set({ expandedStackId }),@@ -307,7 +301,6 @@ export const useStore = create<AppState>((set, get) => ({setSettingsOpen: (settingsOpen) => {set({settingsOpen,- settingsSubView: 'main',previewItemId: null,previewItemRect: null,previewFlyoutRect: null,diff --git a/src/styles/global.css b/src/styles/global.cssindex fd77e6c..82ed0fa 100644--- a/src/styles/global.css+++ b/src/styles/global.css@@ -74,7 +74,6 @@ svg {.thumb-wrap,.thumb,.kind-badge,-.changelog-pill,.copy-curve-container,.style-card {-webkit-background-clip: padding-box;diff --git a/src/styles/settings.css b/src/styles/settings.cssindex 86d4829..1c9cb4a 100644--- a/src/styles/settings.css+++ b/src/styles/settings.css@@ -580,6 +580,10 @@}.app-version-footer {+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 6px;font-size: 11px;color: rgba(255, 255, 255, 0.38);font-weight: 500;@@ -588,6 +592,28 @@user-select: none;}+.version-separator {+ opacity: 0.35;+}++.version-changelog-link {+ background: transparent;+ border: none;+ color: rgba(255, 255, 255, 0.45);+ font: inherit;+ font-size: 11px;+ cursor: pointer;+ padding: 0;+ display: inline-flex;+ align-items: center;+ gap: 3px;+ transition: color 0.15s ease;+}++.version-changelog-link:hover {+ color: #ffffff;+}+/* Subtle Bottom Quit Button */.subtle-quit-btn {display: inline-flex;diff --git a/tests/relativeTime.test.ts b/tests/relativeTime.test.tsnew file mode 100644index 0000000..27e751e--- /dev/null+++ b/tests/relativeTime.test.ts@@ -0,0 +1,36 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'++vi.mock('../src/i18n', () => ({+ t: (key: string) => (key === 'item.justNow' ? 'just now' : key === 'item.ago' ? 'ago' : key),+ getResolvedLanguage: () => 'en'+}))++import { relativeTime } from '../src/lib/format'++describe('relativeTime', () => {+ beforeEach(() => {+ vi.useFakeTimers()+ vi.setSystemTime(new Date('2026-09-04T12:00:00.000Z'))+ })++ afterEach(() => {+ vi.useRealTimers()+ })++ it('shows just now for copies under 5 seconds old', () => {+ expect(relativeTime(Date.now() - 1000)).toBe('just now')+ expect(relativeTime(Date.now())).toBe('just now')+ })++ it('does not stay on just now after a minute', () => {+ const capturedAt = Date.now() - 3 * 60 * 1000+ const label = relativeTime(capturedAt)+ expect(label.toLowerCase()).not.toContain('just now')+ })++ it('does not stay on just now after an hour', () => {+ const capturedAt = Date.now() - 2 * 60 * 60 * 1000+ const label = relativeTime(capturedAt)+ expect(label.toLowerCase()).not.toContain('just now')+ })+})diff --git a/tests/storeLoginItem.test.ts b/tests/storeLoginItem.test.tsindex 627a435..c376305 100644--- a/tests/storeLoginItem.test.ts+++ b/tests/storeLoginItem.test.ts@@ -72,8 +72,11 @@ vi.mock('node:child_process', async (importOriginal) => {import {applyLaunchAtLogin,+ clearStartupApprovedBlock,formatGithubRunCommand,+ isBlockedInStartupApproved,normalizeLoginPath,+ readGithubLaunchAtLogin,reconcileLaunchAtLoginOnStartup} from '../electron/main/loginItems'import { syncLoginItemSettings } from '../electron/main/ipc'@@ -428,7 +431,10 @@ describe('GitHub Run-key quoting and update heal', () => {expect(mocks.saveSettings).toHaveBeenCalledWith({ launchAtLogin: false })expect(next.launchAtLogin).toBe(false)- expect(mocks.execFileSync).not.toHaveBeenCalled()+ const addCalls = mocks.execFileSync.mock.calls.filter(+ (c) => ((c[1] as unknown) as string[])[0] === 'add'+ )+ expect(addCalls).toHaveLength(0)expect(mocks.setLoginItemSettings).not.toHaveBeenCalledWith(expect.objectContaining({ openAtLogin: true }))@@ -462,6 +468,75 @@ describe('GitHub Run-key quoting and update heal', () => {)})+ it('readGithubLaunchAtLogin reads spaced paths directly from registry even if Electron API fails', () => {+ mocks.exePath = spacedExe+ // Simulate Electron returning false negative for spaced path+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [],+ executableWillLaunchAtLogin: false+ })+ // Simulate reg query returning healthy quoted command+ mocks.execFileSync.mockImplementation((bin: string, args: string[]) => {+ if (bin === 'reg' && (args as string[])[0] === 'query') {+ if ((args as string[])[1].includes('Run') && (args as string[])[3] === 'Edge-Drop') {+ return `\r\n Edge-Drop REG_SZ "${spacedExe}" --hidden\r\n`+ }+ }+ throw new Error('not found')+ })++ const res = readGithubLaunchAtLogin()+ expect(res.enabled).toBe(true)+ expect(res.blockedByUser).toBe(false)+ expect(res.ok).toBe(true)+ })++ it('0.3.1 bug recovery: restores launchAtLogin: true when unblocked Run key exists', async () => {+ mocks.exePath = spacedExe+ mocks.loadSettings.mockReturnValue({ launchAtLogin: false })+ mocks.getLoginItemSettings.mockReturnValue({+ launchItems: [],+ executableWillLaunchAtLogin: false+ })+ // Simulate reg query finding the Run key+ mocks.execFileSync.mockImplementation((bin: string, args: string[]) => {+ if (bin === 'reg') {+ const verb = (args as string[])[0]+ if (verb === 'query') {+ if ((args as string[])[1].includes('StartupApproved')) {+ throw new Error('not found') // Not blocked+ }+ if ((args as string[])[1].includes('Run') && (args as string[])[3] === 'Edge-Drop') {+ return `\r\n Edge-Drop REG_SZ "${spacedExe}" --hidden\r\n`+ }+ }+ }+ return ''+ })++ const next = await reconcileLaunchAtLoginOnStartup()+ expect(mocks.saveSettings).toHaveBeenCalledWith({ launchAtLogin: true })+ expect(next.launchAtLogin).toBe(true)+ })++ it('StartupApproved block detection and unblocking', () => {+ // 1. Blocked when odd byte+ mocks.execFileSync.mockReturnValueOnce('\r\n Edge-Drop REG_BINARY 0300000053FD31D3D585DA01\r\n')+ expect(isBlockedInStartupApproved('Edge-Drop')).toBe(true)++ // 2. Unblocked when 02+ mocks.execFileSync.mockReturnValueOnce('\r\n Edge-Drop REG_BINARY 0200000053FD31D3D585DA01\r\n')+ expect(isBlockedInStartupApproved('Edge-Drop')).toBe(false)++ // 3. Clear block issues reg delete+ clearStartupApprovedBlock('Edge-Drop')+ expect(mocks.execFileSync).toHaveBeenCalledWith(+ 'reg',+ expect.arrayContaining(['delete', expect.stringContaining('StartupApproved'), '/v', 'Edge-Drop', '/f']),+ expect.anything()+ )+ })+it('unpackaged / dev never writes a Run key on startup reconcile', async () => {mocks.isPackaged = falseawait reconcileLaunchAtLoginOnStartup()diff --git a/tests/typeFilter.test.ts b/tests/typeFilter.test.tsnew file mode 100644index 0000000..48b191f--- /dev/null+++ b/tests/typeFilter.test.ts@@ -0,0 +1,74 @@+import { describe, expect, it } from 'vitest'+import { itemMatchesTypeFilter } from '../src/hooks/useFilteredItems'+import type { ClipboardItemDto } from '../shared/types'++function dto(data: ClipboardItemDto['data']): ClipboardItemDto {+ return { id: 'x', data, capturedAt: 1, hitCount: 1, pinned: false }+}++describe('type filters: image files live in Images only', () => {+ const screenshot = dto({+ kind: 'image',+ imageId: 'a',+ width: 10,+ height: 10,+ bytes: 100,+ preview: 'data:image/png;base64,xx',+ source: 'screenshot'+ })+ const collection = dto({+ kind: 'image-collection',+ images: [{ imageId: 'a', width: 10, height: 10, bytes: 100, preview: 'data:image/png;base64,xx' }]+ })+ const pngFile = dto({ kind: 'files', paths: ['C:\\Users\\me\\photo.png'] })+ const jpgFile = dto({ kind: 'files', paths: ['C:\\Users\\me\\vacation.JPG'] })+ const twoPhotos = dto({ kind: 'files', paths: ['a.png', 'b.webp'] })+ const pdf = dto({ kind: 'files', paths: ['C:\\Users\\me\\doc.pdf'] })+ const mixed = dto({ kind: 'files', paths: ['photo.png', 'doc.pdf'] })+ const folder = dto({+ kind: 'files',+ paths: ['C:\\Users\\me\\Pictures'],+ entries: [{ name: 'Pictures', ext: '', size: 0, isImage: false, isDirectory: true }]+ })+ const note = dto({ kind: 'text', text: 'hello', isUrl: false })+ const link = dto({ kind: 'text', text: 'https://example.com', isUrl: true })++ it('All still shows every kind', () => {+ for (const item of [screenshot, collection, pngFile, pdf, mixed, folder, note, link]) {+ expect(itemMatchesTypeFilter(item, 'all')).toBe(true)+ }+ })++ it('Images: screenshots, collections, and image-only file cards', () => {+ expect(itemMatchesTypeFilter(screenshot, 'images')).toBe(true)+ expect(itemMatchesTypeFilter(collection, 'images')).toBe(true)+ expect(itemMatchesTypeFilter(pngFile, 'images')).toBe(true)+ expect(itemMatchesTypeFilter(jpgFile, 'images')).toBe(true)+ expect(itemMatchesTypeFilter(twoPhotos, 'images')).toBe(true)+ expect(itemMatchesTypeFilter(pdf, 'images')).toBe(false)+ expect(itemMatchesTypeFilter(mixed, 'images')).toBe(false)+ expect(itemMatchesTypeFilter(folder, 'images')).toBe(false)+ expect(itemMatchesTypeFilter(note, 'images')).toBe(false)+ expect(itemMatchesTypeFilter(link, 'images')).toBe(false)+ })++ it('Files: documents, mixed stacks, folders — not image-only cards', () => {+ expect(itemMatchesTypeFilter(pngFile, 'files')).toBe(false)+ expect(itemMatchesTypeFilter(jpgFile, 'files')).toBe(false)+ expect(itemMatchesTypeFilter(twoPhotos, 'files')).toBe(false)+ expect(itemMatchesTypeFilter(pdf, 'files')).toBe(true)+ expect(itemMatchesTypeFilter(mixed, 'files')).toBe(true)+ expect(itemMatchesTypeFilter(folder, 'files')).toBe(true)+ expect(itemMatchesTypeFilter(screenshot, 'files')).toBe(false)+ expect(itemMatchesTypeFilter(collection, 'files')).toBe(false)+ expect(itemMatchesTypeFilter(note, 'files')).toBe(false)+ })++ it('text and links are unchanged', () => {+ expect(itemMatchesTypeFilter(note, 'text')).toBe(true)+ expect(itemMatchesTypeFilter(link, 'text')).toBe(false)+ expect(itemMatchesTypeFilter(link, 'links')).toBe(true)+ expect(itemMatchesTypeFilter(note, 'links')).toBe(false)+ expect(itemMatchesTypeFilter(pngFile, 'text')).toBe(false)+ })+})