Memoji menu and «Дела» panel for BroV Ops

- A click on the Memoji (not a drag) opens a menu: Дела (agenda counts), stop timer,
  пипетка, переводчик, кофе. The slap on click is gone; hover love and drag-to-window stay.
- «Дела»: overdue / today / this week from the homelab service with Done/Paid, timer and
  Tomorrow buttons, the running timer, and a text box that goes to the service's Claude.
- Settings → Чат → «Дела (хоумлаб)»: service URL and API token (Keychain).
- CLAUDE.md: the BroV Ops section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-10 02:49:03 +03:00
parent ac94227b94
commit 23b1ea4f45
6 changed files with 410 additions and 4 deletions
@@ -35,6 +35,7 @@ final class IslandWindowController: NSWindowController {
// Window attach drag (M8)
private var attachDragStart: NSPoint? = nil
private var botClickPending = false
private var pendingIslandClick = false // any island click → expand on mouseUp
private var inAttachDrag = false
private var dragGhostPanel: NSPanel? = nil
@@ -723,9 +724,8 @@ final class IslandWindowController: NSWindowController {
// Notch Mochi is invisible when on desktop — no drag, no slap
guard !self.state.mochiOnDesktop else { return }
self.attachDragStart = NSEvent.mouseLocation
// Post slap only when expanded
guard self.state.mode == .expanded else { return }
NotificationCenter.default.post(name: .triggerSlap, object: nil)
// A click (not a drag) on the Memoji opens its menu on mouse-up.
self.botClickPending = self.state.mode == .expanded
}
return event
}
@@ -791,7 +791,16 @@ final class IslandWindowController: NSWindowController {
MainActor.assumeIsolated {
let hadPendingClick = self.pendingIslandClick
let wasDragging = self.inAttachDrag
let botClick = self.botClickPending && !wasDragging
self.pendingIslandClick = false
self.botClickPending = false
if botClick && self.state.mode == .expanded {
self.state.botMenuOpen.toggle()
if self.state.botMenuOpen {
NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.happy)
SoundEngine.shared.play("pop")
}
}
if wasDragging {
finishDrag()
} else {