Repository navigation
Removing a table in the import wizard no longer moves its problems onto another table - #661
Merged
Merged
Conversation
…to another table The wizard records the tables' ids in the order its check saw them and places each recorded problem by its table's id: a removed table's problems are dropped, and the others follow their table to its card. Cards are keyed by the table's id. The check and the import are unchanged. Part of #615.
Deploying cozy-loop-studio with
|
| Latest commit: |
ac42091
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://950bf585.cozy-loop-studio.pages.dev |
| Branch Preview URL: | https://import-card-errors-by-table.cozy-loop-studio.pages.dev |
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 5, part A: the import wizard's table cards; part B, the timetable dialog's file read, follows in its own PR. #615's item 5 is checked when both are merged).
What was wrong
In Data ▸ Import spreadsheet values as Parameters, the problems Next finds are listed under each table card until the next check. The cards were keyed by position (
key={ti}), and the problems were matched to a card by theirtableIndex, a position in the order the check saw the tables. Measured on main64c1fea1(scratchreproduction):This was display only. The lines are greyed and the summary says "The input changed since the last check — press Next to check again", and Next checks the current tables.
The change (
src/components/dataImport/DataImportWizard.tsx)sourceTableId) are recorded in the order the check saw them.sourceTableId.validateDrafts, the check and the import are unchanged.Tests (
e2e/import-card-errors.spec.ts, new, written first)Checks
npx tsc -b: clean.npm run lint: 88 warnings, the baseline.check:*scripts: pass.What it touches