Skip to content

Ask questions in GLEAPP's own window, not the browser's - #237

Merged
charpy4n6 merged 1 commit into
mainfrom
fix/in-app-dialogs
Sep 30, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
fix/in-app-dialogs

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

The browser's built-in confirm() and prompt() 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 by askDlg, 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?".

askConfirm resolves true or false, and askText resolves the text or null, as confirm and prompt returned. 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 became async so they can wait for the answer: the timezone picker and the stash reset. The other 14 were already async.

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

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]>
@charpy4n6
charpy4n6 merged commit 1c0f834 into main Sep 30, 2026
7 checks passed
@charpy4n6
charpy4n6 deleted the fix/in-app-dialogs branch September 30, 2026 01:50
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