Repository navigation
A table's Refresh keeps your choices when you go Back and Next - #664
Merged
Merged
Conversation
The refresh wizard cleared its Column changes choices on every Next from Paste, and its Review choices on every Next that built the plan, even when nothing had changed. Column changes are now kept while the stored columns and the incoming header row are cell for cell the same (they point at incoming columns by position), Map more columns staying open with them. Review choices are kept while the plan's whole input is the same: the parsed rows, the header row number, Ignore last N rows and the column pairings. A change to any of these still resets them. Part of #615
Deploying cozy-loop-studio with
|
| Latest commit: |
a511342
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://68de71aa.cozy-loop-studio.pages.dev |
| Branch Preview URL: | https://refresh-wizard-keep-choices.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 (follow-up: the refresh wizard's Back → Next reset).
What was wrong
In Manage bindings ▸ Refresh…, Back and Next cleared what had been chosen even when nothing had changed (measured on main
4e5ec440):goToEventsOrReview).runValidateAndDiff): Review → Back → Next, and on a refresh with no column change Back → Paste → Next.The change (Lumi's rule)
DataImportRefreshWizardremembers the input each set of choices was made for:The first import wizard and any new message are out of this scope.
docs/data-import.mdgains a short section with the rule.Tests
New describe in
e2e/data-import-refresh.spec.ts, a paste whereweightis renamed tomass,costis new, itm_b is missing and itm_c is added:costcolumn.On main's wizard, tests 1–3 fail at their first kept-choice check and test 4 passes. Test 5 also fails on main, at its first check that the Column changes choices stay after a data-row edit, which is new behaviour; its reset checks are reached only on this branch.
On this branch, chromium,
--workers=1 --retries=0:e2e/data-import-refresh.spec.ts: 18 passed.e2e/data-import-refresh-errors.spec.ts,e2e/error-paths-423.spec.ts,e2e/import-row-fields.spec.ts,e2e/rtl-bidi-isolation.spec.ts: 36 passed.Every
check:*script,tsc -b, lint (88 warnings, the baseline, none in the wizard) andvitest run(5758 passed) pass.