Commit graph

3812 commits

Author SHA1 Message Date
Joachim
d70469d2e0 Better .env vars defaults 2021-08-01 11:47:39 +02:00
Joachim
1a53f5c18a Update renamed layout.html 2021-08-01 11:38:44 +02:00
Joachim
78aa31afd5 Merge remote-tracking branch 'upstream/main' into storage-s3 2021-08-01 11:38:32 +02:00
Kylie
a6b8d44627 Summary display updates 2021-07-31 20:30:21 -04:00
Kylie
3f01cf8788
Update user_card.html 2021-07-31 19:58:12 -04:00
Kylie
1c7ed30d65
Update sanitize_html.py 2021-07-31 19:54:59 -04:00
Kylie
d75f33cfb2 Apply preserve-whitespace to profile summaries 2021-07-31 13:16:47 -04:00
Kylie
f2186d6861 Add preserve-whitespace CSS tag 2021-07-31 13:15:49 -04:00
Kylie
7af7a7b575 Recognize profile summary linebreaks + whitespace 2021-07-30 23:50:21 -04:00
Mouse Reeve
0ed0f45b32 Fixes logged out state for user search 2021-07-28 16:43:49 -07:00
Mouse Reeve
d5c36dbc28 Updates search remote value 2021-07-28 13:52:16 -07:00
Mouse Reeve
bf99a07153 Automatically search remote endpoints if a local search is empty 2021-07-28 13:29:24 -07:00
Mouse Reeve
7f44693e0c Renames feed layout file to be more consistent with other templates 2021-07-28 13:21:42 -07:00
Mouse Reeve
c9602e28ce Use consistant header size 2021-07-28 13:19:56 -07:00
Mouse Reeve
436afb0ebd Fixes heirarchy and classes in feed layout 2021-07-28 13:17:56 -07:00
Mouse Reeve
b84ffeda08
Merge pull request #1221 from cincodenada/shelved-date
Add shelved date, populate from Goodreads import
2021-07-19 17:11:22 -06:00
Joel Bradshaw
f867b1c81d Update tests for shelved_date
Also make dates while we're at it
2021-07-13 22:08:15 -07:00
Joel Bradshaw
eadf5cf410 Use shelved date for display
I'm not sure if there's a better way to access this field, accessing via
book.shelfbook__shelved_date in the template didn't seem to work
2021-07-13 21:26:38 -07:00
Joel Bradshaw
a16d759766 Add shelved_date field and populate it on import 2021-07-13 21:04:11 -07:00
Mouse Reeve
3f15e4410e Fixes link to edit book 2021-07-12 16:17:20 -07:00
Mouse Reeve
6ffd8a7822
Merge pull request #1217 from bookwyrm-social/activitypub-pagination
Fixes pagination for ordered collections
2021-07-07 12:30:45 -06:00
Mouse Reeve
88c23117ff Fixes outbox pagination 2021-07-07 10:56:19 -07:00
Mouse Reeve
1d90ccdcaa
Merge pull request #1215 from bookwyrm-social/user-status-counts
Hide deleted status counts from book page
2021-07-07 11:55:18 -06:00
Mouse Reeve
b41d9440fd Adds tests for ordered collection page generator 2021-07-07 10:53:25 -07:00
Mouse Reeve
23631c3c4f Fixes failing links 2021-07-07 09:49:22 -07:00
Mouse Reeve
b3cd9483d3 Adds test for misinterpreted links 2021-07-07 09:47:07 -07:00
Mouse Reeve
fede777e9b Hide deleted status counts from book page 2021-07-07 09:37:21 -07:00
Joachim
3ea1bcb256
Merge branch 'main' into storage-s3 2021-07-05 13:06:19 +02:00
Joel Bradshaw
ecff6dd051 Make it black 2021-07-03 00:22:55 -07:00
Joel Bradshaw
28a76662fe Add backend parameter to Celery initializer
This fixed an error when viewing imports for my setup
2021-07-02 23:53:42 -07:00
gra-ch
b720740762 Add Tranditional Chinese translation 2021-06-30 13:54:56 +08:00
Mouse Reeve
9461784a18 Python formtting 2021-06-28 13:54:38 -07:00
Mouse Reeve
e13ddb10d0 Avoids template errors in dev when imports can't connect to redis 2021-06-28 13:50:04 -07:00
Mouse Reeve
290192204e Fixes user json views
Fixes #1198
2021-06-27 11:47:49 -07:00
Mouse Reeve
3238be4748 Restores weights to original calculation 2021-06-26 19:07:09 -07:00
Mouse Reeve
62b6bfe1ee Annotation and filtering order 2021-06-26 18:55:09 -07:00
Mouse Reeve
8844e46259 Removes stray print statement 2021-06-26 18:40:53 -07:00
Mouse Reeve
a3badc5700 Adds preview mock to postgres tests 2021-06-26 18:36:17 -07:00
Mouse Reeve
36fe64c3ae Fixes patch import in test 2021-06-26 16:48:57 -07:00
Mouse Reeve
6470033ac9 Fixes search query syntax
mad about the lack of django docs on this, jeez
2021-06-26 16:20:18 -07:00
Mouse Reeve
789f823d5d Fixes python formatting 2021-06-26 13:20:23 -07:00
Mouse Reeve
62b5a00102 Adds test mocks from psql tests 2021-06-26 13:13:12 -07:00
Mouse Reeve
e168720420 Adds test for stop word null state 2021-06-26 12:42:36 -07:00
Mouse Reeve
68fc5f2b5a Trigger search vector update when author is edited 2021-06-26 12:34:05 -07:00
Mouse Reeve
2fa5fabb7b Fixes default edition ranking test 2021-06-26 09:57:56 -07:00
Mouse Reeve
61785cee66 Set defualt min confidence to 0 2021-06-26 09:12:23 -07:00
Mouse Reeve
3998aa5f2a Fixes edit author form 2021-06-26 09:05:00 -07:00
Mouse Reeve
b4b2105527 Fixes edit book form 2021-06-26 08:54:52 -07:00
Mouse Reeve
deb1b9943a Uses simple dictionary as backup for english dictionary
Creates search vectors with stop words if the english version is empty,
and uses a SearchQuery OR with simple and english on the view side.
2021-06-24 10:56:27 -07:00
Mouse Reeve
04c51a6598 Uses simple dictionary for names 2021-06-24 10:01:07 -07:00
Mouse Reeve
adb0253abf Remove default minimum search confidence 2021-06-23 17:41:29 -07:00
Mouse Reeve
7c15fbbb0b More efficient search index
Co-authored-by: asmr-hex <0.0@asmr.software>
2021-06-23 16:54:59 -07:00
root
ad3dc16005 Removrd Bio from Your books 2021-06-22 13:18:23 +00:00
Mouse Reeve
ae1d0343ba
Merge pull request #1191 from bookwyrm-social/getdata-fix
Catch all exceptions from requests when loading remote data
2021-06-20 12:09:14 -07:00
Mouse Reeve
2f279bbbd4
Merge pull request #1193 from bookwyrm-social/cover-images
Safer cover image naming
2021-06-20 12:08:35 -07:00
Mouse Reeve
4a5e4e8ca2 Safer cover image naming 2021-06-20 09:38:01 -07:00
Mouse Reeve
7a44a9b516 Use catch-all requests exception 2021-06-20 09:23:57 -07:00
Mouse Reeve
95a19a44f8 Don't error out when invalid urls are entered 2021-06-20 09:13:57 -07:00
Joachim
7818a4347f Specify width (250px) on Instance Description image 2021-06-20 15:57:08 +02:00
Joachim
0c83882a11 Fix lint 2021-06-19 19:44:14 +02:00
Joachim
e251b687dc Merge remote-tracking branch 'upstream/main' into images-django-imagekit 2021-06-19 19:32:56 +02:00
Joachim
2fbbf522ce Update preview_images.py 2021-06-19 17:46:18 +02:00
Mouse Reeve
f82161d648 Fixes migration query 2021-06-19 08:41:37 -07:00
Mouse Reeve
cb811c92a6 Adds reverse migration stub 2021-06-19 08:36:12 -07:00
Mouse Reeve
e99e4831f1 Updates migration 2021-06-19 08:17:27 -07:00
Joachim
bcb6e1c40a Fix storage media removal 2021-06-19 17:10:25 +02:00
Joachim
dee63d8825 Rename MEDIA_PATH to MEDIA_FULL_URL and handle protocol 2021-06-19 17:09:53 +02:00
Mouse Reeve
15555e61d0 Merge branch 'main' into book-format-choices 2021-06-19 07:43:34 -07:00
Joachim
582c2d4f25 Fix Python formating 2021-06-19 12:04:30 +02:00
Joachim
c9c7a673d7 Fix template dependency 2021-06-19 12:02:48 +02:00
Joachim
8af13e5f7d Fix for pylint 2021-06-19 12:01:41 +02:00
Joachim
6607c8b185 Better handling of absolute URLs with domain + scheme 2021-06-19 11:54:19 +02:00
Joachim
d862be0564 Merge remote-tracking branch 'upstream/main' into storage-s3 2021-06-19 11:53:05 +02:00
Mouse Reeve
beb42b17f1 Removes unused import 2021-06-18 16:56:33 -07:00
Mouse Reeve
98ae586889 Newline in following template 2021-06-18 16:52:12 -07:00
Mouse Reeve
5b6048e4c6 Merge branch 'main' into suggestions-redis 2021-06-18 16:48:04 -07:00
Mouse Reeve
8e7c43baa7 Fixes preview tests 2021-06-18 15:58:21 -07:00
Mouse Reeve
60626eaca1 Catches straggler preview_image signal 2021-06-18 15:28:43 -07:00
Mouse Reeve
59938e2d46 Linter fixes for models 2021-06-18 15:24:10 -07:00
Mouse Reeve
d8d6f57373 Linting fixes for preview image code 2021-06-18 15:08:36 -07:00
Mouse Reeve
a20c4d583c Merge branch 'main' into pylint 2021-06-18 14:48:31 -07:00
Mouse Reeve
ea556bd83b
Merge pull request #1142 from joachimesque/opengraph-image-generation
Generate OpenGraph images for books, users, and site.
2021-06-18 14:47:54 -07:00
Mouse Reeve
c7d14cb957 Fixes regex import in urls file 2021-06-18 14:40:28 -07:00
Mouse Reeve
9e5c7053e9 More pylint fixes 2021-06-18 14:29:24 -07:00
Mouse Reeve
381d160105 Fixes init file 2021-06-18 14:17:05 -07:00
Mouse Reeve
4479864008 Updates code for linter 2021-06-18 14:12:56 -07:00
Mouse Reeve
20f74ba02b More disables 2021-06-18 13:23:06 -07:00
Mouse Reeve
7775d943d4 Fixes list link to user profile 2021-06-18 12:11:07 -07:00
Joachim
7e26a38403 Fix summary image format 2021-06-18 19:15:36 +02:00
Joachim
5d41781e6a Fix scheme 2021-06-18 19:15:24 +02:00
Joachim
e07672fff1 Fix tests 2021-06-18 18:28:24 +02:00
Mouse Reeve
22636041ba Use null instead of zero for unrated review 2021-06-17 17:47:46 -07:00
Mouse Reeve
973b23856c
Merge branch 'main' into opengraph-image-generation 2021-06-17 15:17:54 -07:00
Mouse Reeve
321554f17e
Merge pull request #1181 from bookwyrm-social/search-cleanup
Minor simplifications to search queries
2021-06-17 14:57:17 -07:00
Mouse Reeve
4141323783
Merge pull request #1148 from arkhi/frontend/subtitle
Update subtitle behaviour
2021-06-17 14:55:55 -07:00
Mouse Reeve
1f071d3c18
Merge pull request #1180 from bookwyrm-social/search-timeout
Adds timeouts to get requests
2021-06-17 14:51:05 -07:00
Mouse Reeve
59643c02a3 Python formatting 2021-06-17 14:48:19 -07:00
Mouse Reeve
5d3639e47f Minor simplications to search queries 2021-06-17 14:46:58 -07:00
Mouse Reeve
c16baea40d
Merge pull request #1175 from bookwyrm-social/dedplicate-boosts
Don't show duplicated statuses after boosts
2021-06-17 13:43:43 -07:00
Mouse Reeve
2a6339cf21 Fixes redis interaction mock 2021-06-17 13:10:01 -07:00
Mouse Reeve
8b657bbcb1 Updates model test 2021-06-17 12:58:37 -07:00
Mouse Reeve
cf3869ad32 Adds timeouts to get requests 2021-06-17 12:34:54 -07:00
Fabien Basmaison
cc03460e00 Avoid space within parenthesises for series when no number is provided. 2021-06-17 17:18:55 +02:00
Fabien Basmaison
7f01dcf3b9 Merge branch 'main' into frontend/subtitle 2021-06-17 17:12:23 +02:00
Mouse Reeve
75df210193 Python formatting 2021-06-14 17:01:53 -07:00
Mouse Reeve
8946332023 More fixes for more tests 2021-06-14 16:56:47 -07:00
Mouse Reeve
27a3d0ae96
Merge branch 'main' into 253-user-post-privacy-v2 2021-06-14 16:47:57 -07:00
Mouse Reeve
0d16d3c5a4
Merge pull request #1177 from bookwyrm-social/user-page-scroll
Small ui fixes
2021-06-14 16:41:32 -07:00
Mouse Reeve
c3a09a6331 More test fixes 2021-06-14 16:39:54 -07:00
Mouse Reeve
ef71da7ef0 Fixes interaction tests 2021-06-14 16:23:17 -07:00
Mouse Reeve
c4f7f34ad4 Fixes edit readthrough toggle display 2021-06-14 16:04:58 -07:00
Mouse Reeve
3600f6ca3c Handle overflow text in notifications 2021-06-14 16:00:17 -07:00
Mouse Reeve
a82bf99bd6 Icon-only link display on mobile for text links 2021-06-14 15:55:26 -07:00
Mouse Reeve
fe2309f0bc Fixes orientation of edition want to read menu 2021-06-14 15:45:39 -07:00
Mouse Reeve
f307edf732 Use elided page range for invites 2021-06-14 15:39:54 -07:00
Mouse Reeve
5a236e333f Fixes directory profile link 2021-06-14 15:33:03 -07:00
Mouse Reeve
cd014e43ad Python formatting 2021-06-14 15:29:07 -07:00
Mouse Reeve
2a606eec3e scroll horizontally on user page shelf preview 2021-06-14 15:27:37 -07:00
Mouse Reeve
290a99bf17 Fixes renaming images on save 2021-06-14 15:19:54 -07:00
Mouse Reeve
52adfbf5da Don't show duplicated statuses after boosts 2021-06-14 14:47:59 -07:00
Mouse Reeve
6d42f2bb1e
Merge pull request #1172 from bookwyrm-social/import-lookup
Don't try title/author search when isbn search fails
2021-06-14 12:49:54 -07:00
Mouse Reeve
f4a6e18759
Merge pull request #1173 from bookwyrm-social/series-space
Fixes trailing space in series text
2021-06-14 12:49:41 -07:00
Mouse Reeve
6e6354bcce Fixes trailing space in series text
Fixes #1145
2021-06-14 12:34:11 -07:00
Mouse Reeve
d4e2a06092
Merge pull request #1171 from bookwyrm-social/import-text
Clarifies wording on pending imports
2021-06-14 12:31:38 -07:00
Mouse Reeve
46be7292fd Don't try title/author search when isbn search fails 2021-06-14 12:30:43 -07:00
Mouse Reeve
9a67c61487 Clarifies wording on pending imports
Fixes #1118
2021-06-14 11:59:44 -07:00
Mouse Reeve
e98138e84f Show users as deleted in admin view 2021-06-14 11:38:54 -07:00
Mouse Reeve
607bfa9160 Python formatting 2021-06-14 11:16:41 -07:00
Mouse Reeve
557aa2005b Adds test for delete view 2021-06-14 11:15:00 -07:00
Mouse Reeve
8cd6712db3 Let users delete their accounts 2021-06-14 10:44:25 -07:00
Mouse Reeve
7ae64c2a68 Splits user view out and adds template 2021-06-14 10:01:21 -07:00
Fabien Basmaison
17635b47db Fix case where there is no subtitle.
Consequentially change back author to being a subtitle.
2021-06-11 09:41:55 +02:00
Fabien Basmaison
cf751a8efa Merge branch 'main' into frontend/subtitle 2021-06-11 08:49:46 +02:00
Mouse Reeve
a4afbccb3a Fixes straggling reading view test name 2021-06-09 11:36:17 -07:00
Mouse Reeve
ce4a57e5c9 Reading status view name 2021-06-09 11:16:52 -07:00
Mouse Reeve
4107f7ddf1 Updates readthrough tests 2021-06-09 11:07:15 -07:00
Mouse Reeve
3c7c8a1797 Fixes urls in fallback mode 2021-06-09 11:05:05 -07:00
Mouse Reeve
113ced2900 Merge reading status views into one view 2021-06-09 10:53:52 -07:00
Fabien Basmaison
6be97a6102 Be consistent between variable name & logic. Equal is already too short. 2021-06-09 19:03:15 +02:00
Fabien Basmaison
c4072cbc04 Be nice to Black and follow styleguides. 2021-06-09 18:54:05 +02:00
Fabien Basmaison
0ecea5710b Use gettext to add subtitle to short titles (use variable for length). 2021-06-09 18:51:20 +02:00
Fabien Basmaison
f58c1d1138 Tweak styles for subtitle:
- Make it bold as the title while preserving consistency with other subtitles.
- Pull the author closer to the subtitle to preserve a descending visual and typographic scales.
2021-06-09 12:20:34 +02:00
Fabien Basmaison
5047b8bf94 Do not break document structure with ratings. 2021-06-09 11:12:38 +02:00
Fabien Basmaison
b9562e44e3 Merge branch 'main' into frontend/subtitle 2021-06-09 10:14:34 +02:00
Mouse Reeve
625ab46059 Removes start reading with progress test
There's no way to do this from the ui???? I don't tihnk there ever
was???
2021-06-08 15:03:50 -07:00
Mouse Reeve
a00fdc6864 Updates tests for reading views 2021-06-08 14:42:55 -07:00
Mouse Reeve
e65bc09e7a Linter fixes 2021-06-08 12:42:45 -07:00
Mouse Reeve
eb12506985 No script fallback mode 2021-06-08 12:40:01 -07:00
Mouse Reeve
3356c652ee Adds standalone modal views for reading steps 2021-06-08 11:55:18 -07:00
Mouse Reeve
b5d0a9e0b4 Removes deplicate progress code form reading views 2021-06-08 11:43:30 -07:00
Mouse Reeve
1231d40e80 Want to read view 2021-06-08 11:23:53 -07:00
Mouse Reeve
45146b4999 Convert start and finish reading into view classes 2021-06-08 11:10:39 -07:00
Joachim
689fefb096 Merge remote-tracking branch 'upstream/main' into storage-s3 2021-06-08 18:20:57 +02:00
Mouse Reeve
948a5dea10 Cleans up .env and settings files
Some outdated stuff doesn't need to be in there
2021-06-07 12:53:57 -07:00
Joachim
4359505124 Update book.py 2021-06-07 19:54:16 +02:00
Joachim
d105ae9c78 Merge remote-tracking branch 'upstream/main' into images-django-imagekit 2021-06-07 19:53:11 +02:00
Joachim
2731ea9aa9 Add env var to enable/disable thumbnail generation 2021-06-07 19:52:25 +02:00
Joachim
f287a19f12 Update settings.py 2021-06-07 18:31:01 +02:00
Joachim
715cb46e1e Lint 2021-06-07 18:15:48 +02:00
Joachim
b448d40514 Use the right snippets on Templates 2021-06-07 18:13:24 +02:00
Joachim
cba34780d8 Use S3 as static and media storage
TODO

- [ ] Write some documentation for non-AWS, S3-compatible services
- [ ] Make a management command to move existing media to the new S3 bucket
- [ ] See if Nginx can reverse-proxy the S3 bucket in order to keep the files accessible through the domain name
2021-06-07 18:12:48 +02:00
Mouse Reeve
5b40069d99
Merge pull request #1153 from bookwyrm-social/instance-language
Use "instance" consistently
2021-06-06 14:07:49 -07:00
Joachim
7ed2ed116a lint 2021-06-06 21:13:16 +02:00
Joachim
1f2c296cfd This should now work 2021-06-06 21:12:21 +02:00
Mouse Reeve
4ea672f2a1
Merge pull request #1157 from bcj/bcj/urlencode-redis-password
URL-Encode password in broker_url
2021-06-05 12:51:25 -07:00
Mouse Reeve
c8d2df1203
Merge pull request #1155 from joachimesque/front-modal-title-fit
Front: Modal title fit
2021-06-05 12:43:35 -07:00
Mouse Reeve
d1e33e14e2
Merge pull request #1154 from joachimesque/front-better-forms
Front-end: Better forms
2021-06-05 12:38:20 -07:00
Mouse Reeve
bbbae9fc9d
Merge branch 'main' into images-django-imagekit 2021-06-05 11:46:57 -07:00
Mouse Reeve
61e55628fa
Merge pull request #1131 from joachimesque/author-page-microformats
Author page microformats
2021-06-05 11:27:16 -07:00
Joachim
6f105fcdcc Front: Modal title fit 2021-06-02 18:56:24 +02:00
Joachim
49c057625a Smol fixes 2021-06-02 18:30:36 +02:00
Joachim
7d1e4aebbc Better forms 2021-06-02 18:17:53 +02:00
Mouse Reeve
2816d7cc88 Use "instance" consistently 2021-06-01 14:50:14 -07:00
Mouse Reeve
ff45238667
Merge pull request #1123 from eatsleepdeploy/add-max-upload-size-config
Add max upload size config
2021-06-01 14:09:50 -07:00
Joachim
cd7c0ccaea Enable env on GitHub Actions 2021-05-29 15:51:56 +02:00
Joachim
ba39dad06c Add save_and_cleanup test 2021-05-29 15:32:04 +02:00
Joachim
00b09cd07d Try with logging 2021-05-29 14:43:06 +02:00
Joachim
fbb262fe88 Try logging output 2021-05-29 13:44:43 +02:00
Joachim
cc0881b11c Try another way 2021-05-29 12:33:04 +02:00
Joachim
022182e114 See if the image is saved in DB in the Github Actions test environment 2021-05-29 11:33:37 +02:00
Joachim
b4e2d8c6e3 Better refresh object in test 2021-05-29 11:17:59 +02:00
Joachim
0f80456a08 Save as JPG 2021-05-28 23:42:04 +02:00
Joachim
872084d61a Update test_preview_images.py 2021-05-28 23:41:41 +02:00
Joachim
9cee119200 test 2021-05-28 23:29:28 +02:00
Joachim
0e28b79089 third time's the charm 2021-05-28 22:10:57 +02:00
Joachim
71bc35224b no, this will work 2021-05-28 22:00:26 +02:00
Joachim
8755b92c2e Fix GitHub FileNotFoundError 2021-05-28 21:40:20 +02:00
Joachim
2bf254bce7 Update test_preview_images.py 2021-05-28 21:26:13 +02:00
Joachim
ec159ebcb0 Test generating preview images 2021-05-28 21:24:45 +02:00
Joachim
08cebd7051 Lint 2021-05-28 17:26:43 +02:00
Joachim
61367c3f4f Protect generate_preview_images command
- add `--all` argument
- send computation intensive tasks to Celery
2021-05-28 17:25:20 +02:00
Joachim
f206f61e9a Use global switch to enable/disable preview images 2021-05-28 17:00:07 +02:00
Mouse Reeve
b29ca22227 A couple test mocks 2021-05-27 17:29:24 -07:00
Joachim
878cc5cb17 Lint 2021-05-27 23:21:47 +02:00
Joachim
f8df501239 Fix tests (for realz) 2021-05-27 23:19:17 +02:00
Joachim
d9d34d8220 Fix linting 2021-05-27 21:40:23 +02:00
Joachim
b7965ce2ae Fix tests 2021-05-27 21:37:27 +02:00
Joachim
b8bff8a882 Use field tracker to launch task on field change 2021-05-27 21:09:57 +02:00
Joachim
2ea1cd8319 Tests 2021-05-26 23:57:29 +02:00
Joachim
f848dcd756 Fix issue with protocol 2021-05-26 18:20:22 +02:00
Joachim
e214d8b879 Rationalize paths handling 2021-05-26 17:55:39 +02:00
Joachim
e362c82495 Expose static & media paths 2021-05-26 17:54:59 +02:00
Joachim
7ea3153026 Fix site_path tag 2021-05-26 16:57:28 +02:00
Joachim
3ea935e7ce Update OFL.txt 2021-05-26 15:49:08 +02:00
Joachim
f7b117e4fb Update preview_images.py 2021-05-26 15:46:40 +02:00
Joachim
a8ae3c9950 Modify inner image position 2021-05-26 15:37:09 +02:00
Joachim
22c13f639c Update layout.html 2021-05-26 15:18:35 +02:00
Joachim
5943e6d79a Black 2021-05-26 15:18:05 +02:00
Joachim
d4fc1b0fdf Fix line endings 2021-05-26 15:17:28 +02:00
Joachim
4db8aa85f0 Fix migration 2021-05-26 14:55:55 +02:00
Joachim
eb56cced8d Lint 2021-05-26 14:46:34 +02:00
Joachim
e5e549d125 Add opengraph image depending on context 2021-05-26 14:44:15 +02:00
Joachim
65de40a95a Add generate_preview_images command 2021-05-26 13:52:10 +02:00
Fabien Basmaison
c894f5ef35 Update subtitle behaviour:
- on Book
	- Remove problematic punctuation (locale and multiple punctuation if the title ends with `?`, `!` or similar).
	- Update view.
	- Use proper semantic to split combined title into `name`, `alternativeHeadline` and series-related microdata.
	- The author is not a subtitle, just data.
- Use parenthesis in the `get_title` filter instead of punctuation.
2021-05-26 13:21:06 +02:00
Joachim
b47edc5f0d Add dark mode 2021-05-26 13:07:33 +02:00
Joachim
bf503d370c Add user preview task 2021-05-26 12:54:57 +02:00
Joachim
34caa36ab7 Add site preview task 2021-05-26 10:19:39 +02:00
Joachim
101ca0ff81 Refactor some 2021-05-26 09:44:32 +02:00
Joachim
fd82567cbf Update 0076_book_preview_image.py 2021-05-26 09:16:15 +02:00
Joachim
a83aa47c9a Generate on new rating 2021-05-26 09:10:05 +02:00
Joachim
8c25272462 Fix last night's bugs 2021-05-26 09:09:13 +02:00
Joachim
5b03934ec3 Update preview_images.py 2021-05-25 23:16:33 +02:00
Joachim
e305c5d73d Fix color 2021-05-25 23:12:54 +02:00
Joachim
dca0888d5d Thank you Black 2021-05-25 23:05:38 +02:00
Joachim
fa7334826c Update 2021-05-25 23:04:28 +02:00
Joachim
d1737b44bd First functioning commit
TODO

- [ ] Delay task (Celery?)
- [ ] Store the image in a subfolder unique to the edition, to make cleaning up the image easy
- [ ] Clean up the image before replacing it
- [ ] Ensure that the image will be cleaned when the edition is deleted ??
- [ ] Use instance custom colors?
- [ ] Use book cover color base?
2021-05-25 00:41:53 +02:00
Joachim
b72580daf6 Update author.html 2021-05-24 17:17:12 +02:00
Joachim
8b4cb4aeed Thanks, ./bw-dev black 2021-05-24 16:40:25 +02:00
Joachim
ef4961e4e9 Apply linter suggestions 2021-05-24 16:33:40 +02:00
Mouse Reeve
ea0f7ff925
Merge pull request #1137 from bookwyrm-social/title-header
Uses correct filter for book title
2021-05-24 07:21:12 -07:00
Joachim
36f447210a Specify sizes on all templates 2021-05-24 16:18:05 +02:00
Joachim
dc49432322 Change img_path to external_path 2021-05-24 16:17:39 +02:00
Joachim
c1456ce853 Update .cover-caption name and styles 2021-05-24 16:16:33 +02:00
Joachim
4c55f07f2a Update book_cover.html 2021-05-24 16:16:09 +02:00
Joachim
f60e9d76d2 Generate generators 2021-05-24 16:15:08 +02:00
Joachim
77e81c4dbb Add django-imagekit to BookWyrm 2021-05-24 16:14:51 +02:00
Mouse Reeve
f058aa8f1d Uses correct filter for book title 2021-05-24 06:54:43 -07:00
Joachim
25858ed3aa Added LibraryThing and Goodreads links 2021-05-24 12:51:41 +02:00
Joachim
594f7b3708 Style fixes 2021-05-24 12:51:18 +02:00
Joachim
58c07d1677 Apply review suggestions 2021-05-24 12:36:48 +02:00
bcj
31deb36c85 URL-Encode password in broker_url
Needed to prevent connection errors if the password contains non-urlsafe characters.

Dockerfile change because all the services using it are mirroring ./ in /app now anyway.
Flower needs because it needs bookwyrm in order to read the celerywyrm config (because flower only allows overwriting broker_url from the command line and we want to do it in Python so we have access to a urlencode function).
2021-05-23 23:49:12 -05:00
Jason Kelly
b362b72c57 Python linting 2021-05-24 09:35:21 +08:00
Joachim
55a3a28d49 Add microformats to author page 2021-05-23 21:17:14 +02:00
Joachim
6e9c9e839c Fix date of death display 2021-05-23 20:25:42 +02:00
Mouse Reeve
c9b337348e
Merge pull request #1126 from bookwyrm-social/deleted-ratings
Don't show deleted ratings in stars
2021-05-23 09:00:53 -07:00
Mouse Reeve
ca8067769c Don't show deleted ratings in stars 2021-05-23 08:48:00 -07:00
Mouse Reeve
4e9c7a7748
Merge pull request #1070 from bookwyrm-social/top-bar
Top bar
2021-05-23 08:42:14 -07:00
Joachim
354b511089 Fix flex styles 2021-05-23 17:18:16 +02:00
Joachim
1aa319d6ee Move description text below header 2021-05-23 17:17:46 +02:00
Joachim
cf7cbfdf8f Fix title styles 2021-05-23 17:17:30 +02:00
Joachim
9eb719106f Fix display bug 2021-05-23 17:17:02 +02:00
Joachim
251c8bbd08 Merge remote-tracking branch 'upstream/main' into list-style-fixes 2021-05-23 15:14:50 +02:00
Joachim
0708d64bf1 Update bookwyrm.css 2021-05-23 12:10:57 +02:00
Jason Kelly
7eb5f3b026 Making magic number more readable 2021-05-23 14:31:22 +08:00
Jason Kelly
6e655cb0e0 Added new widget to alert if a file is set at larger than 10 MB.
- Updated default widget to use template that adds a notification box.
- Added JS to add onchange & load events to look at the value in the input and trigger the notification & disable the form submits.
2021-05-23 14:12:00 +08:00
Jason Kelly
c9617c4bd3 Added EMAIL_BACKEND to env settings to be able to use console backend in local dev. 2021-05-23 14:09:13 +08:00
Mouse Reeve
f987a352c6 Fixes username helper 2021-05-22 21:33:56 -07:00
Mouse Reeve
bdf267dea5 Refactors block button for query efficiency 2021-05-22 20:36:30 -07:00
Mouse Reeve
9285f483c2 Query tweaks for book page 2021-05-22 20:14:57 -07:00
Mouse Reeve
2d4cec4422 Improves shelf page query efficiency a little 2021-05-22 19:54:50 -07:00
Mouse Reeve
7a4c4248df Improves status template performance
Reduces queries about about 65
2021-05-22 19:01:40 -07:00
Mouse Reeve
e5ff4ac36d Python formatting 2021-05-22 18:02:14 -07:00
Mouse Reeve
3d3ab6433e Improves query efficiency for shelve buttons
About 50 fewer queries (yikes)
2021-05-22 17:58:08 -07:00
Mouse Reeve
368d2cd716 Reduces feed page queries for goals
9 fewer queries
2021-05-22 17:34:16 -07:00
Mouse Reeve
98e537280e Adds management command for populating suggestions 2021-05-22 16:10:11 -07:00
Mouse Reeve
5174260351 Python formatting 2021-05-22 15:57:08 -07:00
Mouse Reeve
edfc27a3cd Moves suggestion logic to celery 2021-05-22 15:53:07 -07:00
Mouse Reeve
644e5926db Remove suggested users on block 2021-05-22 14:05:59 -07:00
Mouse Reeve
9250b8b85d Handle follow/unfollow 2021-05-22 13:02:37 -07:00
Mouse Reeve
42699a8d25 Update your own suggestions on shelve 2021-05-22 12:20:23 -07:00
Mouse Reeve
f849d785a5 Functional un-discoverable setting 2021-05-22 12:10:14 -07:00
Mouse Reeve
29130d5f44 Detect new users and users with updated discoverability 2021-05-22 11:58:33 -07:00
Mouse Reeve
0044dc6587 Show suggested users when the feed is empty 2021-05-22 11:29:41 -07:00
Mouse Reeve
f98576bc25 Only create suggestions stores for local users 2021-05-22 11:01:35 -07:00
Mouse Reeve
2ff79c9953 Fixes python formatting 2021-05-22 09:55:38 -07:00
Mouse Reeve
d33b55e025 Hide delete button text on mobile 2021-05-21 09:52:40 -07:00
Mouse Reeve
00eba98e9f Fixes display of announcement show/hide button on mobile 2021-05-21 09:50:23 -07:00
Mouse Reeve
ea56d42906
Merge pull request #1116 from bookwyrm-social/import-async-error
Don't error when task for import no longer exists
2021-05-20 21:14:15 -07:00
Mouse Reeve
8772f26b91 Don't error when task for import no longer exists 2021-05-20 20:35:12 -07:00
Mouse Reeve
07fc4a2efc
Merge branch 'main' into suggestions-redis 2021-05-20 20:25:15 -07:00
Mouse Reeve
a70c713c29 Fixes default values in edit announcement form 2021-05-20 20:21:04 -07:00
Mouse Reeve
d39374f13c Fixes editions page 2021-05-20 18:41:36 -07:00
Mouse Reeve
6b3447761f Adds book format field with choices 2021-05-20 18:16:35 -07:00
Mouse Reeve
9933b888f9
Merge pull request #1112 from bookwyrm-social/search-null-state
Fixes search null state view
2021-05-20 16:49:46 -07:00
Mouse Reeve
e74bb4e33c
Merge pull request #1111 from bookwyrm-social/rss-templates
Moves rss templates to base level directory
2021-05-20 16:40:41 -07:00
Mouse Reeve
6cadba78fe Python formatting 2021-05-20 16:38:12 -07:00
Mouse Reeve
a8a8398cf8 Fixes search null state view 2021-05-20 16:34:32 -07:00
Mouse Reeve
ab3fb4d555 Adds test for search with no query 2021-05-20 16:32:44 -07:00
Mouse Reeve
b6c17defd7
Merge pull request #1108 from bookwyrm-social/ol-redirects
Handle openlibrary redirects
2021-05-20 16:18:51 -07:00
Mouse Reeve
2a451e83c6
Merge pull request #1109 from bookwyrm-social/invalid-image-url
Handle all kinds of invalid image urls
2021-05-20 16:18:44 -07:00
Mouse Reeve
c52b26f404 Moves rss templates to base level directory 2021-05-20 16:12:24 -07:00
Mouse Reeve
5401d73909 404 instead of error for invalid post link 2021-05-20 16:06:23 -07:00
Mouse Reeve
f1d4f092f2 Handle all kinds of invalid image urls 2021-05-20 16:03:14 -07:00
Mouse Reeve
1e9211018d Handle openlibrary redirects 2021-05-20 15:55:50 -07:00
Mouse Reeve
f6440aa173 Correctly handles openlibrary works with no editions 2021-05-20 15:37:26 -07:00
Mouse Reeve
4af6667d6a
Merge pull request #1105 from bookwyrm-social/suggested-users-error
Fixes logic error in get started user view
2021-05-20 15:26:39 -07:00
Mouse Reeve
633a4c4135
Merge pull request #1104 from bookwyrm-social/banner-auth
Only show banner to authenticated users
2021-05-20 15:26:29 -07:00
Mouse Reeve
0ba7ee41fe
Merge pull request #1102 from bookwyrm-social/pagination-get
Uses safe method for pagination on follows pages
2021-05-20 15:17:54 -07:00
Mouse Reeve
82f74a4049 Fixes logic error in get started user view 2021-05-20 15:17:05 -07:00
Mouse Reeve
9c13bf34a8 Only show banner to authenticated users 2021-05-20 15:11:47 -07:00
Mouse Reeve
3f1d670911 Uses safe method for pagination on follows pages 2021-05-20 14:47:23 -07:00
Mouse Reeve
62dc8270b6 Catch unexpectedly missing columns in csv imports
I kept the 500 error here so that things don't silently fail in
unexepcted ways
2021-05-20 14:39:33 -07:00
Mouse Reeve
ff3c4b8e73 Fixes announcement view test 2021-05-20 13:42:30 -07:00
Mouse Reeve
cefc5994a6 Makes extra content optional 2021-05-20 12:40:03 -07:00
Mouse Reeve
fdb315d2ac Adds individual announcement page test 2021-05-20 12:14:57 -07:00
Mouse Reeve
44e8db3f33 Adds view test for announcements admin page 2021-05-20 12:12:11 -07:00
Mouse Reeve
2e193aa3c6 Delete announcements 2021-05-20 12:08:12 -07:00
Mouse Reeve
a415991e96 Fixes clashing filter names in templates 2021-05-20 11:56:26 -07:00
Mouse Reeve
b8e9b9f57e Cleans up show/hide behavior 2021-05-20 11:46:24 -07:00
Mouse Reeve
49916a7498 Sorting for announcement headers and pagination 2021-05-20 09:43:29 -07:00
Mouse Reeve
3d70a36d86 Editable announcement 2021-05-20 09:28:39 -07:00
Mouse Reeve
d64e0c4aa8 Adds admin view for individual announcement 2021-05-20 08:09:35 -07:00
Mouse Reeve
c73c063949 Show announcements on all pages 2021-05-19 15:35:14 -07:00
Mouse Reeve
346d718265 Don't need both name and preview 2021-05-19 15:18:43 -07:00
Mouse Reeve
515d5bb237 Create announcements admin view 2021-05-19 14:57:28 -07:00
Mouse Reeve
d1f2d9812f Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
Mouse Reeve
3b295a724e
Merge pull request #1096 from bookwyrm-social/book-fields
Add more book fields to book edit form
2021-05-18 22:36:10 -07:00
bcj
213a9508d8 Don't hardcode postres port in bookwyrm.settings
Have bookwyrm.settings check for an alternative postgres port.
2021-05-18 18:35:32 -05:00
Mouse Reeve
8fc0da8dc2 Adds inventaire ID field to edit book form 2021-05-18 16:10:43 -07:00
Mouse Reeve
6fff45d36c Adds language field to edit book form 2021-05-18 15:56:11 -07:00
Mouse Reeve
0c0dcc57d6 Adjusts line length 2021-05-18 12:51:57 -07:00
Mouse Reeve
097659a627
Merge pull request #1075 from bookwyrm-social/disable-connectors
Disable related connector when an instance is blocked
2021-05-18 12:41:09 -07:00
Mouse Reeve
82117a7d28 Tests deactivating connectors 2021-05-18 12:29:01 -07:00
Mouse Reeve
0bddad259b
Merge pull request #1095 from bookwyrm-social/display-fixes
Display fixes
2021-05-18 11:46:28 -07:00
Mouse Reeve
9f789cd5d4
Merge branch 'main' into top-bar 2021-05-18 11:39:36 -07:00
Mouse Reeve
3d7f3f34c1 Fixes book view test 2021-05-18 11:36:50 -07:00
Mouse Reeve
04c165113f Cleans up login page 2021-05-18 11:22:45 -07:00
Mouse Reeve
58a059c85f Fixes display of user ratings 2021-05-18 11:17:59 -07:00
Mouse Reeve
07d59c8c09 Don't show ratings below user statuses 2021-05-18 11:09:19 -07:00
Mouse Reeve
ab69abb8f0 Gap between book search results 2021-05-18 10:57:54 -07:00
Mouse Reeve
8b14f8585e Small fixes for list display 2021-05-18 10:55:05 -07:00
Mouse Reeve
5cd5a6107f Show text with buttons in most places 2021-05-18 10:45:51 -07:00
Mouse Reeve
7dccce6b1f Adds keyboard focus to add readthrough form 2021-05-18 09:59:40 -07:00
Mouse Reeve
3c7882b055 Fixes abstract minimal connector test 2021-05-14 16:13:32 -07:00
Mouse Reeve
2b4ac71d7a Updates footer language around github link 2021-05-14 15:21:26 -07:00
Mouse Reeve
3b9fed1b31 Filter for concise status timestamps 2021-05-11 18:59:31 -07:00
Mouse Reeve
865faf6714 Fixes tests 2021-05-11 15:52:41 -07:00
Mouse Reeve
65f78b45da Merge branch 'main' into templatetags 2021-05-11 15:41:07 -07:00
Mouse Reeve
87bf863ac6
Revert "Preserve width when cover images fail to load" 2021-05-11 15:29:18 -07:00
Mouse Reeve
dbf795be5d Python formatting 2021-05-11 15:16:27 -07:00
Mouse Reeve
ac2b63d0cd More templatetag files 2021-05-11 15:14:42 -07:00
Mouse Reeve
58da17d694 Use smaller templatetag modules 2021-05-11 14:41:28 -07:00
Mouse Reeve
eba6159f68 Moves status interaction filters into their own module 2021-05-11 14:14:22 -07:00
Mouse Reeve
acd26012be Removes more unused filters 2021-05-11 14:12:28 -07:00
Mouse Reeve
f5eb5f982a Removes filter for checking for follow requests 2021-05-11 14:05:46 -07:00
Mouse Reeve
3de8ae00ae Removes unused templatetag 2021-05-11 14:00:23 -07:00
Mouse Reeve
04cc2fb3f3 Removes unused dict_key filter 2021-05-11 13:55:46 -07:00
Mouse Reeve
63172ecf00 Fixes ratings on shelf pages 2021-05-11 13:54:38 -07:00
Mouse Reeve
1fbd6537b7 Remove unnecessary tags from import page 2021-05-11 13:28:52 -07:00
Mouse Reeve
d7a8dd5e19 Removes outdated field form abstract connector 2021-05-11 13:20:17 -07:00
Mouse Reeve
9b42bba236 Filter out inactive connectors 2021-05-11 11:34:58 -07:00
Mouse Reeve
19f788b9aa Deactivate connectors related to blocked federated servers 2021-05-11 11:31:02 -07:00
Mouse Reeve
e7c5b77b4c Removes unused connector fields and adds active boolean 2021-05-11 09:54:04 -07:00
Mouse Reeve
680f300e7c Preserve width when cover images fail to load 2021-05-11 08:15:02 -07:00
Mouse Reeve
db5796764b
Merge pull request #1071 from bookwyrm-social/author-page
Updates author page
2021-05-10 19:26:10 -07:00
Mouse Reeve
92e2c70baf Fixes list sorting by rating 2021-05-10 18:28:31 -07:00
Mouse Reeve
6dae4ebd6f Splits list tests into two files and adds user list page tests 2021-05-10 17:44:19 -07:00
Mouse Reeve
4c99fd7f12 Adds metadata to author view 2021-05-10 17:24:10 -07:00
Mouse Reeve
443109bac3 Adds aliases and inventaire id to edit author form
Plus consolidates some wording
2021-05-10 17:06:22 -07:00
Mouse Reeve
9bfe4f4e91 Uses a different snippet for previewing books on author page 2021-05-10 16:43:40 -07:00
Mouse Reeve
867a33de57 Creates author template dir 2021-05-10 16:34:37 -07:00
Mouse Reeve
27fe09a32b
Merge pull request #1062 from alisww/storygraph-import
add storygraph import
2021-05-10 16:23:00 -07:00
Mouse Reeve
202c43f610 Adds import option to books page 2021-05-10 16:13:17 -07:00
Allie Signet
d40ff5c751 support both author field names 2021-05-10 20:11:44 -03:00
Mouse Reeve
9e9f94753d
Merge pull request #1069 from bookwyrm-social/inventaire-confidence
Adds confidence ratings to inventaire results
2021-05-10 16:10:30 -07:00
Allie Signet
8c2552f739 storygraph renamed the author field 2021-05-10 20:09:16 -03:00
Mouse Reeve
6abe9274c0 Switches out links in the top bar and dropdown 2021-05-10 15:55:42 -07:00
Mouse Reeve
dad0161844
Merge pull request #1068 from bookwyrm-social/revert-datepicker
Revert datepicker
2021-05-10 15:36:17 -07:00
Mouse Reeve
07c84a6e1a Adds confidence ratings to inventaire results
Fixes bad matches in csv imports
2021-05-10 15:35:46 -07:00
Mouse Reeve
5efc7280a1
Merge pull request #1067 from bookwyrm-social/goal-year
Don't show following years' books in a year's goal
2021-05-10 15:02:18 -07:00
Mouse Reeve
3f4807a345 Revert "Adds datepicker script dependencies to templates"
This reverts commit 33ca7b4b76.
2021-05-10 14:56:43 -07:00
Mouse Reeve
485f4b7eba Revert "Replaces date elements with datepicker"
This reverts commit 869cfa6d34.
2021-05-10 14:56:33 -07:00
allie
314a27841b Merge branch 'bookwyrm-social:main' into storygraph-import 2021-05-10 18:52:54 -03:00
Mouse Reeve
07f3737420
Merge pull request #1066 from bookwyrm-social/settings-files
Imports bookwyrm settings into celery settings
2021-05-10 14:43:36 -07:00
Mouse Reeve
e34ae18e98 Don't show following years' books in a year's goal 2021-05-10 14:40:41 -07:00
Mouse Reeve
b4ae639dab Imports bookwyrm settings into celery settings
It was redundant and super bug-prone!
2021-05-10 14:20:27 -07:00
Allie Signet
85a8210f5e fix rating property on ImportItem 2021-05-10 18:11:28 -03:00
allie
711772046f Merge branch 'bookwyrm-social:main' into storygraph-import 2021-05-10 17:31:12 -03:00
Mouse Reeve
df2c1f0723
Merge branch 'main' into fixes-search-display 2021-05-10 13:29:39 -07:00
Mouse Reeve
b0055f398d Makes the show/hide buttons easier to find in book search 2021-05-10 13:24:00 -07:00
Mouse Reeve
1844dd6b20 Only include result blobs with results in search results 2021-05-10 13:01:11 -07:00
Mouse Reeve
13dc5efe71 More comprehensive tests for connector search 2021-05-10 12:53:36 -07:00
allie
df99060898 Merge branch 'bookwyrm-social:main' into storygraph-import 2021-05-10 15:58:04 -03:00
Allie Signet
623bb181e4 fix formatting 2021-05-10 15:56:35 -03:00
Mouse Reeve
5cd974b78d Python formatting 2021-05-10 10:03:05 -07:00
Allie Signet
36439506b6 add storygraph import 2021-05-10 14:00:51 -03:00
Mouse Reeve
f2d985e583 Uses one set of search logic for all results or just first 2021-05-10 09:57:53 -07:00
Mouse Reeve
852f8da62e Adds tabs to notifications 2021-05-07 14:00:55 -07:00
Mouse Reeve
1cc63c6d45 Adds filtered view for notifications 2021-05-07 14:00:51 -07:00
Fabien Basmaison
a137bd21ff
Display author biography with style. 😎 2021-05-06 17:24:05 +02:00
Mouse Reeve
c15358d715 Python formatting 2021-05-05 07:58:09 -07:00
Mouse Reeve
558c9c4d67 Sort edition list for better import results from inventaire 2021-05-05 07:53:10 -07:00
Joachim
1f747e4f68
Merge branch 'main' into list-style-fixes 2021-05-05 16:06:48 +02:00
Mouse Reeve
dcde3ded95
Merge pull request #1049 from bookwyrm-social/datepicker
Datepicker
2021-05-05 07:00:07 -07:00
Mouse Reeve
f0cb82dd26
Merge pull request #1050 from bookwyrm-social/urls
Use reverse lookups for urls
2021-05-04 10:45:41 -07:00
Mouse Reeve
5906588c86 Fixes shelf add test 2021-05-04 10:33:16 -07:00
Mouse Reeve
b10f0b19c4 Removes outdated test 2021-05-04 09:49:24 -07:00
Mouse Reeve
c9ed069121 Use example url in test 2021-05-04 09:47:00 -07:00
Mouse Reeve
906201fa2a Fixes notification import link 2021-05-04 09:45:13 -07:00
Mouse Reeve
7bbef1d193 Removes outdated test 2021-05-04 09:42:00 -07:00
Mouse Reeve
748810cd41 Use reverse lookups for urls 2021-05-04 09:34:16 -07:00
Mouse Reeve
869cfa6d34 Replaces date elements with datepicker 2021-05-04 09:04:21 -07:00
Mouse Reeve
33ca7b4b76 Adds datepicker script dependencies to templates 2021-05-04 08:54:53 -07:00
Mouse Reeve
11b8da168a Merge branch 'main' into shelf-pagination 2021-05-03 15:02:22 -07:00
Mouse Reeve
bc80c017aa Python formatting 2021-05-03 14:52:24 -07:00
Mouse Reeve
7dfc991468 Adds elided page range to shelf pagination 2021-05-03 14:47:27 -07:00
Mouse Reeve
a81901f9fe Re-adds "manually add book" link 2021-05-03 11:20:43 -07:00
Mouse Reeve
7db8e249cc
Merge pull request #1037 from bookwyrm-social/search-bug
Fixes error on empty search results
2021-05-03 10:57:53 -07:00
Mouse Reeve
93959fc600
Merge pull request #1036 from SavinaRoja/pagination-list
pagination list navigation using a range of pages such as provided by get_elided_page_range
2021-05-03 10:57:38 -07:00
Mouse Reeve
df1c324d2d Updates test 2021-05-03 10:46:02 -07:00
Joachim
4c021e6357 Add Mobile styles 2021-05-02 21:34:43 +02:00
Mouse Reeve
c47f672238 Removes aria-hidden from covers 2021-05-02 06:59:47 -07:00
Mouse Reeve
db6246e359 Fixes error on empty search results 2021-05-01 22:20:23 -07:00
Mouse Reeve
ddf5022970
Merge pull request #1033 from bookwyrm-social/search-changes
Search changes
2021-05-01 19:15:40 -07:00
Mouse Reeve
97aeaa9cd7 Uses empty queryset for forced no results mode 2021-05-01 19:05:46 -07:00
Mouse Reeve
f94a3ec63b Mocks list create in test 2021-05-01 18:05:21 -07:00
Pablo Barton
e71a0dd7e8 pagination list navigation using a range of pages such as provided by get_elided_page_range 2021-05-01 19:30:43 -04:00
Mouse Reeve
037362e49f Adds labels for form elements 2021-05-01 10:55:10 -07:00
Mouse Reeve
bb50bd8121 Python formatting 2021-05-01 10:49:34 -07:00
Mouse Reeve
c42be7a589 Adds pagination 2021-05-01 10:47:01 -07:00
Mouse Reeve
64b54510d9 Updates unit tests 2021-05-01 10:39:05 -07:00
Mouse Reeve
3ee63fdab4
Merge pull request #1034 from bookwyrm-social/dm-bug
Removes extra "content" field in status editor that broke dms
2021-05-01 07:32:18 -07:00
Mouse Reeve
ad8666ebec Removes extra "content" field in status editor that broke dms 2021-05-01 07:20:54 -07:00
Mouse Reeve
f9c1ecfabe Fixes bad whitespace 2021-04-30 20:16:34 -07:00
Mouse Reeve
5f7191a976 Safer logged out search 2021-04-30 20:09:43 -07:00
Mouse Reeve
9caad56ffc Don't allow remote search results for logged out users 2021-04-30 20:08:05 -07:00
Mouse Reeve
499c4e3267 Don't search remote sources by default 2021-04-30 19:56:29 -07:00
Mouse Reeve
cb6c0035d7 List and user previews 2021-04-30 19:19:10 -07:00
Mouse Reeve
21a5147c3c Controls search type 2021-04-30 18:59:02 -07:00
Mouse Reeve
cf80e4edde
Merge pull request #1032 from bookwyrm-social/link-fix
Fixes link on follow pages
2021-04-30 18:35:54 -07:00
Mouse Reeve
5ca9d2a7b0 Adds search templates 2021-04-30 18:35:09 -07:00
Mouse Reeve
4b73c37126 Separate out search types 2021-04-30 18:17:09 -07:00
Mouse Reeve
f55ded092c Fixes link on follow pages 2021-04-30 16:44:14 -07:00
Mouse Reeve
f2a6cfb4f3 Remove deduplication of external search results 2021-04-30 16:04:27 -07:00
Mouse Reeve
a2621bce12 Fixes getting authors from work data 2021-04-30 15:48:52 -07:00
Mouse Reeve
b8711c820f
Merge pull request #1027 from arkhi/frontend-book-cover
Fix lists layout for user
2021-04-30 13:59:05 -07:00
Mouse Reeve
735ef369b9
Merge pull request #1020 from bookwyrm-social/notification-color
Only make notification count red for mentions
2021-04-30 13:49:57 -07:00
Mouse Reeve
de017ca7ce
Merge pull request #1021 from bookwyrm-social/following-display
Cleans up user/followers/following pages
2021-04-30 13:49:44 -07:00
Mouse Reeve
dcc54e8421
Merge pull request #1022 from bookwyrm-social/footer-bonus
Let instance admins add a column of whatever they want in the footer
2021-04-30 13:49:22 -07:00
Fabien Basmaison
544e29fe76 Fix lists layout for user. 2021-04-30 22:44:53 +02:00
Mouse Reeve
a502a0c51d
Merge branch 'main' into following-display 2021-04-30 13:40:01 -07:00
Mouse Reeve
c373a0b818 Highlight report notifications 2021-04-30 13:38:03 -07:00
Mouse Reeve
01f2d80cbd Show book descriptions in list items 2021-04-30 13:21:19 -07:00
Mouse Reeve
e3aaf9b356
Merge pull request #1024 from bookwyrm-social/languge-code-fix
Fixes loading inventaire data by language code
2021-04-30 13:09:01 -07:00
Mouse Reeve
9fea070398
Update bookwyrm/management/commands/initdb.py
Co-authored-by: Joachim <joachim.robert@protonmail.com>
2021-04-30 12:53:57 -07:00
Mouse Reeve
122e0cbd6d Python formatting 2021-04-30 12:52:20 -07:00
Mouse Reeve
485d20696b Fixes loading inventaire data by language code 2021-04-30 12:50:35 -07:00
Mouse Reeve
b4ef800505 Hide start list item in readthrough if absent 2021-04-30 12:07:59 -07:00
Mouse Reeve
900e7feb1b Moved reviews into center column on books page 2021-04-30 12:06:21 -07:00
Mouse Reeve
57454afa42 Creates visual separation between reading activity and reviews 2021-04-30 12:02:19 -07:00
Mouse Reeve
974de9e4c2 Removes set goal link from user page
It's already in the tabs
2021-04-30 11:47:28 -07:00
Mouse Reeve
0d7ffbc175 Hide user status tabs when there are none 2021-04-30 11:34:59 -07:00
Mouse Reeve
4b53342fd2 Fixes mock in unit test 2021-04-30 11:26:02 -07:00
Mouse Reeve
b8fc4f99a3 Don't calculate mutuals for logged out users 2021-04-30 11:11:18 -07:00
Mouse Reeve
00815b3105 Python formatting 2021-04-30 11:09:06 -07:00
Mouse Reeve
f747babb43 Changes column spacing 2021-04-30 11:03:36 -07:00
Mouse Reeve
e15d6654e3 Free text field for the site footer 2021-04-30 10:42:27 -07:00
Mouse Reeve
ca12359bee Fixes unit tests 2021-04-30 10:16:24 -07:00
Mouse Reeve
62884c6111 Show mutual counts instead of totals for other users 2021-04-30 09:50:11 -07:00
Mouse Reeve
4dacf4df3a Refactor get_user_from_username to raise 404 directly 2021-04-30 09:33:36 -07:00
Mouse Reeve
d810d1bb8c Remove duplicate check for user blocks 2021-04-30 09:26:02 -07:00
Mouse Reeve
b65d0d05c9 Tabs for relationship views 2021-04-30 09:23:59 -07:00
Mouse Reeve
418e656aea Uses layout for followers/following page 2021-04-30 09:17:46 -07:00
Mouse Reeve
e4cecf2874 Coherent logic on which tabs show in the user page 2021-04-30 09:02:14 -07:00
Mouse Reeve
862ef83536 Move user templates into more subdirectories 2021-04-30 08:47:04 -07:00
Mouse Reeve
d2355fef96 Consistent display on followers/following pages 2021-04-30 08:23:02 -07:00
Mouse Reeve
2867d703cc Fixes python formatting 2021-04-30 07:57:38 -07:00
Mouse Reeve
454dd25681 Only make notification count red for mentions 2021-04-30 07:49:34 -07:00
Mouse Reeve
b4c155f134
Merge pull request #1019 from bookwyrm-social/change-password-url
Fixes invalid url breaking change password flow
2021-04-30 06:53:30 -07:00
Mouse Reeve
aa3cdee731 Fixes invalid url breaking change password flow 2021-04-30 06:43:43 -07:00
Fabien Basmaison
bcafc1bc6a Merge branch 'main' into frontend-book-cover 2021-04-30 09:54:42 +02:00
Mouse Reeve
e126c13ff7
Merge pull request #1018 from bookwyrm-social/fix-rating
Test for failing rate federation
2021-04-29 15:29:19 -07:00
Mouse Reeve
d61ba2e474 Fixes review rating serialization 2021-04-29 15:16:51 -07:00
Mouse Reeve
daf65e230d Test for failing rate federation 2021-04-29 14:43:14 -07:00
Mouse Reeve
3feba60665 Fixes test 2021-04-29 13:54:17 -07:00
Mouse Reeve
6983018d5e Merge branch 'main' into suggested_user_logic 2021-04-29 13:42:05 -07:00
Mouse Reeve
6f38ab167e Show clarifying text for empty search when logged out 2021-04-29 13:21:35 -07:00
Mouse Reeve
f4ebecfe75 Add background to search result boxes 2021-04-29 13:15:05 -07:00
Mouse Reeve
15790abc70 Don't show broken image previews when cover is absent 2021-04-29 13:03:56 -07:00
Mouse Reeve
6d7b3e9ae7 Show/hide individual search results 2021-04-29 12:56:42 -07:00
Joachim
bbac0ad7ab Update bookwyrm.css 2021-04-29 21:51:42 +02:00
Joachim
d4dffe48a7 Update bookwyrm.css 2021-04-29 21:48:35 +02:00
Joachim
fa17386a6e Fix 2021-04-29 21:45:48 +02:00
Joachim
0a71fb094f Move counter in Ordered List 2021-04-29 21:41:43 +02:00
Joachim
b59b3e294f Arrange Sort List form fields 2021-04-29 21:41:31 +02:00
Joachim
daa7746f47 Stretch List card in list of lists 2021-04-29 21:40:54 +02:00
Mouse Reeve
9d89aaf9fc Don't let logged out viwers search for users 2021-04-29 12:18:55 -07:00
Mouse Reeve
9e2b4f61bb Make subheaders a lil smaller 2021-04-29 12:13:49 -07:00
Mouse Reeve
a31d05c694 Don't crash on books with no isbn 2021-04-29 11:31:01 -07:00
Mouse Reeve
095b60bff1 Show search result context for inventaire results 2021-04-29 11:22:09 -07:00
Mouse Reeve
d1b788b61f Adds inventaire link to book page 2021-04-29 11:14:20 -07:00
Mouse Reeve
d1b5f3b6f0 Fixes ranks and normalizes isbns 2021-04-29 11:06:05 -07:00
Mouse Reeve
7853610a20 Load descriptions correctly 2021-04-29 10:54:36 -07:00
Mouse Reeve
b1c38d291c Set preferred language 2021-04-29 10:40:49 -07:00
Mouse Reeve
ca86af22ce Get inventaire entity descriptions 2021-04-29 10:30:38 -07:00
Mouse Reeve
cfd2c05ae2 Safely handle absent claims field 2021-04-29 10:12:56 -07:00
Mouse Reeve
8d38d1c9d1 Python formatting 2021-04-29 09:56:35 -07:00
Mouse Reeve
f4800307b4 Adds isbn search 2021-04-29 09:54:42 -07:00
Mouse Reeve
0a41503572 Adds a couple more tests and test data 2021-04-29 09:06:17 -07:00
Mouse Reeve
fc095a087c Adds search result test 2021-04-29 08:36:49 -07:00
Mouse Reeve
5e5392c007 Adds test file 2021-04-28 17:20:14 -07:00
Mouse Reeve
95fce963d1 Images may already be absolute paths 2021-04-28 17:18:14 -07:00
Mouse Reeve
8eec3eca5b Don't spin out infinite load data tasks 2021-04-28 16:42:27 -07:00
Mouse Reeve
6551c59c45 Don't store default edition in the dataase 2021-04-28 16:05:17 -07:00
Mouse Reeve
ccf10e8012 Fixes cover load logic 2021-04-28 13:50:47 -07:00
Mouse Reeve
3faacffaca Associated expanded editions with correct work 2021-04-28 13:28:07 -07:00
Fabien Basmaison
91c42b497e cover: Tweak width and height of cover on feeds. 2021-04-28 20:54:35 +02:00
Mouse Reeve
e2b43bbd6d Fixes unit test 2021-04-28 09:33:38 -07:00
Fabien Basmaison
b0f414570b cover: Fix code that was reverted during a merge conflict. 2021-04-28 15:42:22 +02:00
Fabien Basmaison
5c8710c1c4 cover: Add removed link on Editions. 2021-04-28 15:08:58 +02:00
Fabien Basmaison
e37cbcd88d cover: Comment CSS rules a bit more and add rules for consistency. 2021-04-28 15:02:47 +02:00
Fabien Basmaison
bba60c99e9 cover: Rearrange some CSS rules. 2021-04-28 14:48:25 +02:00
Fabien Basmaison
baaaeef4c0 cover: Fix little details. 2021-04-28 10:47:14 +02:00
Fabien Basmaison
7c875b2ac2 cover: Update /post?status_type=TYPE&book=ID 2021-04-27 21:52:28 +02:00
Fabien Basmaison
30b273f193 cover: Update shelf (/user/arkhi/books/to-read, etc.) 2021-04-27 21:35:05 +02:00
Fabien Basmaison
8a1c8cb061 cover: Update goal:
- Remove `.content` from template when not dealing with markdown-generated markup.
- Fix some duplicated CSS selectors.
2021-04-27 21:07:54 +02:00
Fabien Basmaison
182c18fe54 cover: Update /user/USERNAME. 2021-04-27 20:53:30 +02:00
Fabien Basmaison
d936417ddb cover: Update /book/ID/edit. 2021-04-27 20:44:06 +02:00
Fabien Basmaison
a5359d1f80 cover: Update author. 2021-04-27 20:30:10 +02:00
Fabien Basmaison
8d53b7589f cover: Update /get-started/books:
- Remove `.content` from templates.
- Remove a stray unclosed label.
2021-04-27 17:23:37 +02:00
Fabien Basmaison
d8b6676976 cover: Udpate logged out home and discover. 2021-04-27 16:27:39 +02:00
Fabien Basmaison
8ddc292ee6 cover: Change the logic again:
- Work on feeds.
- Add `.is-cover` to modify the behaviours of columns.
- Only apply logic for dimensions on the cover container; too many contextual side effects otherwise.
- Add classes to dimension and align, including auto margins for flex.
- Rename classes in templates accordingly.
2021-04-27 16:24:20 +02:00
Fabien Basmaison
56d821970a Merge branch 'main' into frontend-book-cover 2021-04-27 09:16:10 +02:00
Mouse Reeve
7b65291a59 Python formatting for the new Black standard 2021-04-26 14:43:29 -07:00
Mouse Reeve
85297426e0 Adds merge migration 2021-04-26 14:33:16 -07:00
Mouse Reeve
64c2313a5d Merge branch 'main' into inventaire 2021-04-26 14:22:05 -07:00
Mouse Reeve
ce0e90d472
Merge pull request #961 from bookwyrm-social/django-3-2
Update to django 3.2
2021-04-26 14:08:39 -07:00
Mouse Reeve
c5dc5e8b36
Merge pull request #1005 from bookwyrm-social/imported-ratings
Import ratings as ratings, not reviews
2021-04-26 14:07:06 -07:00
Mouse Reeve
674c4a99df Adds missing data file 2021-04-26 13:56:09 -07:00
Mouse Reeve
55eb1c4526 Fixes model name 2021-04-26 13:50:43 -07:00
Mouse Reeve
4deb94714c Adds test for import rating 2021-04-26 13:49:19 -07:00
Mouse Reeve
d4dbfbe3c0
Merge pull request #1003 from bookwyrm-social/list-fixes
Improve list suggestion experience
2021-04-26 13:48:26 -07:00
Mouse Reeve
7006f30ac8 Uses unique test model name 2021-04-26 11:51:17 -07:00
Mouse Reeve
398ecd545e
Merge pull request #1008 from bookwyrm-social/show-rating
Show rating in statuses
2021-04-26 11:47:55 -07:00
Mouse Reeve
5bb341ba52 Use copy of requests GET params in list redirect 2021-04-26 11:43:13 -07:00
Mouse Reeve
ff8601f329 Fixes spacing for new Black release 2021-04-26 11:37:07 -07:00
Mouse Reeve
b16ac91b16 Python formatting 2021-04-26 11:34:04 -07:00
Mouse Reeve
df31ac9742 Show rating in statuses 2021-04-26 11:33:17 -07:00
Mouse Reeve
cd869dde09 Fixes tests of bookwyrm abstract model 2021-04-26 11:28:33 -07:00
Mouse Reeve
141d1a9a17 Adds auto field setting to avoid hella warnings 2021-04-26 11:22:08 -07:00
Mouse Reeve
32b3a02a17 Fixes reverse rank calculation 2021-04-26 11:14:26 -07:00
Mouse Reeve
5b5da46ede Merge branch 'main' into suggestions-redis 2021-04-26 10:43:25 -07:00
Mouse Reeve
5d9cfe0276 Fixes followers/following logic on suggested users 2021-04-26 10:37:10 -07:00
Mouse Reeve
8b154b69fb Fixes follower/following logic in suggested user annotations 2021-04-26 10:35:37 -07:00
Mouse Reeve
786cf4fb97 Paginate followers/following pages 2021-04-26 10:26:49 -07:00
Mouse Reeve
99efe6b290 Limit how many notifications are loaded 2021-04-26 10:11:13 -07:00
Mouse Reeve
c2ffdb8f03 Import ratings as ratings, not reviews 2021-04-26 10:04:33 -07:00
Mouse Reeve
7fcf48e84d Adds success notification for adding books to lists 2021-04-26 09:57:01 -07:00
Mouse Reeve
1edd00a0d1 Merge branch 'main' into list-fixes 2021-04-26 09:44:55 -07:00
Mouse Reeve
3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve
0f6b5cc6be Filter list search results to hide already added books 2021-04-26 08:02:30 -07:00
Mouse Reeve
0cb80aeb55 Preserve search results after adding a book 2021-04-26 07:24:03 -07:00
Fabien Basmaison
b089f6c86a Update Bulma from v0.9.1 to v0.9.2. 2021-04-26 15:20:48 +02:00
Fabien Basmaison
26cacf502c Rationalise behaviours of context, container and cover:
- Set minimum dimensions to avoid having to pass classes all over the place.
- Outline the container to show white on white covers properly.
- Remove extraneous code.
- Better size caption when no cover is available.
- Create Alignments, Positions and Spacings sections and move some existing dimensions.
- Update previous templates.
2021-04-26 13:39:17 +02:00
Fabien Basmaison
30bed6c963 Merge branch 'main' into frontend-book-cover 2021-04-26 11:35:10 +02:00
Mouse Reeve
ef83eb33b0
Merge pull request #993 from bookwyrm-social/find-own-book-content
Find own book content
2021-04-25 11:37:00 -07:00
Joachim
e92166c7f7 Directory: Homogenize cards heights
When the content of a profile card stretches it in height, the grid is not homogenous. This PR adds a CSS class that'll display cards as stretchable columns. The card content will be able to grow, which should always place the card footer at the bottom of the card.
2021-04-25 20:05:31 +02:00
Mouse Reeve
2fd8e12b96
Merge pull request #974 from joachimesque/list-table
Add mobile styles for book preview table
2021-04-25 10:42:27 -07:00
Mouse Reeve
aa557e4758
Merge pull request #971 from joachimesque/smaller-statuses-dense-cards
Move some status footer elements to the header
2021-04-25 10:39:23 -07:00
Fabien Basmaison
a268f339c0 Fix linting issues. 2021-04-25 15:45:49 +02:00
Fabien Basmaison
953dff90bb cover: tweak styles:
- `optimizeQuality` > `smooth` (CSS language evolution)
- Use `auto` instead of a fixed width.
- Add exceptions for heights and apply them to some previously modified templates.
- Remove `is-large` exception.
- Widen the content column on list curation.
2021-04-25 15:37:46 +02:00
Fabien Basmaison
23985e4357 Merge branch 'main' into frontend-book-cover 2021-04-25 11:24:21 +02:00
Mouse Reeve
bb44ede2e7 Show book preview in full statuses on mobile 2021-04-24 12:56:53 -07:00
Fabien Basmaison
cf5a4ebe90 Fix typo:
Addresses https://github.com/bookwyrm-social/bookwyrm/pull/994#discussion_r619688900.
2021-04-24 21:27:05 +02:00
Fabien Basmaison
eea8b4e750 cover: Handle covers with specific heights:
- Have an explicit contextual class on `cover-container`.
- Use more flexible, consistent and searchable variable name for passing classes to covers.
- Consistently use `'…'` with django variables.
- Give the option to not hide covers to screen readers.
- consitently give a title to the cover container if `alt_text` exists.
- [lists] Remove `.content` which is applying too extensive default styles.
2021-04-24 21:27:05 +02:00
Joachim
04e1806482 Update status_header.html 2021-04-24 20:47:39 +02:00
Joachim
59ed49f082 Update status_header.html 2021-04-24 20:39:54 +02:00
Mouse Reeve
4fb85ced5f Updates logic for new and newly discoverable users 2021-04-24 11:16:35 -07:00
Joachim
e06154c457
Merge branch 'main' into smaller-statuses-dense-cards 2021-04-24 20:07:13 +02:00
GuDzpoz
72d92343aa zh-cn should be zh-hans 2021-04-24 22:32:04 +08:00
Mouse Reeve
deb1257114
Merge pull request #995 from bookwyrm-social/show-subtitles
Show subtitles when titles are very short
2021-04-24 06:58:00 -07:00
Fabien Basmaison
783cc6edf0 cover: List curation:
- Reduce Padding around covers.
- Remove `content` which is applying too extensive default styles.
- Style headings.
- Replace table with definition list.
- Clip cover container to avoid caption overflowing.
2021-04-24 15:49:30 +02:00
Fabien Basmaison
75a69988e4 cover: List:
- Reduce Padding around covers.
- Remove `content` which is applying too extensive default styles.
2021-04-24 14:24:25 +02:00
Fabien Basmaison
32fb06c9e6 Prevent stars from wrapping on multiple lines. 2021-04-24 13:23:03 +02:00
Fabien Basmaison
9ea91d8e7c cover: Search layout: Reduce padding around covers. 2021-04-24 12:56:38 +02:00
Fabien Basmaison
7f0b3184a1 cover: Use book-cover as component:
- Avoid specifying context-dependent values in CSS for components. Those values can be defined by the context calling the component.
- Use `<figure>` with optional caption.
- Reduce redundant markup.
- Allow more variables to be passed to the book-cover (image path and class for the container).
- Hide the book cover to screen readers.
2021-04-24 12:48:55 +02:00
Mouse Reeve
9880bdc75b Move anntotated users quuery into suggested users module 2021-04-23 18:26:48 -07:00
Mouse Reeve
dda21195de Correct calls to annotated user set 2021-04-23 16:34:04 -07:00
Mouse Reeve
179ba24115 Safely handle invalid book 2021-04-23 15:29:55 -07:00
Mouse Reeve
a499259163 Fixes python formatting 2021-04-23 15:01:35 -07:00
Mouse Reeve
9ba0aec6d9 Show subtitles when titles are very short 2021-04-23 14:58:48 -07:00
Mouse Reeve
126594ec49 Cleans up queryset declarations 2021-04-23 13:47:13 -07:00
Mouse Reeve
888930f891 User request path for pagination 2021-04-23 13:35:12 -07:00
Mouse Reeve
d2b2065db8 Show user's book content 2021-04-23 13:32:58 -07:00
Mouse Reeve
cbdf573261
Merge pull request #991 from bookwyrm-social/character-encoding
Fixes character encoding bug
2021-04-23 12:06:04 -07:00
Mouse Reeve
d31827e5aa
Merge pull request #975 from reesporte/main
spanish translation updates
2021-04-23 12:03:03 -07:00
Mouse Reeve
013d5f1db3
Merge pull request #987 from bookwyrm-social/duplicate-boosts
Don't broadcast boosts twice
2021-04-23 11:58:01 -07:00
Mouse Reeve
607e98b331 Fixes character encoding error 2021-04-23 11:53:45 -07:00
Mouse Reeve
c907b1ff09 Test to replicate character encoding bug 2021-04-23 11:07:19 -07:00
Mouse Reeve
79424f7bfb Python formatting 2021-04-23 10:56:17 -07:00
Mouse Reeve
32e694032b Fixes duplicate boost model verification 2021-04-23 10:49:17 -07:00
Joachim
de19c7d7a6 Update status_header.html 2021-04-23 18:38:33 +02:00
Mouse Reeve
b457446f2f Don't save duplicate boosts 2021-04-22 19:36:27 -07:00
Mouse Reeve
f9c40aadd9 Python formatting 2021-04-22 18:30:58 -07:00
Mouse Reeve
74ccaf27fa Tag removal migration 2021-04-22 18:23:23 -07:00
Mouse Reeve
a3f91d991f Remove tag form 2021-04-22 18:19:42 -07:00
Mouse Reeve
563623616c Merge branch 'main' into remove-tags 2021-04-22 18:18:24 -07:00
Mouse Reeve
9148f36719 Fixes duplicate boosts 2021-04-22 18:16:00 -07:00
Mouse Reeve
adb8f6f90f
Merge pull request #986 from bookwyrm-social/scroll-behavior
Removes scroll padding
2021-04-22 14:38:46 -07:00
reese
6915b195ce translated some strings 2021-04-22 16:28:57 -05:00
Mouse Reeve
c6e8161a9f Removes scroll padding 2021-04-22 13:08:22 -07:00
Joachim
15c7a1dc82 Update bookwyrm.css 2021-04-22 20:57:24 +02:00
Joachim
6c89eb1b65 Update bookwyrm_tags.py 2021-04-22 20:48:25 +02:00
Joachim
15241e3807 ……… come back another day 2021-04-22 20:48:06 +02:00
Joachim
ebf20de10e linter linter go away 2021-04-22 20:45:16 +02:00
Joachim
00e6d0524f Accessibility: add language to lang attr on html tag
I only use the first subtag of the language string given by `get_language()`, because `get_language()` returns an all-lowercase string, and I don't know if it'll be considered valid by browsers.
2021-04-22 20:41:58 +02:00
Mouse Reeve
c455585262 Adds missing data file 2021-04-22 10:30:00 -07:00
Mouse Reeve
3ed822b9ea Don't erase follows on update 2021-04-22 10:28:10 -07:00
Mouse Reeve
a797b68558 Adds test that replicates follower deletion bug 2021-04-22 10:22:37 -07:00
Mouse Reeve
7bad8ac354
Merge pull request #982 from bookwyrm-social/flower-errors
Flower errors
2021-04-22 09:50:08 -07:00
Mouse Reeve
cfa424ca59 Fixes nondeterministic test outcome 2021-04-22 09:37:24 -07:00
Mouse Reeve
e9dc63e296 Only remove objects that are known 2021-04-22 09:25:12 -07:00
Mouse Reeve
c7daf27baf Adds migration for last edited by field 2021-04-22 09:06:26 -07:00
Mouse Reeve
9c87c91c62
Merge pull request #979 from bookwyrm-social/allow-refollow
Allow refollow
2021-04-22 08:56:48 -07:00
Mouse Reeve
4a73894802
Merge pull request #978 from bookwyrm-social/federation-bugs
Federation bugs
2021-04-22 08:42:47 -07:00
Mouse Reeve
6b84e53ddd Send accepts to duplicate follow requests 2021-04-22 08:40:32 -07:00
Mouse Reeve
d5b27e2202 Test re-following a user 2021-04-22 08:31:32 -07:00
Mouse Reeve
dd0aa7a123 Test that remote user is being set on books 2021-04-22 08:08:03 -07:00
Mouse Reeve
db09ca4331 Adds last edited by to author 2021-04-22 07:51:06 -07:00
Mouse Reeve
c405580e8e Updates edition federation test 2021-04-22 07:37:12 -07:00
Mouse Reeve
ae5e744731 Save last edited by user 2021-04-22 07:29:09 -07:00
Mouse Reeve
1472f7d919 Restores markdown rendering in book description previews 2021-04-22 06:58:21 -07:00
Joachim
2749e6ad95 Fix CSS for linter 2021-04-21 22:36:07 +02:00
Joachim
7a5ea31ee7 Fix progress display in title 2021-04-21 22:32:26 +02:00
Joachim
0b0a283e64 Fix buttons styles 2021-04-21 22:32:14 +02:00
Joachim
b1fea98458 Use one card-footer-item per footer button 2021-04-21 22:31:27 +02:00
Joachim
415a12cf78 Move H3 tag 2021-04-21 22:30:52 +02:00
Mouse Reeve
85b1c920cd
Merge pull request #973 from joachimesque/dropdown-style
Dropdown component design fixes
2021-04-21 13:08:41 -07:00
Joachim
53b47aa264 Revert "Move card footer container inside the card-footer component"
This reverts commit 58aeb72afa.
2021-04-21 21:48:31 +02:00
Joachim
17436b6657 Header fixes 2021-04-21 21:48:19 +02:00
Joachim
720109564d Fix condition 2021-04-21 21:35:42 +02:00
Joachim
265c38e877 Update direct message button style 2021-04-21 21:31:58 +02:00
Joachim
e4836bd9b3 Fix for lint 2021-04-21 21:29:28 +02:00
Joachim
2ae9085e55 Vertically align cells in desktop view 2021-04-21 21:26:20 +02:00
Joachim
482774f1e1 Add mobile styles for book preview table 2021-04-21 21:25:37 +02:00
Joachim
2987029a7d Remove useless style on non-dropdown element 2021-04-21 19:37:12 +02:00
Joachim
c86800be01 Remove padding and add radius to menu
Without padding, the children's lack of radius mask the radius. Using is-clipped helps clip with the parent's radius
2021-04-21 19:36:59 +02:00
Joachim
df72061c57 Improve menu action styles 2021-04-21 19:36:11 +02:00
Joachim
544dbda4ad Move menu item styles to menu item 2021-04-21 19:35:50 +02:00
Joachim
f01b7fbd15 Design and a11y fixes on Create Status forms
- Use `field` CSS class to better respect Bulma styles
- Fix buggy `id` on content field, causing a11y problems
- Fix progress control & select styles
- Various small style fixes
2021-04-21 18:34:04 +02:00
Joachim
2cacf5146b
Merge branch 'main' into smaller-statuses-dense-cards 2021-04-21 17:40:20 +02:00
Joachim
f7adaee0ed Verbosify buttons 2021-04-21 17:35:55 +02:00
Joachim
13957c2f44 Move footer some items to header
- Header elements are now enclosed in a media layout
- Footer elements are not in a card-footer anymore
2021-04-21 17:32:35 +02:00
Joachim
58aeb72afa Move card footer container inside the card-footer component 2021-04-21 17:23:48 +02:00
Mouse Reeve
914f617689 Cleans up imports 2021-04-20 14:06:45 -07:00
Mouse Reeve
d62cf3fecb Merge branch 'main' into smaller-statuses 2021-04-20 14:02:23 -07:00
Mouse Reeve
92bd5ab291
Merge pull request #970 from bookwyrm-social/display-fixes
Display fixes
2021-04-20 13:59:32 -07:00
Mouse Reeve
f4abd7b797 Linter fix 2021-04-20 13:50:53 -07:00
Mouse Reeve
5fc1e3f2fe Fixes merge regression for localized timestamps 2021-04-20 13:50:05 -07:00
Mouse Reeve
afde94d4c2
Merge branch 'main' into smaller-statuses 2021-04-20 13:48:21 -07:00
Mouse Reeve
baa423bb69
Merge pull request #967 from bookwyrm-social/date-localization
Fixes localization weirdness with dates
2021-04-20 13:44:34 -07:00
Mouse Reeve
2e12d54687
Merge pull request #966 from bookwyrm-social/user-admin
User admin
2021-04-20 13:43:51 -07:00
Mouse Reeve
c07dcb5458 Remove spaceless templatetags that cause rendering issues in statuses 2021-04-20 13:38:25 -07:00
Mouse Reeve
7012f95d6d Use input instead of textarea for series 2021-04-20 13:07:55 -07:00
Mouse Reeve
d47bbde651 Only one row of footer on list items 2021-04-20 13:02:43 -07:00
Mouse Reeve
b22d1863c9 More robust user page test and bug fix 2021-04-20 12:31:45 -07:00
Mouse Reeve
cbccb07252 Fixes display of replies 2021-04-20 11:18:59 -07:00
Mouse Reeve
9e5ebf9807 Move stars into header for ratings 2021-04-20 11:06:14 -07:00
Mouse Reeve
07dbc4c6c0 Much longer "full" version of trimmed text 2021-04-20 09:56:01 -07:00
Mouse Reeve
978760475f More compact display of statuses 2021-04-20 09:54:02 -07:00
Mouse Reeve
2c013b677b Patch broadcast in test 2021-04-19 20:01:29 -07:00
Mouse Reeve
63509c954d Adds test for changing user group 2021-04-19 18:12:55 -07:00
Mouse Reeve
0a37b4665c Adds control for moderator to set user group 2021-04-19 17:29:29 -07:00
Mouse Reeve
e1d24577d4 Fixes tests (again) 2021-04-19 16:42:51 -07:00
Mouse Reeve
11aa8baa53 Fixes tests and notifications page 2021-04-19 16:33:28 -07:00
Mouse Reeve
6a50c021ce Try naturalday for published date 2021-04-19 16:30:15 -07:00
Mouse Reeve
70a819951e Fixes localization weirdness with dates 2021-04-19 16:18:29 -07:00
Mouse Reeve
35cb3fa8fc Updates tests 2021-04-19 16:08:01 -07:00
Mouse Reeve
da19089d34 Changes language from "deactivate" to "suspend" 2021-04-19 15:55:28 -07:00
Mouse Reeve
1542866b6c Adds user admin view 2021-04-19 15:40:51 -07:00
Mouse Reeve
0dd8b33991 Moves user admin templates into snippets 2021-04-19 15:19:55 -07:00
Mouse Reeve
788e282dce Moves user admin pages into their own directory 2021-04-19 15:12:36 -07:00
Mouse Reeve
0947b79fb1 Python formatting 2021-04-19 15:06:33 -07:00
Mouse Reeve
91aa6fa95f Remove unneeded page checking logic 2021-04-19 15:01:20 -07:00
Mouse Reeve
77775d9bf8 Remove superfluous calls to all() 2021-04-19 14:47:59 -07:00
Mouse Reeve
d69ce8cbbd
Merge pull request #923 from SavinaRoja/584-sorting-lists
584 sorting of lists
2021-04-19 14:37:50 -07:00
Pablo Barton
fa75438070 per review, removing custom pagination for booklist and handling all pending books at the end of the list 2021-04-18 14:46:28 -04:00
Mouse Reeve
43a785b6c5
Merge pull request #959 from arkhi/editions-list
Display book identifiers in the list of Editions
2021-04-18 09:37:34 -07:00
Fabien Basmaison
415d6c4e3f Remove spacing between publisher info blocks. 2021-04-18 18:24:32 +02:00
D Anzorge
7a2731aef4 Use object ids with our instance base path for follow accept/reject 2021-04-18 18:08:13 +02:00
Pablo Barton
afd1cdc2a8 adjust test 2021-04-18 11:52:22 -04:00
Pablo Barton
3d0de5bea8 approving list items puts them at the end of the list 2021-04-18 11:15:42 -04:00
Fabien Basmaison
66c72c8b41 Add book identifiers to list of Editions:
- Add template for identifiers.
- Remove `space-between` that adds too much space on narrow views.
- Apply the `content` class only on publisher infos to avoid applying automatic styles to the description list.
2021-04-18 15:59:02 +02:00
Pablo Barton
602c8c83ba black 2021-04-17 22:09:00 -04:00
Pablo Barton
9031184176 addressing some review 2021-04-17 21:31:38 -04:00
Mouse Reeve
2914eea281 Catch user not found errors in feed 2021-04-17 18:23:33 -07:00
Mouse Reeve
02e6602a0b Reject statuses from deactivated remote users 2021-04-17 17:55:22 -07:00
Mouse Reeve
8421a2e832 Clarifies logic in if statement 2021-04-17 15:14:23 -07:00
Mouse Reeve
44528eaa09 Don't double-override to_activity 2021-04-17 13:31:37 -07:00
Mouse Reeve
ebdbdc8790 Broadcast deletions 2021-04-17 13:19:23 -07:00
Mouse Reeve
5b7f2007e8 Broadcast user deletions 2021-04-17 12:51:36 -07:00
Mouse Reeve
5df2ac676b Fixes error on deletion requests for unknown users 2021-04-17 12:51:30 -07:00
Mouse Reeve
779f44e9bd
Merge pull request #954 from bookwyrm-social/ap-image
Handle both Image and Document types
2021-04-17 12:11:41 -07:00
Mouse Reeve
020e6f74ef Python formatting 2021-04-17 11:57:06 -07:00
Mouse Reeve
8548cc99db
Merge pull request #946 from bookwyrm-social/ap-questions
Gracefully handle expect but unsupported activities
2021-04-17 11:52:40 -07:00
Mouse Reeve
7c85b554cf Handle both Image and Document types 2021-04-17 11:47:48 -07:00
Mouse Reeve
45cf1cd7a7
Merge pull request #953 from bookwyrm-social/admin-filters
Filter reports and users by server name and username
2021-04-17 11:26:12 -07:00
Mouse Reeve
6433aa23b2 Python formatting 2021-04-17 11:09:48 -07:00
Mouse Reeve
239d927e94
Merge pull request #952 from bookwyrm-social/user-reports
Fixes form for reporting users
2021-04-17 10:56:46 -07:00
Mouse Reeve
10cf189312 Filter reports and users by server name and username 2021-04-17 10:56:26 -07:00
Mouse Reeve
e0c16b21e9 Fixes form for reporting users 2021-04-17 10:28:03 -07:00
Mouse Reeve
01cfa9dde9 Show more info on report page about user and instance 2021-04-17 10:12:50 -07:00
Pablo Barton
f6824268ed 584 sorting of lists 2021-04-16 22:17:15 -04:00
Mouse Reeve
bd294cce83 Check if obj exists for updates 2021-04-16 15:17:55 -07:00
Mouse Reeve
caa261f4bf Gracefully handle expect, unsupported activities 2021-04-16 15:12:38 -07:00
Mouse Reeve
80ea459711 Suitable test name and comment 2021-04-15 17:57:02 -07:00
Mouse Reeve
da453f8056 Adds test for populate streams management command 2021-04-15 17:43:27 -07:00
Mouse Reeve
f792dd0dac
Merge pull request #943 from bookwyrm-social/activity-serialize-errors
Activity serialize errors
2021-04-15 17:00:00 -07:00
Mouse Reeve
220fb926c9 Rename Image to Document 2021-04-15 16:35:04 -07:00
Mouse Reeve
2f493336ad Don't try to delete nonexistant objects 2021-04-15 16:24:05 -07:00
Mouse Reeve
addcc59d7f Makes cc fields optional
Plus a bit of cleanup in comments and to: fields
2021-04-15 16:21:54 -07:00
Mouse Reeve
25b82fd2b0 Updates test 2021-04-15 16:11:03 -07:00
Mouse Reeve
9176a2b9ee Fixes bug that causes recusive broadcasts 2021-04-15 15:51:49 -07:00
Joachim
71390f1735 Set body height 2021-04-15 21:51:14 +02:00
Mouse Reeve
adaaf8da67 Fixes typo in populate streams command 2021-04-15 10:29:56 -07:00
Pablo Barton
88d37736ee 902 using get_page for Paginator instead of page 2021-04-15 08:54:23 -04:00
Joachim
74573b5355
Restrict list creation form to authenticated users
When visiting the `/list` route on an instance while unauthenticated, the button to toggle the List creation form is shown. This PR aims to hide the button to unauthenticated visitors.
2021-04-14 20:07:51 +02:00
Mouse Reeve
00c6b7e6e0 Fixes regex group 2021-04-13 18:26:54 -07:00
Mouse Reeve
e8d1c04712 Fixes logic error in checking sender 2021-04-13 18:04:54 -07:00
Mouse Reeve
822e2e1a93 Python formatting 2021-04-12 15:09:50 -07:00
Mouse Reeve
a907dfdce7 Adds tests for block lists 2021-04-12 15:08:10 -07:00
Mouse Reeve
901e7f69d4 Allow admins to upload domain blocklists
Fixes #804
2021-04-12 14:23:51 -07:00
Mouse Reeve
a1e28d810d
Merge pull request #881 from mouse-reeve/domain-block
Block federation at the domain level
2021-04-12 10:41:02 -07:00
Mouse Reeve
bb352439d3 Fixes views test for federation unblock 2021-04-12 10:27:29 -07:00
Mouse Reeve
878b3c6fe8 Only reactivate appropriate users when undoing domain block 2021-04-12 10:16:03 -07:00
Mouse Reeve
93fe091034 Adds field for user deactivation reason 2021-04-12 09:51:10 -07:00
Mouse Reeve
a8abc3f649
Merge pull request #922 from void-witch/fix-date
add regression tests for published dates not being saved
2021-04-12 09:39:52 -07:00
Mouse Reeve
fa762bc107
Merge pull request #871 from SavinaRoja/857-ease-production
Easier to deploy by avoiding merge conflicts in production
2021-04-12 09:34:38 -07:00
n2no1
92e9ff6cff update links in README and {bookwyrm,celerywyrm}/settings.py files
the link to celery's homepage has been dead for at least several months
activitypub.rocks now supports tls (yay!)
the links to django's docs were for older versions of django than what bookwyrm uses
2021-04-12 11:56:26 -04:00
Mouse Reeve
8f3601d4cd Adds redis mocks to base model tests 2021-04-12 06:44:50 -07:00
Mouse Reeve
c8812c48c1 Use local user in test 2021-04-11 11:58:00 -07:00
Mouse Reeve
08586e348c Adds users to base model mock 2021-04-11 10:55:13 -07:00
Mouse Reeve
db4519b2e1 Fixes visible_to_user check for non-federated objs
why did this cause a problem _now_??
2021-04-11 10:45:08 -07:00
Mouse Reeve
659986771f Edit notes on federated servers 2021-04-11 10:36:40 -07:00
Pablo Barton
d38efa9a9d Easier to deploy by avoiding merge conflicts in production 2021-04-11 13:12:50 -04:00
Mouse Reeve
96d15d3d57 Adds merge migration 2021-04-11 10:05:36 -07:00
Mouse Reeve
77caf1a8fa Merge branch 'main' into domain-block 2021-04-11 10:02:11 -07:00
Mouse Reeve
b552634a87 Make sure goal exists before checking perms 2021-04-11 09:58:03 -07:00
Mouse Reeve
edf3fad54d Make sure user is available when testing blocks 2021-04-11 09:42:55 -07:00
Mouse Reeve
b6a7871b04 Makes visibility evaluator a model function 2021-04-11 09:31:18 -07:00
Mouse Reeve
26f16cf5a4 Limit broadcast with viewer-aware users
Removes inactive or blocked users
2021-04-11 09:09:13 -07:00
Mouse Reeve
6d76782ee1 Mocks list item remove test 2021-04-11 09:00:44 -07:00
Mouse Reeve
98ff66cd16 Don't broadcast curation rejects 2021-04-10 18:15:13 -07:00
n2no1
b293901417 add regression tests for published dates not being saved
closes #894
2021-04-10 20:21:29 -04:00
Mouse Reeve
675b34f5ad Merge branch 'main' into collection-item-refacotr 2021-04-10 16:02:54 -07:00
Mouse Reeve
89d3c3e82b Tests searching for users on blocked servers 2021-04-10 11:49:45 -07:00
Mouse Reeve
1903812b1d Class method for checking if urls are blocked 2021-04-10 11:44:29 -07:00
Mouse Reeve
0caeb3ac33 fixes inbox tests 2021-04-10 11:18:22 -07:00
Mouse Reeve
8797b3d240 Python formatting 2021-04-10 11:07:59 -07:00
Mouse Reeve
d5fbdacc02 Adds unblock view 2021-04-10 11:06:28 -07:00
Fabien Basmaison
ec2b4e533e Merge branch 'main' into frontend 2021-04-10 19:57:23 +02:00
Mouse Reeve
7b60626661 Updates block unit test 2021-04-10 10:51:45 -07:00
Fabien Basmaison
e016006ade [css] Rename all classes consistently: :shamed:
This commit addresses https://github.com/mouse-reeve/bookwyrm/pull/883#pullrequestreview-632930445.
2021-04-10 19:51:18 +02:00
Mouse Reeve
2741aa55be Makes blocking it's own view 2021-04-10 10:37:28 -07:00
Mouse Reeve
81bc25b012 Fixes create test 2021-04-10 10:24:09 -07:00
Mouse Reeve
d076162aa6 Remove edit server mode
It just doesn't really make sense
2021-04-10 10:09:36 -07:00
Mouse Reeve
c4bca42f64 Adds test for edit view GET request 2021-04-10 09:52:11 -07:00
Mouse Reeve
cca7c9a98a Adds merge migrations 2021-04-10 09:35:03 -07:00
Mouse Reeve
13d54871b7 Merge branch 'main' into domain-block 2021-04-10 09:26:01 -07:00
Mouse Reeve
1352d43cdc
Merge pull request #915 from tofuwabohu/adds-ssl-param
Adds SSL parameter
2021-04-10 09:22:04 -07:00
Fabien Basmaison
37e48988b1 Don’t use linebreak in DTL block comments. (might break the linter on the length of line) 2021-04-10 00:07:01 +02:00
Fabien Basmaison
4c4801e2da Add structured data to Book (#84). 2021-04-09 23:57:49 +02:00
tofuwabohu
a52729daae adds SSL params 2021-04-09 13:28:58 +02:00
Fabien Basmaison
4bfae00e3c Merge branch 'main' into frontend 2021-04-09 07:51:32 +02:00
Mouse Reeve
14b0b978a3 Updates shelf models tests 2021-04-08 20:58:15 -07:00
Mouse Reeve
c149003d89 Fixes fields on unknown boost test 2021-04-08 20:34:22 -07:00
Mouse Reeve
af6cab2e3f Don't reutnr an error when discarding activity objects 2021-04-08 20:03:29 -07:00
D Anzorge
5cbf7bbc71 Ensure EMAIL_USE_TLS is read as a bool 2021-04-09 04:53:18 +02:00
Mouse Reeve
e339581ade
Merge pull request #913 from mouse-reeve/edit-book-date-error
Fixes edit book form throwing error on empty dates
2021-04-08 16:54:27 -07:00
Mouse Reeve
27664e323a Fixes edit book form throwing error on empty dates 2021-04-08 16:08:35 -07:00
Mouse Reeve
fdf5113143 Removes tag code 2021-04-08 16:02:02 -07:00
Mouse Reeve
37aacee9c6 Fixes actors in inbox add/remove tests 2021-04-08 15:50:21 -07:00
Mouse Reeve
32bf510755 Updates inbox remove tests 2021-04-08 15:46:06 -07:00
Mouse Reeve
6310532ddf Updates inbox add tests 2021-04-08 15:43:19 -07:00
Mouse Reeve
ddd05a68cf Resolve and assign target collection for collection items 2021-04-08 15:40:02 -07:00
Mouse Reeve
a7375c4c13 Adds remove list item test and updates add/create tests 2021-04-08 15:24:23 -07:00
Mouse Reeve
24685187e8 Updates collection item add/remove handlers 2021-04-08 15:22:06 -07:00
Mouse Reeve
43f0d4e603 Adds activity tests to shelf views tests 2021-04-08 15:21:22 -07:00
Mouse Reeve
ee6f37d7d2 python formatting 2021-04-08 15:11:16 -07:00
Mouse Reeve
b1491c2ac6 Adds privacy and recipient details to list items 2021-04-08 15:09:56 -07:00
Mouse Reeve
1f930ba821 Updates list view tests 2021-04-08 14:51:52 -07:00
Mouse Reeve
e550f8cde6 Fixes list item fields and broadcast updates 2021-04-08 14:47:38 -07:00
Mouse Reeve
af58455ae9 Updates mock paradigm in lists tests 2021-04-08 14:20:16 -07:00
Mouse Reeve
31077a9790 Update ordered collection classes to use CollectionItem 2021-04-08 14:17:29 -07:00
Mouse Reeve
98161b9041 Use CollectionItem objects 2021-04-08 14:16:34 -07:00
Mouse Reeve
6617cede37 Loudly throw errors in inbox task 2021-04-08 14:15:58 -07:00
Mouse Reeve
45926eed34 Adds necessary user to inbox tests 2021-04-08 13:33:24 -07:00
Mouse Reeve
94764160cc Whitespace fixes 2021-04-08 12:15:47 -07:00
Mouse Reeve
9894b777b6 Separates inbox tests into multiple files 2021-04-08 12:12:18 -07:00
Mouse Reeve
0de1b8d0c3 Case insensitive remote user search 2021-04-08 09:59:21 -07:00
Mouse Reeve
779377bd0c Makes localname case insensitive 2021-04-08 09:00:32 -07:00
Fabien Basmaison
b92ff9752d [assets] Remove UI and behaviours for interactions:
This commit addresses https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609739553.
2021-04-08 17:37:29 +02:00
Fabien Basmaison
2f90b4ce66 [assets] Fix broken actions for focus and checkbox:
This commit should address the following two comments:

- https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609172258
- https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609174513
2021-04-08 11:37:14 +02:00
Fabien Basmaison
83bd417878 [assets] Update interactions code:
This commit should address https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609381969.

- Disable the button being used to submit the form.
- Rename variables based on @mouse-reeve’s explanations. Thanks! 
2021-04-08 11:08:13 +02:00
Fabien Basmaison
ad3e91db7d Merge branch 'main' into frontend 2021-04-08 09:53:01 +02:00
Mouse Reeve
89af144105 Avoid showing "None" for title and subtitle fields 2021-04-07 18:38:26 -07:00
Mouse Reeve
9658123dd7
Merge pull request #893 from void-witch/fix-date
fix the book edit confirmation template dropping initial data for dates
2021-04-07 18:36:15 -07:00
Mouse Reeve
ddba61f138 Block all/unblock all users on server block 2021-04-07 16:50:12 -07:00
Mouse Reeve
839ac061b7 Show notes 2021-04-07 13:21:46 -07:00
Mouse Reeve
8556474537 Add and edit servers 2021-04-07 13:17:51 -07:00
Mouse Reeve
ddab9af564 Functional add server form 2021-04-07 13:06:29 -07:00
Mouse Reeve
d383e8a61e Cleans up add server form 2021-04-07 12:13:34 -07:00
Mouse Reeve
74549956c2 Adds edit server form 2021-04-07 11:52:13 -07:00
Mouse Reeve
8261fbf86a Updates federated server model with notes field
Also makes it more editable, and changes the status types
2021-04-07 11:28:31 -07:00
Mouse Reeve
e3e28973f1 Adds merge migration 2021-04-07 11:24:09 -07:00
Mouse Reeve
4e0225749d Merge branch 'main' into domain-block 2021-04-07 11:23:15 -07:00
Mouse Reeve
5d45b01f05
Merge pull request #906 from mouse-reeve/isbn-search-resiliency
Handle arbitrary errors in isbn search
2021-04-07 11:18:51 -07:00
Mouse Reeve
2c5f62e6cd
Merge pull request #905 from mouse-reeve/shelve-action-serialization
Safer serialization of shelve and un-shelve activities
2021-04-07 11:18:39 -07:00
n2no1
ac86c194d4 move from strptime to dateutil for parsing date inputs 2021-04-07 14:11:13 -04:00
Mouse Reeve
897082d491
Merge pull request #903 from mouse-reeve/following-field
Adds following field to actor serialization
2021-04-07 11:09:11 -07:00
Mouse Reeve
5427790c4e Safer serialization of shelve and unshelve activities 2021-04-07 11:02:56 -07:00
Mouse Reeve
954958b6f9 Handle arbitrary errors in isbn search 2021-04-07 10:54:00 -07:00
Mouse Reeve
e61a104bcf
Merge pull request #904 from mouse-reeve/missing-migration
Adds missing migration for #898
2021-04-07 10:49:38 -07:00
Mouse Reeve
0b96713341
Merge pull request #900 from mouse-reeve/search-webfinger-error
Gracefully handle errors in webfinger during search
2021-04-07 10:35:39 -07:00
Mouse Reeve
7c5f078682 Adds missing migration for #898 2021-04-07 10:33:56 -07:00
Mouse Reeve
ef12b077dd Adds following field to actor serialization 2021-04-07 10:32:16 -07:00
Mouse Reeve
e3d01c6736 Gracefully handle errors in webfinger during search 2021-04-07 09:17:04 -07:00
Fabien Basmaison
be0cabc415 [css] Improve quotes. 2021-04-07 18:07:32 +02:00
Mouse Reeve
63d37c281d Handle invalid authors when importing books 2021-04-07 08:59:33 -07:00
Mouse Reeve
45006afdf3 Remove character limit on some book fields 2021-04-07 08:50:50 -07:00
Fabien Basmaison
2a0924027b [css] Use more visible comments to split blocks. 2021-04-07 17:33:28 +02:00
Fabien Basmaison
f77088b964 [assets] Remove redundant class already provided by bulma:
Replace all classes `hidden` with `is-hidden` in templates, CSS and JS.
2021-04-07 17:31:00 +02:00
Mouse Reeve
f11d64f984 Handle all connector errors in search 2021-04-07 08:09:47 -07:00
Fabien Basmaison
f2a2b410a1 [assets] Add comment to mention replacing font icons with SVG. 2021-04-07 10:49:52 +02:00
Fabien Basmaison
54805afb51 [assets] Tweak JSDoc. 2021-04-07 10:37:11 +02:00
Fabien Basmaison
fb45df0f99 Merge branch 'main' into frontend 2021-04-07 09:25:40 +02:00
Fabien Basmaison
5d569e8926 [assets] Only update status if the promise is successful:
- Use promises in `ajaxPost` and `interact`.
- Add some animations in CSS.
2021-04-07 09:24:34 +02:00
Fabien Basmaison
1c05107f2b [assets] Tweak comments. 2021-04-07 07:53:30 +02:00
Mouse Reeve
922428cab7 Fixes error in reverse path 2021-04-06 18:51:43 -07:00
n2no1
31146b00e4 import MultiValueDictKeyError to catch with formcopy 2021-04-06 21:40:15 -04:00
Mouse Reeve
29e7659b76 Expand inventaire book data 2021-04-06 18:34:55 -07:00
Mouse Reeve
fec3d63e46 Python formatting 2021-04-06 18:17:33 -07:00
Mouse Reeve
ac27111f05 Adds inventaire to default connector list 2021-04-06 18:13:33 -07:00
Mouse Reeve
f21aca1211 Load remote keys 2021-04-06 18:10:42 -07:00
n2no1
51e16fba97 run black, add a try/catch around the formcopy fix 2021-04-06 21:01:57 -04:00
Mouse Reeve
4112862924 Fixes search data and new activitypub fields 2021-04-06 18:00:54 -07:00
n2no1
0941c50c69 ensure that the book edit confirmation receives initial date data as a datetime 2021-04-06 20:46:18 -04:00
Mouse Reeve
82c2f2eeb1 Adds more author identifier fields 2021-04-06 17:46:06 -07:00
n2no1
502f29082c check the form for initial date values if the book has none 2021-04-06 19:57:57 -04:00
Mouse Reeve
bfdcf611e7 Adds inventaire identifier to book data fields 2021-04-06 13:54:57 -07:00
Mouse Reeve
e594cd0a36 Load simple fields from inventaire 2021-04-06 13:53:58 -07:00
Mouse Reeve
3158701075 Gets editions for works 2021-04-06 13:39:10 -07:00
tofuwabohu
1f99710dcd Links to own user in menu 2021-04-06 22:36:24 +02:00
Mouse Reeve
5149c7e8c2 Expands mappings for inventaire/wikidata properties 2021-04-06 13:03:22 -07:00
Mouse Reeve
22ebe60c0a Use custom data extractor for inventaire connector 2021-04-06 12:29:06 -07:00
Mouse Reeve
fba44206ac Adds separate view and load links for book search results 2021-04-06 12:17:58 -07:00
Mouse Reeve
d482c66ad4 Adds inventaire connector stub
And changes formatters to accept the key as well as value
2021-04-06 11:58:07 -07:00
Mouse Reeve
295842badd Adds inventaire id to book data model 2021-04-06 10:40:39 -07:00
Mouse Reeve
f30d05acfc Update connector model to add new connector 2021-04-06 10:40:13 -07:00
Fabien Basmaison
44040201f9 [assets] Move interact function. 2021-04-06 17:57:39 +02:00
Fabien Basmaison
9d95f54aa2 [assets] Refactor toggleAction and toggleMenu a bit. 2021-04-06 17:48:56 +02:00
Mouse Reeve
03e5da12dd Call suggestions redis in feed 2021-04-06 08:31:18 -07:00
Mouse Reeve
b96a092e71
Merge pull request #879 from mouse-reeve/redis-stores
Created generic redis class for activitystreams
2021-04-06 08:27:21 -07:00
Mouse Reeve
fd66ff1861 Small tweaks to commends and super() calls 2021-04-06 07:53:34 -07:00
Fabien Basmaison
a21f954fb1 Remove redundant class attribute and format template. 2021-04-06 16:29:58 +02:00
Fabien Basmaison
52d2f0e331 [assets] Document functions and variables:
- Use expressive names for variables.
- Add docblocks for each function.
- Add ESLint rules for comments.
2021-04-06 16:17:20 +02:00
Fabien Basmaison
5d3d00f694 [assets] Use dataset + use expressive names for some variables. 2021-04-06 15:36:34 +02:00
Fabien Basmaison
62fe2ef600 [assets] Replace inline events with addEventListener; this breaks sliding menu. 2021-04-06 11:37:23 +02:00
Fabien Basmaison
7e49b3cb26 [assets] Simplify addRemoveClass function. 2021-04-06 11:19:44 +02:00
Fabien Basmaison
70c652d565 [assets] Add rules to ESLint:
- Fix long line.
- Enforce a few stylistic habits:

    - Avoid some potential dangerous constructs.
    - `arrow-spacing`: Use at least one space around arrows.
    - `keyword-spacing`: Use at least one space around keywords (if, else, for…).
    - `no-multiple-empty-lines`: Only use one empty line between code.
	- `no-var`: Use `let` or `const` instead of `var`:
    - `padded-blocks`: Do not pad blocks.
    - `padding-line-between-statements`: Use empty lines between some statements.
    - `space-before-blocks`: Use at least one space before the opening brace of a block.
2021-04-06 10:42:52 +02:00
Fabien Basmaison
991d897ac7 [assets] Listen to events as soon as possible. 2021-04-06 09:57:52 +02:00
Fabien Basmaison
2f2f7db086 [assets] Use classes for JS files:
- Classes strictly parse code implicitly.
- Fix previously updated code.
2021-04-06 09:44:59 +02:00
Fabien Basmaison
f430363be0 [assets] Simplify a function expression. 2021-04-06 09:11:56 +02:00
Fabien Basmaison
f6c3e581b9 [assets] Replace Array.from(document.getElementsByClassName(…)) by querySelectorAll(…). 2021-04-06 09:11:27 +02:00
Fabien Basmaison
6b0a3ce4b1 [assets] Move localStorage chunks of code to their own file:
This should prevent a sync issue with updateDisplay not always being loaded on time.
2021-04-06 09:06:51 +02:00
Mouse Reeve
a39cd670ef Fixes boosted remote statuses coming in as Notes 2021-04-05 18:05:06 -07:00
Mouse Reeve
2e245f84be Adds test for loading remote boosted statuses 2021-04-05 18:02:24 -07:00
Mouse Reeve
fb72db7507 Fixes federation view tests 2021-04-05 16:50:36 -07:00
Mouse Reeve
a4b892dfad Fixes domain block tests 2021-04-05 16:47:48 -07:00
Mouse Reeve
34b790a086 Adds tests for blocked server checks 2021-04-05 15:54:33 -07:00
Mouse Reeve
194fcb8055 Adds migration for federated server table statuses 2021-04-05 15:54:20 -07:00
Mouse Reeve
ad543f46c1 Adds block and unblock functionality 2021-04-05 15:38:32 -07:00
Mouse Reeve
e4fe47b538 Default blocks in initdb 2021-04-05 15:26:53 -07:00
Mouse Reeve
1901f7e6cb Check if incoming domains are blocked 2021-04-05 15:16:41 -07:00
Mouse Reeve
6a3c01a67f stream_users function has been renamed 2021-04-05 14:17:45 -07:00
Mouse Reeve
56330d448b Changes remove status redis mock 2021-04-05 14:08:24 -07:00
Mouse Reeve
18ba33e050 Uses redis for storing suggested users 2021-04-05 13:49:21 -07:00
Mouse Reeve
04b9704187 typo fix 2021-04-05 13:13:56 -07:00
Mouse Reeve
cd56abcb08 Maintain signal names 2021-04-05 12:11:49 -07:00
Mouse Reeve
0bbaf0a562 Python formatting 2021-04-05 11:10:26 -07:00
Mouse Reeve
e61ed73894
Merge pull request #875 from arkhi/locales
[l10n] Add and update i18n strings for French
2021-04-05 11:10:01 -07:00
Mouse Reeve
bd8858830a Created generic redis class for activitstreams 2021-04-05 11:05:37 -07:00
Mouse Reeve
04f459a2df Fixes creting invites 2021-04-05 10:17:01 -07:00
Fabien Basmaison
964b47ea97 [assets] Fix path for icomoon font. 2021-04-05 16:46:30 +02:00
Fabien Basmaison
cbed5e331b [assets] Move some frontend assets to _vendor_ directories:
This simplifies linting of files we have no grasp on, and clarifies responsibilities.

- Add .eslintignore.
- Restrict linting to bookwyrm/static.
2021-04-05 16:17:11 +02:00
Fabien Basmaison
5aea7343b4 [assets] Rename some files for consistency. 2021-04-05 16:16:48 +02:00
Fabien Basmaison
6971c9b133 [assets] Move toggleAllCheckboxes code to its own file. 2021-04-05 16:16:05 +02:00
Fabien Basmaison
125915f1b3 [l10n] Add missing i18n string to template. 2021-04-05 12:53:20 +02:00
Fabien Basmaison
5d3f00a537 [l10n] Add and update i18n strings for French:
- Fix typo in English.
- Add translations for missing strings.
- Update translations for fuzzy strings.
2021-04-05 12:46:34 +02:00
Mouse Reeve
d25c68f887 Restores stream length settings 2021-04-04 21:01:52 -07:00
Mouse Reeve
940e841502 Fixes trimming streams 2021-04-04 20:57:30 -07:00
Pablo Barton
593e435816 772 Use gettext_lazy for form classes 2021-04-04 16:22:36 -04:00
Mouse Reeve
ea837a3879
Merge pull request #864 from mouse-reeve/delete-and-redraft
Delete and redraft
2021-04-04 11:00:09 -07:00
Mouse Reeve
abd6a78295
Merge pull request #862 from mouse-reeve/disabled-link
Valid html solution to disabling pagination links
2021-04-04 10:59:22 -07:00
Mouse Reeve
b6aa36960c Separates button grouping from td element 2021-04-04 10:38:40 -07:00
Mouse Reeve
03ba01a790 Expands filtering and sorting on invite requests page 2021-04-04 10:36:28 -07:00
Mouse Reeve
467748e2c8 Adds delete and redraft tests 2021-04-04 09:45:25 -07:00
Mouse Reeve
ff3631cbe3 Python formatting 2021-04-04 09:24:17 -07:00
Mouse Reeve
be8c3b7904 Handles delete and redraft replies 2021-04-04 09:18:52 -07:00
Mouse Reeve
936d68f0ed Don't allow delete and redraft of ratings 2021-04-04 09:08:44 -07:00
Mouse Reeve
521f917d01 Pass existing rating to stars form element as variable 2021-04-04 09:05:21 -07:00
Mouse Reeve
4c2f1db6a6 Merge branch 'main' into delete-and-redraft 2021-04-04 09:05:12 -07:00
Mouse Reeve
ecf489b0bd
Merge pull request #863 from mouse-reeve/edit-book-field-types
Uses date input type for publication date fields
2021-04-04 08:50:46 -07:00
Mouse Reeve
7dcbc14225
Merge pull request #866 from mouse-reeve/goal-page-book-link
Fixes goal page book link
2021-04-04 08:50:00 -07:00
Mouse Reeve
b3535d9a90 Hides disabled pagination links for screenreaders 2021-04-04 08:42:01 -07:00
Fabien Basmaison
485b0fa0f3 Simplify rating form:
- Create a snippet to regroup similar code.
- Reduce and document tricky logic of CSS.
- Add i18n strings.
2021-04-04 15:08:42 +02:00
Mouse Reeve
74ca54d8d6 Fixes goal page book link 2021-04-03 20:55:44 -07:00
Mouse Reeve
d5643047e1 hidden checkbox should always be hidden 2021-04-03 15:49:27 -07:00
Mouse Reeve
ffb7f8f7ce Populate redraft form 2021-04-03 15:47:47 -07:00
Mouse Reeve
6ed74e6f60 Merge branch 'zrem' into delete-and-redraft 2021-04-03 14:59:29 -07:00
Mouse Reeve
3dee60e9e5 Uses correct redis remove activity type 2021-04-03 14:56:56 -07:00
Mouse Reeve
2a4fc8fb9a Adds model-to-form helper for statuses 2021-04-03 14:55:13 -07:00
Mouse Reeve
4cf9bca5aa Adds compose view 2021-04-03 14:32:34 -07:00
Mouse Reeve
dae31459e4 Show correct book when url param is provided 2021-04-03 13:56:41 -07:00
Mouse Reeve
029913de32 Logic for rendering a particular compose tab server-side 2021-04-03 13:12:55 -07:00
Mouse Reeve
fb900d58cd Names status urls 2021-04-03 12:38:12 -07:00
Mouse Reeve
8711a2eba5 Adds url path 2021-04-03 12:31:28 -07:00
Mouse Reeve
c5b2489330 Adds start of redraft view 2021-04-03 12:30:18 -07:00
Mouse Reeve
3ffe8a2ffb Uses date input type for publication date fields 2021-04-03 12:10:21 -07:00
Mouse Reeve
8d7527dee3 CSS linter fixes 2021-04-03 11:59:14 -07:00
Mouse Reeve
3cb91098e6 Valid html solution to disabling pagination links 2021-04-03 11:54:15 -07:00
Mouse Reeve
8faec714bb Safely return unread count when key is unset 2021-04-03 11:39:29 -07:00
Mouse Reeve
b9514ec81f Python formatting 2021-04-03 11:11:29 -07:00
Mouse Reeve
44e87c01ab Another place where redis may be called unnecessarily 2021-04-03 11:07:08 -07:00
Mouse Reeve
a913524991 Fixes redis call so tests don't fail 2021-04-03 10:56:53 -07:00
Mouse Reeve
880323e838 Python format 2021-04-02 17:18:04 -07:00
Mouse Reeve
1d525d49cb Use sorted set for activitystreams 2021-04-02 10:44:30 -07:00
Mouse Reeve
bb9e49c8fa Show disabled placeholders in pagination 2021-04-02 09:54:32 -07:00
Mouse Reeve
bfacfbb09a
Merge pull request #852 from mouse-reeve/optional-outbox
Makes outbox an optional field on the user table
2021-04-02 07:56:55 -07:00
Mouse Reeve
9c8ce5f77d Makes followers an optional AP field 2021-04-02 07:38:37 -07:00
Mouse Reeve
6211e66a5e
Merge pull request #849 from mouse-reeve/ui-small-fixes
UI small fixes
2021-04-02 07:37:31 -07:00
Mouse Reeve
45d229d712 Makes outbox an optional field on the user table 2021-04-02 07:35:56 -07:00
Mouse Reeve
2174ea11ec Makes user to_activity serializer args consistent 2021-04-02 07:33:36 -07:00
Mouse Reeve
ae1ebecc76 Fixes tests for suggested/annotated users 2021-04-02 07:31:11 -07:00
Mouse Reeve
e84a07430c Fixes books get started view error 2021-04-02 07:11:35 -07:00
Mouse Reeve
29792080a9 Don't create notifications when deleting statuses 2021-04-01 20:40:28 -07:00
Mouse Reeve
de16dd75c6 Python formatting 2021-04-01 20:30:50 -07:00
Mouse Reeve
86b519b844 Uses translates pages snippet for progress note on statuses 2021-04-01 20:28:08 -07:00
Mouse Reeve
fdfbf29744 i18n for "page x of y" 2021-04-01 20:22:42 -07:00
Mouse Reeve
34a32032c9 Align suggested users when there are fewer than 5 2021-04-01 20:01:09 -07:00
Mouse Reeve
7121b74a6e Helper for suggested users panel 2021-04-01 19:56:53 -07:00
Mouse Reeve
732c7a190b Don't show pending folloq requests in suggestions 2021-04-01 19:51:29 -07:00
Mouse Reeve
15711bdae2 Fixes display of empty cell in invites table 2021-04-01 19:45:38 -07:00
Mouse Reeve
265c2f8d9d Show current shelf in move menu 2021-04-01 19:41:01 -07:00
Mouse Reeve
97192d3296 Changes orientation of move book menu on shelf page 2021-04-01 19:33:46 -07:00
Mouse Reeve
642c41353e Removes redundant link to profile from dropdown 2021-04-01 19:25:37 -07:00
Mouse Reeve
35e6c6aa03
Merge pull request #848 from mouse-reeve/invite-info
Show accepter in invite request view
2021-04-01 18:07:45 -07:00
Mouse Reeve
16066e8340
Merge pull request #847 from mouse-reeve/sort-filter-interactions
Sort and filter mutually respect each other
2021-04-01 18:01:43 -07:00
Mouse Reeve
b9bff31562 Show accepter in invite request view 2021-04-01 18:00:39 -07:00
Mouse Reeve
62bd744b69 Sort and filter mutually respect each other 2021-04-01 17:38:53 -07:00
Mouse Reeve
14353f0de7
Merge pull request #846 from mouse-reeve/track-invite-use
Associate users with their invites
2021-04-01 17:33:20 -07:00
Mouse Reeve
634509a7f3 Associate users with their invites 2021-04-01 17:20:02 -07:00
Mouse Reeve
8ea60c66a3 Create connectors to federated bookwyrm servers
This got messed up when I refactored how connectors work! Poor
bookwyrm.social doesn't have a wyrms.de connector, but this will fix
that.
2021-04-01 17:02:45 -07:00
Mouse Reeve
ec8eb01a0f Adds missing templates 2021-04-01 14:36:18 -07:00
Mouse Reeve
fc31b3e0b0 Fixes invite requests page with no filters 2021-04-01 14:22:01 -07:00
Mouse Reeve
b62989b5a8 Adds invite request filters 2021-04-01 14:14:17 -07:00
Mouse Reeve
8039917b89 Preserve get params on invite send 2021-04-01 13:56:24 -07:00
Mouse Reeve
b5e98e0bdf Make invite requests sort-able 2021-04-01 13:41:08 -07:00
Mouse Reeve
a952d59eb8 Fixes translation on modal close labels 2021-04-01 13:15:21 -07:00
Mouse Reeve
6541de4ba1 Keep book view columns in mobile 2021-04-01 13:02:41 -07:00
Mouse Reeve
b17caa84cd Fixes form default value in get started profile view 2021-04-01 12:54:00 -07:00
Mouse Reeve
bd0c0ff2a2 Changes the header copy 2021-04-01 12:46:38 -07:00
Mouse Reeve
f949d08034 Wording consistency and locales compiled for getting started views 2021-04-01 12:23:13 -07:00
Mouse Reeve
3b725fab63
Merge pull request #839 from mouse-reeve/onboarding
Get started flow for new users
2021-04-01 10:23:04 -07:00
Mouse Reeve
1e75674f7b Fixes user view 2021-04-01 09:57:50 -07:00
Mouse Reeve
ac8e68ce2c Python formatting 2021-04-01 09:48:13 -07:00
Mouse Reeve
493b04d91d
Merge pull request #841 from mouse-reeve/shelf-error
Shelf page 500s where it should 404
2021-04-01 09:47:29 -07:00
Mouse Reeve
bb5aec18f1 Cleans up ui navigation 2021-04-01 09:46:18 -07:00
Mouse Reeve
19c2c7f67c test get started user view with query 2021-04-01 09:39:57 -07:00
Mouse Reeve
fa17d9018f Adds user search to get started view 2021-04-01 09:39:05 -07:00
Mouse Reeve
776f1768d9 Updates get started users template 2021-04-01 09:30:15 -07:00
Mouse Reeve
5c10bdab7c Adds breadcrumbs 2021-04-01 09:22:43 -07:00
Mouse Reeve
ed127f4e07 Save and continue from get started books view 2021-04-01 09:13:10 -07:00
Mouse Reeve
e2388d8f67 Makes user profile view editable 2021-04-01 08:38:42 -07:00
Mouse Reeve
31b7d267a4 Adds initial view tests 2021-04-01 08:22:17 -07:00
Mouse Reeve
c9fdec33c4 Display tweaks 2021-04-01 08:20:43 -07:00
Mouse Reeve
d5d4582ed1 Only show unshelved books 2021-04-01 08:12:38 -07:00
Mouse Reeve
4720481219 Fixes accessibility bugs 2021-04-01 08:02:42 -07:00
Mouse Reeve
fd6c1973cf Shelf page 500s where it should 404 2021-04-01 07:24:56 -07:00
Mouse Reeve
f2f700c7b8 Adds error messaging for invalid cover urls 2021-03-31 15:39:28 -07:00
Mouse Reeve
210cf4a702 Fixes shelf redirects 2021-03-31 15:03:07 -07:00
Mouse Reeve
c7863ec8f0 Fixes re-shelving books from all books view 2021-03-31 15:00:49 -07:00
Mouse Reeve
13e153412e Adds profile and user get started views 2021-03-31 14:53:15 -07:00
Mouse Reeve
59c54e0591 Creates get strated layout 2021-03-31 13:59:33 -07:00
Mouse Reeve
7483cb5919 Adds getting started find books view 2021-03-31 13:56:26 -07:00
Mouse Reeve
fba9e0fdb6
Merge pull request #837 from mouse-reeve/search-webfinger
Search fixes
2021-03-31 12:34:46 -07:00
Mouse Reeve
ca14d1789d
Merge pull request #836 from mouse-reeve/goal-covers
Simplifies reading goal progress covers view
2021-03-31 12:09:55 -07:00
Mouse Reeve
66b7a3d193 Avoids error on empty search query 2021-03-31 12:03:58 -07:00
Mouse Reeve
daf2fd1667 Perform webfinger search on all username syntaxes 2021-03-31 11:57:39 -07:00
Mouse Reeve
e78982b4c7 Simplifies reading goal progress covers view 2021-03-31 11:42:57 -07:00
Mouse Reeve
44c8f64239
Merge pull request #831 from arkhi/ci
Add linters for CSS and JS files
2021-03-31 11:33:38 -07:00
Mouse Reeve
c29382ba92
Merge pull request #834 from mouse-reeve/custom-shelf-identifier-fix
Fixes shelf remote ids
2021-03-31 11:26:42 -07:00
Mouse Reeve
1a787fd218 Soft removal of tags feature 2021-03-31 11:11:15 -07:00
Mouse Reeve
32bd426999 Fixes shelf remote ids 2021-03-31 11:04:20 -07:00
Mouse Reeve
ad2b938b4c Removes edit button from all books view 2021-03-31 10:36:10 -07:00
Mouse Reeve
f89e94b0c0 Adds privacy to fake shelf 2021-03-31 10:32:50 -07:00
Mouse Reeve
a670c8d366 Adds "all books" view" 2021-03-31 10:25:15 -07:00
Mouse Reeve
2fd917a6cc Updates test 2021-03-31 10:24:23 -07:00
Mouse Reeve
e81de08e7f Missed a url 2021-03-31 09:54:52 -07:00
Mouse Reeve
ab78da735f Adds books page header snippet 2021-03-31 09:50:40 -07:00
Mouse Reeve
f8ce9b0956 Backwards compatibility with "shelf" urls 2021-03-31 09:50:16 -07:00
Mouse Reeve
4a490d25a8 CHanges urls from shelves to books 2021-03-31 09:34:16 -07:00
Mouse Reeve
83e4ec00f9 Renames "shelves" in the UI to "books"
Still haven't figure out the create/edit wording tho
2021-03-31 09:22:23 -07:00
Fabien Basmaison
53f03457cc Add linter for JS files with basic recommended rules:
- Add Github Action.
- Fix JS files to match rules; mostly `globals` and `exported`.
2021-03-31 17:07:28 +02:00
Fabien Basmaison
cc01105bf0 Add linter for CSS files:
- Add Github Action.
- Update .gitignore.
- Add .stylelintignore for vendor related files.
- Fix format.css to match rules (includes hacks with @todo).
2021-03-31 16:17:05 +02:00
Mouse Reeve
8b9b70d9cd
Merge pull request #829 from mouse-reeve/status-404s
Handle invalid status urls with 404
2021-03-30 11:01:05 -07:00
Mouse Reeve
0365a57307 Handle invalid status urls with 404 2021-03-30 10:46:02 -07:00
Mouse Reeve
daea57f91c Updates python formatting 2021-03-30 10:31:23 -07:00
Mouse Reeve
f7b0a282a7 Set updated date on list when item is added 2021-03-30 10:28:50 -07:00
Mouse Reeve
9b949d9845 Merges display of lists to show all
Rather than separating out "your lists"
2021-03-30 10:19:51 -07:00
Mouse Reeve
b16f95c8cd Python formatting 2021-03-30 09:50:51 -07:00
Mouse Reeve
047e827382 Cleans up markup on import page 2021-03-30 09:30:25 -07:00
Mouse Reeve
59ebcc62ee Adds import retry test 2021-03-30 09:24:23 -07:00
Mouse Reeve
5deb7d8bba Updates librarthing importer tests 2021-03-30 09:13:41 -07:00
Mouse Reeve
c64fc79431 Updates goodreads tests 2021-03-30 09:09:28 -07:00
Mouse Reeve
754ccaedd6 Move importers into module 2021-03-30 09:03:57 -07:00
Mouse Reeve
1f0c4f86c2 Python formatting 2021-03-30 08:46:22 -07:00
Mouse Reeve
a54014f693 Fixes import retry 2021-03-30 08:44:17 -07:00
Mouse Reeve
4b325fedee Removes error views from init 2021-03-29 18:51:35 -07:00
Mouse Reeve
28f07f7729 Fixes error pages 2021-03-29 18:47:21 -07:00
Mouse Reeve
e86f160c53
Merge pull request #812 from SavinaRoja/357-tz-in-datetimes
357 Users set preferred timezone, used for readthroughs
2021-03-29 15:20:01 -07:00
Mouse Reeve
47cf1f3b22
Merge pull request #825 from mouse-reeve/misc-server-errors
Misc server errors
2021-03-29 15:09:42 -07:00
Mouse Reeve
4b445c3242 Fixes indentation on host-meta xml 2021-03-29 14:55:23 -07:00
Mouse Reeve
6bf3d9dcd8 Adds hosts-meta path 2021-03-29 14:36:24 -07:00
Mouse Reeve
2722050ee2 Python formatting 2021-03-29 14:20:51 -07:00
Mouse Reeve
4115edad6e Adds robots.txt 2021-03-29 14:12:15 -07:00
Mouse Reeve
662ddf44b9 Avoid error when request Accept header is not set 2021-03-29 14:12:07 -07:00
Mouse Reeve
3be420944e Fixes display of dms pagination 2021-03-29 13:51:06 -07:00
Mouse Reeve
84dfa69695 Fixes invite flow 2021-03-29 13:28:30 -07:00
Mouse Reeve
c284a5e409 Fixes error sending dm 2021-03-29 13:07:22 -07:00
Mouse Reeve
cc00a66b90
Merge pull request #800 from SavinaRoja/716-book-multiple-shelves
716 books can be on multiple shelves, but only on one shelf for reading status
2021-03-29 12:59:49 -07:00
Mouse Reeve
1e1d07e4e1
Merge pull request #821 from mouse-reeve/shelve-buttons
Unshelve option in shelve button menu
2021-03-29 12:50:38 -07:00
Mouse Reeve
794b47d119 Unshelve option in shelve button menu 2021-03-29 12:27:12 -07:00
Mouse Reeve
04ca6de968 Paginates editions page 2021-03-29 12:13:05 -07:00
Mouse Reeve
e9f202b9e0 Paginate shelf page
Also removes some fields from the table
2021-03-29 11:48:19 -07:00
Mouse Reeve
f6ad069f74 Fixes tests 2021-03-29 11:38:14 -07:00
Mouse Reeve
0a4e755516 Fixes setting lower() on NoneType 2021-03-29 11:27:51 -07:00
Mouse Reeve
f8a321c74d Fixes labels
Good bot
2021-03-29 11:16:34 -07:00
Mouse Reeve
9c798a4feb Filter editions 2021-03-29 11:14:34 -07:00
Mouse Reeve
769ba6466c Adds filters ui to editions page 2021-03-29 10:58:46 -07:00
Mouse Reeve
b13e8d75cd Introduces filters snippets 2021-03-29 10:39:13 -07:00
Mouse Reeve
7c9518afa6 Adds info to editions page 2021-03-29 10:21:48 -07:00
Mouse Reeve
87cf411a1a
Merge pull request #817 from mouse-reeve/invite-emails
Fixes sending invite emails
2021-03-29 09:09:19 -07:00
Mouse Reeve
f63b6fb325 Fixes sending invite emails
Corrects the email sender and avoids integrity error on saves
2021-03-29 08:33:12 -07:00
Mouse Reeve
b58ed244b0 Preserve request.GET params in pagination 2021-03-29 08:19:17 -07:00
Pablo Barton
765e6b542f adding middleware and use in readthrough template 2021-03-29 08:20:35 -04:00
Mouse Reeve
621c0ea15a Fixes password reset 2021-03-28 18:53:49 -07:00
Pablo Barton
224c7e4f0e consistency in style for bulma 2021-03-28 21:23:32 -04:00
Mouse Reeve
12f6c2abb2 Don't erase entire stream when new status is added
omg
2021-03-28 17:53:52 -07:00
Pablo Barton
b0dc5f3f93 357 Users set preferred timezone, used for readthroughs 2021-03-28 19:16:43 -04:00
Mouse Reeve
e3abc96266
Merge pull request #811 from mouse-reeve/user-admin
User admin view
2021-03-28 14:48:27 -07:00
Mouse Reeve
9a0568dabc Adds tests for server and users admin views 2021-03-28 14:36:57 -07:00
Mouse Reeve
f491f03ffa Adds filtering by server on users page 2021-03-28 14:27:56 -07:00
Mouse Reeve
43fc940a07 Adds user admin view 2021-03-28 14:20:49 -07:00
Mouse Reeve
f547df5940
Merge pull request #810 from mouse-reeve/server-details
Adds detail page for federated servers
2021-03-28 14:20:29 -07:00
Mouse Reeve
5416bb10fd Python formatting 2021-03-28 13:41:25 -07:00
Mouse Reeve
7373a7e8c4 Sort federated servers list 2021-03-28 13:36:05 -07:00
Mouse Reeve
158d2c5231 Paginates federated server list 2021-03-28 13:08:24 -07:00
Mouse Reeve
62cbfe0fac Filter reports by server 2021-03-28 13:03:24 -07:00
Mouse Reeve
96ea2b4477 Adds detail page for federated servers 2021-03-28 12:47:30 -07:00
Mouse Reeve
1e8444a622
Merge pull request #809 from mouse-reeve/stream-commands
Separates erase and populate stream commands
2021-03-28 12:04:51 -07:00
Mouse Reeve
713ec8bd69 Python whitespace formatting 2021-03-28 11:51:02 -07:00
Mouse Reeve
5441d4db09 Separates erase and populate stream comands 2021-03-28 11:38:39 -07:00
Mouse Reeve
ecf5ee4afc margin between quote and attribution 2021-03-28 11:30:53 -07:00
Mouse Reeve
63b319e286 Space between shelve button and isbn on book page 2021-03-28 11:27:09 -07:00
Mouse Reeve
f0876b57c5 Fixes change shelf menu display on shelf page 2021-03-28 11:25:05 -07:00
Mouse Reeve
323c72002b Fixes shelve menu display on book page 2021-03-28 11:18:01 -07:00
Mouse Reeve
71f6e0d330 Show invite request count 2021-03-28 11:15:26 -07:00
Mouse Reeve
6f99947cac Fixes python formatting 2021-03-28 10:45:46 -07:00
Mouse Reeve
c42719ee1e Fixes wildly high similiarity metrics in directory 2021-03-28 10:32:58 -07:00
Mouse Reeve
ef057dd573
Merge pull request #805 from mouse-reeve/shared-books
Adds shared books as a metric for recommending follows
2021-03-27 11:39:11 -07:00
Mouse Reeve
81925b11cf Removes duplicate patch annotation 2021-03-27 10:38:07 -07:00
Mouse Reeve
c398d8a870 Python formatting 2021-03-27 10:00:32 -07:00
Mouse Reeve
1341341a4f Adds test for annotated user helper 2021-03-27 09:56:46 -07:00
Mouse Reeve
25a3a7763c Adds books in common as a recommendation metric 2021-03-27 08:15:39 -07:00
Mouse Reeve
0ef33d2acb Adds shared books as a metric for recommending follows 2021-03-27 07:36:14 -07:00
Mouse Reeve
c8118c9bf4 Updates activity streams tests 2021-03-26 12:52:04 -07:00
Mouse Reeve
ee067b7d65 Fixes error adding unlisted statuses 2021-03-26 12:09:37 -07:00
Mouse Reeve
2490aa07aa Python formtting 2021-03-26 10:35:37 -07:00
Mouse Reeve
b0e1095fe6 Adds "suggested follows" panel 2021-03-26 10:32:42 -07:00
Pablo Barton
daf69d2375 716 books can be on multiple shelves, but only on one shelf for reading status 2021-03-26 08:21:42 -04:00
Mouse Reeve
2c9efd1ba6 BookWyrm users is the default directory filter 2021-03-25 17:00:16 -07:00
Mouse Reeve
6552dcefe8 Adds focus to filters toggle 2021-03-25 16:42:50 -07:00
Mouse Reeve
b94def80b0 Adds localstorage hide option for directory prompt 2021-03-25 16:32:15 -07:00
Mouse Reeve
2e0386aed8 Fixes missing label for select 2021-03-25 13:44:26 -07:00
Mouse Reeve
f9e5bdebc6 Adds clear filters link 2021-03-25 13:39:19 -07:00
Mouse Reeve
53af667698 Adds filtering 2021-03-25 13:36:35 -07:00
Mouse Reeve
c4901b9c4e Python formatting 2021-03-25 12:04:26 -07:00
Mouse Reeve
e6e16f61d3 Adds filters ui 2021-03-25 10:58:00 -07:00
Mouse Reeve
cdcef6ccb3 Simplifies wording for directory opt-in 2021-03-25 10:24:22 -07:00
Mouse Reeve
7711d43380 Display tweaks to make directory card size more consistent 2021-03-25 08:43:53 -07:00
Mouse Reeve
6548291571 Adds join directory insert 2021-03-25 08:39:45 -07:00
Mouse Reeve
ae6c2b6375 Updates tests 2021-03-24 14:19:12 -07:00
Mouse Reeve
9acb8e53d8 Adds privacy fields to boost activities 2021-03-24 13:35:49 -07:00
Mouse Reeve
3fe3b0b2d5 Adds published date field to boost activity 2021-03-24 13:25:00 -07:00
Mouse Reeve
d8c83fa31c Return activities for existing objs in resolve_remote_id 2021-03-24 12:58:39 -07:00
Mouse Reeve
28dc67bf5c Fixes ignore test for valid remote statuses 2021-03-24 12:37:42 -07:00
Mouse Reeve
81bd3f5be8 Tests not showing notifications for self boosts 2021-03-24 12:13:00 -07:00
Mouse Reeve
61a773cbe2 Python formatting 2021-03-24 11:01:23 -07:00
Mouse Reeve
c1e0471d1a Don't use html in article names for mastodon 2021-03-24 10:57:17 -07:00