Skip to content

[dashboard] Simplify PR comment rendering#1310

Merged
Janpot merged 3 commits intomasterfrom
dashboard-simplify-pr-comment
Apr 30, 2026
Merged

[dashboard] Simplify PR comment rendering#1310
Janpot merged 3 commits intomasterfrom
dashboard-simplify-pr-comment

Conversation

@Janpot
Copy link
Copy Markdown
Member

@Janpot Janpot commented Apr 14, 2026

Summary

  • Drop the per-section merge mechanism in upsertPrComment. We always generate the full comment when a sync request comes in. This simplifies the mechanism drastically and makes it easier to set a predictable order for the sections.
  • Combine the benchmark section's two redundant links (the overflow "View full report" and the trailing "Details of benchmark changes") into a single compact trailer line, saving vertical space in every PR comment.

Drop the per-section merge mechanism in upsertPrComment — the sole caller
always regenerates every configured section in one go, so section markers,
header/footer parsing, and the defaultSections option were dead weight.
The caller now assembles the full body in a fixed order (deploy preview,
bundle size, benchmark) and passes it as a string.

Also combine the benchmark section's two redundant links (the overflow
"View full report" and the trailing "Details of benchmark changes") into
a single compact trailer line.
@oliviertassinari oliviertassinari temporarily deployed to dashboard-simplify-pr-comment - mui-tools-public PR #1310 April 14, 2026 15:24 — with Render Destroyed
@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented Apr 14, 2026

Deploy preview

https://deploy-preview-1310--mui-internal.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 20.34 ms 🔺+4.21 ms(+26.1%) | Renders: 4 (+0) | Paint: 89.82 ms 🔺+20.84 ms(+30.2%)

Test Duration Renders
HeavyList mount 14.15 ms 🔺+4.21 ms(+42.3%) 1 (+0)
DataGrid mount with paint timing 1.99 ms 🔺+0.08 ms(+4.1%) 1 (+0)
Counter click 4.20 ms ▼-0.08 ms(-1.8%) 2 (+0)

Details of benchmark changes


Check out the code infra dashboard for more information about this PR.

@Janpot Janpot added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Apr 14, 2026
@oliviertassinari oliviertassinari temporarily deployed to dashboard-simplify-pr-comment - code-infra-dashboard PR #1310 April 14, 2026 17:15 — with Render Destroyed
@Janpot Janpot marked this pull request as ready for review April 14, 2026 17:22
@Janpot Janpot requested a review from a team April 21, 2026 09:44
@Janpot Janpot merged commit 10d3b3a into master Apr 30, 2026
13 checks passed
@Janpot Janpot deleted the dashboard-simplify-pr-comment branch April 30, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants