Commit Graph

672 Commits

Author SHA1 Message Date
D. Berge
b28224475e Make style scoped 2020-09-12 19:16:18 +02:00
D. Berge
c82caa1d1f Add QC view to web interface.
This commit implements most of what is required
by #23, with the exception of labels processing
as stated in https://gitlab.com/wgp/dougal/software/-/issues/23/designs/20200908_101516.jpg#note_408968681
2020-09-10 23:27:53 +02:00
D. Berge
a596a3be48 Implement QC routine.
Even though for practical reasons it's inside lib/www
this is meant to be run by bin/runner.sh at regular
intervals and refresh the QC data. This is a work
in progress. This version does not process or produce
labels, it doesn't create events in the event log and
it doesn't do online data, amongst other things.
2020-09-10 23:18:28 +02:00
D. Berge
08656a0b5e Fix reversed actions in calendar 2020-09-10 02:19:46 +02:00
D. Berge
5fdd84fadf Change style of raw data columns in sequence list 2020-09-10 02:19:07 +02:00
D. Berge
db25878fdd Add info API endpoint.
It queries a project's `info` table.
2020-09-09 15:55:04 +02:00
D. Berge
1a612f74d6 Refactor configuration methods in DB 2020-09-09 15:53:01 +02:00
D. Berge
c40a859efa Deal with Hydronav header fields overflowing.
Fixes #21.
2020-09-09 12:43:37 +02:00
D. Berge
3c4ed6665c Reorder columns in sequence list 2020-09-08 17:46:25 +02:00
D. Berge
c0592cb72f Show correct sequence status.
Fixes #24.
2020-09-08 16:11:06 +02:00
D. Berge
0a547666e3 Fix filtering of events log.
Closes #22.
2020-09-07 17:23:00 +02:00
D. Berge
2db376e1cc Bubble errors in db.event.post 2020-09-06 23:26:12 +02:00
D. Berge
d285a63746 Remove debug statements 2020-09-06 21:00:06 +02:00
D. Berge
8411eea29d Stop race condition between multiple WebSockets.
Only one websocket should be active or initialising
at any one time.
2020-09-06 18:09:04 +02:00
D. Berge
513e6d6bc5 Fix Webpack development proxy configuration 2020-09-06 14:54:03 +02:00
D. Berge
9c20c4295f Make sequence, line, point getters return numbers if possible 2020-09-04 01:33:18 +02:00
D. Berge
8793f99648 Add lineStatus getter 2020-09-04 01:33:18 +02:00
D. Berge
5b21f57587 Adapt log for online shot input 2020-09-04 01:33:18 +02:00
D. Berge
45885c0081 Add gun info to map position 2020-09-04 01:33:18 +02:00
D. Berge
a253578a1b Make SmartSource header less verbose.
PostgreSQL NOTIFY has an 8,000 bytes payload limit
and we were going over that.
2020-09-04 01:33:18 +02:00
D. Berge
1a851fefdf Fix issue with protocol detection 2020-09-04 01:33:18 +02:00
D. Berge
5c8f8023d6 Remove debug statement 2020-09-04 01:33:18 +02:00
D. Berge
a167d4954c Use server notifications on map.
The real-time position is pushed via a websocket rather
than pulled at regular intervals.
2020-09-04 01:33:18 +02:00
D. Berge
34dfb4f862 Add websocket client to receive event notifications.
These are saved in the Vuex store and can be retrieved
via the `serverEvent` getter. There are also some
convenience getters for retrieving line status.
2020-09-04 01:33:18 +02:00
D. Berge
52907921f1 Add websocket server to emit DB notifications 2020-09-04 01:33:18 +02:00
D. Berge
a9a084b531 Cope with prospect detection not working during approach / runout 2020-09-04 01:31:39 +02:00
D. Berge
78aaacb8b3 Improve sequence list search 2020-09-02 11:09:04 +02:00
D. Berge
d683f00594 Implement SmartSource header parser 2020-09-02 08:59:22 +02:00
D. Berge
0a2f0b0b60 Refactor save() so that we can force a specific CRS.
This was brought about due to the absence of CRS information
in the navigation header outputs. We get either unqualified
easting / northing or unqualified latitude / longitude, neither
of which happen to be WGS84.

This is not a good solution as it involves manual configuration,
but allows us to move forward for the time being.
2020-09-02 08:55:08 +02:00
D. Berge
ff2e30511c Refactor save() call to pass in header.meta options 2020-09-02 08:54:16 +02:00
D. Berge
1f60ebae47 Make selection of headers to parse configurable 2020-09-02 08:52:49 +02:00
D. Berge
e9f62a420a Only fetch real-time positions when layers are visible 2020-09-01 12:37:59 +02:00
D. Berge
7dbfb3ab6a Change real-time position marker 2020-09-01 12:37:39 +02:00
D. Berge
bf896f71dc Show also NTBP and in progress sequence statuses 2020-09-01 12:36:00 +02:00
D. Berge
297829f343 Do not list raw/final files if there aren't any 2020-09-01 12:35:30 +02:00
D. Berge
4291b83817 Show raw and final remarks in expanded row 2020-09-01 12:34:58 +02:00
D. Berge
276af8fcd6 Filter sequence list locally (fetch all sequences).
Even in the event that we have thousands of sequences
this should be acceptable and gives us more flexibility
at lower effort than paginating on the server.
2020-09-01 12:33:01 +02:00
D. Berge
c8e0dc5d02 Return only real files from sequence list endpoint.
In other words, filter out real-time data.
2020-09-01 12:30:49 +02:00
D. Berge
880891cc2b Add real-time position to map 2020-09-01 11:01:13 +02:00
D. Berge
eded667d79 Add endpoint for retrieving real-time data as GeoJSON 2020-09-01 10:58:37 +02:00
D. Berge
557d87de72 Add endpoint to retrieve real-time input data 2020-09-01 10:56:25 +02:00
D. Berge
bfc4124b33 Save to real_time_inputs also when we're on a line 2020-09-01 10:52:38 +02:00
D. Berge
bed9cdc69f Add UDP server for navigation system headers 2020-08-31 14:36:56 +02:00
D. Berge
c0c395d9a0 Save online and offline real-time data to database 2020-08-31 14:36:56 +02:00
D. Berge
e4803da149 Add decoders for Hydronav, LABOv3 navigation headers 2020-08-31 13:40:56 +02:00
D. Berge
433daca9ef Add deep properties getter utility function to config.
cfg._("a.deep.property") returns the value of
cfg.a.deep.property if it exists. If the property
or any of its parents do not exist, returns undefined.
2020-08-31 13:07:27 +02:00
D. Berge
a9247c691c Handle division by zero 2020-08-29 12:52:29 +02:00
D. Berge
d863f4221d Remove extra space from output 2020-08-29 10:36:04 +02:00
D. Berge
a5fe545885 Update URL with map view parameters.
The hash part encodes the current view so that it
is recreated when sending a link to someone.
2020-08-29 10:30:30 +02:00
D. Berge
fb4d25643e Implement project summary view 2020-08-28 13:49:14 +02:00