twelve-of-code-official / website

The source code for the Twelve of Code website
https://mesure.x10.mx/twelve-of-code
GNU General Public License v3.0
0 stars 0 forks source link

Make a way to mark a challenge as in progress #91

Closed Mesure73L closed 6 months ago

Mesure73L commented 7 months ago

What problem were you having?

No response

What solution would you like?

Make a way to mark a challenge as completed

What alternatives have you considered?

This is a to-do item that needs to be completed

What are some pros and cons of doing this?

Input

const pros = "makes it easier to tell what you've already done";
const cons = undefined;
console.log(`Pros:\n${pros}\nCons:\n${cons}`);

Output

Pros:
makes it easier to tell what you've already done
Cons:
undefined

What page is this for?

Twelve of Code

BeepBot99 commented 7 months ago

What do you mean by marking a challenge as completed? Do you mean building a UI on the website where you can check off challenges even if you have not completed them in that instance of the website?

BeepBot99 commented 7 months ago

In the future, please be more specific with your issues.

Mesure73L commented 7 months ago

What do you mean by marking a challenge as completed? Do you mean building a UI on the website where you can check off challenges even if you have not completed them in that instance of the website?

No, making a way to set a challenge as completed after the user finishes it and display it on the selector.

Mesure73L commented 7 months ago

And also telling the user using SWAL2 that they completed it.

BeepBot99 commented 7 months ago

That already exists. cman.setChallengeStatus Look at the wiki.

BeepBot99 commented 7 months ago

And also telling the user using SWAL2 that they completed it.

I can do that.

Mesure73L commented 7 months ago

If there isn't already, make a way to mark a challenge as in progress. I might've said challenges aren't in progress before but now I think that some challenges might benefit from saving where you are in it.

BeepBot99 commented 7 months ago

Okay, I will do that.

BeepBot99 commented 7 months ago

Well, currently the challenge can be one of these three:

  1. true
  2. false
  3. An epoch time in milliseconds

So, I will make it so it can also be "in progress".

Mesure73L commented 7 months ago

no not information.json

Mesure73L commented 7 months ago

the user's cookies

BeepBot99 commented 7 months ago

Oh yeah right Well then "in progress".

Mesure73L commented 7 months ago

There needs to be a third boolean value added. maybe

true, false, or maybe /j

Mesure73L commented 7 months ago

Deleted those because clearly you don't know what "/j" means.