Skip to content

Use public suffix list for auth site labels - #38

Merged
chruffins merged 1 commit into
mainfrom
hypeship/fix-co-il-domain-label
Oct 5, 2026
Merged

chruffins merged 1 commit into
mainfrom
hypeship/fix-co-il-domain-label

Conversation

@chruffins

@chruffins chruffins commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replace the hardcoded multi-part suffix set with tldts registrable-domain parsing.
  • Add coverage for .co.il, .co.uk, and regular domains.
  • Add a patch changeset for @onkernel/managed-auth-react.

Validation

  • bun test (86 tests passed)
  • bun run --filter @onkernel/managed-auth-react typecheck
  • bun run --filter @onkernel/managed-auth-react build

Note

Low Risk
Display-only hostname labeling change with tests; no auth or data-handling logic touched.

Overview
Site labels on the initial auth screen (e.g. in StepPrime and SiteIcon) now come from public-suffix–aware parsing instead of a fixed list of multi-part TLDs.

extractPrimaryDomainLabel in profile-name.ts is rewritten to use tldts so subdomains like login.clalit.co.il and auth.example.co.uk resolve to clalit / example rather than wrong segments. The package adds tldts@7.4.15, unit tests for those cases, and a patch changeset for @onkernel/managed-auth-react.

Reviewed by Cursor Bugbot for commit 06c901b. Configure here.

@vercel

vercel Bot commented Oct 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
managed-auth-react-demo Ready Ready Preview Oct 5, 2026 7:24pm UTC

@chruffins
chruffins marked this pull request as ready for review October 5, 2026 19:42
@chruffins
chruffins requested a review from akxue October 5, 2026 19:42

@akxue akxue left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cool, this seems like a super cool and useful library for us - lgtm

@chruffins
chruffins merged commit 3e540f3 into main Oct 5, 2026
5 checks passed
@chruffins
chruffins deleted the hypeship/fix-co-il-domain-label branch October 5, 2026 20:10
@github-actions github-actions Bot mentioned this pull request Oct 5, 2026

This branch was successfully deployed

1 active deployment
Preview — 06c901bc Deployed Oct 5, 2026 by vercel[bot]
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.

2 participants