Repository navigation
Canvas: links from a card's whole edge, readable far view, live sync - #325
Merged
Merged
Conversation
- Links start anywhere on a card's edge: four invisible edge strips (about 14 screen px at any zoom, at most a fifth of the card) are link sources on person and task cards; the middle still drags and clicks reach the card. Hovering a card tints its edge; the dot stays. connectOnClick is off so a click on an edge never starts a half-made link. - Person cards at overview zoom: once their words would be under 12 px on screen they drop the header and show the text (or file name) as a bold two-line label sized for ~14 px, within the card. - Canvas writes put project.canvas.updated (new revision) on the project's live stream; other open windows refetch the canvas when it is ahead of theirs (seen in ~0.2-0.4 s instead of up to 30 s). The event is catalogued and hidden from the feed. - The Manager's team-report turn (the /manager/team-turn push path) now gets the canvas context block too; the chat router already had it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Smooths four rough edges of the map canvas (design/canvas.md; experience rules 1, 3, 5).
What changes
ConnectSource(CanvasNodes.tsx) adds four invisible edge strips as React Flow source handles on person and task cards. Each strip is about 14 screen px wide at any zoom (rimWidth, stepped zoom) and never more than a fifth of the card. Handles carrynodrag, so the middle of a card still drags, and a plain click still reaches the card. Hovering a card tints its edge, and the strip under the pointer is darker. The old dot is still there.connectOnClick={false}stops a click on an edge from starting a half-made link. MacroTaskNode only swaps its single dotHandlefor<ConnectSource>(a one-line change).farLabelFont). It switches back to the full card when zoomed in, and also while editing.project.canvas.updated {revision, change}to the project's event log. That log is the live websocket stream the web client already reads.App.tsxtakes the newest announced revision, andrefreshCanvasrefetches only when that revision is ahead of the window's cached copy, so the window that made the write does not refetch. The new event type is in the catalog, the payload schema,eventCatalog.tsand the generated fixtures, and the shared renderer hides it from the feed.manager_team_report(the/manager/team-turnpush path) now appendsmanager_canvas_context()to its turn. The chat router'smanager_turnpath on dev already included it.domain_intakeis unchanged: adding it there would meanargus/managerimporting from webapi.Verified
test_private_modules_are_not_imported_across_packages(webapi -> argus.life.delivery._referenced_path_candidates). It fails the same way on unchanged dev, so this PR did not cause it.build_release.🤖 Generated with Claude Code