RumovZ
dd56dc6650
Rename columns for future mode-independent use
2021-04-08 23:43:48 +02:00
RumovZ
f78401619a
Remove Column class and use pb class instead
2021-04-08 11:17:25 +02:00
RumovZ
6c3c479906
Move BrowserColumn into BrowserColumns message
2021-04-08 10:16:06 +02:00
RumovZ
a5c02910a6
Use backend column objects on frontend
2021-04-06 19:47:03 +02:00
Damien Elmes
996d9f9bbc
undo support for tag collapse; expand->collapse for consistency w/ decks
2021-04-05 11:47:12 +10:00
Damien Elmes
2168dfe63d
add routine to set deck collapse state
...
Updating a deck via protobuf is now exposed on the backend, but not
currently on the frontend - I suspect we'll be better off writing
separate routines for the actions we need instead, and we get a better
undo description for free.
This is currently causing an ugly redraw in the browse screen, which
will need fixing.
2021-04-05 11:19:04 +10:00
Damien Elmes
42a4d11416
embed deck config and expose to frontend
2021-04-04 22:52:53 +10:00
Damien Elmes
c4b3ab62c8
embed deck messages
2021-04-04 21:41:16 +10:00
Damien Elmes
1a4c4373d2
expose read-only access to new notetype objects
2021-04-04 20:45:37 +10:00
Damien Elmes
c60b88cd2f
expose read-only access to new deck objects
2021-04-04 20:39:56 +10:00
Damien Elmes
41c5a25dc8
simplify errors
...
- use a flat enum instead of oneof messages, most of which were empty
- tidy up the Python side
2021-04-03 16:06:46 +10:00
Damien Elmes
f666f15b63
use perform_op() for undo()
...
Instead of manually updating the UI after undoing, we just rely
on the same change notification infrastructure regular operations
use.
2021-04-03 14:38:49 +10:00
Damien Elmes
e73359510d
move filtered deck labels to backend
...
- use strum to generate an iterator for the protobuf enum so we don't
forget to add new labels if extending in the future
- no add-ons appear to be using dynOrderLabels(), so it has been removed
@RumovZ perhaps a similar approach might work for listing the available
browser columns as well?
2021-04-01 23:53:38 +10:00
Damien Elmes
ac1b9fadde
merge the filtered deck errors into an enum
...
Fixes the wrong message being shown when trying to move cards to a
filtered deck
2021-04-01 22:30:00 +10:00
RumovZ
ffe77b1291
Add browser column enum for backend
2021-03-30 11:59:52 +02:00
RumovZ
7b316a7151
Move order docstring back into find_cards()
2021-03-29 12:03:31 +02:00
Damien Elmes
28aae21d51
List->Sequence in a bunch of table/browser methods
...
Most code doesn't require a list specifically, and build a list
is an extra step.
2021-03-29 16:48:33 +10:00
Damien Elmes
13011f9708
avoid rebuilding card/note id list when searching
2021-03-29 16:25:55 +10:00
RumovZ
0d8b1c9d0b
squash merge browser refactor
...
Closes #1100
2021-03-29 16:14:54 +10:00
Damien Elmes
cfac40febc
switch NoteType to Notetype
...
When used as a variable, we were typically calling it a 'notetype', not
a 'note type'.
2021-03-27 22:03:19 +10:00
Damien Elmes
716b474314
add Dict suffix to Dict aliases in models.py
2021-03-27 21:46:49 +10:00
Damien Elmes
9f4a06abee
ID -> Id in protobuf and Python
...
follow-up to dc81a7fed0
2021-03-27 21:38:20 +10:00
Damien Elmes
89d249b3b6
update to the latest rules_rust + security framework update
2021-03-27 19:28:19 +10:00
Damien Elmes
d6b9cc4d9b
drop the legacy enum from rslib, and pass separate module/message idx
2021-03-27 11:56:31 +10:00
Damien Elmes
f485efce16
update remaining TR references in rslib
2021-03-27 11:18:34 +10:00
Damien Elmes
698ae855d3
update 1 arg tr strings in rslib
2021-03-27 10:39:53 +10:00
Damien Elmes
dc5fdd30d4
update no-arg TR references in rslib/
2021-03-26 23:16:08 +10:00
Damien Elmes
b57e9be46f
allow js to request specific i18n modules
...
Brings the payload on the congrats page with a non-English language
down from about 150k to 15k
2021-03-26 21:43:36 +10:00
Damien Elmes
1ca25c563f
update most no-arg TR references in *.svelte
2021-03-26 19:13:30 +10:00
Damien Elmes
cd4572c3dd
update TR references with args in *.svelte
2021-03-26 19:13:30 +10:00
Damien Elmes
df93ed0b15
update TR references with args in *.ts; fix average answer time
2021-03-26 19:10:39 +10:00
Damien Elmes
b435658acb
convert no-arg TR references to method invocations in *.ts
2021-03-26 19:10:27 +10:00
Damien Elmes
3d366d5264
add types to some more Fluent variables
2021-03-26 16:52:54 +10:00
Damien Elmes
8cc6758eb1
declare variables with some common names as int instead of a union
2021-03-26 16:33:53 +10:00
Damien Elmes
e687552aeb
update TR references that crossed multiple lines
2021-03-26 14:38:15 +10:00
Damien Elmes
b7587cb8d2
update TR references that contain arguments
2021-03-26 14:21:04 +10:00
Damien Elmes
0c338bfd53
update no-arg tr references in qt/
2021-03-26 13:48:26 +10:00
Damien Elmes
ebe655975c
update some more TR references in pylib; update tr_legacyglobal
2021-03-26 13:33:46 +10:00
Damien Elmes
efb1ce46d4
switch the Importers global to a callable for i18n
...
I18n is not set up at init time, so the strings can't be generated
at import.
@kelciour you have a few importing add-ons, so wanted to give you a
heads-up. The importing code is likely to change more in
future months, but for now this should be the only change
2021-03-26 13:28:21 +10:00
Damien Elmes
48354931da
update some no-arg TR constants
2021-03-26 12:37:18 +10:00
Damien Elmes
07c6c4044c
Merge branch 'int_type' into main
2021-03-26 11:38:34 +10:00
Damien Elmes
bc2c3a57ba
fix incorrect constant naming
2021-03-26 11:29:07 +10:00
Damien Elmes
64bb526008
fix incorrect camelCase
2021-03-26 11:28:51 +10:00
Damien Elmes
7d5014fd5f
fix typo and PEP8 naming in noteimp.py
2021-03-26 11:28:18 +10:00
Damien Elmes
8e0f00fbb9
fix .select() not handling string arguments
2021-03-26 11:27:49 +10:00
Arthur Milchior
be630adab9
NF: CardType type
2021-03-26 11:14:08 +10:00
Arthur Milchior
365de5f232
NF: CardQueue type
2021-03-26 11:14:08 +10:00
Arthur Milchior
7ea862931c
NF: NoteTypeID type
2021-03-26 11:14:08 +10:00
Arthur Milchior
b54410200e
NF: DeckConfID
2021-03-26 11:14:08 +10:00
Arthur Milchior
6ac1e6477e
NF: DeckID type
2021-03-26 11:14:08 +10:00