Freecodecamp: link insertion

Created on 27 Jul 2020  路  5Comments  路  Source: freeCodeCamp/freeCodeCamp

when we are doing assignments that need glitch or github assignment its tiring to paste link again and again

it woud be good it same link remains pasted after we open next challenge , user still will be able to replace it with new glitch or github link if he/she wants

Screenshot (373)

help wanted feature request

Most helpful comment

What we might be able to do is just set a local storage that will contain something like this:

{
  "challenge-name/link": {
     "saved-link": "https://link-to-the-project.com"
  }
  "challenge-name/link": {
     "saved-link": "https://link-to-the-project.com"
  } 
}

And then make the I've Completed This Challenge button trigger a function that will take the link and the challenge url name, parse it into the json, and store it into the local storage.

Then have a function check if there is an input or if there is already a way to check if the challenge requires a link, and take the url the user is currently in, and then take the JSON and search for the specific challenge-name/link and then fill in the input with the saved url.

Just a suggestion 馃檪

All 5 comments

so you mean the link of a previous project should show up as default for the current one?

so you mean the link of a previous project should show up as default for the current one?

yes of the previous challenge

If each section used the same boilerplate throughout, the first lesson's solution link field would be empty with only the normal placeholder test , then local storage could be used to track/populate each proceeding lesson with the url used for the previous lesson However, since some sub sections have multiple boilerplates, it might be confusing for users to auto-populate a previously used url for a lesson where they would need to enter a new url. Ideally, when a new boilerplate is used, the lesson 's solution link would be empty again with only the normal placeholder text.

If each section used the same boilerplate throughout, the first lesson's solution link field would be empty with only the normal placeholder test , then local storage could be used to track/populate each proceeding lesson with the url used for the previous lesson However, since some sub sections have multiple boilerplates, it might be confusing for users to auto-populate a previously used url for a lesson where they would need to enter a new url. Ideally, when a new boilerplate is used, the lesson 's solution link would be empty again with only the normal placeholder text.

but it would be great where it same link can be used eg:- glitch link

What we might be able to do is just set a local storage that will contain something like this:

{
  "challenge-name/link": {
     "saved-link": "https://link-to-the-project.com"
  }
  "challenge-name/link": {
     "saved-link": "https://link-to-the-project.com"
  } 
}

And then make the I've Completed This Challenge button trigger a function that will take the link and the challenge url name, parse it into the json, and store it into the local storage.

Then have a function check if there is an input or if there is already a way to check if the challenge requires a link, and take the url the user is currently in, and then take the JSON and search for the specific challenge-name/link and then fill in the input with the saved url.

Just a suggestion 馃檪

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MichaelLeeHobbs picture MichaelLeeHobbs  路  3Comments

vaibsharma picture vaibsharma  路  3Comments

SaintPeter picture SaintPeter  路  3Comments

danielonodje picture danielonodje  路  3Comments

DaphnisM picture DaphnisM  路  3Comments