premnirmal / StockTicker

A resizable widget that shows your financial portfolio on your android home screen
GNU General Public License v3.0
441 stars 116 forks source link

Export/import to individual widgets #277

Open justinormont opened 2 years ago

justinormont commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, if you export and import (for instance on a new phone), the widgets that the stock belongs to is not preserved. All stocks are imported to a single widget, even if the correct number of widgets exists.

When I re-imported from a JSON export, my stocks, ETFs, options, and futures were all imported to a single widget with no specific ordering[157], and no method of moving between widgets[276].

Describe the solution you'd like The exported JSON should store the ID number and/or name of the widget the stock belongs to. Then on import (1) verify the correct number of widgets exist, (2) rename widgets based on the stored name, and (3) place the correct stocks in the correct widget.

Describe alternatives you've considered As mentioned in https://github.com/premnirmal/StockTicker/issues/276 "Move stocks between widgets", there is no way to move stocks between widgets after re-importing. There doesn't seem to be a better method than manually re-entering all stocks, when using multiple widgets.

As mentioned in https://github.com/premnirmal/StockTicker/issues/157 "Export and share do not preserve order", there is a secondary issue that once re-imported, the ordering is lost.

flurbius commented 2 years ago

I suggest the current export be retained and relabelled as "export full symbol list" and another option added to export individual widgets, including all widget settings and its symbol list.