anki/qt/aqt
Abdo 98715e593a
Improve presentation of importing results (#2568)
* Implement import log screen in Svelte

* Show filename in import log screen title

* Remove unused NoteRow property

* Show number of imported notes

* Use a single nid expression

* Use 'count' as variable name for consistency

* Import from @tslib/backend instead

* Fix summary_template typing

* Fix clippy warning

* Apply suggestions from code review

* Fix imports

* Contents -> Fields

* Increase max length of browser search bar

https://github.com/ankitects/anki/pull/2568/files#r1255227035

* Fix race condition in Bootstrap tooltip destruction

https://github.com/twbs/bootstrap/issues/37474

* summary_template -> summaryTemplate

* Make show link a button

* Run import ops on Svelte side

* Fix geometry not being restored in CSV Import page

* Make VirtualTable fill available height

* Keep CSV dialog modal

* Reword importing-existing-notes-skipped

* Avoid mentioning matching based on first field

* Change tick and cross icons

* List skipped notes last

* Pure CSS spinner

* Move set_wants_abort() call to relevant dialogs

* Show number of imported cards

* Remove bold from first sentence and indent summaries

* Update UI after import operations

* Add close button to import log page

Also make virtual table react to resize event.

* Fix typing

* Make CSV dialog non-modal again

Otherwise user can't interact with browser window.

* Update window modality after import

* Commit DB and update undo actions after import op

* Split frontend proto into separate file, so backend can ignore it

Currently the automatically-generated frontend RPC methods get placed in
'backend.js' with all the backend methods; we could optionally split them
into a separate 'frontend.js' file in the future.

* Migrate import_done from a bridgecmd to a HTTP request

* Update plural form of importing-notes-added

* Move import response handling to mediasrv

* Move task callback to script section

* Avoid unnecessary :global()

* .log cannot be missing if result exists

* Move import log search handling to mediasrv

* Type common params of ImportLogDialog

* Use else if

* Remove console.log()

* Add way to test apkg imports in new log screen

* Remove unused import

* Get actual card count for CSV imports

* Use import type

* Fix typing error

* Ignore import log when checking for changes in Python layer

* Apply suggestions from code review

* Remove imported card count for now

* Avoid non-null assertion in assignment

* Change showInBrowser to take an array of notes

* Use dataclasses for import log args

* Simplify ResultWithChanges in TS

* Only abort import when window is modal

* Fix ResultWithChanges typing

* Fix Rust warnings

* Only log one duplicate per incoming note

* Update wording about note updates

* Remove caveat about found_notes

* Reduce font size

* Remove redundant map

* Give credit to loading.io

* Remove unused line

---------

Co-authored-by: RumovZ <gp5glkw78@relay.firefox.com>
2023-08-02 20:29:44 +10:00
..
browser Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
data Only disable specific animations/transitions/shadows 2023-07-02 20:02:14 +10:00
forms Make stats title translatable 2023-06-07 16:25:35 +10:00
import_export Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
operations Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
qt Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
__init__.py Only apply Wayland workaround in Wayland path 2023-05-29 19:07:54 +10:00
_macos_helper.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
about.py fix stats calendar incorrect due to daylight savings time (#2456) 2023-03-28 15:35:06 +10:00
addcards.py follow-up pr for io button in note editor (#2600) 2023-07-31 14:24:26 +10:00
addons.py Make set_config_help_action work with submodules (#2561) 2023-06-28 11:46:02 +10:00
changenotetype.py Update Python deps 2023-03-31 14:04:05 +10:00
clayout.py V -> ValueType 2023-04-19 16:43:23 +10:00
colors.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
customstudy.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
dbcheck.py Backup improvements (#1728) 2022-03-21 19:40:42 +10:00
debug_console.py Pass dict for locals and globals to exec() (#2590) 2023-07-25 21:21:06 +10:00
deckbrowser.py Remove duplicate renderPage invocation 2023-06-07 16:10:35 +10:00
deckchooser.py Make dialogs non-blocking (#1650) 2022-02-10 09:53:13 +10:00
deckconf.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
deckdescription.py Update Python deps 2023-03-31 14:04:05 +10:00
deckoptions.py Rework & unify webview identification and title setting (#2366) 2023-02-10 14:53:11 +10:00
editcurrent.py image occlusion button in note editor (#2485) 2023-07-27 22:45:49 +10:00
editor.py follow-up pr for io button in note editor (#2600) 2023-07-31 14:24:26 +10:00
emptycards.py Rework & unify webview identification and title setting (#2366) 2023-02-10 14:53:11 +10:00
errors.py Catch altered translation of 'unknown error' 2023-07-24 10:29:37 +10:00
exporting.py Add deck/collection export hooks (#1971) 2022-07-22 12:45:47 +10:00
fields.py Add did-add-field-hook analogous to did-delete-field (#2574) 2023-07-13 21:10:12 +10:00
filtered_deck.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
flags.py Introduce new color palette using Sass maps (#2016) 2022-09-16 14:11:18 +10:00
gui_hooks.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
importing.py Update Python deps 2023-03-31 14:04:05 +10:00
legacy.py Import submodules directly (#1662) 2022-02-13 13:40:47 +10:00
main.py Work around CI failure on Windows with PyQt 6.5.2 2023-07-26 21:10:19 +10:00
mediacheck.py Increase default size of media check screen 2023-07-03 23:58:24 +10:00
mediasrv.py Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
mediasync.py Refactor progress handling (#2549) 2023-06-19 13:48:32 +10:00
modelchooser.py Add callback and non-blocking option to StudyDeck (#1643) 2022-02-07 22:05:59 +10:00
models.py Update Python deps 2023-03-31 14:04:05 +10:00
mpv.py Fix two mpv issues on Windows (#2294) 2023-01-03 11:59:39 +10:00
notetypechooser.py Make dialogs non-blocking (#1650) 2022-02-10 09:53:13 +10:00
overview.py Do not append description button for filtered deck (#2266) 2022-12-11 15:03:11 +10:00
package.py Another attempt at fixing missing cacert.pem 2022-12-30 15:30:53 +10:00
preferences.py Move answer keys to right of dialog to reduce vertical space 2023-05-20 17:37:55 +10:00
profiles.py Fix addon update dialog showing twice (#2580) 2023-07-18 22:26:59 +10:00
progress.py Refactor progress handling (#2549) 2023-06-19 13:48:32 +10:00
props.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
reviewer.py Migrate to protobuf-es (#2547) 2023-06-14 22:47:37 +10:00
schema_change_tracker.py Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
sound.py Log mpv invocation failure for debugging 2023-05-11 14:47:23 +10:00
stats.py Update Python deps 2023-03-31 14:04:05 +10:00
studydeck.py Fix new deck not being selected (#1681) 2022-02-22 21:51:23 +10:00
stylesheets.py Workaround Ubuntu ignoring tooltip palette in dark mode 2023-05-31 15:19:10 +10:00
switch.py Auto-hide toolbar in Reviewer (#2262) 2023-01-09 14:39:31 +10:00
sync.py Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
tagedit.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
taglimit.py Move custom study tag and limit gathering+saving into the backend 2022-03-10 16:23:03 +10:00
taskman.py Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
theme.py Apply Latin1 fix to other platforms 2023-05-31 16:41:12 +10:00
toolbar.py Only disable specific animations/transitions/shadows 2023-07-02 20:02:14 +10:00
tts.py Revert backwards incompatible changes to TTSVoice (#2378) 2023-02-20 17:43:18 +10:00
undo.py fix redo menu item showing undo text 2021-08-04 10:28:45 +10:00
update.py Update Python deps 2023-03-31 14:04:05 +10:00
utils.py Store separate state/geometry for each Qt minor version 2023-05-18 10:04:30 +10:00
webview.py Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
widgetgallery.py Improve debug console (#2435) 2023-03-15 15:29:05 +10:00
winpaths.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00