Commit graph

14 commits

Author SHA1 Message Date
Alvin Unreal
e392d48b20 add npm pet installer 2026-05-10 18:29:00 +02:00
Alvin
d9af007f48
Merge pull request #8 from youngYangtze/fix/pet-visible-on-all-spaces
fix(desktop): show pet window on all macOS Spaces
2026-05-10 17:43:15 +02:00
yang
254d0e620c fix(desktop): show pet window on all macOS Spaces
The pet window only appeared on the macOS Space (desktop workspace)
where it was initially created. Switching to another Space made the
pet disappear.

Root cause: Electron BrowserWindow defaults to being bound to the
Space where it's created. The alwaysOnTop + floating level keeps it
above other windows *within the same Space*, but does not make it
span across Spaces.

Fix: Call setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
on macOS after creating the window. This tells macOS to show the
window on all Spaces and even over fullscreen apps.

The visibleOnFullScreen option ensures the pet remains visible when
a fullscreen application occupies the current Space, matching the
'always visible companion' UX intent.

This is safe because OpenPets already hides its dock icon via
app.dock.hide(), so the known Electron issue #26350 (dock icon
disappearing after setVisibleOnAllWorkspaces) is irrelevant.
2026-05-10 23:19:54 +08:00
Alvin Unreal
103f890b4b fix: run cli from npm bin symlink 2026-05-10 15:48:40 +02:00
Alvin Unreal
2058c4e554 fix: skip published npm packages 2026-05-10 15:37:21 +02:00
Alvin Unreal
7e64f7afcb chore: add npm release helper 2026-05-10 15:33:20 +02:00
Alvin Unreal
40b9ebc96a docs: add app screenshots to README 2026-05-10 15:31:40 +02:00
Alvin Unreal
183c40b518 docs: add OpenPets star prompt 2026-05-10 15:14:19 +02:00
Alvin Unreal
239654fe61 fix: keep integration cards compact 2026-05-10 15:08:26 +02:00
Alvin Unreal
332ebdae97 fix: improve desktop agent detection 2026-05-10 14:46:46 +02:00
Alvin Unreal
7e8ed5b5d6 fix: improve desktop release icons 2026-05-10 14:28:00 +02:00
Alvin Unreal
0aa4903ca8 docs: update README header image 2026-05-10 14:18:32 +02:00
Alvin Unreal
b1eac04846 docs: refresh project README 2026-05-10 14:11:27 +02:00
Alvin Unreal
33b0c22068 Releasing version 2 2026-05-10 13:30:48 +02:00