Links to a post, in the web and the desktop app (#289) #304
No reviewers
Labels
No labels
area/ci
area/desktop
area/packaging
area/protocol
area/reading
area/ui
area/web
area/writing
kind/bug
kind/feature
kind/infra
kind/request
needs/user
parked
perf
security
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
littlefox/neokom!304
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-289-links"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #289
Links to a post that open in NeoKOM, in the browser and the desktop app (the plan on #289):
kom_client::link: parse and format<server>/<kind>/<N>as a web link (https://…/#server/text/N),lyskom://server/text/Nor bare, and<text N: Ämne>; the server is itscanonical-name(aux 31; kom.lysator.liu.se sets it, a logged-out probe), else the address logged in to. Unit tests incl. random input.<text N: Ämne>; the post opens in its thread, briefly highlighted, not read.#(the server never sees it), kept through the login page, cleared once opened;hashchangeopens new ones.neokom.desktophandlesx-scheme-handler/lyskom(Exec=neokom %u); one app at a time — a second launch hands its link over a socket in$XDG_RUNTIME_DIRand exits; NeoKOM links inside posts open in the app.The devserver now sets canonical-name (
dev.neokom.test).Verified: new
e2e/tests/share-links.spec.ts(logged out → log in → post shown and highlighted; address change; another server; unreadable post; Ctrl+K; copy; pasted link → reference) in desktop/android/iphone; full e2e suite 377 passed; desktop smoke test with a secondneokom lyskom://…handing over (one session, the post shown); lint with CI's three clippy commands; unit tests; screenshots looked at.🤖 Generated with Claude Code
https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8