1
0
Fork 0
Commit Graph

227 Commits (da58d39357475a71315bd7726f81107657a080bb)

Author SHA1 Message Date
Alfredos-Panagiotis Damkalis da58d39357 Update to Django 4
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-16 23:19:15 +03:00
deckbsd 52d23bc7e0 Prevent unwanted modal close
fixes #484

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2021-11-03 09:26:31 +00:00
Fabian P. Schmidt fffca10916 Rename API Key to API Token nav item
This commit is part of a series of commits fixing the usage of
API Token vs API Key, see e4100a2 for details.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-11-02 13:20:20 +00:00
Fabian P. Schmidt 9f629bb715 Specify the scope of the SatNOGS DB API token in modal
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-11-02 13:20:20 +00:00
deckbsd 8b641a89dc Review the wording used for suggesting a new satelitte
fixes #476

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2021-11-02 13:07:14 +00:00
Alfredos-Panagiotis Damkalis 49eb53be30 Use bootstrap-modal-form for merging satellites
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-26 22:18:55 +03:00
Papadeas Pierros f8ca235faa Add Satellite ID on UI elements.
Signed-off-by: Papadeas Pierros <pierros@papadeas.gr>
2021-07-20 12:22:47 +03:00
Alfredos-Panagiotis Damkalis 0d137863b3 Add merge satellites functionality
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-19 14:39:55 +03:00
Alfredos-Panagiotis Damkalis 1513e998bb Fix modal submit button functionality
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-06-23 14:58:49 +03:00
Corey Shields c217f66b2d better error handling around latest_data
In satellite_card.html we assume if telemetry_data_count returns a value then latest_data will also run fine. This adds some better handling in the off chance that it does not (like in an odd cache state)

Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-14 16:11:52 -04:00
Alfredos-Panagiotis Damkalis 3b05184d14 Add review functionality for satellite suggestions
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis 2f11e6b8e8 Separate aprrove permission for satellite and transmitter
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis 418fe5ab3d Support suggestions for creating/editing satellite
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis c75b491b9b Replace SatelliteEntry with Satellite in models
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis 0d81ecbe77 Rename Satellite model to SatelliteEntry
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-04-29 08:35:49 +03:00
Alfredos-Panagiotis Damkalis a97f9666db Add reviewer and reviewed fields in TransmitterEntry
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-03-11 08:29:38 +02:00
Alfredos-Panagiotis Damkalis 00a91ba947 Rename field user on transmitterentry to created_by
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-03-07 19:01:34 +02:00
Corey Shields 2b17d32a67 Replace gpredict.js with satellite.js
package.json: Add satellite.js dependency

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>

Move to satellite.js in map, drop satellite footprint

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>

Remove gpredict.js dependency

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>

Replace gpredict.js with satellite.js

Builds on the work of kerel-fs in !596 and #440, implements satellite.js for core TLE and SGP4 handling, deprecating and removing gpredict.js

fixes #440
does NOT fix #204
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2021-02-13 14:56:14 -05:00
Papadeas Pierros 9e8e1b169f Fix analytics code inclusion
Signed-off-by: Papadeas Pierros <pierros@papadeas.gr>
2020-12-11 13:11:03 +02:00
Corey Shields c7772f4c78 Show uplink mode
Show the uplink mode in the transmitter card when it exists.

Fixes #437

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-11-14 08:57:57 -05:00
Corey Shields 2400c6b4f6 Add sorting by status to satellites view
Adds the ability to sort on the 'status' column (which today does nothing) by setting the field by which datatables will sort on to sat.status

This also has the benefit of filtering on sat.status as well, though one would need to know the backend statuses to use (ie: 'alive' vs 'dead'). Not sure that is ideal but this is a quick fix.

Fixes #428 

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-10-11 09:51:45 -04:00
Pierros Papadeas 2835df9553 Add transmitters chart
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-10-03 15:35:16 +03:00
Alfredos-Panagiotis Damkalis 87d5329c36 Fix tle_source field in satellite view template
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 22:18:17 +03:00
Pierros Papadeas 5c01c5d72b Add satellite status 'future'
fixes issue 409

Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-09-21 18:26:13 +03:00
Alfredos-Panagiotis Damkalis 45eb948f57 Add button to update TLE sets in Tle admin panel
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-18 04:47:35 +03:00
Alfredos-Panagiotis Damkalis dd10892eaf Use new model for TLE sets
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-15 21:05:43 +03:00
Corey Shields 0dbb1df42d Stats page improvements
Various improvements to the stats page:

Added a legend of top chart items to the footer of bands and modes charts. Fixes #408

Added a (cached) count of decoded frames to the Satellites table. Fixes #400

Added a note about the cached nature of stats. Fixes #403

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 17:10:06 -04:00
Corey Shields 2e25763185 Make contributor list scrollable
Hooray for success - we have tons of contributors in a 24 hr leaderboard!! Making this fit the screen a bit better and scrollable.

Fixes #402

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 14:33:45 -04:00
Corey Shields b5dd2eb4ea Fix TLE formatting in Satellite Data tab
Have to make this card a full width, even at col-xl-6 size it can shrink to stretch past the edge of the card. Adjusted a little more to make better visual use of the space as well.

Fixes #426

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 14:03:45 -04:00
Corey Shields eb859b7a44 show status text if satellite has uncoordinated transmitter
If the satellite has a transmitter that is flagged as 'bad_transmitter' (frequency coordination violation today), then show such in the Status card.

Fixes #250
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 11:00:50 -04:00
Pierros Papadeas fa32a0ebb4 Fix broken links to Dashboards and Network Observations
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-09-09 12:13:25 +03:00
Corey Shields d6f6ff0c2e Accessibility improvements
Some accessibility improvements:

* fixed some buttons to be more compatible with keyboard focus
* added labels where missing for tab links where a screenreader might get confused by the fontawesome icon
* added a "Skip to main content" link
* labeled the search box 
* added labels for some of our visual indicators for satellite and transmitter statuses
* ensured that "Focusable elements should have interactive semantics"

Fixes #414
Fixes #417
Fixes #418
Fixes #419
Fixes #420

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-07 12:38:59 -04:00
Corey Shields 402ec942ab Add frequency coordination status to transmitters
Adds 2 fields to transmitter model, coordination (fixed set of choices, defaulting to blank) and coordination_url. API, UI, and tests are included.

Also introduces a bad_transmitter property to transmitter that will return true if any 'Uncoordinated' or '..Rejected' status is selected.

Fixes #311

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-06 11:32:15 -04:00
Corey Shields 0600d2a090 Change the way admin notifications are triggered for new transmitters
Changes the admin email notifications to a backend celery task so that the UI does not block on it.

Also prevents this process from running twice as form_valid gets triggered for validation and saving.

Should fix #421

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-03 14:14:44 -04:00
Corey Shields b7e82848d5 Add ability to link to tabbed panes and fix map visibility
handle deep-linking of anchors into tabbed panes on the satellite and stats pages.
Fixes #399

Also clean up map visibility, only showing if a satellite has not re-entered *and* has a TLE associated with it (note, we are not testing for validity of the TLE).
Fixes #412
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-30 16:17:08 -04:00
Corey Shields 5395122ac7 Fix for satellite image upload in new UI
Image files were not getting uploaded due to the lack of enctype on the form.

Easy fix, hard discovery (sigh)

Fixes #413
  
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-27 21:00:42 -04:00
Corey Shields aa5eaaad74 Better numerical sorting for transmitters table
Improve the column sorting for numerical data per datatables.net docs at https://datatables.net/plug-ins/sorting/natural

Fixes #407
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-27 20:12:17 -04:00
Pierros Papadeas 87ab59c738 Fix datetime format displaying
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-08-14 16:33:50 +03:00
Alfredos-Panagiotis Damkalis 41cb47f9ff Improve performance and reduce SQL queries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-09 01:05:01 +03:00
Corey Shields 771aa22ecd Some more performance improvements for home page
Add index to DemodData.timestamp

prefetch suggestions

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-08 13:30:44 -04:00
Corey Shields 567df49a8f quick fix for prod stats page, account for blank noradid
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-08 09:47:46 -04:00
Corey Shields 46c73722c4 change status look and feel to match rest of satellite page
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-07 19:39:12 -04:00
Pierros Papadeas 1fd8406ab5 Fix minor spelling mistake
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-08-05 14:15:29 +00:00
Pierros Papadeas 01c581ea8a Change satellite table wordings
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-08-05 13:11:42 +00:00
Alfredos-Panagiotis Damkalis ed6ac366fb Change TLE panel in satellite page
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-05 11:59:27 +03:00
Corey Shields f6d2bcdc93 Fix control-sidebar toggling
Fix a regression in control-sidebar toggling

Sets a fixed top navbar for all window sizes

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-04 21:28:36 -04:00
Corey Shields 44daf627be control-sidebar fixes and help html formatting
Fix the toggling of the control-sidebar, the text coloring of the control-sidebar, and clean up html on the help page.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-04 19:09:07 -04:00
Corey Shields 8b90fd1ff9 Fill in help page and tweak about page
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-04 18:42:51 -04:00
Corey Shields 3149c91e56 Add decoded data recent history chart to satellite view
Adds a chart card showing the last month of decoded data as currently stored in influxdb.

Unfortunately there's no native way to count the number of 'entries' for a measurement across a given time, so we have to do a count(*) across all points. This returns a blob of <timestamp>, <count(pointa)>, <count(pointb)>, <...> and in almost (but not all) cases those counts will be identical but we have to account for it not, so I iterate over each timestamp (client side) and take the max count to assign to that point in time. Since we are doing a 30d query from influx with 1d aggregation this should not be too intensive.

Also cleaned up the coloring of the profile link buttons.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-04 08:33:22 -04:00
Corey Shields b198e188d3 Add text to search not found
Fixes #371

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-02 16:11:36 -04:00