Attempting to load a bad data file results in alternate/incomplete load interface

Issue #394 resolved
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

As a user, I try to load a file that's improper because I don't know what I'm doing - maybe I think I can load labels on top of a currently open file. Regardless, I want to gracefully handle bad file loads.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Open a fresh instance of treeview
  2. Open mylabeltest1.txt
  3. Mindlessly click "continue" without correcting the label rows
  4. Click OK in the resulting error dialog
  5. Click the "Load new file..." button

CURRENT BEHAVIOR

Rows & Columns defaults in the load interface are both 0. An error window comes up that says "No data matrix could be set". Clicking OK brings the user to the main window and the load window goes away. The main window also contains an error saying "Oh oh! Looks like we ran into the following issue: Data was not loaded." and then there's a button that is named "Load New File". Clicking that button brings up an open dialog that defaults to the system root directory.

EXPECTED BEHAVIOR

  1. I somewhat feel like there should be an error caught before clicking continue in the load interface, but I'm not sure how that should be done. In other words, if we can know that clicking "continue" will cause an error, the user should know that before clicking continue or perhaps they shouldn't even be allowed to click continue... though I'm flexible on that.
  2. There should only be 1 error message (the one in the error dialog window). The error in the main window is redundant and uninformative.
  3. The warning message in the error dialog window should be more informative and less technical. It should say something the user can understand, such as "Non-numeric data encountered", "No numeric data could be found", or "Label rows/columns appear to be incorrectly set"
  4. Clicking OK in the error dialog should bring you back to the load window so that they can inspect how to fix the load or cancel.
  5. The main window should not change. It should remain being the welcome message with the icon, an open button, and a load last file button. They already saw an error message
  6. If the error in the main window is retained, "Oh oh!" should be changed to "Uh oh!". I've never seen "Oh oh!" before. Seems like a typo.
  7. Opening a new file from the splash screen should always default to the last opened directory

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

See expected behavior.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

minor

COMMENTS

Comments (7)

  1. Robert Leach reporter

    Moving to major simply because this could be a user's first experience with TV3. First impressions are important. :)

  2. Log in to comment