Commit Graph
11 Commits
Author SHA1 Message Date
shinyobjectz 2ff6676cb1 A page's accessibility in a crate of its own (raea-page-ax), one reading of its elements for both its trees; the window's scheme and rest in raea-page-window 2026-11-25 00:12:05 -08:00
shinyobjectz 8f4f3648c8 The window's clipboard stub without a window isn't the shape of another crate's stub (the dupes check) 2026-11-25 00:06:53 -08:00
shinyobjectz fdf58ffa16 The window's open on Linux and Windows is raea_io_os's open_url itself, and its stub the clipboard's (two functions of one shape, the dupes check) 2026-11-25 00:04:58 -08:00
shinyobjectz 1f17872816 Linux and Windows window: links and Copy reach the system (sign-in opened nothing)
raea's window answered app.open and clipboard.write with AppKit on the Mac and with stubs everywhere
else, which answered true. So in the Linux and Windows apps, signing in (Google, Apple, GitHub's
device page), Continue on raea.io and every other link opened nothing, and Copy (the GitHub code
among them) copied nothing, with no error. Reported from Ubuntu 26.

Off the Mac the window now opens links and uses the clipboard through raea-io-os (opener: xdg-open,
or opener's own copy where the system has none, Windows' shell; arboard), which the page host
already links for paste. app.open and clipboard.write answer an error when the system refuses, on
the Mac too (NSWorkspace openURL's answer), so the page can say so. The off-Mac calls move to
other.rs (native.rs at the 500-line limit). tools/linux-check.sh also checks raea-page-window
--features window, the window the Linux app ships.
2026-11-25 00:04:58 -08:00
shinyobjectz 5cf62e80ee raea's window says which system it runs on, so the feed page says this PC and Ctrl on Windows
The page reads globalThis.__raea_window before its bundle runs (chrome.rs's preamble: chrome, lights, bar). It now also carries os, std's name for the system ("macos", "windows", "linux"), which raea-feed's src/lib/machine.ts reads (raea-feed PR #88): the navigator in raea's window always claims a Mac, so this is how the page knows to say "this PC" and Ctrl+Z where a Mac's says "this Mac" and ⌘Z. A window without it keeps the Mac's words.

Test: the_preamble_names_the_system (both chromes carry os).
2026-11-17 10:49:51 -08:00
shinyobjectz 09c2df6e8c #163: a Mac app made by raea app bundle runs its page host as the launcher's child instead of exec'ing it. The launcher (Contents/MacOS/NAME, a sh script) ended with exec raea-page-host, and when the process LaunchServices launched execs another program, AppKit keeps the app's bundle id but loses its pid: NSRunningApplication's processIdentifier is -1, so window managers that find an app's windows by its pid (AeroSpace) never see the window. Measured on macOS 27.0.1 with a windowless AppKit program opened through LaunchServices: exec from sh or bash gives -1; the program as the bundle's executable, or as the child of a sh or bash launcher that waits, gives its own pid. The launcher now starts the host in the background, passes TERM, INT and HUP on to it and waits for it, ending with its status; the host still checks in as the app, since it lives inside it. Its test (macapp.rs) runs the launcher on a stand-in host that writes down its pid and its parent's: on the old launcher it fails (the host's pid was the launcher's), on the new one the host is the launcher's child, on the app's files, and the launcher ends with the host's status. engine/page/window native.rs said the exec is what gives raea.app's window its identity; it is the program's place in Contents/MacOS, and raea.app's launcher now starts its window as a child too. 2026-11-16 17:29:53 -08:00
shinyobjectz 7ac71240db app.share: macOS's share sheet for files from raea's window (NSSharingServicePicker beside the point the person right-clicked), for the feed's menu on any image or video (Shane 11-14: copy, open in Finder, share). Recorded in native.log off screen 2026-11-14 23:59:36 -08:00
shaneandshinyobjectz 4d7fa914cc Files dragged from the Finder reach the page in raea's window (app.drops) (#153)
The Source page takes files dropped anywhere on it (raea-feed's Source redesign, 0.1.4). In a browser the page's own
drop events carry them; raea's window draws the page natively, so winit's drag-and-drop never reached it. The window
keeps Bevy's FileDragAndDrop messages, whether files are over it and the paths dropped, and the page asks with
app.drops -> {over, dropped}: over while a drag is on the window, then each dropped path once. A drop is the person's
own act, so it is kept with or without --window's live calls.

Test: native::drop_tests (over while dragged, not over once it leaves, the paths handed once in order).

Co-authored-by: shinyobjectz <[email protected]>
2026-11-14 20:44:17 -05:00
shinyobjectz a78fb95e75 raea's window: the page is painted at the display's scale, so a Retina window is sharp
v0.1.1 laid the window's page out at scale 1 and stretched its image over the window: on a Retina display every
glyph and hairline was drawn at half the pixels (a bug report of 11-12: "UI renders at 1x on Retina", the blur and
pixelation people noticed). page.rs size() now gives the page the window's scale factor along with its size in
points, read each frame so a window moved to another display follows; headless, the image target's scale stands.
RAEA_WINDOW_SCALE=2 opens the window at that scale on any display, to check it on a 1x Mac. tests/retina.rs covers
the scaled window and the headless case.
2026-11-12 09:47:09 -08:00
shinyobjectz 87ccba76c1 AP10: the app's icon counts what's waiting in the Inbox on Windows too: raea-page-window's dock.badge sets an overlay icon on the window's taskbar button (ITaskbarList3::SetOverlayIcon, win.rs), as the Dock's badge does on the Mac. badge.rs draws it, pure and tested everywhere: a red circle or pill with the count in a 3x5 pixel font at the small-icon size the taskbar asks for, 9+ above nine, cleared at nothing. win.rs type-checks for x86_64-pc-windows-msvc (windows 0.62, already in the lock); notify's nested if is collapsed for clippy 2026-11-11 07:20:52 -08:00
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00