Bookmark pane: render enrichment (summary, tags, hero image)#72
Merged
Conversation
The reference bookmark pane now displays optional enrichment when present on the resource, degrading cleanly when absent: - dc:description as paragraphs (blank-line split) with an emphasized lead - schema:keywords as tag pills - schema:image as a hero thumbnail - schema:datePublished in the footer Reworked the card into one cohesive editorial layout (divider rule, reading typography, polished Open button, hover states) via a scoped <style> block. Enrichment is produced out-of-band (fetch + summarize via MCP); this is the view. Reference pane only (not loaded at runtime) — no version bump. Refs #71
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.
Closes #71. Follow-up to #69/#70.
What
Enhances the reference bookmark pane (
examples/panes/bookmark.js) to render optional enrichment when present, degrading cleanly when absent:dc:description→ summary as paragraphs (split on blank lines), first emphasized as a leadschema:keywords→ tag pillsschema:image→ hero thumbnailschema:datePublished→ footer, beside the saved dateThe card is reworked into one cohesive editorial layout — refined border/shadow, larger title with hover, a divider rule, comfortable reading typography, and a polished Open button with hover/press states — via a scoped
<style>block the pane injects.Degrades gracefully
A bookmark with only the core fields (title/recalls/created) renders the same clean card minus the enrichment blocks. Verified against an un-enriched resource.
Scope / no version bump
Reference pane under
examples/panes/— not loaded at runtime (the pod loads panes from/public/panes/), so landing this doesn't require a publish. Schema.org vocab is reused, not invented. Enrichment (fetch + summarize) is produced out-of-band via MCP; this PR is just the view.