Skip to content

fix(web): XMarkdown slot created should not have prefix#2520

Merged
Sherry-hue merged 1 commit intolynx-family:mainfrom
Sherry-hue:fix/markdown-slot-prefix
Apr 24, 2026
Merged

fix(web): XMarkdown slot created should not have prefix#2520
Sherry-hue merged 1 commit intolynx-family:mainfrom
Sherry-hue:fix/markdown-slot-prefix

Conversation

@Sherry-hue
Copy link
Copy Markdown
Collaborator

@Sherry-hue Sherry-hue commented Apr 24, 2026

Summary by CodeRabbit

  • Bug Fixes
    • XMarkdown inline view slots no longer include the md-inline-view- prefix. Slots are now directly assigned using their identifier for improved clarity and simplified slot targeting when populating inline view content within markdown documents.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).
  • Changeset added, and when a BREAKING CHANGE occurs, it needs to be clearly marked (or not required).

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 24, 2026

🦋 Changeset detected

Latest commit: 409971d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@lynx-js/web-elements Patch
upgrade-rspeedy Patch
@lynx-js/web-core Patch
@lynx-js/web-rsbuild-server-middleware Patch
@lynx-js/template-webpack-plugin Patch
@lynx-js/react-rsbuild-plugin Patch
create-rspeedy Patch
@lynx-js/web-worker-rpc Patch
@lynx-js/react-alias-rsbuild-plugin Patch
@lynx-js/rspeedy Patch

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

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8ab69fa9-37da-4237-afac-595f45447485

📥 Commits

Reviewing files that changed from the base of the PR and between 86fd0e5 and 409971d.

📒 Files selected for processing (4)
  • .changeset/breezy-sloths-move.md
  • packages/web-platform/web-elements/src/elements/XMarkdown/XMarkdownAttributes.ts
  • packages/web-platform/web-elements/tests/fixtures/x-markdown/inlineview-class.html
  • packages/web-platform/web-elements/tests/fixtures/x-markdown/inlineview.html

📝 Walkthrough

Walkthrough

The PR removes the md-inline-view- prefix from inline-view slot names in XMarkdown, using raw IDs instead. This includes a Changesets entry for the patch and updates test fixtures to reflect the new slot naming convention.

Changes

Cohort / File(s) Summary
Changesets Entry
.changeset/breezy-sloths-move.md
New changeset file marking @lynx-js/web-elements for a patch release with fix description for XMarkdown slot naming.
Core Implementation
packages/web-platform/web-elements/src/elements/XMarkdown/XMarkdownAttributes.ts
Removes md-inline-view- prefix from inline-view slot assignment, assigning the slot name directly to the inline view identifier instead.
Test Fixtures
packages/web-platform/web-elements/tests/fixtures/x-markdown/inlineview.html, packages/web-platform/web-elements/tests/fixtures/x-markdown/inlineview-class.html
Update slot attribute assignments to use raw inline view IDs instead of prefixed slot names (content-view, badge instead of md-inline-view-content-view, md-inline-view-badge).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • PupilTong

Poem

🐰 A slot prefix vanishes, clean and bright,
No more md-inline-view- in sight!
Just raw IDs, simple and true,
XMarkdown's found a cleaner view. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(web): XMarkdown slot created should not have prefix' directly and clearly describes the main change across all modified files: removing the prefix from slot names in XMarkdown inline views.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@relativeci
Copy link
Copy Markdown

relativeci Bot commented Apr 24, 2026

React Example

#7600 Bundle Size — 225.23KiB (-0.04%).

409971d(current) vs d1743f2 main#7592(baseline)

Bundle metrics  Change 1 change
                 Current
#7600
     Baseline
#7592
No change  Initial JS 0B 0B
No change  Initial CSS 0B 0B
Change  Cache Invalidation 35.31% 0%
No change  Chunks 0 0
No change  Assets 4 4
No change  Modules 179 179
No change  Duplicate Modules 69 69
No change  Duplicate Code 44.57% 44.57%
No change  Packages 2 2
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#7600
     Baseline
#7592
No change  IMG 145.76KiB 145.76KiB
Improvement  Other 79.47KiB (-0.1%) 79.55KiB

Bundle analysis reportBranch Sherry-hue:fix/markdown-slot-pre...Project dashboard


Generated by RelativeCIDocumentationReport issue

@relativeci
Copy link
Copy Markdown

relativeci Bot commented Apr 24, 2026

React MTF Example

#732 Bundle Size — 196.39KiB (-0.04%).

409971d(current) vs d1743f2 main#724(baseline)

Bundle metrics  Change 1 change
                 Current
#732
     Baseline
#724
No change  Initial JS 0B 0B
No change  Initial CSS 0B 0B
Change  Cache Invalidation 43.38% 0%
No change  Chunks 0 0
No change  Assets 3 3
No change  Modules 173 173
No change  Duplicate Modules 66 66
No change  Duplicate Code 44.07% 44.07%
No change  Packages 2 2
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#732
     Baseline
#724
No change  IMG 111.23KiB 111.23KiB
Improvement  Other 85.15KiB (-0.1%) 85.24KiB

Bundle analysis reportBranch Sherry-hue:fix/markdown-slot-pre...Project dashboard


Generated by RelativeCIDocumentationReport issue

@relativeci
Copy link
Copy Markdown

relativeci Bot commented Apr 24, 2026

Web Explorer

#9173 Bundle Size — 900.02KiB (~-0.01%).

409971d(current) vs d1743f2 main#9164(baseline)

Bundle metrics  Change 1 change
                 Current
#9173
     Baseline
#9164
No change  Initial JS 44.46KiB 44.46KiB
No change  Initial CSS 2.22KiB 2.22KiB
Change  Cache Invalidation 16.16% 0%
No change  Chunks 9 9
No change  Assets 11 11
No change  Modules 229 229
No change  Duplicate Modules 11 11
No change  Duplicate Code 27.28% 27.28%
No change  Packages 10 10
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#9173
     Baseline
#9164
Improvement  JS 495.88KiB (~-0.01%) 495.9KiB
No change  Other 401.92KiB 401.92KiB
No change  CSS 2.22KiB 2.22KiB

Bundle analysis reportBranch Sherry-hue:fix/markdown-slot-pre...Project dashboard


Generated by RelativeCIDocumentationReport issue

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 24, 2026

Merging this PR will improve performance by 17.32%

⚡ 1 improved benchmark
✅ 80 untouched benchmarks
⏩ 26 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
transform 1000 view elements 46.8 ms 39.9 ms +17.32%

Comparing Sherry-hue:fix/markdown-slot-prefix (409971d) with main (86fd0e5)

Open in CodSpeed

Footnotes

  1. 26 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@relativeci
Copy link
Copy Markdown

relativeci Bot commented Apr 24, 2026

React External

#717 Bundle Size — 679.93KiB (-0.04%).

409971d(current) vs d1743f2 main#709(baseline)

Bundle metrics  Change 1 change
                 Current
#717
     Baseline
#709
No change  Initial JS 0B 0B
No change  Initial CSS 0B 0B
Change  Cache Invalidation 39.69% 0%
No change  Chunks 0 0
No change  Assets 3 3
No change  Modules 17 17
No change  Duplicate Modules 5 5
No change  Duplicate Code 8.59% 8.59%
No change  Packages 0 0
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#717
     Baseline
#709
Improvement  Other 679.93KiB (-0.04%) 680.2KiB

Bundle analysis reportBranch Sherry-hue:fix/markdown-slot-pre...Project dashboard


Generated by RelativeCIDocumentationReport issue

@Sherry-hue Sherry-hue enabled auto-merge (squash) April 24, 2026 07:18
@Sherry-hue Sherry-hue merged commit 647334c into lynx-family:main Apr 24, 2026
215 of 231 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants