Henrik Giesel
0e98bd7db2
Normalize the remaining queries
2021-01-25 13:46:44 +01:00
Henrik Giesel
fd58f73f13
Fix up histogram code to correctly hide tooltip again
2021-01-25 13:46:44 +01:00
Henrik Giesel
740dcedbe6
Normalize intervals query
2021-01-25 13:46:44 +01:00
Henrik Giesel
2fd4039494
Add query functionality to FutureDue graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
8a43745f83
Remove onlyReview from intervals query
2021-01-25 13:46:44 +01:00
Henrik Giesel
1232fd7069
Add search functional on interval graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
58950452e4
Add search to added graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
a7c8b021dd
Satisfy formatter
2021-01-25 13:46:44 +01:00
Henrik Giesel
6a0f2a0ebb
Export bridgeCommandsSupported from graphs.rs for stats
2021-01-25 13:46:44 +01:00
Henrik Giesel
3ab92b3427
Add a working example of searching from the stats screen in the Card Counts
2021-01-25 13:46:42 +01:00
Henrik Giesel
c8f0ee8b3b
Add search event listeners on graphs
2021-01-25 13:45:42 +01:00
Henrik Giesel
fdf4c6628f
Add browserSearch bridge command
2021-01-25 13:44:19 +01:00
Damien Elmes
ef9f6b022b
coerce some more invalid decimal values to ints during sync
2021-01-25 09:43:50 +10:00
Damien Elmes
370fc00afd
handle older clients not setting 'done' key when false
2021-01-24 09:05:17 +10:00
Damien Elmes
62df0aaa96
Merge pull request #941 from hgiesel/revlogfix
...
Fix RangeBox RevlogRange defaulting to All instead of Year
2021-01-24 09:01:39 +10:00
Henrik Giesel
19db519a7e
Fix RangeBox RevlogRange defaulting to All instead of Year
2021-01-23 13:57:43 +01:00
Damien Elmes
2a875ffc55
Merge pull request #934 from hgiesel/graphprefs
...
Add GraphsPreferences API to graphs for setting persistent preferences
2021-01-23 21:24:41 +10:00
Damien Elmes
37ca8afaf6
minor wording tweak: GraphsPreferences -> GraphPreferences
2021-01-23 20:47:45 +10:00
Damien Elmes
6f798930a2
fix graphs failing to load until preferences set
...
The protobuf object will be missing keys that have the default value,
so we need to fill the defaults in.
2021-01-23 20:40:43 +10:00
Damien Elmes
b16f6cbcce
Merge pull request #938 from hgiesel/editorflex
...
Small refactor of topbar buttons
2021-01-23 20:09:42 +10:00
Damien Elmes
8d5dca4bda
move sidebar code from browser.py to sidebar.py and tidy up
...
https://github.com/ankitects/help-wanted/issues/6
Some notes:
- use our own routine to toggle the sidebar, which avoids a useless
refresh on browser close, and allows us to limit the delayed loading
to initial browser load.
- add-ons that limited themselves to the browser_will_build_tree hook
should theoretically continue working; ones that were monkey patching
will likely break. A few appear to be broken at the moment anyway,
so it's probably a good time to be making this change.
2021-01-23 19:59:12 +10:00
Damien Elmes
9db3f0dd19
drop tags/decks/etc from Filter button
...
https://github.com/ankitects/help-wanted/issues/6
These are a relic from when the sidebar defaulted to off, and I don't
think enough people are using them to bother keeping them around.
Once the the card state and saved filter functionality moves into the
sidebar and top menus, we may be able to remove the Filter button
completely.
2021-01-23 18:21:44 +10:00
Damien Elmes
6aba1a879c
Merge pull request #939 from abdnh/sidebar-templates
...
Render card templates as trees in the sidebar
2021-01-23 17:11:55 +10:00
Damien Elmes
754aefa702
Merge pull request #940 from hgiesel/calendartween
...
Use scaleSqrt for calendar review values
2021-01-23 16:52:58 +10:00
Damien Elmes
10757d563d
refresh new/rev counts when fillNew/fillRev() fails
...
This was the behaviour before, but got lost when ._reset_counts() was
added. Also added the check back to schedv2:fillRev(), which also
appears to have gotten lost in the move to ._reset_counts()
Just a stop-gap fix until this code can get a proper rewrite.
2021-01-23 14:02:05 +10:00
Damien Elmes
ce2315591f
remove "invalid current deck"
...
This should resolve itself when a user clicks on a deck.
2021-01-23 13:04:58 +10:00
Damien Elmes
bdc5c619f7
handle decks/notetypes with a duplicate name being sent in a sync
...
Typically caused by older clients, but could happen if the user added
the same name on different devices without syncing.
Also add an inactive test that was used to try track down this issue
and might be useful in the future.
2021-01-23 12:59:24 +10:00
Henrik Giesel
089960bfef
Use scaleSqrt for calendar review values
2021-01-22 22:39:29 +01:00
Henrik Giesel
bf130d1da0
Change the function name in genbackend.py
2021-01-22 20:05:28 +01:00
Henrik Giesel
de71123ab4
Rename GraphsPreferencesOut to simply GraphsPreferences
2021-01-22 19:39:03 +01:00
Henrik Giesel
17ebb69151
Make code typecheck, fix issue with day labels in nightMode
2021-01-22 19:02:05 +01:00
Henrik Giesel
ebd3ca8a8f
Set calendar labels to emptyColour
2021-01-22 18:15:16 +01:00
Henrik Giesel
834f2de99b
Make cardCountsSeparateInactive settable
2021-01-22 18:03:58 +01:00
Henrik Giesel
806e52d6db
Make first day of week settable through UI
2021-01-22 17:51:15 +01:00
Henrik Giesel
aebaa04652
Uniformly rename firstWeekday to firstDayOfWeek
2021-01-22 16:53:33 +01:00
abdo
0110102ea2
Render card templates as trees in the sidebar
...
Reusing the note type icon and not caring about saving collapse state
for now.
2021-01-22 17:49:20 +03:00
Henrik Giesel
b0c2e8c99c
Remve SeparateInactiveCheckbox and correctly use preferences values
...
* Expose issue with non-existing calendar value in GraphPreferences
2021-01-22 14:56:41 +01:00
Henrik Giesel
d1ada88657
Successfully send post request to rust
2021-01-22 14:37:24 +01:00
Henrik Giesel
054c30a695
Add non-functioning logic for settings graphs preferences
2021-01-22 13:14:35 +01:00
Henrik Giesel
64352ce0d5
Hook up cardCountsSeparateInactive to PreferenceStore
2021-01-22 13:14:35 +01:00
Henrik Giesel
5fc8b1965a
Add PreferenceStore with gettable/settable preferences
...
* setting is not yet hooked up to rslib
2021-01-22 13:14:33 +01:00
Henrik Giesel
665a13e378
Add GraphsPreferences endpoint to backend
2021-01-22 13:13:48 +01:00
Henrik Giesel
d27167ce86
Add first GraphPreferences which are not hooked to backend yet
2021-01-22 13:13:48 +01:00
Henrik Giesel
1df6c5f596
Avoid highlighting of toprightbuttons to shift the topbar
2021-01-22 12:53:45 +01:00
Henrik Giesel
9226d50185
Space items by using margins instead of spaces
...
* also changed name of topbutton container back to topbutsOuter as it is clearer
* starting with Chromium 83, `row-gap` would be better suited for this
2021-01-22 12:17:10 +01:00
Henrik Giesel
97f8f1b89e
Switch from floating windows and clearfix to flex and justify-content: space-between
2021-01-22 11:37:11 +01:00
Damien Elmes
0c35d30979
Merge pull request #935 from abdnh/sidebar-nt
...
Add manage note types menu item to the sidebar
2021-01-22 14:21:28 +10:00
Damien Elmes
a1e8e6d9df
Merge pull request #936 from hgiesel/editorresize
...
Leave resizing of editor top buttons to CSS
2021-01-22 13:11:43 +10:00
abdo
426ea1aba9
Move the logic for selecting a note type to models.py
2021-01-22 05:56:39 +03:00
Damien Elmes
99d732799c
(de)serialize Weekday directly
...
Re: discussion in https://github.com/ankitects/anki/pull/934
2021-01-22 12:12:57 +10:00