Skip to content

feat(server): make URLs with the same label more compact#6349

Merged
chenjiahan merged 1 commit intomainfrom
merge_labels_1012
Oct 13, 2025
Merged

feat(server): make URLs with the same label more compact#6349
chenjiahan merged 1 commit intomainfrom
merge_labels_1012

Conversation

@chenjiahan
Copy link
Member

Summary

Track previous label to avoid duplicate labels in the printed URLs.

Before

Screenshot 2025-10-12 at 19 02 54

After

Screenshot 2025-10-12 at 19 17 26

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 12, 2025 11:19
@netlify
Copy link

netlify bot commented Oct 12, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit a6bbc9a
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68eb8ec041fb0a000879a8f2
😎 Deploy Preview https://deploy-preview-6349--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72 (no change from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the formatting of server URL output by eliminating duplicate labels when multiple URLs share the same label, making the display more compact and easier to read.

  • Tracks the previous label to avoid printing duplicate labels consecutively
  • Restructures the loop to only print labels when they differ from the previous one
  • Refactors route iteration to use destructuring for cleaner code

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chenjiahan chenjiahan merged commit 443b47b into main Oct 13, 2025
12 checks passed
@chenjiahan chenjiahan deleted the merge_labels_1012 branch October 13, 2025 02:12
@chenjiahan chenjiahan mentioned this pull request Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant