Repository navigation
Show a map, NSRL or Project VIC import's progress on the launcher - #236
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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 newwatchLauncherJob, 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