anki/qt/aqt
Damien Elmes d382b33585 rework filtered deck screen & search errors
- Filtered deck creation now happens as an atomic operation, and is
undoable.
- The logic for initial search text, normalizing searches and so on
has been pushed into the backend.
- Use protobuf to pass the filtered deck to the updated dialog, so
we don't need to deal with untyped JSON.
- Change the "revise your search?" prompt to be a simple info box -
user has access to cancel and build buttons, and doesn't need a separate
prompt. Tweak the wording so the 'show excluded' button should be more
obvious.
- Filtered decks have a time appended to them instead of a number,
primarily because it's easier to implement. No objections going back to
the old behaviour if someone wants to contribute a clean patch.
The standard de-duplication will happen if two decks are created in the
same minute with the same name.
- Tweak the default sort order, and start with two searches. The UI
will still hide the second search by default, but by starting with two,
the frontend doesn't need logic for creating the starting text.
- Search errors now have their own error type, instead of using
InvalidInput, as that was intended mainly for bad API calls. The markdown
conversion is done when the error is converted from the backend, allowing
errors to printed as a string without any special handling by the calling
code.

TODO: when building a new filtered deck, update_active() is clobbering
the undo log when the overview is refreshed
2021-03-24 22:04:35 +10:00
..
data remove the default question fade 2021-03-22 12:11:00 +10:00
forms dyndeckconf -> filtered_deck 2021-03-24 13:17:12 +10:00
__init__.py dyndeckconf -> filtered_deck 2021-03-24 13:17:12 +10:00
about.py Update about screen 2021-03-10 11:34:28 +01:00
addcards.py decorator for saveNow(), mkII 2021-03-19 19:45:21 +10:00
addons.py tweak AbortAddonImport docstring 2021-03-23 19:31:24 +10:00
browser.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
BUILD.bazel winrt 1.0.20239.1 isn't available for python 3.9 2020-12-23 20:31:13 +10:00
card_ops.py undoable ops now return changes directly; add new *_ops.py files 2021-03-19 19:45:21 +10:00
clayout.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
colors.py move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
customstudy.py tweak search wording and tidy up API 2021-02-11 19:57:19 +10:00
dbcheck.py nest progress messages and remove Python wrapper class 2021-02-08 16:40:27 +10:00
deck_ops.py use perform_op() for deck creation 2021-03-22 23:17:07 +10:00
deckbrowser.py switch DeckID to a NewType 2021-03-22 23:43:54 +10:00
deckchooser.py Simplify note adding and the deck/notetype choosers 2021-03-10 11:53:27 +10:00
deckconf.py rename&simplify the deck/config type aliases 2021-03-24 16:29:02 +10:00
editcurrent.py decorator for saveNow(), mkII 2021-03-19 19:45:21 +10:00
editor.py clear_unused_tags and browser redraw improvements 2021-03-19 19:45:21 +10:00
emptycards.py nest NoteWithEmptyCards 2021-02-08 19:11:16 +10:00
errors.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
exporting.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
fields.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
filtered_deck.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
find_and_replace.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
gui_hooks.py fix qt/ pylints 2021-01-07 16:21:50 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
importing.py fix .csv import not using faster QPlainTextEdit 2021-03-22 11:26:49 +10:00
legacy.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
main.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
mediacheck.py tweak search wording and tidy up API 2021-02-11 19:57:19 +10:00
mediasrv.py convert qt strings to f-strings with flynt 2021-02-11 10:09:06 +10:00
mediasync.py nest progress messages and remove Python wrapper class 2021-02-08 16:40:27 +10:00
modelchooser.py Simplify note adding and the deck/notetype choosers 2021-03-10 11:53:27 +10:00
models.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
mpv.py convert qt strings to f-strings with flynt 2021-02-11 10:09:06 +10:00
note_ops.py speed up tag drag&drop and finish tag tidyup 2021-03-19 19:45:21 +10:00
notetypechooser.py Simplify note adding and the deck/notetype choosers 2021-03-10 11:53:27 +10:00
overview.py dyndeckconf -> filtered_deck 2021-03-24 13:17:12 +10:00
pinnedmodules.py fix rsbackend compat issues 2021-02-08 09:51:51 +10:00
platform.py turn top bar dark when night mode enabled on macOS 2021-02-04 19:19:56 +10:00
preferences.py expand backend Preferences and make undoable 2021-03-10 18:51:03 +10:00
previewer.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
profiles.py expand backend Preferences and make undoable 2021-03-10 18:51:03 +10:00
progress.py clear_unused_tags and browser redraw improvements 2021-03-19 19:45:21 +10:00
py.typed
qt.py more typing updates 2021-02-02 23:31:55 +10:00
reviewer.py speed up tag drag&drop and finish tag tidyup 2021-03-19 19:45:21 +10:00
scheduling_ops.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
schema_change_tracker.py add a bunch of return types 2021-02-01 23:53:23 +10:00
sidebar.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
sound.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
stats.py commit immediately when there's no active checkpoint 2021-03-10 11:47:53 +10:00
studydeck.py use perform_op() for deck creation 2021-03-22 23:17:07 +10:00
sync.py nest progress messages and remove Python wrapper class 2021-02-08 16:40:27 +10:00
tag_ops.py speed up tag drag&drop and finish tag tidyup 2021-03-19 19:45:21 +10:00
tagedit.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
taglimit.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
taskman.py clear_unused_tags and browser redraw improvements 2021-03-19 19:45:21 +10:00
theme.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
toolbar.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
tts.py convert qt strings to f-strings with flynt 2021-02-11 10:09:06 +10:00
update.py more typing updates 2021-02-02 23:31:55 +10:00
utils.py rework filtered deck screen & search errors 2021-03-24 22:04:35 +10:00
webview.py fix a bunch of qt typing issues uncovered by the following commit 2021-03-19 19:45:21 +10:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
winpaths.py convert qt strings to f-strings with flynt 2021-02-11 10:09:06 +10:00