fix(web): markdown should pre-set slot#2516
Conversation
🦋 Changeset detectedLatest commit: 8c2bdfd The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughThis pull request refactors the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.changeset/rich-teams-melt.md:
- Line 5: The changeset text documents the wrong slot name: the implementation
generates slots named "md-inline-view-{id}" and fixtures use
slot="md-inline-view-badge" / slot="md-inline-view-content-view", but the
changeset says to set slot="{id}"; update the changeset wording to instruct
consumers to pre-set slot="md-inline-view-{id}" (e.g.,
slot="md-inline-view-badge") so their element projects into inlineview://{id};
reference the generated slot name "md-inline-view-{id}" and the inlineview URI
pattern "inlineview://{id}" in the corrected sentence.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c15c38fd-2485-4242-a5f5-2c06cb16acde
📒 Files selected for processing (5)
.changeset/rich-teams-melt.mdpackages/web-platform/web-elements/src/elements/XMarkdown/XMarkdownAttributes.tspackages/web-platform/web-elements/tests/fixtures/x-markdown/inlineview-class.htmlpackages/web-platform/web-elements/tests/fixtures/x-markdown/inlineview.htmlpackages/web-platform/web-elements/tests/x-markdown.spec.ts
Merging this PR will improve performance by 17.15%
Performance Changes
Comparing Footnotes
|
React External#678 Bundle Size — 679.93KiB (0%).8c2bdfd(current) vs 13655ac main#674(baseline) Bundle metrics
|
| Current #678 |
Baseline #674 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
3 |
3 |
|
17 |
17 |
|
5 |
5 |
|
8.59% |
8.59% |
|
0 |
0 |
|
0 |
0 |
Bundle analysis report Branch Sherry-hue:fix/markdown-slot Project dashboard
Generated by RelativeCI Documentation Report issue
Web Explorer#9132 Bundle Size — 899.95KiB (-0.02%).8c2bdfd(current) vs 13655ac main#9128(baseline) Bundle metrics
Bundle size by type
Bundle analysis report Branch Sherry-hue:fix/markdown-slot Project dashboard Generated by RelativeCI Documentation Report issue |
React MTF Example#692 Bundle Size — 196.39KiB (0%).8c2bdfd(current) vs 13655ac main#688(baseline) Bundle metrics
|
| Current #692 |
Baseline #688 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
3 |
3 |
|
173 |
173 |
|
66 |
66 |
|
44.07% |
44.07% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #692 |
Baseline #688 |
|
|---|---|---|
111.23KiB |
111.23KiB |
|
85.15KiB |
85.15KiB |
Bundle analysis report Branch Sherry-hue:fix/markdown-slot Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#7560 Bundle Size — 225.23KiB (0%).8c2bdfd(current) vs 13655ac main#7556(baseline) Bundle metrics
|
| Current #7560 |
Baseline #7556 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
179 |
179 |
|
69 |
69 |
|
44.57% |
44.57% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #7560 |
Baseline #7556 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
79.47KiB |
79.47KiB |
Bundle analysis report Branch Sherry-hue:fix/markdown-slot Project dashboard
Generated by RelativeCI Documentation Report issue
Summary by CodeRabbit
Release Notes
slotattribute to be set upfront.Checklist