RumovZ
ee83528da2
Remove internal clones of pb BrowserRow structs
2021-04-10 09:49:29 +02:00
RumovZ
dd4f08a90f
Rename column label fields
2021-04-10 09:14:20 +02:00
RumovZ
e2b1c0da51
Remove unused Serialize
2021-04-10 09:13:48 +02:00
RumovZ
94d52de9da
Store active browser columns in col state
2021-04-09 22:53:02 +02:00
RumovZ
18b3938025
Remove superfluous muts
2021-04-09 22:51:18 +02:00
RumovZ
c81cf7ffaf
Move Column logic into main rslib
2021-04-09 19:09:48 +02:00
RumovZ
93c6e258aa
Merge SortKind enum into Column enum
2021-04-09 18:03:29 +02:00
RumovZ
e28f2320b8
Unify state columns
...
* Remove duplicate backend columns
* Remove duplicate column routines
* Move columns on frontend from state to model
* Generate available columns from Colum enum
* Add second column label for notes mode
2021-04-08 23:48:24 +02:00
RumovZ
8c499ed5bf
Rename columns for future mode-independent use
2021-04-08 23:43:48 +02:00
RumovZ
dc9a7b024e
Merge browser row str methods
2021-04-08 20:45:47 +02:00
RumovZ
3845ccc846
Add card mod column for notes mode
2021-04-08 20:14:10 +02:00
RumovZ
f4081084a9
Add deck column for notes mode
2021-04-08 19:46:06 +02:00
RumovZ
0acab27b0a
Merge row contexts
2021-04-08 13:51:46 +02:00
RumovZ
c316783517
Fix deck column serialization string
2021-04-06 23:03:30 +02:00
RumovZ
d70a7eb9a4
Make Column a strum
2021-04-06 16:54:09 +02:00
Damien Elmes
786069e89e
avoid fetching decks for each row
...
Like notetypes, there is a col.get_deck() routine which caches
fetches, so that successive fetches are cheap. This makes it simpler
to just fetch the deck at the start.
We were also attempting to fetch a deck with id 0 for each row; I've
changed this so that we only fetch it if the id is non-zero.
I18n uses an Arc internally, so it is cheap to clone. This allow us
to drop the lifetime specifiers on the context structures.
2021-04-05 15:13:32 +10:00
Damien Elmes
4462a533ff
fix a clippy lint
2021-04-01 18:01:31 +10:00
Damien Elmes
f9cd39114b
tuple type for InvalidInput
2021-04-01 17:37:18 +10:00
Damien Elmes
cc54a9251e
crate::err -> crate::error
2021-04-01 16:07:13 +10:00
RumovZ
d87f80c74a
Refactor get_row_color()
2021-03-31 08:56:54 +02:00
RumovZ
ad7563effb
Pass Column by value
2021-03-31 00:02:10 +02:00
RumovZ
6233a125fc
Add note interval column
2021-03-30 23:44:35 +02:00
RumovZ
fb4dd05dd4
Refactor note_ease_str()
2021-03-30 23:44:16 +02:00
RumovZ
af153f9c09
Fix comment typo
2021-03-30 21:40:35 +02:00
RumovZ
ca87a6fc45
Add note due column
2021-03-30 21:39:15 +02:00
RumovZ
44ae21c0b1
Refactor card_due_str()
2021-03-30 20:50:09 +02:00
RumovZ
9e34c0f80c
Rename browser_rows to browser_table
...
Reflects the addition of column handling.
2021-03-30 12:08:35 +02:00