chylex / Discord-History-Tracker

Desktop app & browser script that saves Discord chat history into a file, and an offline viewer that displays the file.
https://dht.chylex.com
MIT License
475 stars 83 forks source link

Add a wizard for setting up tracking script + additional options #169

Open chylex opened 2 years ago

chylex commented 2 years ago

Now that the Tracking tab has more space, a wizard for configuring the tracking script could be a much more intuitive way to configure DHT.

I imagine that first time you create a database, the Tracking tab will require answering a few prompts before it shows the "Copy Tracking Script" button. Could look something like this:

If the user selects the autoscroll option, then it would ask "How far in history do you want to go":

Finally, a question "What to do when reaching the end":

After answering all prompts, the "Copy Tracking Script" will appear with final instructions. This tracking script would be pre-configured with the selected options, and would not have any "Settings" dialog on its own. Each database will remember the last configuration when you restart the app.

Removing settings from the tracking script itself might be a mild inconvenience for users who are used to it, but it would simplify the script and allow for new options to be added to the app (for ex. the already mentioned possibility to scroll up until a specific date).

Another improvement would be to allow pasting the tracking script multiple times without having to manually close it via the "X" button. Then you could change the options in the app, copy the tracking script, and paste it immediately with the new options.

matr3p commented 2 years ago

It doesn't track/save the call/video metadata though. Also pinned message metadata

chylex commented 2 years ago

That's not relevant to this thread.

no-trick-pony commented 2 years ago

Would be a great improvement - I am trying to back up some of my servers which have become quite huge - manually scrolling to every "starting message" in every channel and tracking that is very tedious - a general "back up starting from this date onwards" (maybe also with end date) as described here would be a great addition.

chylex commented 2 years ago

I don't know what you mean by

manually scrolling to every "starting message" in every channel and tracking that is very tedious

DHT doesn't need to scroll to the beginning of the channel, it can stop when it reaches messages it already had in the archive. Everything except for scrolling to a set date is already supported, this issue is mainly about UI.