Repository navigation
The data import wizard names an untitled frame the way the canvas does - #650
Merged
Merged
Conversation
Part of #611 (review P4). The wizard's frame choices named an untitled frame "Group n" in English in every language, and a refusal for room quoted its empty label. The choices now use the frame's name or the catalogue's default name with its number, and the commit's refusal carries the frame's id so the wizard names that frame the same way, still isolated.
Deploying cozy-loop-studio with
|
| Latest commit: |
7a780be
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://43101463.cozy-loop-studio.pages.dev |
| Branch Preview URL: | https://p4-untitled-frame-name.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 #611 (review item P4).
What was wrong
Reproduced on main
b8bb0a01(v0.33.1), desktop, with two untitled saved frames (340 × 340 and 40 × 40) and one named "Line 3":f.label || `Group ${f.n}`(DataImportWizard.tsx:957), while the canvas and the Model list uset('canvas.frame.defaultName', { n }); the numbers agreed.target.label(dataImportCommit.ts:351, 354), which is''for an untitled frame, in every language.The change
DataImportWizard.tsx: a localframeName(f)= the frame's name, orcanvas.frame.defaultNamewith its number, as the Model list does; the choices use it.dataImportCommit.ts: theframe-insufficient-spacerefusal carriesframeIdbesideframeon both of its paths. A saved frame has no number and the model layer has no catalogue, so the wizard finds that frame in the frame store and names it withframeName, stillisolateAuto(obligationwizard-commit-error-names, unchanged). A frame no longer in the store falls back to the label.icu-argument-disposition.json: 577 → 578 arguments (the new{n}, a number).Not in scope, recorded on #611: one shared helper for the "name or default name" rule, which the Model list, the wizard and the frame layer each write today.
Tests
Failing first on main's code:
src/model/dataImportCommit.test.ts, "a refusal for room names the frame by its id as well as its label, on both paths": failed on main (noframeId), passes now.e2e/data-import-wizard.spec.ts, "Korean: untitled frames are 그룹 1 and 그룹 2 in the frame choices and in a refusal for room": on main both checks failed (Group 1,Group 2; then""에 여유 공간이 충분하지 않습니다.), and it passes now. The wizard is filled in English and switched to Korean at the placement step, as in the reproduction.The reproduction's three languages again on this branch:
The name in the error is FSI-isolated; the Arabic sentence reads right to left with the name in place (screenshot taken, not attached).
Local:
check:*script: 0 failed;tsc -b: clean;data-import-wizard,data-import-wizard-state,data-import-refresh-errors,data-import-guide,rtl-bidi-isolation);data-import-guide's screenshots were compared against their committed images.