Commit Graph
6 Commits
Author SHA1 Message Date
andrey f3baef7a1c feat: combine GitLab and Gitea integration pulses 2026-10-20 16:56:02 +03:00
andrey 0b536440b6 fix: isolate Gitea cards and align the contribution calendar 2026-10-20 16:50:19 +03:00
andrey 3b42d32c82 fix: isolate forge card state and complete GitLab validation 2026-10-20 16:45:42 +03:00
andrey 15a2be2bdd feat: add GitLab integration pulse 2026-10-12 16:39:45 +03:00
Claude 322e2ab022 Windows/Linux: Mochi-to-desktop shortcut and the island's list and diff keys
The Windows and Linux app was missing three of the Mac's keyboard shortcuts.
This commit adds them, matching what the Mac does.

Global "Send Mochi to the desktop" (desktopToggle, the Mac's ⌃⌥D)
- It is now ported: the action list in shortcuts.rs and shortcuts.ts flips
  `ported`, so the same code path as every other shortcut picks it up
  (RegisterHotKey / X11 grabs, Settings → Shortcuts, the Wayland
  `coucou --shortcut desktopToggle` command). Its default is Ctrl+Alt+D, on
  by default like the Mac. It is not an AltGr character on the checked
  layouts. Xfce and MATE keep Ctrl+Alt+D for "show desktop", so it shows up
  there as *In use*, the same way GNOME's Ctrl+Alt+T does.
- It goes through the existing desktop-Mochi life cycle. The new
  DesktopMochiController.flyOutOrHome mirrors the Mac's: from the island he
  flies out, from the desktop he flies home for good, and mid-flight or away
  for an alert nothing happens. A press during an alert parks him in the
  island until it is answered, as on the Mac. Sending him out lifts Pause,
  like the other global shortcuts. The press is skipped during the greeting,
  the drop sequence and a drag, the same cases where a drag can't start.
- Where Mochi can't leave the island (GNOME on Wayland), he grumbles: an
  annoyed emote and the error sound, as Go to alert does when nothing is
  waiting.
- desktop_mochi_fly_out takes an optional `anywhere`. With the shortcut, a
  saved spot on a display that is gone gives way to the first-visit corner.
  Otherwise one undock would leave the shortcut doing nothing until he was
  dragged out by hand. The launch keeps its documented behaviour: he stays
  home.

In the open island (only while it has the keyboard, as before)
- Ctrl+↓ / Ctrl+↑ move a highlight through the open GitHub list (My PRs,
  To review, Default branch CI). Those are the only lists the Mac walks
  (cardItemCount is set only by GitHubDetailView). ShortcutLogic.navigate
  gives the same clamping. Ctrl+O does what a click on the highlighted row
  does, with the same github.com check. A new pill drops the highlight, as
  in the Mac's cyclePill / switchToPill.
- The highlight is the Mac's white 12 % (GitHubPRRowView `selected`), on a
  new `.selected` class. Existing styles are unchanged.
- Ctrl+E in the overview toggles the focused pill's latest diff (the Mac's
  islandToggleDiff).
- In the chat field, Ctrl+↑ / ↓ keep moving the cursor, like Ctrl+← / →.
- Settings lists the three new island keys in the Mac's order, using the
  Mac's own strings ("Navigate list items", "Open selected item",
  "Open / close current diff"), so no new translations are needed.

"Attach the front window" stays out: it needs a screenshot of another app's
window. The global shortcut keeps its existing label, "Send Mochi to the
desktop", rather than the Mac's "Mochi to desktop on/off". The Wayland portal
branch (#367) pins that label in its description table, so the two merge
without a test breaking.

The README's shortcut table, the Keyboard shortcuts section and the
"What's different" notes are updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-09 00:28:24 +02:00
Claude 0f4edf1f96 Windows/Linux: GitHub pulse card, alerts and contribution grid
The GitHub card follows GitHubPulseCardView once the pulse is in: stars
and the last 7 days of contributions in the header, then My PRs, To
review and Default branch CI. Each row opens its list; an item opens on
github.com (http/https to github.com only). The header opens the past 23
weeks, and a day shows its count on hover or click. Without a pulse the
card stays the existing stars + repositories overview.

github-alerts from Rust badge the pill (when it isn't on screen) and play
the Mac's sound: error for red CI, question for a review request, finish
for green CI. Opening the card asks Rust to refresh stale data. The open
button now goes to github.com/pulls, as on macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:13:42 +02:00