Rails icon indicating copy to clipboard operation
Rails copied to clipboard

Clicking the coloured company name

Open erik-vos opened this issue 4 years ago • 2 comments

From issue #362, reported by @jdgalt:

[4] I wondered if someone had thought to mitigate this lack by putting in text that appears either if you hover over a company name such as K1, or if you click on one. So I clicked on K1. This caused a dialog to appear which I find useless, but it suggests somebody did consider the idea:

  ----------------------------------
  |            Message             |
  ----------------------------------
  |  (i)  RevenueValue = 0         |
  |       RevenueRun =             |
  |                                |
  |             [ OK ]             |
  ----------------------------------

The really funny bit, though, happens when I hit OK. This dialog then appears:

  -------------------------------------------------------------
  |                 Add another train to run?                 |
  -------------------------------------------------------------
  |  [ ? ]  Enter train string (Examples: 5, 3+3, 4D, 6E, D)  |
  |         [______________________________________________]  |
  |                                                           |
  |                     [  OK  ] [ Cancel ]                   |
  |                                                           |
  -------------------------------------------------------------

At this point I'm at a loss for words, except maybe, "WTF???"

erik-vos avatar Mar 23 '21 20:03 erik-vos

Yes, that has amazed me too.

@neutronc , do you know the source of this? It looks like a testing aid for developing routing and revenue calculation, just for developers. Perhaps done by Stefan?

It may certainly be a useful feature to find the current run(s) and revenue, but perhaps the formatting may need to be improved. That second popup does not seem to work at all. If using that train string is in fact not implemented, it can better be removed.

I'm tentatively throwing this to you as well.

erik-vos avatar Mar 23 '21 20:03 erik-vos

That code stemming from the implementation of route and revenue calculation by Stefan. I dont know how that works. Needs investigation.

neutronc avatar Mar 30 '21 18:03 neutronc