Skip to content
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

ui: Implements the ember-page-title addon to the UI #7118

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

kaxcode
Copy link
Contributor

@kaxcode kaxcode commented Jan 23, 2020

  • Installs ember-page-title 5.x

  • Adds a page title to all template files that need one

  • Adds an assertion step to test the page titles

demo

@kaxcode kaxcode added the theme/ui Anything related to the UI label Jan 23, 2020
@kaxcode kaxcode requested a review from a team January 23, 2020 18:37
Copy link
Contributor

@gregone gregone left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link

@DingoEatingFuzz DingoEatingFuzz left a comment

Choose a reason for hiding this comment

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

This looks great @kaxcode! My one request is to add test coverage.

Consul uses Gherkin for acceptance testing, and I suspect since these would be the first title tests, you'll have to add new functionality to the existing steps the Gherkin tests use.

@johncowen will know what to do 🙂

@kaxcode kaxcode force-pushed the feature/ui-implement-ember-page-title branch from 95a29f2 to 0976206 Compare January 27, 2020 18:03
* Installs ember-page-title 5.x

* Adds a page title to all template files that need one

* Adds an assertion step to test the page titles
@kaxcode kaxcode force-pushed the feature/ui-implement-ember-page-title branch from 0976206 to 60b0db8 Compare January 27, 2020 18:28
Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

Hey @kaxcode

I gave this a spin and it looks great! Super stoked you got into the testing and down to writing your own steps 🎉

I'd say this is good to merge as is, but I left one comment about looking at that head.hbs file, maybe just check see if thats still needed or not.

@@ -0,0 +1 @@
<title>{{model.title}}</title>
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this file only needed for when you are using FastBoot? Maybe try and remove it and see if everything is fine. We don't run in FastBoot so if we don't need this file we could leave it out of the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I commented this file out and the page titles broke. This is a required file with or without FastBoot.

@johncowen johncowen added this to the 1.7.0 milestone Jan 28, 2020
@kaxcode kaxcode merged commit ff315c9 into ui-staging Jan 28, 2020
@kaxcode kaxcode deleted the feature/ui-implement-ember-page-title branch January 28, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants