-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Add ember-page-title to app default blueprint #645
Conversation
Co-authored-by: abhilashlr <abhilashlr.789@gmail.com>
Co-authored-by: Ricardo Mendes <rokusu@gmail.com> Co-authored-by: Melanie Sumner <melaniersumner@gmail.com>
Should we audit the API of the addon as part of this effort? |
@kellyselden I think so. There are certain capabilities I'd want to make sure are present, and I'd want to make sure that any addon we add "feels nice" to use I have no experience with this addon, and haven't used anything other than custom title manipulation, so predisposition-wise, I'm starting from scratch. :D Left some questions |
|
||
## Summary | ||
|
||
Add [`ember-page-title`](https://github.com/adopted-ember-addons/ember-page-title) to the default blueprint for new Ember apps as a way to provide improved out-of-the-box (OOB) accessibility for Ember applications. |
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.
does the addon maintain a history of the titles?
Like, if I were to do a bunch of navigations where some, but not all page-title invocations have replace=true
, does the title always reflect what is rendered?
Does that mean that the page title is dependent on render order?
What happens if I do?
{{#each this.breadcrumbs |breadcrumb|}}
{{page-title breadcrumb.name}}
{{/each}}
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.
I'm not sure, I'll make a dummy app to test ^^
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.
I'll add nested route + breadcrumbs test case to ember-page-title and we'll find out.
Co-authored-by: Jan Buschtöns <buschtoens@gmail.com>
Why |
💯 While I have no allegiance to any of these addons, I think in the alternatives / prior art and/or detailed design section, there should be some comparison between them? What makes one addon objectively better than the others and worth including by default? |
Yeah I think we should be committed to whatever addon and API we choose. It has to make sense, and not just come along because the addon is popular. For instance. I see that the way to configure the addon is a key on |
The first intent of the a11y strike team was to create an addon with the features of |
Yes that’s correct! We felt ember-page-title was the most aligned with the current and future direction of the framework (a template-based solution). |
Co-authored-by: Jan Buschtöns <buschtoens@gmail.com>
@rwjblue reminder to file the relevant issues on the addon so we can move to FCP this RFC. 👍 |
@rwjblue are there any breaking changes required? Was planning on releasing a new major version this week. |
While I can relate to that, I think the RFC should explain that in some detail. Like there are a couple of other similar addons - which IIRC follow a route-based rather than template based API - and why do we pick this one and not one of the others? Which brings me to another topic: meta tags. While this RFCs only mentions a11y concerns as a motivation - which is legit - another one is SEO, especially when used with FastBoot. But when thinking of SEO, you also want to account for proper meta tags. While this does not necessarily be tackled within the same RFC, I think we should have at least a broad idea about how to extend support to meta tags. So there a couple of addons (e.g.
So when endorsing one addon in such a massive way by making it a default one, we should make sure there is a viable way to also support meta tags, that
Or at least we should make sure there are no reasons to later revert our decisions here because of this. Another thing: what does making a "user-land" addon a default one mean in terms of maintenance guarantees? I am in no way suggesting this addon is not well maintained (frankly I have no idea, I haven't used it before), but the addon is part of the |
It's a good idea, I'm gonna add a small explanation 👍 .
In the RFC, it's indicated that this addon should be transferred to the Ember CLI org. It's true that making an addon part of the default blueprint involves that the official Ember team will have to maintain it somehow and we should be very careful about that. This question was raised while working on the RFC 638 and now the RFC clearly indicates that before adding any new option using an external addon, we should evaluate the maintenance cost that might come with. |
I'm interested in the meta tags discussion, and am highly aware of the importance there as well. We just removed ember-cli-head from ember-page-title, so the meta support is no longer included because of that dependency. I think that area is worth discussing but unsure if it should be in this PR. Maybe something template based as well. {{page-meta (hash og:title='Test')}} Not sure we can do something like that with special characters. Will have to see if Edit, looks like it works as |
I agree with @simonihmig here. There is more than just Actually, what I would expect from ember would be an API that the various addons can connect to. So ember is reigning I will write myself a decorator that I put on my routes, to control the title and it's hierarchy/information architecture of my site and another breadcrumb component (which I installed as an addon) that will use that generated data to control the breadcrumbs. The data lives in the "central head content repository". |
I think we can have both, an official service and helpers that let you change that without having to install addons. For accessibility it should be included out of the box, because otherwise it's not done, especially by junior devs. I could even see a template linting rule that knows if you are at a route template and suggests adding a title, but that would be difficult if they had to go down a rabbit hole of how to setup a title with a service and where does it go, etc. |
ember-page-title v6 has been released and dropped ember-cli-head (which required the use of `<HeadLayout/>`)
@KamiKillertO now that |
Thanks @MelSumner 👍 , I've already updated the RFC to reflect |
We have discussed this in today's Framework Core Team meeting, and decided to move this RFC to Final Comment Period. |
Just voicing support for this RFC and bringing the addon into the core app. I'm glad to see page titles will be less of an afterthought in the apps I work on every day and I'll no longer need to make a case to include another addon, as that case has already been made here! Great work to everyone involved 🎉 |
This seems to be still relevant issue - ember-cli/ember-page-title#90 from accessibility perspective? |
I don't think 🤔. |
Lets do it! |
Rendered