habitica icon indicating copy to clipboard operation
habitica copied to clipboard

Creating a Guild Challenge doesn't mention Gem bank

Open SabreCat opened this issue 6 years ago • 15 comments

Description

As reported by cTheDragons in the Report a Bug Guild:

When creating a challenge it no longer states where the gems are coming from When creating a challenge it not clear when creating the challenge if the gems are coming from the guild or yourself. Can be a little confusing to new players.

SabreCat avatar Jun 13 '18 21:06 SabreCat

@SabreCat can I get started with this issue :)

arunikayadav42 avatar Jun 14 '18 21:06 arunikayadav42

@arunikayadav42 Sure, go for it!

SabreCat avatar Jun 14 '18 22:06 SabreCat

as an initial step can I please know how can I get started...I am newbie to open source :)

arunikayadav42 avatar Jun 15 '18 16:06 arunikayadav42

@arunikayadav42 I'm sorry about the delay! The Guidance for Blacksmiths wiki page is a good place to start learning about Habitica's code and how to contribute. It links to a couple of other important pages about setting up a local install and then using the install for creating new code and pull requests. If you have any generic questions, the Aspiring Blacksmith's guild is a good place to ask (there's a link to it in that page too). Questions about this specific issue can be posted here!

Alys avatar Jun 25 '18 06:06 Alys

@Alys Oh, I pointed them there already over on https://github.com/HabitRPG/habitica/issues/10448! (Though I suppose I jumped straight to local install, whoops)

SabreCat avatar Jun 25 '18 18:06 SabreCat

Ah! Yes, I remember that now. Sorry, Sabe! The local install page has links back to Guidance for Blacksmiths so it's a good starting point too. :)

Alys avatar Jun 25 '18 19:06 Alys

@arunikayadav42 Are you still interested in working on this issue? Please update us when you have a moment. Thank you!

beffymaroo avatar Jul 30 '18 21:07 beffymaroo

@arunikayadav42 Since we haven't heard from you, I'm putting this issue back in "Help Wanted." You're welcome to ask for it again if it's not claimed by the time you see this message.

beffymaroo avatar Aug 17 '18 18:08 beffymaroo

Do we have copy for this and do we already have tooltips used in forms somewhere?

TheHollidayInn avatar Aug 25 '18 04:08 TheHollidayInn

I can knock this one out, but I believe we would need additional translations...

flhat avatar Aug 31 '18 20:08 flhat

@BlkStormy do you mean non-english translations? no worries about them , they'll get added later

paglias avatar Sep 01 '18 08:09 paglias

I can try my hand at this if no one has picked it up!

Is the desired functionality that the language around the Prize box should be more verbose? Does the prize from a challenge always come from the guild bank? I was thinking maybe we could do something like in the picture below. I tried adding the gem SVG within the input box but was getting the following error: 'input is a self closing element: but contains nested content.'. I'm new to vue and, granted I didn't try for too long, but I'm not sure yet how to get that functionality out of it.

selection_438

CBillings92 avatar Feb 10 '19 22:02 CBillings92

If the person creating a challenge is NOT the guild leader, then the Gems always come from their own balance.

If the person creating a challenge IS the group's leader AND there are any Gems in the group's Bank, then the Gems will be taken from the Bank. If the challenge's prize is more than the number of Gems in the Bank, all the Gems in the Bank will be used and the remaining Gems will come from the challenge creator's own balance.

I'm not sure how complex we want this fix to be. The simplest approach would be to include a static message explaining all that, but that would be very verbose. A more complex approach would be:

  • When the challenge creation form appears, when it fetches a list of groups that the user is a member of, it also fetches the leaders and bank balances.
  • When the user chooses a group, the form's code checks to see if the user is the leader. If not, there's no special handling needed.
  • If the user is the leader, the form's code checks the group's balance and the gem prize and displays an appropriate message to indicate the location(s) that the gems will come from.
  • Parties shouldn't have special handling in this code. Currently Parties can't have Gems in their Bank but that might change in future, so this code should be written with that in mind (which should just mean you don't need to do anything special for Parties versus Guilds at all). Currently all Parties will have 0 Gems in their Bank so the code described above should correctly indicate that the challenge Gems will come from the user's balance.

@CBillings92 You might want to wait to see if any staff comment here about how they see this working.

Alys avatar Feb 11 '19 01:02 Alys

@CBillings92 If you're still thinking of working on this, I approve @Alys's suggestions above!

SabreCat avatar Mar 21 '19 18:03 SabreCat

We're putting this on hold for now until Gem Bank has more functionality.

veeeeeee avatar Aug 18 '20 16:08 veeeeeee