Commit Graph
4 Commits
Author SHA1 Message Date
LouisandARNAV AGGARWAL 6cfcd7ce82 Windows and Linux: Mochi's room (#1162, with main merged in) (#1306)
Co-authored-by: ARNAV AGGARWAL <h2510013@nushigh.edu.sg>
2026-12-03 22:23:13 +00:00
Claude a1fbbef4e4 Windows and Linux: the Coucou window's bands come alive, follow your voice, and scroll with a thin pill
WebView2 gives a window created hidden no animation frames, so on Windows
the top bands and glowing cards never drew: no particles, no Mochis, and a
grey card instead of the deep black. The loop now falls back to a timer
when no frame comes, trusts the focused window, and the bands paint their
black and colour themselves before the canvas runs. While you dictate,
their light and particles follow your voice. Scrollbars are the Mac's thin
rounded thumb, without arrows.

dev/hub-preview.html and dev/island-preview.html show both windows in a
browser with a stand-in for Tauri.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-02 20:55:31 +01:00
Claude 9806b66fa8 Windows/Linux: weekly recap card, shared image and settings
The island gets a recap view that opens on Monday from 8 am, once a week,
when the app starts, an agent starts working or the island wakes, and any
time from the tray. "Share image" flips the card to a share panel: a
1080 x 1920 PNG with Mochi drawn by the island's engine, saved into
Pictures or Downloads, or copied through the web clipboard; project names
can be hidden. Settings -> General gets the history toggle and Clear
history. dev/recap-preview.html shows it all on the sample week.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:20:25 +02:00
Louis RailleandClaude Opus 5 fc4c6717cf Windows: port the full file-drop choreography
The drop was three beats — morph, gulp, bar — where macOS has a timeline of
fifteen, drawn in a canvas of its own. This ports that canvas.

- src/upload/sequence.ts is UploadSequenceEngine.swift: the phase constants, the
  four easings, springs integrated at 240 Hz, the lock onto a slow cursor, the
  squeeze keyframes and the progress curve. Pure arithmetic, no DOM.
- src/upload/canvas.ts is UploadCanvasView.swift: card, marching dashed border,
  the green glow that rises with progress, the bar and its blurred trail, the
  choose card, Mochi's superellipse body with its three eye shapes, and the file
  cut into 28 strips that funnel into the mouth.

So the sequence now reads: the box slides under the cursor and locks on, the
mouth opens, the file is sucked in over 0.30 s, the mouth shuts, Mochi chews,
shrinks to a 14 px bead riding the head of the bar, hops at 100 %, then grows
back and walks left as the choose card fades in.

The island hides its own Mochi while this runs — two would overlap — and the
header stays overlaid on top, as on macOS. Leaving the drop views, or shutting
the island, stops the engine: left running it would keep the frame loop awake
and cost CPU with nothing on screen.

Two deliberate differences. macOS insets the real file icon from NSWorkspace
into the sheet; the webview cannot reach it, so the generic sheet is drawn, which
is already the Swift's own fallback. And the secondary button stays "Cancel"
rather than "Send by email", which the Windows v1 does not have.

dev/upload-preview.html replays the whole thing on a loop under `npm run dev`,
since the alternative is dragging a file from Explorer for every tweak.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-29 23:20:11 +02:00