Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Changelog

All notable changes to the TAT-C web application are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). The version is set
by `__version__` in `src/tatc_app/__init__.py`.

## [Unreleased]

## [2.1.0] - 2026-11-25

### Added

- Save analysis runs under saved designs: runs save under the saved design
last opened or saved, list grouped by design, and move between designs.
Saved designs count their runs. `GET /runs` filters runs by design, and
`PATCH /runs/{id}` changes the design of a run.
- Compare the current analysis results with saved runs without saving them
first, from the Analysis tab (Compare runs) or the Results dialog.
- Ground track swaths over a region, with the coverage of the region, and an
animation duration (#17).
- Ground sample sizes of observations (#16).
- Coincident observations analysis (#14).
- Sampling sufficiency of coverage analyses (#15).
- Save designs and analysis runs to users' accounts, and compare saved runs
(#13).
- Summaries of coverage and latency results over the region (#13).
- Limits on the work each request may enqueue (#13).
- CI tests before building images (#13).
- Display panel of view options and legends, and a dark theme (#12).
- Orbits from orbit mean-elements messages (OMM) as well as TLE (#12).
- API documentation (#11).
- Prompt users to sign in when they arrive (#10).

### Changed

- Require TAT-C 3.8 (>= 3.8.0, < 3.9), whose system catalog adds relaying
systems (TDRS) and systems in storage (#18).
- Saved runs migrate to version 2 of the database schema on first use, with
existing runs under no design.
- Deleting a saved design deletes the runs saved under it.
- Browsers revalidate frontend files before each use (#12).
- Refactor the backend around a shared analysis package, and the frontend
(#11).

### Fixed

- Large and high-altitude footprints in Cesium (#12).
- The analysis animation is limited to the analysis duration (#12).
- Editing, analysis, and animation bugs (#11).

## [2.0.0] - 2026-11-23

### Added

- Authenticate users with Dex (OpenID Connect).
- Load satellites from the TAT-C system catalog with CelesTrak elements, and
add instruments from the TAT-C instrument catalog.
- Expanded, animated analyses, with per-instrument footprints, colors, and
filters.
- Editor panel embedded in the Cesium view as a collapsible drawer.

### Changed

- Require TAT-C 3.7.0.
- Cancel analysis runs when the analysis type changes, and drop results that
include a removed satellite.

### Fixed

- Footprints and swaths that cover a pole, and footprints of non-simple
instruments in animations.
- Overflight analysis of points with no observations.
- CelesTrak elements of large catalog numbers.

## [1.1.0] - 2026-09-04

### Added

- Automatic deployment with images from the GitHub Container Registry.
- Error handling and logging of failed Celery tasks.

### Changed

- Require TAT-C 3.5.0, with adapters to its interface and orbit schemas.
- Split development and production Docker Compose files.

## [1.0] - 2024-07-31

### Added

- Web application extracted from TAT-C into its own package.

[Unreleased]: https://github.com/code-lab-org/tatc-app/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/code-lab-org/tatc-app/compare/ae1ad0e...v2.1.0
[2.0.0]: https://github.com/code-lab-org/tatc-app/commit/ae1ad0e
[1.1.0]: https://github.com/code-lab-org/tatc-app/commit/40868a2
[1.0]: https://github.com/code-lab-org/tatc-app/commit/e1e4b4e
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@ black .
isort .
```

### Changelog

Notable changes are recorded in [CHANGELOG.md](CHANGELOG.md). Add an entry
under **Unreleased** with each change. To release a version, rename that
section to the new version and date, set `__version__` in
`src/tatc_app/__init__.py` to match, and start a new **Unreleased** section.

## Deployment

Production deployments should use `compose.server.yml` and `compose.worker.yml`
Expand Down
7 changes: 6 additions & 1 deletion src/static/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ function showAnalysisData() {
}
const result = analysisResult.result;
const type = analysisResult.type;
// results with a summary compare with saved runs (library.js)
const compare = result.summary && canCompareRuns(type) ? openRunsDialog : null;
const number2 = function(v) { return Number(v).toFixed(2); };
// columns and values shared by the statistics of points
const pointColumns = [
Expand Down Expand Up @@ -709,7 +711,8 @@ function showAnalysisData() {
? "Statistics of the coincident observations of each point over the analysis period: periods when enough platforms observe it at once."
: "Statistics of each point over the analysis period. Overlapping observations by several satellites count once.") +
(sufficiency ? " " + terms.revisitAxis + " runs from the end of one to the start of the next; times between samples run between their midpoints." : ""),
summary: result.summary ? function(container) { renderCoverageSummary(container, result.summary, terms); } : null
summary: result.summary ? function(container) { renderCoverageSummary(container, result.summary, terms); } : null,
onCompare: compare
});
} else if (type == "latency") {
const contacts = result.contacts;
Expand All @@ -721,6 +724,7 @@ function showAnalysisData() {
filename: "latency-points",
note: "Statistics of each point over the analysis period.",
summary: result.summary ? function(container) { renderLatencySummary(container, result.summary); } : null,
onCompare: compare,
extras: [{
label: "Contacts CSV",
filename: "latency-contacts.csv",
Expand Down Expand Up @@ -787,6 +791,7 @@ function showAnalysisData() {
note: "Periods over the analysis period when any part of the region is observed (overlapping observations merged). " +
"Swaths show over the animation: click a row within it to jump to it.",
summary: function(container) { renderRegionSummary(container, result.summary); },
onCompare: compare,
extras: [segments],
onRowClick: function(row) {
const start = Cesium.JulianDate.fromIso8601(row.start_utc);
Expand Down
16 changes: 10 additions & 6 deletions src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,14 @@ <h6>Orbit Preview</h6>
</div>
</div>
<div class="mt-1">
<button type="button" class="btn btn-outline-secondary btn-sm" id="run-save" disabled title="Save the inputs and summary of the results to your account">
<button type="button" class="btn btn-outline-secondary btn-sm" id="run-save" disabled title="Save the inputs and summary of the results to your account, under the saved design">
<i class="fas fa-save"></i> Save run
</button>
<button type="button" class="btn btn-outline-secondary btn-sm" id="runs-open" title="Compare, and run again, the saved runs of this analysis">
<i class="fas fa-folder-open"></i> Saved runs
<button type="button" class="btn btn-outline-secondary btn-sm" id="runs-open" title="Compare the current results with saved runs of this analysis, and run saved runs again">
<i class="fas fa-balance-scale"></i> Compare runs
</button>
</div>
<div class="small text-muted mt-1 text-truncate" id="run-design"></div>
<div class="small text-success mt-1" id="run-saved" role="status" style="display:none"></div>
<div class="alert alert-danger small mt-2" id="analysis-error" style="display:none"></div>
</div>
Expand Down Expand Up @@ -938,7 +939,7 @@ <h5 class="modal-title" id="designs-title">Saved Designs</h5>
<div class="alert alert-danger small" id="designs-error" style="display:none"></div>
<div class="small text-success mb-2" id="designs-status" role="status" style="display:none"></div>
<table class="table table-sm small mb-0">
<thead><tr><th>Name</th><th>Satellites</th><th>Saved</th><th class="text-right">Actions</th></tr></thead>
<thead><tr><th>Name</th><th>Satellites</th><th title="Analysis runs saved under the design">Runs</th><th>Saved</th><th class="text-right">Actions</th></tr></thead>
<tbody id="designs-list"></tbody>
</table>
<p class="small text-muted mt-2 mb-0" id="designs-empty" style="display:none">No saved designs yet.</p>
Expand All @@ -955,7 +956,7 @@ <h5 class="modal-title" id="designs-title">Saved Designs</h5>
<div class="modal-dialog modal-xl modal-dialog-scrollable" role="document">
<div class="modal-content dark-panel">
<div class="modal-header">
<h5 class="modal-title" id="runs-title">Saved Runs</h5>
<h5 class="modal-title" id="runs-title">Compare Runs</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
Expand All @@ -967,7 +968,7 @@ <h5 class="modal-title" id="runs-title">Saved Runs</h5>
<thead><tr><th>Compare</th><th>Name</th><th>Saved</th><th id="runs-metric"></th><th class="text-right">Actions</th></tr></thead>
<tbody id="runs-list"></tbody>
</table>
<p class="small text-muted mt-2 mb-0" id="runs-empty" style="display:none">No saved runs of this analysis yet: run it, then choose Save run.</p>
<p class="small text-muted mt-2 mb-0" id="runs-empty" style="display:none">No results of this analysis yet: run it to compare its results, or choose Save run to compare them later.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
Expand All @@ -992,6 +993,9 @@ <h5 class="modal-title" id="results-title">Results</h5>
<table class="table table-sm small w-100" id="results-table"></table>
</div>
<div class="modal-footer">
<button type="button" id="results-compare" class="btn btn-secondary mr-auto" style="display:none" title="Compare these results with saved runs of this analysis">
<span class="fas fa-balance-scale" aria-hidden="true"></span> Compare with saved runs
</button>
<button type="button" id="results-json" class="btn btn-secondary">
<span class="fa fa-download" aria-hidden="true"></span> JSON
</button>
Expand Down
5 changes: 5 additions & 0 deletions src/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,14 @@ function toCsv(columns, rows) {
// extras: optional additional CSV downloads {label, filename, columns, rows}
// summary: optional function(container) that renders a summary above the table
// onRowClick: optional function(row) called when a row is clicked
// onCompare: optional function() that compares the results (after the
// dialog closes)
let resultsTable = null;
function showResultsTable(options) {
const columns = options.columns;
$("#results-compare").toggle(Boolean(options.onCompare)).off("click").on("click", function() {
$("#results-dialog").one("hidden.bs.modal", options.onCompare).modal("hide");
});
const rows = options.rows;
const filename = options.filename;
const onRowClick = options.onRowClick;
Expand Down
Loading
Loading