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
Fixes Issue #12421 - Change page title based on the site section being viewed #12627
Conversation
@jbusa22 I tested the PR and overall it's working well, there are a few issues though:
And a couple of things for @Tressley
|
Yeah, we're not settled on a date for that change, so let's move forward with "Group" until we're ready to move forward on the potential name change.
Yeah, I think this should try to hit all sections on the site. I outlined most of them, but was sure I was missing others. For the sections I missed, they should follow the same structure: |
In response to @paglias,
|
|
@paglias Yes, that makes sense. |
I think I hit all of the sections / subsections. I also added a watcher like you said to the challenges, but just used an already defined function for groups. Also features isn't used in the json, so I added it, not sure if I need to do anything else for translations to work. |
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.
thanks @jbusa22 , I left 3 small comments then it should be good to go :)
website/client/public/index.html
Outdated
@@ -4,7 +4,7 @@ | |||
<meta charset="utf-8"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||
<title>Habitica - Gamify Your Life</title> | |||
<title>Habitica</title> |
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.
sorry, Gamify Your Life can stay in this file
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.
Did another round of testing, left some comments, other than that the only two things missing are titles for:
- Login
- Register
@@ -14,6 +14,7 @@ | |||
"askQuestionGuild": "Ask a Question (Habitica Help guild)", | |||
"contributing": "Contributing", | |||
"faq": "FAQ", | |||
"features": "Features", |
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.
@jbusa22 adding the string is the correct thing to do but it should be added only to the locales/en/groups.json
file
@jbusa22 thanks for this PR! I'm merging the PR and awarding your contributor tier. Note that further tiers require increasing amounts of work from one to the next, so Tier 2 may require a couple of PRs or a larger PR to attain. But keep helping out and we'll express our gratitude accordingly! |
…ion being viewed (HabitRPG#12627) * Update title for tabs not including challenges, guild and team * add section titles to challenges, guilds, and groups * Update dynamic title to use vuex action * Remove duplicate key * Actually remove duplicate key * Fix section sub section in group * Add note to implement setTitle when adding a page * Add missing sections to dynamic title * Features string not translated * Use onGroupUpdate to update group titles * Add watcher to challenges for dynamic title updates * Small fixes * Add register and login to title, remove duplicate keys * Add home page dynamic title functionality * Minor name changes * remove wrong i18n strings from front.js * refactor router note Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
Fixes #12421
Changes
Added dynamic title updating by modifying the title attribute in the vue store on component mount.
Current dynamic title sections are:
Tasks
Inventory
Shops
Party
Guilds
Group
Challenges
UUID: 7f566b3a-3b43-4035-b712-8ddef3e82a71