Henrik Giesel
45ff094392
Add bridgeCommand helper function
2021-01-26 01:25:54 +01:00
Henrik Giesel
cf7bc58163
Use browserLinksSupported preference
2021-01-25 19:12:32 +01:00
Henrik Giesel
6b0a26e46b
Move dispatch logic from Histogram to individual graphs
2021-01-25 16:34:44 +01:00
Henrik Giesel
ad5f0e721f
Make calendar only clickable, if counts > 0
2021-01-25 13:47:20 +01:00
Henrik Giesel
8ecd1cad03
Add back bridge_commands_support via backend.proto
2021-01-25 13:47:20 +01:00
Henrik Giesel
11901e0e57
Add search functionality to Calendar view
2021-01-25 13:47:18 +01:00
Henrik Giesel
a26ffd9876
Add search functionality for ease graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
ee5ba4e8d2
Normalize the remaining queries
2021-01-25 13:46:44 +01:00
Henrik Giesel
3c5493d424
Fix up histogram code to correctly hide tooltip again
2021-01-25 13:46:44 +01:00
Henrik Giesel
a9ccfa62a4
Normalize intervals query
2021-01-25 13:46:44 +01:00
Henrik Giesel
b8dbed44c7
Add query functionality to FutureDue graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
bdacc42af3
Remove onlyReview from intervals query
2021-01-25 13:46:44 +01:00
Henrik Giesel
f3eae60773
Add search functional on interval graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
31203e6d35
Add search to added graph
2021-01-25 13:46:44 +01:00
Henrik Giesel
a86c41c19b
Satisfy formatter
2021-01-25 13:46:44 +01:00
Henrik Giesel
13325e050c
Export bridgeCommandsSupported from graphs.rs for stats
2021-01-25 13:46:44 +01:00
Henrik Giesel
76691176f6
Add a working example of searching from the stats screen in the Card Counts
2021-01-25 13:46:42 +01:00
Henrik Giesel
cee2f396da
Add search event listeners on graphs
2021-01-25 13:45:42 +01:00
Henrik Giesel
a390fb08e2
Add browserSearch bridge command
2021-01-25 13:44:19 +01:00
Damien Elmes
028fdb2562
coerce some more invalid decimal values to ints during sync
2021-01-25 09:43:50 +10:00
Damien Elmes
75f06e21bc
handle older clients not setting 'done' key when false
2021-01-24 09:05:17 +10:00
Damien Elmes
fc39568a87
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
f8c590c914
Fix RangeBox RevlogRange defaulting to All instead of Year
2021-01-23 13:57:43 +01:00
Damien Elmes
a6a4c0032d
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
387be76c00
minor wording tweak: GraphsPreferences -> GraphPreferences
2021-01-23 20:47:45 +10:00
Damien Elmes
fe739f4460
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
959496f20e
Merge pull request #938 from hgiesel/editorflex
...
Small refactor of topbar buttons
2021-01-23 20:09:42 +10:00
Damien Elmes
ec7000575e
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
bceaa21fa6
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
fd09d3f6fd
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
220e3bd843
Merge pull request #940 from hgiesel/calendartween
...
Use scaleSqrt for calendar review values
2021-01-23 16:52:58 +10:00
Damien Elmes
fd6465c460
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
6329824e25
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
81b312ddd1
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
4e9fff493f
Use scaleSqrt for calendar review values
2021-01-22 22:39:29 +01:00
Henrik Giesel
25eee0e704
Change the function name in genbackend.py
2021-01-22 20:05:28 +01:00
Henrik Giesel
a5f59515e2
Rename GraphsPreferencesOut to simply GraphsPreferences
2021-01-22 19:39:03 +01:00
Henrik Giesel
0098869925
Make code typecheck, fix issue with day labels in nightMode
2021-01-22 19:02:05 +01:00
Henrik Giesel
7149c468e5
Set calendar labels to emptyColour
2021-01-22 18:15:16 +01:00
Henrik Giesel
24dd14896a
Make cardCountsSeparateInactive settable
2021-01-22 18:03:58 +01:00
Henrik Giesel
101e193add
Make first day of week settable through UI
2021-01-22 17:51:15 +01:00
Henrik Giesel
d6ba9eb61a
Uniformly rename firstWeekday to firstDayOfWeek
2021-01-22 16:53:33 +01:00
abdo
fb70929b81
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
1a75772673
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
fe75480fea
Successfully send post request to rust
2021-01-22 14:37:24 +01:00
Henrik Giesel
846dd396a6
Add non-functioning logic for settings graphs preferences
2021-01-22 13:14:35 +01:00
Henrik Giesel
15bd2e74f8
Hook up cardCountsSeparateInactive to PreferenceStore
2021-01-22 13:14:35 +01:00
Henrik Giesel
5ee3e0d0d7
Add PreferenceStore with gettable/settable preferences
...
* setting is not yet hooked up to rslib
2021-01-22 13:14:33 +01:00
Henrik Giesel
1516f5c37e
Add GraphsPreferences endpoint to backend
2021-01-22 13:13:48 +01:00
Henrik Giesel
e8169c5b54
Add first GraphPreferences which are not hooked to backend yet
2021-01-22 13:13:48 +01:00