Commit graph

4880 commits

Author SHA1 Message Date
Mouse Reeve
c6c1534c85 Adds id to report page 2022-01-27 20:05:17 -08:00
Mouse Reeve
1d45e8b4cc Updates ip blocklists tests 2022-01-27 19:43:42 -08:00
Mouse Reeve
778975d492 Merge branch 'misc-tests' into user-view 2022-01-27 19:39:19 -08:00
Mouse Reeve
89aa1673b2 Admin views tests 2022-01-27 19:39:07 -08:00
Mouse Reeve
afdaa776e2 Fixes syntax 2022-01-27 19:38:51 -08:00
Mouse Reeve
e7ecae0f96 Adds annual review test 2022-01-27 18:57:18 -08:00
Mouse Reeve
40a14a05ad
Merge pull request #1865 from bookwyrm-social/unread-status-translation
Calculate and translate unread status counts in view
2022-01-27 18:47:35 -08:00
Mouse Reeve
107f02e4e5
Merge pull request #1876 from bookwyrm-social/initdb-tests
Adds tests for initdb command
2022-01-27 18:38:55 -08:00
Mouse Reeve
59b5369654 Updates tests 2022-01-27 18:23:31 -08:00
Mouse Reeve
d711c7a5a2 Test fixes 2022-01-27 13:32:49 -08:00
Mouse Reeve
047e3a324a
Merge pull request #1855 from bookwyrm-social/instance-default-language
Makes default language configurable
2022-01-27 13:25:12 -08:00
Mouse Reeve
ba18e1e34b Adds tests for initdb command 2022-01-27 13:23:29 -08:00
Mouse Reeve
b3d9a46c98
Merge pull request #1869 from bookwyrm-social/list-notes
Let users add info about their list entry submissions
2022-01-27 13:04:08 -08:00
Mouse Reeve
d925395f9d
Merge pull request #1874 from willhoh/main
This fixes #1871 and fixes #1873
2022-01-27 13:01:50 -08:00
Mouse Reeve
a80c19d3e5 Screen reader fixes for list view 2022-01-27 12:55:53 -08:00
Mouse Reeve
2cf10b932d
Merge pull request #1875 from bookwyrm-social/get-started-books
Don't check suggested books against shelved books
2022-01-27 12:43:04 -08:00
Willi Hohenstein
72c22cdcc0 reformatted file 2022-01-27 21:21:28 +01:00
Mouse Reeve
577bc18a47 Minor simplification for user shelf view 2022-01-27 12:05:26 -08:00
officialkzhang
f62e66f5ee
Revised HTML element for onboarding logo
Added navbar class to the parent header of the onboarding logo and removed the previously appended icon class from the image.
2022-01-27 14:51:57 -05:00
Mouse Reeve
c0dabeee04 Don't check suggested books against shelved books
It takes too long, and ideally this is your first action so you don't
have any books shelved yet.
2022-01-27 11:45:40 -08:00
Mouse Reeve
d62473c432 Tests that list item notes federate 2022-01-27 11:04:30 -08:00
Willi Hohenstein
dd35c90042 fix linging errors 2022-01-27 19:54:12 +01:00
Willi Hohenstein
f8afdfc6a9 This fixes #1871 huge amount of traffic from bots
and closes #1873 that leaves a file after testing.
2022-01-27 17:30:02 +01:00
officialkzhang
13edeffb53
Added a class for fixing onboarding logo's size
Added a CSS class for fixing the onboarding logo's size to a reasonable dimension (about 3rem).
2022-01-27 00:22:50 -05:00
Mouse Reeve
0d69d9b48b Adds more unit tests for list views 2022-01-26 12:02:48 -08:00
Mouse Reeve
65b9872c72 Fixes approving curated submissions 2022-01-26 10:37:50 -08:00
Mouse Reeve
eddd9ccc32 Refer to user by id in form tests 2022-01-25 13:57:12 -08:00
Mouse Reeve
2eabe29401 Show notes on curation page 2022-01-25 13:54:44 -08:00
Mouse Reeve
3f9a401d98 Put list action tests in correct files 2022-01-25 13:54:38 -08:00
Mouse Reeve
3a5289a999 Separate lists view test files 2022-01-25 13:38:13 -08:00
Mouse Reeve
dd16fb2a26 Move embed view to separate file 2022-01-25 13:37:57 -08:00
Mouse Reeve
d456ab7306 Move lists tests into directory 2022-01-25 13:22:04 -08:00
Mouse Reeve
f85158191b Use form for saving list items 2022-01-25 12:11:17 -08:00
Mouse Reeve
a43731b335 Fixes tests for list actions 2022-01-25 10:08:54 -08:00
Mouse Reeve
e1599384b0 Fixes list views tests 2022-01-25 09:46:00 -08:00
Mouse Reeve
38ccc23cd5 Add notes form 2022-01-25 09:40:03 -08:00
Mouse Reeve
6009593b6b Migration formatting 2022-01-25 09:17:00 -08:00
Mouse Reeve
037cc35eeb Adds merge migration and python formatting 2022-01-25 08:45:22 -08:00
Mouse Reeve
de4576bc44 Merge branch 'main' into list-notes 2022-01-25 08:44:29 -08:00
Mouse Reeve
9902794bbd Adds edit note view 2022-01-25 08:44:04 -08:00
Joel Bradshaw
0c53f4e003 Fix linting and formatting 2022-01-25 01:09:27 -08:00
Joel Bradshaw
a1a3aa45f4 Don't log autoload debug
This is just too much
2022-01-25 00:53:15 -08:00
Joel Bradshaw
9e6390662b Download fonts at app startup instead
We can't bake the font into the Docker image as such, because we mount
the volumes which blows away anything we have in the app tree
beforehand.

We could stash it somewhere in the image and then copy it from there on
app startup or something, but at that point we might as well just
download it as part of the app startup.
2022-01-25 00:53:01 -08:00
Joachim
766a0cc652 Fix tests 2022-01-24 23:16:15 -08:00
Joachim
6f5115c716 Use Source Han Sans for preview images generation 2022-01-24 23:16:15 -08:00
Joel Bradshaw
284eb620dd Add Source Han font for preview generation to Docker image
Include the license and a README explaining things in the repo itself.

Depending on an external source for this is intended to be temporary,
the goal is to have a Bookywrm-managed source for these, but this should
be stable enough for now.

We build it into the Dockerfile to make it available without adding it
to the git repo itself, because git history is forever and we don't want
to bake large files into the history.

Theoretically it would make sense to gate this download on the
ENABLE_PREVIEW_IMAGES environment variable, but ENV variables aren't
available at Docker image build time (for sensible reasons), so we just
unconditonally download it.

This does mean users will ultimately download it anyway, but the benefit
to doing this over adding it to the git history is that if we switch
fonts, or update this one, or change strategies altogether, this version
of the font will no longer have to be downloaded.

Additionally, the font won't be downloaded until the application is
actually built, which involves a bunch of other downloading (of Docker
images and the like), so it's a reasonable time to do it.
2022-01-24 23:16:14 -08:00
Mouse Reeve
ca0dbeb0ab Move list views into more files 2022-01-24 19:39:30 -08:00
Mouse Reeve
a1a84b28b0 Adds edit box 2022-01-24 13:56:18 -08:00
Mouse Reeve
8280386f0e Context for note block in list item 2022-01-24 13:45:52 -08:00
Mouse Reeve
5206d08dbb Adds demo display of comment in list entry 2022-01-24 13:37:51 -08:00
Mouse Reeve
d0a4c78d02 Limit length on list item note 2022-01-24 12:02:05 -08:00
Mouse Reeve
eeee62cd04 Adds Swedish to the app 2022-01-24 09:39:13 -08:00
Joel Bradshaw
7373fb4132
Fix typo from models refactor
Looks like this got caught up when moving to importing `models`
instead of the individual models, and was throwing an error on
`./bw-dev initdb`
2022-01-23 23:41:22 -08:00
Mouse Reeve
191079a922 Python formatting 2022-01-22 19:01:42 -08:00
Mouse Reeve
e5c8500547 Updates cache buster 2022-01-22 17:05:31 -08:00
Mouse Reeve
3fc690e763 Calculate and translate unread status counts in view 2022-01-22 17:03:48 -08:00
Mouse Reeve
67c3091aa1 Fixes option checking in initdb management command 2022-01-22 15:09:30 -08:00
Mouse Reeve
b35efb6eab
Merge pull request #1857 from bookwyrm-social/about-page-superlatives
Fixes display controls for about page superlatives
2022-01-20 17:20:04 -08:00
Mouse Reeve
ce30f8a8f0
Merge pull request #1854 from bookwyrm-social/pending-users
Activate users in pending state when site registration mode changes
2022-01-20 17:02:28 -08:00
Mouse Reeve
a8776843bd Fixes display toggle for about page superlatives 2022-01-20 17:00:15 -08:00
Mouse Reeve
7476964cca Show only recent results in rss feed view 2022-01-20 16:33:24 -08:00
Mouse Reeve
e2e5ed9aa3 Makes default language configurable 2022-01-20 16:04:42 -08:00
Mouse Reeve
148f9b6f5e Activate pending users when email confirmation is disabled 2022-01-20 15:58:00 -08:00
Mouse Reeve
874e2e0a9c Adds test for activating users on change to registration mode 2022-01-20 15:21:28 -08:00
Mouse Reeve
a0da5c75ff
Merge pull request #1853 from bookwyrm-social/author-page
Trying a new query to get author books
2022-01-20 15:19:11 -08:00
Mouse Reeve
4177654ccf
Merge pull request #1852 from bookwyrm-social/shelf-fixes
Shelf date on all books page
2022-01-20 15:14:21 -08:00
Mouse Reeve
d5ddaa874f Trying a new query to get author books 2022-01-20 15:07:39 -08:00
Mouse Reeve
afea857442 Uses max shelved date to get valid date for all books page 2022-01-20 14:28:30 -08:00
Mouse Reeve
28d675c5a0 Adds more shelf page tests 2022-01-20 14:25:24 -08:00
Mouse Reeve
d9175ce0b0 HTML validity on shelf page 2022-01-20 14:19:41 -08:00
Mouse Reeve
a54fc08983 Updates locales 2022-01-20 13:43:59 -08:00
Mouse Reeve
db715cce2a
Merge pull request #1845 from bookwyrm-social/organizing-templatetags
Organizing templatetags
2022-01-18 14:51:13 -08:00
Mouse Reeve
8b8314f736 Fixes embed view 2022-01-18 14:27:19 -08:00
Mouse Reeve
93caa95855 Removes stray asssert line 2022-01-18 14:05:35 -08:00
Mouse Reeve
c888895327 Adds missing tag loaders 2022-01-18 14:04:55 -08:00
Mouse Reeve
55ae6d1f8d
Merge pull request #1844 from bookwyrm-social/review-html
Fixes review markup for mastodon serialization
2022-01-18 13:42:02 -08:00
Mouse Reeve
e47b5e788d Remove link form review title
html isn't supported in the name field I guess
2022-01-18 13:31:50 -08:00
Mouse Reeve
41c3eceb68 Updates tests 2022-01-18 13:19:04 -08:00
Mouse Reeve
3f487328e2 Adds more tests 2022-01-18 13:15:25 -08:00
Mouse Reeve
ffaeb3381a Updates tests 2022-01-18 12:53:35 -08:00
Mouse Reeve
ce0a49f64f Updates ratings and book display tests 2022-01-18 12:52:21 -08:00
Mouse Reeve
95c262c495 Renames group tags 2022-01-18 12:32:12 -08:00
Mouse Reeve
33c6e5aabe Moves remaining tags into new files 2022-01-18 12:28:59 -08:00
Mouse Reeve
3d63509e20 Updates snippets that use rating tags 2022-01-18 12:09:57 -08:00
Mouse Reeve
b25fa5a193 Adds tests 2022-01-18 12:07:42 -08:00
Mouse Reeve
6e6e2ab777 Moves rating tag to file 2022-01-18 12:02:38 -08:00
Mouse Reeve
4f4d2dc53e Adds tests 2022-01-18 12:02:27 -08:00
Mouse Reeve
8746409e6d Adds shelf tags file 2022-01-18 11:20:27 -08:00
Mouse Reeve
e3545517ec
Merge pull request #1837 from bookwyrm-social/author-page-caching
Author page caching
2022-01-18 11:02:49 -08:00
Mouse Reeve
1c096ecfc2 Fixes review markup for mastodon serialization 2022-01-18 10:57:52 -08:00
Mouse Reeve
8bbc4d3301 Cache checking if books are on shelve in shelve button snippet 2022-01-18 10:52:15 -08:00
Mouse Reeve
9e450f2d99
Merge pull request #1802 from cincodenada/configurable-logging
Make log level configurable, override default logging config
2022-01-18 07:39:43 -08:00
Mouse Reeve
f5de0dd3c9 Fixes bug in verifying readthrough dates 2022-01-17 19:46:48 -08:00
Mouse Reeve
a09c813f73 Python formatting 2022-01-17 19:04:20 -08:00
Joel Bradshaw
27a0b92de0 Fix include order 2022-01-17 16:12:16 -08:00
Joel Bradshaw
27acf668df Add the required bits for Django's logger
So, you can't define handlers piecewise, and if you redefine a logger,
you have to also include everything it uses, because your "new" logger
doesn't have a reference to the original logging config to get things
like mail_admins and require_debug_false.

require_debug_true isn't strictly necessary here, but it seemed strange
to just copy over one of them.
2022-01-17 15:56:24 -08:00
Joel Bradshaw
13a2c58b98 Use parameter-based formatting for debug 2022-01-17 15:14:01 -08:00
Mouse Reeve
02dd1e9443 Use False instead of None for test values 2022-01-17 12:45:32 -08:00
Mouse Reeve
1e4aee8276 Cache user-specific ratings 2022-01-17 12:17:24 -08:00
Mouse Reeve
4cc35ba25e Cache query for author's books 2022-01-17 12:05:11 -08:00
Mouse Reeve
32acccc350 Use both noopener and noreferrer 2022-01-17 11:25:41 -08:00
Mouse Reeve
8a0ea674ea
Merge pull request #1834 from bookwyrm-social/links-display
Improve link filetype and add availability field
2022-01-17 11:08:40 -08:00
Mouse Reeve
4c356cbeb4 Case insensitive suggestions 2022-01-17 10:52:16 -08:00
Mouse Reeve
a23e49c9f3 Fixes filetype field length 2022-01-17 10:48:42 -08:00
Mouse Reeve
2f924faa05 Adds tests 2022-01-17 10:47:49 -08:00
Mouse Reeve
cfcacb4797 Edit book availability 2022-01-17 10:00:12 -08:00
Mouse Reeve
1595bac9b5 Show availability in links panel 2022-01-17 09:26:00 -08:00
Mouse Reeve
39814a21f2 Set book availability 2022-01-17 09:22:40 -08:00
Mouse Reeve
7b1693a435 Larger file type field 2022-01-17 09:03:53 -08:00
Mouse Reeve
942092d6b1 Show link status more prominently on edit page 2022-01-17 08:54:52 -08:00
Mouse Reeve
d4cfe5b8f0 Fixes embedded links modal 2022-01-17 08:44:30 -08:00
Mouse Reeve
f769c42abe
Merge pull request #1833 from bookwyrm-social/links-admin-improvements
Links admin improvements
2022-01-17 08:36:48 -08:00
Mouse Reeve
da6e43a7eb Avoid two character wide urls on mobile 2022-01-17 08:22:55 -08:00
Mouse Reeve
e12372250a Mobile-friendly edit button on link domains 2022-01-17 08:17:36 -08:00
Mouse Reeve
b9fde85b49 Sort domains in admin view 2022-01-17 08:15:14 -08:00
Mouse Reeve
b060cf47f2 Fixes bad cache on content status reading buttons 2022-01-17 08:01:39 -08:00
Mouse Reeve
7dc7965b76 Fixes weird display of author page 2022-01-16 19:38:21 -08:00
Mouse Reeve
0c2537e27a
Merge pull request #1527 from bookwyrm-social/book-file-links
Book file links
2022-01-13 11:10:05 -08:00
Mouse Reeve
d95830037a Adds admin notice 2022-01-13 11:00:59 -08:00
Mouse Reeve
66c67a54e2
Merge pull request #1822 from bookwyrm-social/group-query
Fixes searching for users in group view, with test
2022-01-13 08:53:15 -08:00
Mouse Reeve
0d12d82c12
Merge pull request #1818 from iamruinous/support-redis-db
add support for different redis db
2022-01-13 08:42:00 -08:00
Mouse Reeve
c7b2b303da Fixes searching for users in group view, with test 2022-01-13 08:38:54 -08:00
Jade Meskill
900937ee5f
use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
Jade Meskill
5a3d108c62
update fomatting to pass automated checks 2022-01-12 22:46:51 -07:00
Jade Meskill
6490c1eded
use correct environment variable for EMAIL_SENDER_DOMAIN 2022-01-12 21:49:57 -07:00
Jade Meskill
3638e18844
add support for different redis db 2022-01-12 19:44:11 -07:00
Mouse Reeve
2fbbdbc06a Runs prettier 2022-01-12 17:19:34 -08:00
Mouse Reeve
e6355f76de Adds merge migration 2022-01-12 17:16:20 -08:00
Mouse Reeve
d74360a13f Merge branch 'main' into book-file-links 2022-01-12 17:14:27 -08:00
Mouse Reeve
a2fb1489b9 Merge branch 'main' into book-file-links 2022-01-12 17:11:29 -08:00
Mouse Reeve
d1183fd003 Python formatting 2022-01-12 17:11:24 -08:00
Mouse Reeve
fc06f0cdd1 Avoid console error 2022-01-12 17:08:10 -08:00
Mouse Reeve
80efd58881 Javascript file in correct template 2022-01-12 17:06:36 -08:00
Mouse Reeve
34635b0c3f Select trie based on data attr 2022-01-12 17:02:30 -08:00
Mouse Reeve
99ec87c67c Merge branch 'book-file-links' into autocomplete 2022-01-12 16:51:59 -08:00
Mouse Reeve
262e641c79 Creates link template subdirectory 2022-01-12 16:50:52 -08:00
Mouse Reeve
5fcdc284ce Removes duplicate atomic block 2022-01-12 16:41:23 -08:00
Mouse Reeve
dedcbda2d8 Adds inbox test 2022-01-12 16:41:20 -08:00
Mouse Reeve
b2262a5f98
Merge pull request #1816 from bookwyrm-social/privacy-translation
Build-in translations to privacy choices dropdown
2022-01-12 16:15:03 -08:00
Mouse Reeve
1513c73d48
Merge pull request #1817 from bookwyrm-social/opensearch-site-name
Use site name as shortname for opensearch
2022-01-12 16:14:09 -08:00
Mouse Reeve
84575cef9a Use site name as shortname for opensearch 2022-01-12 15:29:40 -08:00
Mouse Reeve
8b2335c52c Build-in translations to privacy choices dropdwon 2022-01-12 15:26:13 -08:00
Mouse Reeve
c08b9e61c4 Fixes book link in table 2022-01-12 11:34:44 -08:00
Mouse Reeve
57a05e239b Python formatting 2022-01-12 11:17:30 -08:00
Mouse Reeve
24045685e1 Updates tests 2022-01-12 11:03:04 -08:00
Mouse Reeve
9c86132701 Adds missing bracket 2022-01-12 10:43:40 -08:00
Mouse Reeve
4a7013f104 Adds book path variable 2022-01-12 10:42:27 -08:00
Mouse Reeve
581e3d17e0 Fixes nested quotes 2022-01-12 10:41:48 -08:00
Mouse Reeve
5da2ce6427 Include author in content status headers 2022-01-12 10:35:02 -08:00
Mouse Reeve
e452ec87d3 Link to book title in pure activitypub serialization of review 2022-01-12 10:15:26 -08:00