Skip to content

Conversation

@aklkv
Copy link
Collaborator

@aklkv aklkv commented Oct 4, 2025

📌 Summary

ember-get-config is problematic in vite world and doesn't work without a hack this hack will not be release and it is advised to move to appInstance lookup

This just does that for components and website (which was pretty strange usecase)

  • bonus I removed no longer needed ember-unique-id-helper-polyfill support for this feature in included ember-source > v4.4 - let me know if you want me to split it out

🛠️ Detailed description

📸 Screenshots

🔗 External links

Jira ticket: HDS-XXX
Figma file: [if it applies]


👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.
@aklkv aklkv self-assigned this Oct 4, 2025
@vercel
Copy link

vercel bot commented Oct 4, 2025

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

Project Deployment Preview Updated (UTC)
hds-showcase Ready Ready Preview Nov 4, 2025 3:22am
hds-website Ready Ready Preview Nov 4, 2025 3:22am
@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2025

📦 RC Packages Published

Latest commit: 15a171f

Published 3 packages

@hashicorp/design-system-codemods@0.5.2-rc-20251104031921

yarn up -C @hashicorp/design-system-codemods@rc 

@hashicorp/design-system-components@5.0.0-rc-20251104031921

yarn up -C @hashicorp/design-system-components@rc 

@hashicorp/flight-icons@4.0.0-rc-20251104031921

yarn up -C @hashicorp/flight-icons@rc 
// the intersection observer makes loading unreliable in tests
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
if (config.environment === 'test') {
if (macroCondition(isTesting())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain a bit how this works?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that part essentially would remove this code at build time if environment is anything but test this pattern should be used when there is no way to get config from the host app or you want to be removing part of code at the build time

@aklkv aklkv force-pushed the feat/ember-get-config branch from c1fc806 to a613281 Compare October 28, 2025 20:29
@aklkv aklkv force-pushed the feat/ember-get-config branch from a613281 to 5e70b59 Compare October 28, 2025 23:49
@zamoore zamoore force-pushed the main-5.0.0 branch 2 times, most recently from c3e1df1 to 06d5696 Compare November 3, 2025 20:52
@zamoore zamoore force-pushed the feat/ember-get-config branch from 5e70b59 to f42e5cd Compare November 4, 2025 02:13
hashibot-hds and others added 2 commits November 3, 2025 19:17
Co-authored-by: jorytindall <2200899+jorytindall@users.noreply.github.com> Co-authored-by: Jory Tindall <jory.tindall@hashicorp.com>
@aklkv aklkv merged commit a2c9e10 into main-5.0.0 Nov 4, 2025
15 checks passed
@aklkv aklkv deleted the feat/ember-get-config branch November 4, 2025 19:04
zamoore pushed a commit that referenced this pull request Nov 4, 2025
zamoore pushed a commit that referenced this pull request Nov 5, 2025
aklkv added a commit that referenced this pull request Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/components release-candidate Publishes release candidates to npm showcase

3 participants