Skip to content

Conversation

@alionazherdetska
Copy link
Contributor

@alionazherdetska alionazherdetska commented Dec 2, 2025

📄 Description

This PR renames slots in the post-header component to improve clarity and consistency with design specifications. The changes align slot names with their semantic purpose.

🚀 Demo

Header docs


🔮 Design review

  • Design review done
  • No design review needed

📝 Checklist

  • ✅ My code follows the style guidelines of this project
  • 🛠️ I have performed a self-review of my own code
  • 📄 I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • 🧪 I have added tests that prove my fix is effective or that my feature works
  • ✔️ New and existing unit tests pass locally with my changes

Copilot AI review requested due to automatic review settings December 2, 2025 09:35
@alionazherdetska alionazherdetska requested review from a team as code owners December 2, 2025 09:35
@alionazherdetska alionazherdetska linked an issue Dec 2, 2025 that may be closed by this pull request
@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

🦋 Changeset detected

Latest commit: f0a8430

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

This PR includes changesets to release 14 packages
Name Type
@swisspost/design-system-components Major
@swisspost/design-system-documentation Patch
@swisspost/design-system-components-angular-workspace Major
@swisspost/design-system-components-react Major
@swisspost/design-system-nextjs-integration Major
@swisspost/design-system-components-angular Major
@swisspost/design-system-changelog-github Major
@swisspost/design-system-eslint Major
@swisspost/design-system-icons Major
@swisspost/internet-header Major
@swisspost/design-system-styles Major
@swisspost/design-system-styles-primeng-workspace Major
@swisspost/design-system-styles-primeng Major
@swisspost/design-system-tokens Major

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

@alionazherdetska alionazherdetska changed the title chore(components): rename header slots to improve clarity and consistency chore(components): rename post-header slots to improve clarity and consistency Dec 2, 2025
@swisspost-bot
Copy link
Contributor

swisspost-bot commented Dec 2, 2025

Related Previews

Copy link

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 refactors the post-header component by renaming its slots to improve clarity and consistency across the Swiss Post Design System. The slot names are being updated to be more intuitive and better aligned with their purpose, marking this as a major breaking change for the components package.

Key Changes

  • Renamed 6 slots in the post-header component for improved semantic clarity
  • Updated all component documentation, examples, test fixtures, and integration code to use new slot names
  • Added comprehensive changeset documenting the breaking changes

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/components/src/components/post-header/post-header.tsx Updated JSDoc comments, slot names in render methods, and querySelector selectors to use new slot names
packages/styles/src/components/header/_post-header.scss Updated CSS selectors targeting the renamed slots
packages/documentation/src/stories/components/header/header.stories.ts Updated header story to use new slot names
packages/documentation/src/stories/components/header/renderers/target-group.ts Updated target group renderer to use audience slot
packages/documentation/src/stories/components/header/renderers/meta-navigation.ts Updated meta navigation renderer to use global-nav-secondary slot
packages/documentation/src/stories/components/header/renderers/main-navigation.ts Updated main navigation renderer to use main-nav slot
packages/documentation/src/stories/raw-components/megadropdown/megadropdown.stories.ts Updated megadropdown decorator to use new slot names
packages/documentation/src/stories/components/back-to-top/back-to-top.stories.ts Updated back-to-top story decorator to use new slot names
packages/nextjs-integration/src/app/ssr/layout.tsx Updated Next.js integration example to use new slot names
packages/components/src/index.html Updated playground HTML file to use new slot names
packages/components/cypress/fixtures/post-mainnavigation.test.html Updated test fixture to use new slot names
packages/components/cypress/fixtures/post-mainnavigation-overflow.test.html Updated test fixture to use new slot names
packages/components-angular/projects/consumer-app/src/app/app.component.html Updated Angular consumer app to use new slot names
.changeset/moody-rivers-flash.md Added changeset documenting the breaking changes with migration guide

Comment on lines 53 to 54
{/* Meta navigation */}
<ul slot="global-nav-secondary">
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Inconsistent indentation: the comment has 8 spaces of indentation while the <ul> tag below it has 6 spaces. Both should have the same indentation level (6 spaces) to match the surrounding code structure.

Copilot uses AI. Check for mistakes.
@alionazherdetska alionazherdetska marked this pull request as draft December 2, 2025 15:48
@alionazherdetska alionazherdetska marked this pull request as ready for review December 4, 2025 10:56
@sonarqubecloud
Copy link

@alionazherdetska alionazherdetska merged commit 83689a4 into main Dec 10, 2025
14 checks passed
@alionazherdetska alionazherdetska deleted the 6728-rename-header-slots branch December 10, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename header slots

4 participants