Repository navigation
feat(properties): links in the box are chips with their site's favicon - #438
Conversation
comark-ui registers properties before chips, so chips turns the box's links into chips like the document's own, with the same favicon source and download setting. A list keeps `.cfm-tag` for its plain items only. Chips get as much room above and below the image as on its left, also when a flex row such as the box lays them out as blocks. In the dark theme a favicon sits on a white plate. `chipNode()` builds the chip a host adds after parsing.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — Reviewed the full PR, including property-chip integration, the new post-parse helper, shared styles, renderer exports, documentation, and tests.
- Properties integration: The preset now runs properties before chips, so generated links share prose links’ image settings, while linked list items avoid nested tag wrappers.
- Post-parse helper:
chipNode()constructs host-added chips and is exported through the root and all renderer entries, including Svelte’s declarations. - Chip layout and dark mode: Updated padding and line height apply to inline and flex-row chips, and dark-mode favicon plates leave avatar images unchanged.
- Verification: The workspace build, 317 targeted tests, four Chromium E2E tests, and all three touched packages’ Doctor checks passed; additional checks covered HTML/Vue/React property rendering, mobile wrapping, and dark-mode styling. Safari and Firefox were not tested.
gpt-6.1-sol(xhigh) | 𝕏
…er links in the box
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — Reviewed the follow-up commit 1bbc54a since the previous Pullfrog review at 78ab6a0.
- Unified property-link pills: Added scoped styling so avatar chips in the properties box use the same padding, background, ring, and hover fill as favicon chips, without changing prose avatars.
- Added regression coverage: Added an assertion for the properties-specific avatar styling.
- Verified the cascade: Passed chips/properties builds, publint, all 65 targeted tests, and the properties Doctor check. Chromium checks confirmed light/dark styling, both stylesheet orders, hover behavior, keyboard focus, and 320px layout; Safari and Firefox were not tested.
gpt-6.1-sol(xhigh) | 𝕏
Links get their site's icon from /api/favicons/<host>. Drop's server fetches each host's icon once from the source comark-chips uses, keeps it 30 days, and falls back to the domain above it, then to a link icon. Readers' browsers no longer ask Google or the linked sites. The doc's chips and properties box, the dock, folder tiles and review.js all show the same picture. A doc's links, the front matter's and Drop's own, are comark-chips' chips with even room around the icon (comark-ui#438), in place of the tags the header's script decorated. Views reads "38 views" with who they came from as icons, or "No views yet". Takes comark-ui 0.12.2 from onmax/comark-ui#438. The Markdown references cover git-graph and say bundle doesn't render in Drop.
Latest result Pull request merged. Final answersSession Pull request merged. |

In the properties box, a link sits in the same 20px tag as a plain word, so a host that adds a site icon has to squeeze it in. The result is uneven: in Drop the GitHub icon had 2px above it and 4px to its left. comark-chips already gives links their favicon in the text, but the preset registers it before properties, so it never sees the box's links. Inside the box a chip also had a different problem. The box's
ddis a flex row, so a chip there is laid out as a block that takes the row's 24px line height. That left 5.6px above the icon and 6.1px below, but only 2.6px to its left.This PR:
comark-propertiesbeforecomark-chipsin the preset. A link in the box then becomes a chip, with the same favicon source anddownloadsetting as the links in the text. A GitHub repository link gets its owner's avatar, as it already does in the text..cfm-tagfor a list's plain items only. A link in a list is left for chips to draw, so it doesn't sit in a pill inside a pill..cpline-height: 1.375and a.25emleft padding, so the icon has about the same room on every side: 3.6 / 3.4 / 3.5px (top / bottom / left) in the box, 4 / 4 / 4px in a paragraph. The chip in a paragraph keeps its 24px height.chipNode(href, text, src?, kind?)to comark-chips, for a host that adds links to a document after parsing and wants them to look like the document's own. Drop needs it for the links it adds to the box.Without chips, properties renders its links as before.
Before/after on Drop: https://drop.vitehub.dev/d/97nv2gtmfd2n/before-after
I measured the padding in Chromium (Playwright 1.6x, a 16px favicon, 14px text in the box, 16px in prose). I didn't check Safari or Firefox.