linkding icon indicating copy to clipboard operation
linkding copied to clipboard

Disabling archive functionality

Open ab623 opened this issue 3 years ago • 5 comments

I don't intend to utilise the archiving feature of this application. I intend to hide the archive behind a use settings, as I commonly end up accidentally pressing the archive button and have to unarchive a bookmark regularly.

Tasks required

  • Hide archive button on bookmarks page
  • Hide archive button on main nav
  • Create user setting to hide/show archive
  • Update docs.

@sissbruecker is this a feature you would merge if I raised a PR for it?

ab623 avatar May 17 '22 20:05 ab623

Sounds interesting, and shouldn't add too much complexity. You would also have to provide tests. In this case we want to ensure that the setting is disabled by default, that archive buttons and links are visible by default, and that they are hidden when the feature is enabled. Here is a PR with a similar scope: https://github.com/sissbruecker/linkding/pull/164/files

sissbruecker avatar May 19 '22 20:05 sissbruecker

Good point on the tests. Will work on this when I have some free time and raise a PR.

ab623 avatar May 21 '22 20:05 ab623

Something else I'd add for completeness which probably requires testing: if a user has archived entries and tries to disable the archive, they should be notified somehow. Either allow them to abort (and nothing changes) or continue (and all archived entries are unarchived).

schaafjs avatar May 26 '22 19:05 schaafjs

Yes, but also a nice to have. Its a non-destructive change, all it is doing is hiding the UI elements. So if there is an issue it can be reverted back.

Likely, on the settings page, I can add some commentary along the lines of "Enabling this feature will hide any existing archived linked from view"

ab623 avatar May 27 '22 17:05 ab623

Yeah, that also works. It would probably be more fitting to call it "Hide archive" or similar then since nothing actually gets disabled.

schaafjs avatar May 27 '22 18:05 schaafjs