Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 0 additions & 224 deletions apps/desktop/src/app/contrib/dev/tour-demo.ts

This file was deleted.

16 changes: 8 additions & 8 deletions apps/desktop/src/app/contrib/wiring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,21 +325,21 @@ export function ContribWiring({ children }: { children: ReactNode }) {
return () => window.removeEventListener('hermes:open-keybinds', onOpenKeybinds)
}, [navigate])

// Dev-only: install the demo triggers (credit notices on Ctrl+Shift+C, the
// tour UI on Ctrl+Shift+X — each also a ⌘K entry and a window hook). Dynamic
// imports inside the DEV guard so the modules are dropped from production
// builds.
// Dev-only: install the credit-notice demo trigger (Ctrl+Shift+C / ⌘K palette
// / window.__creditsDemo). Dynamic import inside the DEV guard so the module
// is dropped from production builds.
useEffect(() => {
if (!import.meta.env.DEV) {
return
}

const disposers: (() => void)[] = []
let dispose: (() => void) | undefined

void import('./dev/credits-notice-demo').then(m => disposers.push(m.installCreditsNoticeDemo()))
void import('./dev/tour-demo').then(m => disposers.push(m.installTourDemo()))
void import('./dev/credits-notice-demo').then(m => {
dispose = m.installCreditsNoticeDemo()
})

return () => disposers.forEach(dispose => dispose())
return () => dispose?.()
}, [])

// Post-turn rehydrate from stored history (same behavior as DesktopController,
Expand Down
2 changes: 0 additions & 2 deletions apps/desktop/src/lib/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
IconClock as Clock,
IconCloud as Cloud,
IconCommand as Command,
IconCompass as Compass,
IconCopy as Copy,
IconCopy as CopyIcon,
IconCornerDownLeft as CornerDownLeft,
Expand Down Expand Up @@ -160,7 +159,6 @@ export {
Clock,
Cloud,
Command,
Compass,
Copy,
CopyIcon,
CornerDownLeft,
Expand Down
Loading