neopostmodern / wohnungsbot

Der Wohnungsbot — die Anwendung zum 2. Akt ("Das Versprechen des Bots") des Automatisierungsdramas in drei Akten "Von einem der auszog eine Wohnung in Berlin zu finden" von Clemens Schöll
https://wohnungsbot.de
GNU Affero General Public License v3.0
149 stars 27 forks source link

Import JSON settings #178

Open neopostmodern opened 10 months ago

neopostmodern commented 10 months ago

Currently there is an option to export user settings (quite hidden on the "review configuration" page) – it'd be nice to be able to import settings too

hoelger commented 9 months ago

From my point of view this became somewhat low prio because if you really need it you can hack it already.

The config is saved in ~/.config/Electron/config.json (when developing) or in ~/.config/Wohnungsbot/config.json when installed. You can just copy / paste / replace / backup / restore this file to then have the corresponding configuration running.

So for "us developers" you don't really need it. Would be the question if there's a usecase, where a normal user wants to swap different configs.

hoelger commented 9 months ago

One very simple improvement could be done. Let's say a user sends you the config output from the GUI, then you have to wrap it in something like { configuration: <output> } and put it into the config.json. This is cumbersome handwriting work there.

Maybe just offer to download the config.json as file? Ah no this would then also send all the application-history that's in the file. Ok so maybe just wrap it in {configuration: ...} and that's it.