Repository navigation
Ask questions in GLEAPP's own window, not the browser's - #237
Merged
Merged
Conversation
The browser's built-in confirm and prompt title themselves with the page's
local address ("127.0.0.1:61319 says"), which means nothing to an examiner.
All twelve confirmations and four text prompts now use askDlg, a small window
in GLEAPP's style with the same wording and OK / Cancel; Enter answers OK and
Esc cancels, without reaching the gallery's own shortcuts.
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.
The browser's built-in
confirm()andprompt()boxes title themselves with the page's local address, for example "127.0.0.1:61319 says", which means nothing to an examiner. GLEAPP used them for 16 questions. They are all replaced byaskDlg, a small window in GLEAPP's own style with the same wording and Cancel / OK.Confirmations (12): delete a category or a flag still in use; remove a case hash set, a reference (NSRL) set, a Project VIC set or a basemap; delete or restore a snapshot; switch back to the per-user stash file; clear the recent-cases list; Drop copies; carve a source.
Text prompts (4): a timezone name ("Other…"); the typed path when no system file dialog is available; "Where is … now?" when relinking an archive; "Reattach which source?".
askConfirmresolves true or false, andaskTextresolves the text or null, asconfirmandpromptreturned. Enter answers OK and Esc cancels, without reaching the gallery's own keyboard shortcuts. The window sits above every other dialog and the launcher. Two handlers becameasyncso they can wait for the answer: the timezone picker and the stash reset. The other 14 were alreadyasync.Checked in the browser: OK and Esc on a confirmation gave true and false; Enter on a text prompt returned what was typed, and Cancel returned null; the window drew above the open Maps dialog. The JavaScript parses (
node --check) and line endings pass. Front end only, no automated test.🤖 Generated with Claude Code