Skip to content

Fix isTestFile, ITE race, hover-tip cleanup, and dialog Enter key#354

Merged
JonJagger merged 1 commit into
mainfrom
fix-inter-test-event-race
May 28, 2026
Merged

Fix isTestFile, ITE race, hover-tip cleanup, and dialog Enter key#354
JonJagger merged 1 commit into
mainfrom
fix-inter-test-event-race

Conversation

@JonJagger
Copy link
Copy Markdown
Member

Add cd.isTestFile() to identify files whose stem starts or ends with test/tests/spec/steps. Use it to colour filenames steel-blue in the review diff panel and hover-tips, and to simplify inter-test event icons to file_test/file_code.

Fix a race where clicking a filename fired saveAnyFileChangesITE asynchronously, allowing a concurrent create/delete/rename/test to use a stale kata.index. The fix locks all CodeMirror editors and gates create/delete/rename/test behind cd.waitForITE(), which polls up to 2s for the in-flight ITE to settle.

Clean up hover-tips: remove the traffic-light image and type-marker glyph column; colour filenames by file type.

Fix Enter key in the delete file dialog, where the disabled input blocked the keyup handler. Handling moved to dialog-level keydown with event.preventDefault() to suppress browser default submit.

Add cd.isTestFile() to identify files whose stem starts or ends with
test/tests/spec/steps. Use it to colour filenames steel-blue in the
review diff panel and hover-tips, and to simplify inter-test event
icons to file_test/file_code.

Fix a race where clicking a filename fired saveAnyFileChangesITE
asynchronously, allowing a concurrent create/delete/rename/test to
use a stale kata.index. The fix locks all CodeMirror editors and
gates create/delete/rename/test behind cd.waitForITE(), which polls
up to 2s for the in-flight ITE to settle.

Clean up hover-tips: remove the traffic-light image and type-marker
glyph column; colour filenames by file type.

Fix Enter key in the delete file dialog, where the disabled input
blocked the keyup handler. Handling moved to dialog-level keydown
with event.preventDefault() to suppress browser default submit.
@JonJagger JonJagger merged commit 517657b into main May 28, 2026
7 checks passed
@JonJagger JonJagger deleted the fix-inter-test-event-race branch May 28, 2026 15:51
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