carolinaknoll / awesome-gamified

:eyeglasses: Awesome Gamified - See your progress and save awesome links you've already seen!
https://carolinaknoll.github.io/awesome-gamified/
MIT License
73 stars 20 forks source link

[SavedItems] Add import/export saved items functionality #10

Closed carolinaknoll closed 4 years ago

carolinaknoll commented 4 years ago

As saved items are only saved on localStorage, it would be great to have a way to export/import saved items.

This functionality can be divided into multiple pull requests. As an example:

dshubhadeep commented 4 years ago

Hi @carolinaknoll, I would like to work on this

carolinaknoll commented 4 years ago

Hi, @dshubhadeep! Okay, I will add a 'taken' label to this issue so that you can safely work on it.

You can create your pull request in October when Hacktoberfest begins, if you would like it to count towards your shirt. :octocat:

Thanks for helping the project! 😄

dshubhadeep commented 4 years ago

Thank you 😊 I have some pending projects at the moment. We can discuss the requirements once Hacktoberfest begins, if that's okay with you.

carolinaknoll commented 4 years ago

Yes, no problem. You don't need to rush it, just comment back when you can and we can discuss it further next month.

Thank you! 😄

akashsark commented 4 years ago

Hi @carolinaknoll, I would like to work on this

carolinaknoll commented 4 years ago

Hi @akashsark!

Thank you for your interest, but this issue is already taken by @dshubhadeep.

This means that you cannot work on it, since it is already assigned to @dshubhadeep.

In any case, thank you for your interest on contributing to the project! 😄

dshubhadeep commented 4 years ago

Hi @carolinaknoll, I will start working on the first 2 issues. What format should the exported file be in ? JSON ? Should the import/export feature be added to the saved-item component ?

carolinaknoll commented 4 years ago

Hi @dshubhadeep, thanks for your comment!

Yes, JSON format seems fantastic.

About the import/export, I think it will look okay if it is a button inside the saved-items panel. If for some reason it doesn't, there is always space on the navigation bar where you can put it.

However, for the file structure, I believe that it will be better being a individual component (and not linked together with saved-items). But, again, if it seems too complicated that way, you can add it to the saved-items and the code can be refactored in the future, if needed.

Thank you for spending your time to contribute to the project! 😄

dshubhadeep commented 4 years ago

Cool, I'll start working on it. And there is a bug where an item can be saved even if it's already present in the list, thus it appears multiple times. I can work on it, if that's okay with you.

carolinaknoll commented 4 years ago

Hi @dshubhadeep, well spotted! I had forgotten about this bug, nice that you found it! 😄

It will be awesome for you to work on it. If you would like, you can create an issue or a different pull request for it.

Thank you! 🚀

dshubhadeep commented 4 years ago

No problem 👍 I'll create a different pull request for that.

dshubhadeep commented 4 years ago

@carolinaknoll I have submitted a PR, let me know if there are any changes.

carolinaknoll commented 4 years ago

I have commented on the PR, this feature looks great!

I have merged your changes, and will be closing this issue.

Thank you for your contribution! 😄