Skip to content

Conversation

leagrdv
Copy link
Contributor

@leagrdv leagrdv commented Aug 5, 2025

📄 Description

Created a new PR based on #4936 as the internet-header package was removed from v8.

@gfellerph The changes you requested in the previous PR have been adressed on this one.

Copy link

changeset-bot bot commented Aug 5, 2025

🦋 Changeset detected

Latest commit: 40d73f6

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

This PR includes changesets to release 3 packages
Name Type
@swisspost/internet-header Patch
@swisspost/design-system-documentation Patch
@swisspost/design-system-nextjs-integration 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

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Aug 5, 2025

Related Previews

@leagrdv leagrdv requested a review from gfellerph August 6, 2025 11:27
@leagrdv leagrdv marked this pull request as ready for review August 6, 2025 12:21
@leagrdv leagrdv requested a review from a team as a code owner August 6, 2025 12:21
@leagrdv leagrdv requested review from oliverschuerch and removed request for oliverschuerch August 6, 2025 12:21
leagrdv added 2 commits August 8, 2025 15:53
…ink-for-the-selfadmin-when-the-logouturl-is-not-the-same-domain-as-the-user-profile-2
…ink-for-the-selfadmin-when-the-logouturl-is-not-the-same-domain-as-the-user-profile-2
@leagrdv leagrdv requested a review from oliverschuerch August 27, 2025 14:19
Copy link

Copy link
Contributor

@oliverschuerch oliverschuerch left a comment

Choose a reason for hiding this comment

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

Regarding the self-admin-origin prop in the docs:

  • Group it with other controls in the "Overrides" section.
  • Align the property naming (camel case).
  • Add a clearer description, so users without internal knowledge can understand how and when to use it.
  • Change the control type, so it becomes possible to define a value.
image

...(this.logoutUrl !== undefined
? { platform: { ...platform, logoutURL: this.logoutUrl } }
: { platform }),
platform,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
platform,
{ platform },

@@ -182,6 +187,7 @@ export class PostInternetHeader {
try {
state.projectId = this.project;
state.stickyness = this.stickyness;
state.selfAdminOrigin = this.selfAdminOrigin;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary/smart to handle the selfAdminOrigin different than the logoutUrl here?

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.

3 participants