TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.35k stars 563 forks source link

Enhanced offline capabilities #1486

Open Heinenen opened 2 years ago

Heinenen commented 2 years ago

Is your feature request related to a problem? Please describe.

Especially when self-hosting without opening it up to the internet, I would still be able to view al my recipes.

Describe the solution you'd like

An option to download/sync all recipes to my device. This would probably integrate well with #621. As there already is the ability to view recipes offline, I think this isn't too much work to implement.

There could also be a menu in the settings to select what exactly the user wants to have offline access to (e.g. only specific cookbooks .

Describe alternatives you've considered

No response

Additional context

If you can give me a few pointers where to look, I can have a try implementing it myself.

Contribute

vabene1111 commented 2 years ago

this is definiteley something i have planned and also something that should be somewhat easy to implement given the already existing service worker setup. I first want to take some time to understand more fundamentally how service workers and workbox and so on work but this is planned!

thanks for writing it down

Friendly-Banana commented 1 year ago

Has there been any progress on offline functionality? What needs to be done for this to be implemented?

vabene1111 commented 1 year ago

i havent worked on this yet but its still planned.

I am not sure yet how to implement it but my preliminary idea was to have a service worker sync all recipes to a browser local DB and only refresh when stuff changes.

jonskoglund commented 1 year ago

I'm thinking about making a collection of recipes (using keyword camping) for a camping trip this summer. Offline access to these recipes would be very nice indeed. When syncing offline recipes as a user I want to be able to do these things:

Another way of making a rudimentary version of this is a PDF export feature that will export all recipes with one or more keywords.

Friendly-Banana commented 1 year ago

@jonskoglund you can use the unofficial app. It has a cache which persists between restarts, so when offline the cached versions are shown.

jonskoglund commented 1 year ago

@jonskoglund you can use the unofficial app. It has a cache which persists between restarts, so when offline the cached versions are shown.

The unofficial app you mentioned is Android only. No iOS version. :-(

Friendly-Banana commented 1 year ago

The unofficial app you mentioned is Android only. No iOS version. :-(

Might be out soon https://github.com/phantomate/Untare/issues/17#issuecomment-1464378985