-
Couldn't load subscription status.
- Fork 50
"Dropdown" component - Add support for "LinkToExternal" engine component (08) #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
as suggested by Matthew Irish here https://hashicorp.slack.com/archives/CPB8GS9QT/p1649868722882949?thread_ts=1649868202.616679&cid=CPB8GS9QT we need both according to the documentation: https://ember-engines.com/docs/quickstart#:~:text=A%20quick%20note%2C%20Engines%20should%20have%20ember%2Dengines%20listed%20as%20a%20devDependency%20and%20peerDependency
…` via a `@isRouteExternal` prop
… route (this triggers an error in console, I suspect we need to configure the app to support engines)
🦋 Changeset detectedLatest commit: 084a1a4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
This pull request is being automatically deployed with Vercel (learn more). hds-flight-website – ./🔍 Inspect: https://vercel.com/hashicorp/hds-flight-website/9qtdXpGY1tyJyjYBWqEhqq9u1S3Y hds-components – ./🔍 Inspect: https://vercel.com/hashicorp/hds-components/22nTAoSsJS9qt5BdqUo6Fa2zKs73 |
…support-for-link-to-external
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Are we sure that we need to add ember-engines as a peer dependency? This seems strange to me. Engines should be able to consume and use the addon w/o us specifically adding it, shouldn't they? |
|
@MelSumner this is is still in draft because likely will be solved (if approved) by #216 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for not getting to this sooner, if we need to ship this to support engines then we should ship it.
📌 Summary
This is a draft PR to discuss (using real code) a possible solution to the problem of supporting
LinkToExternallinks in our components (these are very special kind of links, similar to the<LinkTo>but specific for Ember engines.More context:
👉 Notice: if you want to test it yourself and play with the code:
yarn installin the root of the project, and then callyarn startin the folderpackages/componentsDropdownpage🛠️ Detailed description
In this PR I have:
ember-enginesas both devDependency and peerDependencylist-item/interactiveto support also aLinkToExternalvia a@isRouteExternalprop🚨 Notice: this triggers an error in console, I suspect we need to configure the app to support engines
I am not sure how to proceed from here, is beyond my Ember knowledge.
👀 How to review
👉 Review by files changed
Reviewer's checklist:
💬 Please consider using conventional comments when reviewing this PR.