Skip to content

Subject inspector - #8

Merged
namedgraph merged 2 commits into
masterfrom
subject-inspector
Jul 7, 2026
Merged

Subject inspector#8
namedgraph merged 2 commits into
masterfrom
subject-inspector

Conversation

@namedgraph

Copy link
Copy Markdown
Member

No description provided.

namedgraph and others added 2 commits July 7, 2026 13:31
- New inspector drawer (Ⓟ toolbar toggle) shows the RDFa subject in scope
  at the caret and all of its triples, read-only. Rides
  local:update-breadcrumb, so it tracks the caret and refreshes after every
  mutation (annotate/undo route through local:after-mutation).
- Port group-sort-triples.xsl to XSLT 3.0 as a local:group-triples()
  function (xsl:for-each-group; URI subjects before blank nodes, properties
  sorted). Extract RDF now serializes grouped output — one rdf:Description
  per subject — instead of the striped one-triple-per-Description form.
- Remove the stale Mockup.png prototype screenshot from the demo; repoint
  the test fixture and the figure-insert test at inline data: images, and
  drop it from the Pages deploy copy.
- New tests/browser/inspector.mjs suite, registered in run.mjs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The context-menu dispatcher scoped edit-mode detection to elements strictly
inside the editable block (intersect descendant::*), so a block carrying its
own @Property - like the demo's h1[property=dct:title] - was never detected;
with no text selected, create mode's non-collapsed guard also failed, so
right-click did nothing. Include the block itself when it carries @Property
(structural @about/@typeof-only blocks stay in create mode). Remove now strips
the RDFa attributes on a block instead of unwrapping it, which would have
dissolved the heading. Covered by a new editor.mjs block-annotation test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@namedgraph
namedgraph merged commit 5f34516 into master Jul 7, 2026
2 checks passed
@namedgraph
namedgraph deleted the subject-inspector branch July 7, 2026 11:42
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.

1 participant