Skip to content

Show a map, NSRL or Project VIC import's progress on the launcher - #236

Merged
charpy4n6 merged 2 commits into
mainfrom
feat/launcher-import-progress
Sep 30, 2026
Merged

charpy4n6 merged 2 commits into
mainfrom
feat/launcher-import-progress

Conversation

@charpy4n6

@charpy4n6 charpy4n6 commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Imports started from the launcher's ☰ Menu (a basemap from Maps, Reference data (NSRL), Project VIC hash sets) run as background jobs, but the progress bars that follow them live in the case view, behind the launcher. On the ingest screen, nothing showed that one was running except a toast. Since GLEAPP runs one job at a time, Create case & ingest was then refused with "a job is already running", with no sign of what was running or when it would end. These imports can take minutes: an NSRL release, or a basemap of several gigabytes.

The launcher now follows the job on a bar pinned to the bottom of the window, above any dialog. The Maps dialog stays open while a map imports, and in a real 2.5 GB basemap import it covered the first version of this bar, which sat inside the New case card. The bar shows:

  • A percentage when the job has a total, for example "Importing basemap … · 40% · Create case waits until this finishes"
  • A sliding stripe until there is one
  • When it ends: the finish message for 5 seconds, or "Failed: …" in red for 10 seconds, then it hides

Create case & ingest stays disabled while the job runs. The bar also picks up a job already running when the launcher opens.

gleapp/web/static/app.js: a new watchLauncherJob, called from the launcher setup and the three import buttons; the bar is created by that code. gleapp/web/templates/index.html: its CSS. The Create button's own handler is untouched.

Checked in the browser by feeding the launcher a running job with the Maps dialog open: the bar showed above the dialog at the bottom of the window, with Create disabled. On finishing, it showed the message, re-enabled Create, and hid after 5 seconds. The JavaScript parses (node --check) and line endings pass. Front end only, no automated test.

🤖 Generated with Claude Code

charpy4n6 and others added 2 commits September 29, 2026 21:11
Imports started from the launcher's Menu (a basemap, reference data, a Project
VIC hash set) run as background jobs, but the bars that follow them live in the
case view, behind the launcher, so the ingest screen showed nothing while one
ran and Create case was refused with "a job is already running". The
launcher now follows the job on its own bar (a percentage when the job has a
total, a sliding stripe until then) and keeps Create case disabled until it
finishes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tested with a real 2.5 GB basemap import: the Maps dialog stays open while a
map imports and covered the bar, which sat at the bottom of the New case card.
The bar is now a strip pinned to the bottom of the window above any dialog,
shows the finish or failure message for a few seconds, then hides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@charpy4n6
charpy4n6 merged commit 669a016 into main Sep 30, 2026
7 checks passed
@charpy4n6
charpy4n6 deleted the feat/launcher-import-progress branch September 30, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant