ufopleds / DengueME

BSD 2-Clause "Simplified" License
4 stars 5 forks source link

Redesign the feature "New Model" (Model Builder) #43

Open tiagofml opened 7 years ago

tiagofml commented 7 years ago

Redesign the feature "New Model" (Model Builder)

Specification

User Storie

As a User, I WANT to create a new model SO THAT I can create simulations with the existing library files.

General behavior

Preconditions: - Postconditions: 1) the new model (XML file) is created inside the user's library folder;

Rules / restrictions:

Basic Flow

  1. User access the "New" feature: Tools -> Model Builder -> New | Model Builder Icon -> New
  2. "New Model" window is opened on the page to select the category and define its name. The "Create" button is disabled when the window is loaded.
  3. The user selects the category and types a valid Name (ID).
  4. The "Create" button is enabled allowing the user to click or "ENTER" on the keyboard.
  5. "The XML file is copied to the users' library and the new model created is immediately opened in the Model Builder Interface.

Alternative Flow: user cancel the operation (project page or model page)

N.1. User clicks on "Cancel" or "X" N.2. The "New" window is closed and the system returns to the Model Builder interface

Alternative Flow: name is invalid (model page)

6.1. The user types an invalid name for the model. 6.2. A warning message is presented.

Alternative Flow: name already exists (model page)

3.1. The user types a name of a model that already exists in the users' library. 3.2. A warning message is presented.

GUI

Prototype

New Model - Model Builder

screen shot 2017-11-17 at 6 38 38 pm

Guildelines

Messages and labels (english | portuguese)

tiagofml commented 7 years ago

@Guelmisp It would be interesting to offer to user the option to create a new model based on existing one of DengueMELib. The behavior will be like to clone an existing model - copy it from DengueMELib to the user's local library.