hackertab.dev icon indicating copy to clipboard operation
hackertab.dev copied to clipboard

Exporting/Importing Bookmarks

Open user-64bit opened this issue 2 years ago • 18 comments

I've been using Hackertab from past few weeks. I'm using it in my work laptop as well as my personal laptop. So the issue happens when I try to get the bookmarked article from one laptop to another one. or wants to share the bookmarks with someone.

Exporting/Importing bookmarks will help anyone to organize there favorite articles.

Hope you got the point :)

user-64bit avatar Aug 18 '23 12:08 user-64bit

Hey @medyo ! Can I work on this feature?

idebenone avatar Sep 01 '23 07:09 idebenone

@idebenone with pleasure, Can you provide a compact tech spec for the feature, explain your proposed implementation method, and share any available UIs if available.

medyo avatar Sep 01 '23 09:09 medyo

Hey @medyo ! I was thinking of using storage.sync which is a part of Chrome/Firefox extension API and have an option to sync bookmarks.

idebenone avatar Sep 02 '23 07:09 idebenone

Update ! I tried to do with storage.sync , but its not reliable. IMO it would be better to do it from backend(ex: OAuth) and plus we can save a lot metadata like UI state and user preferences which will be in sync across devices. I think backend is not available to work on as of now ryt? Please let me know what you think of this @medyo.

idebenone avatar Sep 03 '23 13:09 idebenone

Hello @idebenone You might be right. If will be better if we can implement it from the back end. But I guess for now we can at least provide a feature of Import/Export. We can Optimize or make it better later on. Tell me, If I'm missing something here?

What do you say? @medyo

user-64bit avatar Oct 11 '23 07:10 user-64bit

@arth2002 @idebenone did you check the chrome.bookmarks API?

medyo avatar Oct 15 '23 11:10 medyo

@medyo Interesting! Will look into it.

idebenone avatar Oct 18 '23 20:10 idebenone

Hi @medyo, I wanted to work on this feature, but apparently I'm getting an error. Tried re-installing the packages, still no luck.

image

idebenone avatar Dec 18 '23 07:12 idebenone

Hi @medyo, I wanted to work on this feature, but apparently I'm getting an error. Tried re-installing the packages, still no luck.

image

I think react-icons has removed or changed the icon name, please replace in the project GoPrimitiveDot by GoDotFill and push the fix (to develop)

medyo avatar Dec 18 '23 10:12 medyo

@idebenone Fixed, feel free to pull the last changes

medyo avatar Dec 18 '23 17:12 medyo

@medyo I have created a function which will create a folder(bookmark's folder) in browser and adds all the hackertab bookmarks. Is this sufficient?

idebenone avatar Dec 22 '23 09:12 idebenone

yes sounds good, do you ask for the bookmarks permission on click ?

medyo avatar Dec 22 '23 10:12 medyo

Not at the moment, but I will include if that's required.

idebenone avatar Dec 22 '23 10:12 idebenone

Hey @idebenone Are you working on this issue? 👀 If not then I would like to do it myself if possible. 🙂 Thanks 😊 cc: @medyo

user-64bit avatar May 01 '24 06:05 user-64bit

Hey @us3r64bit Yeah sure, my hands are full at the moment.

idebenone avatar May 01 '24 06:05 idebenone

Hello @medyo It might be so stupid to ask for this type of doubt but I'm very bad with setting up projects on local. :sweat_smile: I was getting error and I don't know WTH is VITE_API_URL and where to get it from. (I've never used VITE too :face_with_spiral_eyes:) Please guide me about how can I get VITE_API_URL and other env variables if there are any. Thanks :slightly_smiling_face:

user-64bit avatar May 02 '24 02:05 user-64bit

Hi @us3r64bit, Actually I forgot to update the README,

create an .env at the root of the project with the following vars:

VITE_BUILD_TARGET=extension
VITE_API_URL=https://api.hackertab.dev/

medyo avatar May 02 '24 10:05 medyo

Pinging you in case you miss my message on PR. :slightly_smiling_face: @medyo

user-64bit avatar May 21 '24 15:05 user-64bit