-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): support pasting object into array + copying individual ar…
…ray items (#7292) * feat(core): support pasting object into array touches edx-1432 Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(core): validate references in documents on paste fixes edx-1584 Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(core): add missing translation key Signed-off-by: Fred Carlsen <fred@sjelfull.no> Signed-off-by: Fred Carlsen <fred@sjelfull.no> * feat(core): add support for copying single array items Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(core): handle first index segments (0) when getting value Signed-off-by: Fred Carlsen <fred@sjelfull.no> * test(core): add tests for copy paste hook This makes sure we at least cover more of the studio side of the logic, and don’t rely solely on the unit test for the transferValue logic Signed-off-by: Fred Carlsen <fred@sjelfull.no> * chore(deps): add dependencies Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix(core): fix flaky test for recentSearches The underlying issue is that the `getRecentSearches()` function will mutate state, and the state will not necessarily be updated before the test continues. The workaround here is to force a rerender any time we change the state before continuing. This might point to some underlying implementation of `recentSearches`, but I did not dig too much into that. Signed-off-by: Fred Carlsen <fred@sjelfull.no> Signed-off-by: Fred Carlsen <fred@sjelfull.no> * chore(core): update comment about handling inline objects Signed-off-by: Fred Carlsen <fred@sjelfull.no> --------- Signed-off-by: Fred Carlsen <fred@sjelfull.no>
- Loading branch information
Showing
30 changed files
with
2,065 additions
and
303 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.