Skip to content

comments-view: list every comment except ranges that collapsed to empty - #89

Open
paulsonnentag wants to merge 4 commits into
mainfrom
comments-non-range-targets
Open

paulsonnentag wants to merge 4 commits into
mainfrom
comments-non-range-targets

Conversation

@paulsonnentag

Copy link
Copy Markdown
Contributor

Threads targeting a sub-doc path (e.g. a notebook cell) have no text range, so they were filtered out of the sidebar. Only hide a thread when all its targets are text ranges whose text was deleted.

Threads targeting a sub-doc path (e.g. a notebook cell) have no text range,
so they were filtered out of the sidebar. Only hide a thread when all its
targets are text ranges whose text was deleted.
@patchcrow

patchcrow commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Patchwork glance ready

https://patchwork-preview-89--patchwork-base.netlify.app

Patchwork from inkandswitch/patchwork.inkandswitch.com, packages from this PR at 843f3cf.

build-info.json

chee
chee previously approved these changes Oct 13, 2026
…elections

Hovering a thread card puts its targets in the focus doc's `highlight`,
so the view showing them can emphasise them. A selection on a sub-doc
(e.g. a notebook cell) now selects threads targeting it, not only
overlapping text ranges.
Primary, secondary and inactive cards differed only by shadow. In the
panel, the selected thread now gets an accent border, ring and tint,
overlapping threads a softer accent border, and inactive ones an accent
hint on hover. Threads embedded on their own keep the old look.
The sidebar sets data-thread-state on each <patchwork-view>, but the thread
tool is handed the view's inner content element, so it never saw the
attribute and every thread fell back to primary (all highlighted, all
showing Resolve/Reply).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants