Anki/ftl/core
RumovZ 14de8451dc
Merging Notetypes on Import (#2612)
* Remember original id when importing notetype

* Reuse notetypes with matching original id

* Add field and template ids

* Enable merging imported notetypes

* Fix test

Note should be updated if the incoming note's notetype is
remapped to the existing note's notetype.
On the other hand, it should be skipped if its notetype id is mapped
to some new notetype.

* Change field and template ids to i32

* Add merge notetypes flag to proto message

* Add dialog for apkg import

* Move HelpModal into components

* Generalize import dialog

* Move SettingTitle into components

* Add help modal to ImportAnkiPackagePage

* Move SwitchRow into components

* Fix backend method import

* Make testable in browser

* Fix broken modal

* Wrap in container and fix margins

* Update commented Anki version of new proto fields

* Check ids when comparing notetype schemas

* Add tooltip for merging notetypes.

* Allow updating notes regardless of mtime

* Gitignore yarn-error.log

* Allow updating notetypes regardless of mtime

* Fix apkg help carousel

* Use i64s for template and field ids

* Add option to omit importing scheduling info

* Restore last settings in apkg import dialog

* Display error when getting metadata in webview

* Update manual links for apkg importing

* Apply suggestions from code review

Co-authored-by: Damien Elmes <dae@users.noreply.github.com>

* Omit schduling -> Import all cards as new cards

* Tweak importing-update-notes-help

* UpdateCondition → ImportAnkiPackageUpdateCondition

* Load keyboard.ftl

* Skip updating dupes in 'update alwyas' case

* Explain more when merging notetypes is required

* "omit scheduling" → "with scheduling"

* Skip updating notetype dupes if 'update always'

* Merge duplicated notetypes from previous imports

* Fix rebase aftermath

* Fix panic when merging

* Clarify 'update notetypes' help

* Mention 'merge notetypes' in the log

* Add a test which covers the previously panicking path

* Use nested ftl messages to ensure consistency

* Make order of merged fields deterministic

* Rewrite test to trigger panic

* Update version comment on new fields
2023-09-09 09:00:55 +10:00
..
actions.ftl Add nothing to undo/redo 2023-07-04 13:41:02 +10:00
adding.ftl Make missing cloze a warning again 2021-06-15 08:43:00 +02:00
browsing.ftl Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
card-stats.ftl Show custom data in stats screen 2023-02-07 12:27:43 +10:00
card-template-rendering.ftl Template err improvements (#1953) 2022-07-09 13:00:03 +10:00
card-templates.ftl Clarify warning in notetype reset 2023-04-26 16:08:48 +10:00
change-notetype.ftl Change Notetype UI Rework (#1499) 2021-11-24 12:09:55 +10:00
custom-study.ftl Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
database-check.ftl Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
deck-config.ftl Making phrasing more clear in dialog which lets user choose a deck to display options for. (#2522) 2023-05-26 12:50:38 +10:00
decks.ftl run ftl/remove-unused.sh 2021-11-24 14:44:02 +10:00
editing.ftl Add some missing tooltips 2023-05-11 15:10:27 +10:00
empty-cards.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
errors.ftl Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
exporting.ftl Change "unique note identifier" to "unique identifier" 2022-06-11 10:11:29 +10:00
fields.ftl Clarify some translation terms 2023-04-03 12:50:35 +10:00
findreplace.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
help.ftl Minor wording tweaks to help.ftl; remove an unused entry 2022-10-27 08:24:38 +10:00
importing.ftl Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
keyboard.ftl Add getPlatformString for making shortcuts to platform string 2021-04-22 13:04:24 +02:00
media-check.ftl Extract inline images as part of media check 2023-07-31 12:23:16 +10:00
media.ftl remove format separator from recording string 2020-12-16 19:44:47 +10:00
network.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
notetypes.ftl image occlusion button in note editor (#2485) 2023-07-27 22:45:49 +10:00
preferences.ftl Mention enter key 2023-05-22 13:41:33 +10:00
profiles.ftl Backup improvements (#1728) 2022-03-21 19:40:42 +10:00
scheduling.ftl Reset->change in due date prompt 2022-06-01 19:44:51 +10:00
search.ftl search-invalid-flag -> search-invalid-flag-2 2021-06-02 21:49:33 +02:00
statistics.ftl Make stats title translatable 2023-06-07 16:25:35 +10:00
studying.ftl Fix bury count (more) (#1712) 2022-03-07 11:03:14 +10:00
sync.ftl tweak sync conflict message 2021-09-08 19:19:23 +10:00
undo.ftl move action names out of undo.ftl into actions.ftl 2021-05-08 17:11:54 +10:00