zen icon indicating copy to clipboard operation
zen copied to clipboard

Backup and Restore Funtionality

Open Honkertonken opened this issue 1 year ago • 1 comments
trafficstars

Description

I currently have around 11 custom filters and would greatly appreciate an option to backup and restore these filter lists. Additionally, it would be great if this package were available on winget.

Otherwise, amazing app, keep up the great work :)

Honkertonken avatar Sep 15 '24 17:09 Honkertonken

Glad you enjoy the app! Adding this to the backlog.

anfragment avatar Sep 16 '24 19:09 anfragment

Hi I think I can do it

In my design I will

  • Front Design In my design I may add a export and Import button at the right side of the Custom Filter Lists
  • Export Feature export filter meta data as the file (Toml or Json)
  • Import Feature Read the File to the filter and apply it

Noahnut avatar Oct 21 '24 14:10 Noahnut

Hello @Noahnut! Sounds great; feel free to work on the issue. Here’s a beginner’s guide to the project that you can use to get started: https://github.com/anfragment/zen/blob/master/docs/internal/index.md#getting-started.

Regarding the format, I think JSON is a better fit since we’re already using it, and Go’s standard library provides a package for it.

anfragment avatar Oct 30 '24 20:10 anfragment

Hello @anfragment The UI will like the photo. Is that ok ? I will export and import the custom filter only.

image

Noahnut avatar Nov 02 '24 09:11 Noahnut

@Noahnut looks neat, love it! A few minor UX suggestions:

  • I'd consider removing the "primary" intent on the "More Options" button to align its prominence with its significance on the page.
  • The labels could be shortened, as the context makes their purpose clear: “More Options” could become “Options,” “Export Custom Filter Lists” could be “Export,” and “Import Custom Filter Lists” could be “Import.”

When implementing, could you please ensure the import button appends new lists rather than overwriting existing ones?

anfragment avatar Nov 02 '24 19:11 anfragment

@anfragment Thank for your advise ! I will follow your advise. Yes, I will append the import filter list to the original list

Noahnut avatar Nov 03 '24 16:11 Noahnut