Repository navigation
Cancel in Manage bindings no longer renames the table - #657
Merged
Merged
Conversation
A press on Cancel no longer takes the focus from the name field first, so the blur that saves a rename does not run; closing the dialog by Cancel, Escape or a press outside discards the drafts and their errors. Leaving the field still saves. Part of #615.
Deploying cozy-loop-studio with
|
| Latest commit: |
03134ef
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2f48616e.cozy-loop-studio.pages.dev |
| Branch Preview URL: | https://manage-bindings-cancel-disca.cozy-loop-studio.pages.dev |
This was referenced Nov 24, 2026
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.
Part of #615 (item 4 only; items 2 and 1 follow in their own PRs, items 5 and 3 are not in this one).
What was wrong
Data ▸ Refresh or manage imported tables (Manage bindings) saves a table rename when the name field loses the focus. Its only button is Cancel. Measured on main
fde07d85(scratchreproduction, then the tests below on main's code):toolbar/DialogHost.tsx:80), so the draft and its error stayed in its state. The next Cancel would save it.The change (
src/components/dataImport/DataImportRefreshMenu.tsx)onMouseDownprevents the focus move, so no blur and no save happen before it closes.Tests (
e2e/data-import-refresh.spec.ts), written firstThere is one test per way of closing: Cancel, Escape, and a press outside. Each types a name, closes, and checks three things:
On main's code all three fail:
A fourth test, the control, checks that leaving the field with Tab still saves, one Undo entry, and that closing keeps it. It passes before and after.
Checks
npx tsc -b: clean.npm run lint: 88 warnings, the baseline.All
check:*scripts: pass.Unit suite: 5758 passed, 4 skipped.
Related e2e, one worker, no retries:
None holds a screenshot comparison.
What it touches