SiLeBAT / fcl-client

Web app for analyzing food delivery networks
https://silebat.github.io/fcl-client/
GNU General Public License v3.0
7 stars 2 forks source link

UTX: Create menu entry and dialogue for UTX upload #887

Open bfrgottscma opened 2 weeks ago

bfrgottscma commented 2 weeks ago

As a user I would like to be able to load a UTX file (JSON) into FCL Web. This ticket just deals with creating the menu entry and dialogue. (The actual data import process, plausibility checks and tests will be handled in separate tickets.)

The following functionalities should be implemented.

When clicking "Upload data", one of the following two actions should be triggered. 1) A drop-down menu is opened with the entries "FCL file (.json)", "FCL All-in-one template (.xlsx)", "UTX file (.json)". This action is triggered when no model was loaded before or when loaded model was not changed. When clicking "UTX file (.json)", the file selection dialogue is opened.

2) The "Save changes" warning dialogue is opened. This action is triggered when a previously loaded model was changed. When selecting "Proceed", the file selection dialogue is opened.

In the file selection dialogue, the user can select a JSON file. Only .json files are shown

For now, the UTX menu entry button is disabled and a tool tip is showing "Coming soon"

Think of Tests

Additional context

arne-z commented 1 week ago

Blocked by: #761