Henrik Giesel
0168736ad8
Fix graphs tooltip position
2021-01-30 02:35:48 +01:00
Henrik Giesel
8151156b98
Install types for lodash.throttle
2021-01-30 02:12:44 +01:00
Henrik Giesel
993cca1902
Make histogram show bars again
2021-01-30 02:08:01 +01:00
Henrik Giesel
dc62e56aef
Remove modular d3 imports for imports from d3 bundle
2021-01-30 01:13:47 +01:00
Henrik Giesel
0af6d559a8
Remove d3 libraries from BUILD.bazel
2021-01-30 00:04:44 +01:00
Henrik Giesel
0527beec98
Replace individual d3 libraries with encompassing d3
2021-01-30 00:00:22 +01:00
Damien Elmes
ef178cd7e1
remove debug statement
2021-01-29 23:21:57 +10:00
Damien Elmes
0a119c3bad
move saved search code into sidebar.py, and remove from Filter button
2021-01-29 23:05:30 +10:00
Damien Elmes
03eab6b646
add expand/collapse children options
2021-01-29 22:54:00 +10:00
Damien Elmes
cfc6620591
place each sidebar section under its own collapsible parent node
...
- Allows for group operations like "clear unused tags"
- Allows users to hide groups they're not interested in
2021-01-29 22:11:05 +10:00
Damien Elmes
34c53aafb4
add getter/setter for boolean config values
2021-01-29 21:03:19 +10:00
Damien Elmes
7540917256
sort config keys
2021-01-29 16:31:29 +10:00
Damien Elmes
137679a1a1
remove unused set_all_config; expose .all_config().
2021-01-29 16:30:42 +10:00
Damien Elmes
45ec14184a
show actual error when graphData fails
...
The original reason for the catch-all message was users with bad
data such as decimal intervals, but those get automatically coerced
these days. The common case should now be invalid search strings, which
we can show verbatim.
2021-01-29 14:39:05 +10:00
Damien Elmes
e70b887e8c
Revert "Make sidebar search matching work with full_name instead of name"
...
This reverts commit b0a599c6bc .
Using the full name caused issues with highlighting:
https://github.com/ankitects/anki/pull/951#issuecomment-769516003
Let's revert this for now and see if demand presents itself.
2021-01-29 13:18:28 +10:00
Damien Elmes
a0a82c1f56
vary sidebar highlight with theme
2021-01-29 13:15:38 +10:00
Damien Elmes
e385507636
Merge pull request #951 from abdnh/sidebar-search
...
Add search bar to the sidebar
2021-01-29 11:32:26 +10:00
abdo
47b5e8d345
Handle sidebar refreshing while searching
2021-01-29 04:20:15 +03:00
Damien Elmes
c0e0cabd73
drop potentially slow regex usage in cloze check
...
Closes #956 , thanks to Henrik.
2021-01-29 11:15:33 +10:00
abdo
68ea4eda96
Wait for some time before performing sidebar search
2021-01-29 03:45:16 +03:00
abdo
b0a599c6bc
Make sidebar search matching work with full_name instead of name
2021-01-29 02:36:13 +03:00
Damien Elmes
55627e7eae
fix crashes when activating context menu/items while searching
2021-01-28 19:12:07 +10:00
Damien Elmes
d82b6bc778
basic match highlighting
2021-01-28 18:58:51 +10:00
Damien Elmes
9212e6af5e
basic tree-based filtering with a sort proxy
...
Some things left to do:
- instead of searching on each keystroke, have the keystroke start
a timer and wait 600-1000ms before performing the search
- handle the case .refresh() is called while searching
It would also be nice to have some visual distinction between matching
rows and their non-matching parents.
2021-01-28 18:51:18 +10:00
Damien Elmes
193e2d47a6
fix sidebar model.parent() returning invalid values
...
Triggered a crash when using a model proxy.
2021-01-28 17:48:33 +10:00
Damien Elmes
07b0eebdb3
Merge pull request #952 from hgiesel/fieldsflex
...
Deal with inline content vs block content and <br> in editor.ts
2021-01-28 15:49:31 +10:00
Damien Elmes
ae1491492f
unbury on sync start
...
https://forums.ankiweb.net/t/unburying-works-differently-on-anki-desktop-ankiweb-and-ios-app/6909
2021-01-28 11:54:48 +10:00
Damien Elmes
8bd94e779f
avoid bumping mtime when correcting card eases on upgrade
...
The USN is still set, which should cause the cards to sync in the
non-conflict case, but if changes have been made on other devices
the ease fix will not take priority, as we could be overwriting the
reviews of someone who has not synced in a while.
2021-01-28 08:11:35 +10:00
Damien Elmes
4958fb30c9
Merge pull request #946 from hgiesel/dispatchtype
...
Correctly type createEventDispatch and dispatch
2021-01-27 20:27:08 +10:00
Damien Elmes
ad188b1ecf
Merge pull request #947 from hgiesel/noclickonemptybins
...
No clicking on empty bins in the Histogram
2021-01-27 19:45:07 +10:00
Damien Elmes
5b43399e63
Merge pull request #950 from MaximAbramchuck/remove-unused-variable
...
Remove unused variable
2021-01-27 19:44:31 +10:00
Damien Elmes
60bdb173ac
Merge pull request #953 from hgiesel/backlogcb
...
Add FutureDueShowBacklog as preferences
2021-01-27 19:44:01 +10:00
Damien Elmes
630360641f
suggest DB check if HTTP status 400 is returned
2021-01-27 14:23:28 +10:00
Damien Elmes
4b0d25aa23
add type check to textFormat arg
2021-01-27 14:22:17 +10:00
Henrik Giesel
04a7b88595
Rename fieldIsInInlineMode to fieldContainsInlineContent
2021-01-27 02:35:14 +01:00
Henrik Giesel
e30f62c2a5
Add FutureDueShowBacklog as preferences
2021-01-27 01:15:19 +01:00
Henrik Giesel
aa61f24547
Remove unused helper functions
2021-01-27 00:55:00 +01:00
Henrik Giesel
8572c1e1d7
Recreate border-spacing with margins for #fields
2021-01-27 00:50:26 +01:00
Henrik Giesel
bd270ba52c
Change nodeIsInline logic to be more typesafe
2021-01-26 23:49:48 +01:00
Henrik Giesel
876efba70c
Change logic to detect inline elements, as the display style property may not be set after setting innerHTML
2021-01-26 23:42:04 +01:00
abdo
924d501bf3
Add search bar to the sidebar
...
https://github.com/ankitects/help-wanted/issues/6
2021-01-27 01:41:57 +03:00
Henrik Giesel
898cdb94e4
Make #fields display correctly
2021-01-26 23:17:50 +01:00
Henrik Giesel
a76d1772df
Make fields div instead of table + implement fieldIsInInlineMode logic
2021-01-26 23:00:55 +01:00
Maksim Abramchuk
9763d5777d
Add myself to list of contributors
2021-01-26 21:38:42 +00:00
Maksim Abramchuk
abd2f1a712
Remove unused variable
2021-01-26 21:37:16 +00:00
Henrik Giesel
6464a2bb83
Strip trailing newline if inline elements logic
2021-01-26 21:26:04 +01:00
Henrik Giesel
f88aad8d85
No clicking on empty bins in the Histogram
2021-01-26 13:48:36 +01:00
Henrik Giesel
e204ddc0d4
Type createEventDispatcher and dispatch
2021-01-26 12:47:17 +01:00
Damien Elmes
a83cb6402e
tooltip() instead of print() when no tts tag matches
...
Can help with debugging user error like an incorrectly-typed language
code. Don't ask me how I know. :-)
2021-01-26 20:37:24 +10:00
Damien Elmes
0f672e794a
update translations
2021-01-26 19:09:43 +10:00