new client various fixes: all users now see challenge progress, changes to create strings, etc (#9078)

* adjust how User > Profile is referred to

* change "Create" to "Add Task" in a Challenge's page

* remove commented-out code for making a Group Plan cost Gems (there should be no Gem cost)

* split 'create' locales string into multiple strings for different purposes

- Allows text to be changed individually for each purpose.
- Assists translators in determining the best translation.
- Makes it easier to find locations in code for each string.

* remove "public" option for Group Plan creation modal

* allow all users to see challenge participant progress
This commit is contained in:
Alys
2017-09-26 22:44:49 +10:00
committed by GitHub
parent a68b02d403
commit d70ff4e5a3
10 changed files with 17 additions and 21 deletions

View File

@@ -28,7 +28,7 @@
.svg-icon.gem-icon(v-html="icons.gemIcon")
| {{challenge.prize}}
.details(v-once) {{$t('prize')}}
.row.leader-actions(v-if='isLeader')
.row.challenge-actions
.col-7.offset-5
span.view-progress
strong {{ $t('viewProgressOf') }}
@@ -36,7 +36,7 @@
b-dropdown-item(v-for="member in members", :key="member._id", @click="openMemberProgressModal(member._id)")
| {{ member.profile.name }}
span(v-if='isLeader')
b-dropdown.create-dropdown(:text="$t('create')", :variant="'success'")
b-dropdown.create-dropdown(:text="$t('addTaskToChallenge')", :variant="'success'")
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
| {{$t(type)}}
task-modal(
@@ -156,7 +156,7 @@
margin-top: 2em;
}
.leader-actions {
.challenge-actions {
margin-top: 1em;
.view-progress {

View File

@@ -57,7 +57,7 @@
b-dropdown(:right="true", :variant="'success'")
div(slot="button-content")
.svg-icon.positive(v-html="icons.positive")
| {{ $t('create') }}
| {{ $t('addTaskToGroupPlan') }}
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
span.dropdown-icon-item(v-once)
span.svg-icon.inline(v-html="icons[type]")

View File

@@ -13,7 +13,7 @@
b-dropdown-item(v-for='sortOption in sortOptions', :key="sortOption.value", @click='sort(sortOption.value)') {{sortOption.text}}
button.btn.btn-secondary.create-group-button.float-right(@click='createGroup()')
.svg-icon.positive-icon(v-html="icons.positiveIcon")
span(v-once) {{$t('create')}}
span(v-once) {{$t('createGuild2')}}
.row
.col-md-12
public-guild-item(v-for="guild in filteredGuilds", :key='guild._id', :guild="guild", :display-leave='true')

View File

@@ -86,31 +86,20 @@ div
label(for='new-group-description') {{ $t('description') }}
textarea.form-control#new-group-description.option-content(cols='3', :placeholder="$t('description')", v-model='newGroup.description')
.form-group(v-if='type === "guild"')
.radio
label
input(type='radio', name='new-group-privacy', value='public', v-model='newGroup.privacy')
| {{ $t('public') }}
.radio
label
input(type='radio', name='new-group-privacy', value='private', v-model='newGroup.privacy')
| {{ $t('inviteOnly') }}
// @TODO Does it cost gems for a group plan?
.form-group
input.btn.btn-default(type='submit', :disabled='!newGroup.privacy && !newGroup.name', :value="$t('create')")
span.gem-cost {{ '4 ' + $t('gems') }}
p
small {{ $t('gemCost') }}
.form-group
.checkbox
label
input(type='checkbox', v-model='newGroup.leaderOnly.challenges')
| {{ $t('leaderOnlyChallenges') }}
.form-group(v-if='type === "party"')
button.btn.btn-default.form-control(@click='createGroup()', :value="$t('create')")
button.btn.btn-default.form-control(@click='createGroup()', :value="$t('createGroupPlan')")
.form-group
button.btn.btn-primary.btn-lg.btn-block(@click="createGroup()", :disabled="!newGroupIsReady") {{ $t('create') }}
button.btn.btn-primary.btn-lg.btn-block(@click="createGroup()", :disabled="!newGroupIsReady") {{ $t('createGroupPlan') }}
.col-12(v-if='activePage === PAGES.PAY')
.payment-providers
h3 Choose your payment method

View File

@@ -17,7 +17,7 @@
.col-4
button.btn.btn-secondary.create-group-button.float-right(@click='createGroup()')
.svg-icon.positive-icon(v-html="icons.positiveIcon")
span(v-once) {{$t('create')}}
span(v-once) {{$t('createGuild2')}}
// @TODO: Add when we implement recent activity .float-right
span.dropdown-label {{ $t('sortBy') }}
b-dropdown(:text="$t('sort')", right=true)

View File

@@ -65,7 +65,7 @@
b-dropdown(:right="true", :variant="'success'")
div(slot="button-content")
.svg-icon.positive(v-html="icons.positive")
| {{ $t('create') }}
| {{ $t('addTaskToUser') }}
b-dropdown-item(v-for="type in columns", :key="type", @click="createTask(type)")
span.dropdown-icon-item(v-once)
span.svg-icon.inline(v-html="icons[type]", :class='`icon_${type}`')

View File

@@ -13,8 +13,10 @@
"challengeWinner": "Was the winner in the following challenges",
"challenges": "Challenges",
"challengesLink": "<a href='http://habitica.wikia.com/wiki/Challenges' target='_blank'>Challenges</a>",
"noChallenges": "No challenges yet, visit",
"toCreate": "to create one.",
"selectWinner": "Select a winner and close the challenge:",
"deleteOrSelect": "Delete or select winner",
"endChallenge": "End Challenge",
@@ -29,6 +31,7 @@
"either": "Either",
"createChallenge": "Create Challenge",
"createChallengeAddTasks": "Add Challenge Tasks",
"addTaskToChallenge": "Add Task",
"discard": "Discard",
"challengeTitle": "Challenge Title",
"challengeTag": "Tag Name",

View File

@@ -43,6 +43,7 @@
"wantExistingParty": "Want to join an existing party? Go to the <%= linkStart %>Party Wanted Guild<%= linkEnd %> and post this User ID:",
"joinExistingParty": "Join Someone Else's Party",
"needPartyToStartQuest": "Whoops! You need to <a href='http://habitica.wikia.com/wiki/Party' target='_blank'>create or join a party</a> before you can start a quest!",
"createGroupPlan": "Create",
"create": "Create",
"userId": "User ID",
"invite": "Invite",
@@ -92,6 +93,7 @@
"search": "Search",
"publicGuilds": "Public Guilds",
"createGuild": "Create Guild",
"createGuild2": "Create",
"guild": "Guild",
"guilds": "Guilds",
"guildsLink": "<a href='http://habitica.wikia.com/wiki/Guilds' target='_blank'>Guilds</a>",
@@ -315,6 +317,7 @@
"userMustBeMember": "User must be a member",
"userIsNotManager": "User is not manager",
"canOnlyApproveTaskOnce": "This task has already been approved.",
"addTaskToGroupPlan": "Create",
"leaderMarker": " - Leader",
"managerMarker": " - Manager",
"joinedGuild": "Joined a Guild",

View File

@@ -106,7 +106,7 @@
"email": "Email",
"registerWithSocial": "Register with <%= network %>",
"registeredWithSocial": "Registered with <%= network %>",
"loginNameDescription": "This is what you use to login to Habitica. To change it, use the form below. If instead you want to change the Display Name that appears on your avatar and in chat messages, go to User->Profile and click the Edit button.",
"loginNameDescription": "This is what you use to log in to Habitica. To change it, use the form below. If instead you want to change the Display Name that appears on your avatar and in chat messages, go to the User Icon &gt; Profile and click the Edit button.",
"emailNotifications": "Email Notifications",
"wonChallenge": "You won a Challenge!",
"newPM": "Received Private Message",

View File

@@ -6,6 +6,7 @@
"addsingle": "Add Single",
"editATask": "Edit a <%= type %>",
"createTask": "Create <%= type %>",
"addTaskToUser": "Create",
"scheduled": "Scheduled",
"theseAreYourTasks": "These are your <%= taskType %>",
"habit": "Habit",