Anki/rslib/src
RumovZ e39fb74e82
Enable state-dependent custom scheduling data (#2049)
* Enable state-dependent custom scheduling data

* Next(Card)States -> SchedulingStates

The fact that `current` was included in `next` always bothered me,
and custom data is part of the card state, so that was a bit confusing
too.

* Store custom_data in SchedulingState

* Make custom_data optional when answering

Avoids having to send it 4 extra times to the frontend, and avoids the
legacy answerCard() API clobbering the stored data.

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2022-09-05 16:48:01 +10:00
..
backend Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
card Add card meta for persisting custom scheduling state (#2040) 2022-09-02 11:22:49 +10:00
card_rendering Expose backend_proto publicly for AnkiDroid, and rename to pb 2022-06-27 15:27:53 +10:00
collection Expose backend_proto publicly for AnkiDroid, and rename to pb 2022-06-27 15:27:53 +10:00
config Remember previous choices in reposition dialog (#1950) 2022-07-08 11:28:38 +10:00
deckconfig Deck-specific Limits (#1955) 2022-07-19 18:27:25 +10:00
decks Handle deeply nested decks 2022-08-03 14:37:56 +10:00
error Check ids when gathering data (#1928) 2022-06-24 13:56:52 +10:00
import_export Some import/export features and fixes (#2038) 2022-09-03 11:29:06 +10:00
media Populate media DB on import (#1977) 2022-07-22 17:50:15 +10:00
notes Keep content of unmapped fields when importing (#2023) 2022-08-24 16:04:32 +10:00
notetype Introduce setting to collapse field by default (#1990) 2022-08-31 23:34:39 +10:00
revlog Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
scheduler Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
search Improve temporary table handling (#1976) 2022-07-22 17:51:26 +10:00
stats Improve temporary table handling (#1976) 2022-07-22 17:51:26 +10:00
storage Some import/export features and fixes (#2038) 2022-09-03 11:29:06 +10:00
sync Add card meta for persisting custom scheduling state (#2040) 2022-09-02 11:22:49 +10:00
tags Keep content of unmapped fields when importing (#2023) 2022-08-24 16:04:32 +10:00
undo update undo skipping; exclude deck/tag expand/collapse 2021-06-25 09:16:15 +10:00
adding.rs expose undoable config changes to frontend; refresh sidebar 2021-05-21 17:50:41 +10:00
browser_table.rs Template err improvements (#1953) 2022-07-09 13:00:03 +10:00
cloze.rs Expose cloze text as HTML attribute on question side (#1968) 2022-07-19 04:22:57 +10:00
dbcheck.rs Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
findreplace.rs Remove redundant error mapping (#1593) 2022-01-16 13:46:27 +10:00
i18n.rs drop the legacy enum from rslib, and pass separate module/message idx 2021-03-27 11:56:31 +10:00
io.rs Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
latex.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
lib.rs Partially migrate type answer to backend 2022-07-22 19:28:34 +10:00
links.rs Expose backend_proto publicly for AnkiDroid, and rename to pb 2022-06-27 15:27:53 +10:00
log.rs Backups (#1685) 2022-03-07 15:11:31 +10:00
markdown.rs render deck description with markdown; strip images 2021-02-06 15:02:40 +10:00
ops.rs Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
pb.rs Expose backend_proto publicly for AnkiDroid, and rename to pb 2022-06-27 15:27:53 +10:00
preferences.rs Expose backend_proto publicly for AnkiDroid, and rename to pb 2022-06-27 15:27:53 +10:00
prelude.rs Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
serde.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
template.rs Fix field check for cloze conditional (#1975) 2022-07-20 20:26:26 +10:00
template_filters.rs Expose cloze text as HTML attribute on question side (#1968) 2022-07-19 04:22:57 +10:00
tests.rs Fix missing limits field in tests (#1973) 2022-07-19 18:51:32 +10:00
text.rs CSV import/export fixes and features (#1898) 2022-06-09 10:28:01 +10:00
timestamp.rs Fix for crash with invalid dates on Windows (#1837) 2022-05-07 10:30:23 +10:00
typeanswer.rs Wrap type answer output in code tag; remove extra div 2022-07-22 20:37:56 +10:00
types.rs update scheduling ops 2021-04-06 16:38:42 +10:00
version.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00