DeepBlueCLtd / narr-next

Browser-based interactive logging application
https://deepbluecltd.github.io/narr-next/
Eclipse Public License 2.0
0 stars 4 forks source link

Mast state widget/controller #78

Closed IanMayo closed 6 years ago

IanMayo commented 6 years ago

Here's the spec for a new visualiser.

A submarine periscope is a type of mast. So, we have a set of masts, some of which are periscopes. This visualiser will show the state of each mast. Clicking on the state will invert it (from up to down...).

The state will be indicated by an arrow icon.

Here is how it will be stored in JSON:

{ id: "mast-state", masts: ["search", "radar", "esm"] }

(note: I'll modify the UI definition in master branch to include this https://github.com/DeepBlueCLtd/narr-next/pull/79/commits/a6933526df0a91b431baabc8321a85387e1d0175 )

So, when we read in this widget (from the widgets child of the Underwater category), we create a mast visualiser that looks like this: mast visualiser

Clicking on any of these both inverts the state, and injects a new entry into the EntryList. Event id is mast-up or mast-down with these fields type:xxx (search, radar, esm), with a reason text box.

Morphexe commented 6 years ago

Apart from the design, this is implemented and working perfectly :)