Commit graph

1366 commits

Author SHA1 Message Date
Mouse Reeve
3497a5c7e4
Merge pull request #614 from mouse-reeve/expand-data-error
Catch expand book data load error
2021-02-10 19:19:14 -08:00
Mouse Reeve
5f7466e92d Fixes bugs in how lists/shelves federate Adds 2021-02-10 19:17:16 -08:00
Mouse Reeve
2a65aa7cc7 More tests 2021-02-10 18:24:09 -08:00
Mouse Reeve
b898f263b7 Another test case for the user view 2021-02-10 18:01:11 -08:00
Mouse Reeve
2a069adc8a Fixes updating lists 2021-02-10 18:00:56 -08:00
Mouse Reeve
41cef9bdfd Catch expand book data load error 2021-02-10 17:54:49 -08:00
Mouse Reeve
3aa7f8afe0 Safer migration runpython function 2021-02-10 17:30:26 -08:00
Mouse Reeve
e918ddf526
Merge pull request #611 from mouse-reeve/default-edition
Don't set default edition if it's already set
2021-02-10 17:23:56 -08:00
Mouse Reeve
107a804230
Merge pull request #610 from mouse-reeve/cover-links
Makes covers clickable in places they aren't
2021-02-10 16:58:04 -08:00
Mouse Reeve
4c2ec43fce Don't set default edition if it's already set 2021-02-10 16:53:51 -08:00
Mouse Reeve
11504e9cef Makes covers clickable in places they aren't
Fixes #598
2021-02-10 16:45:53 -08:00
Mouse Reeve
5e2555dc0e
Merge pull request #609 from mouse-reeve/model-notifications
Refactors generating notifications
2021-02-10 16:45:02 -08:00
Mouse Reeve
848454c50f Fixes templatetag test 2021-02-10 16:31:41 -08:00
Mouse Reeve
b774e946f3 fixes avoiding mention and reply notification 2021-02-10 16:28:50 -08:00
Mouse Reeve
e6b9985f95 Don't need a helper function for creating notifications anymore 2021-02-10 16:23:49 -08:00
Mouse Reeve
e0cfb009e4 Deduplicate notifications in notification model 2021-02-10 16:21:29 -08:00
Mouse Reeve
d9e65aa363 Notifications for follow requests 2021-02-10 16:06:50 -08:00
Mouse Reeve
ac57db5375 Boost notifications 2021-02-10 16:00:02 -08:00
Mouse Reeve
6f748a6a24 Fixes status notifications 2021-02-10 15:18:20 -08:00
Mouse Reeve
74d39c3e24 Move fav notifications to model 2021-02-10 14:31:39 -08:00
Mouse Reeve
106d442a0b Moves import complete notification to model 2021-02-10 14:18:55 -08:00
Mouse Reeve
ca08bfa6f5 Remove duplicate notification generation code in incoming 2021-02-10 14:14:33 -08:00
Mouse Reeve
13d8ccb016 Moves status notifications into model 2021-02-10 14:13:36 -08:00
Mouse Reeve
ed56398667
Merge pull request #607 from mouse-reeve/notifications
Notifications for list additions
2021-02-10 14:08:46 -08:00
Mouse Reeve
b22e56333f Gracefully handle list duplicate additions 2021-02-10 13:50:20 -08:00
Mouse Reeve
8842db3c1b Create notification when adding or suggesting a book to a list 2021-02-10 13:46:56 -08:00
Mouse Reeve
2bf4b17113 Adds notification type referencing lists 2021-02-10 13:15:12 -08:00
Mouse Reeve
88b2504402 Fixes broadcasting on generated notes 2021-02-10 13:09:04 -08:00
Mouse Reeve
222dc118af
Merge pull request #604 from mouse-reeve/link-format-bug
Link format bug
2021-02-10 12:45:04 -08:00
Mouse Reeve
930d9429ef User save() override instead of signal to set user fields
this gets gnarly because of transaction.atomic, so it bears further
testing
2021-02-10 12:43:53 -08:00
Mouse Reeve
475d0cbb26
Merge pull request #603 from mouse-reeve/rss-link
Adds link to rss feed from user page
2021-02-10 12:29:23 -08:00
Mouse Reeve
2f42ec5e37 Fixes execution order for formatting content body for statuses 2021-02-10 12:27:09 -08:00
Mouse Reeve
a61c06c4cc
Merge pull request #601 from mouse-reeve/user-tabs
Only show tabs on user page as appropriate
2021-02-10 12:16:23 -08:00
Mouse Reeve
f75acc385d Adds link to rss feed from user page 2021-02-10 12:13:07 -08:00
Mouse Reeve
5565523d85 Tests bug in link formatting 2021-02-10 12:07:50 -08:00
Mouse Reeve
f46a708f7e Handle connector exceptions with sketchy book data from OL 2021-02-10 12:00:16 -08:00
Mouse Reeve
9a564a846a Better error handling and loggin in get_data 2021-02-10 11:56:08 -08:00
Mouse Reeve
d29257e1ff Only show tabs on user page as appropriate 2021-02-10 11:48:49 -08:00
Mouse Reeve
759a384852
Merge pull request #592 from mouse-reeve/local-paths
Fixes local paths with remote users
2021-02-10 11:38:54 -08:00
Mouse Reeve
7c5b9f563f Fixes double slash in path 2021-02-10 11:11:55 -08:00
Mouse Reeve
96921e4be6
Merge pull request #574 from mouse-reeve/shelve-buttons
Shelve buttons
2021-02-10 09:01:33 -08:00
Mouse Reeve
486b660351
Merge pull request #594 from mouse-reeve/broadcast-fixes
Refactors broadcasting
2021-02-10 08:52:15 -08:00
Mouse Reeve
9c3bec23b8 More mocks in tests 2021-02-09 17:26:27 -08:00
Mouse Reeve
485de039cf
Merge branch 'main' into shelve-buttons 2021-02-09 13:28:00 -08:00
Mouse Reeve
104e4d7cf7 Patch setup in status tests 2021-02-09 13:06:59 -08:00
Mouse Reeve
1d7cea2789 fixes tests with broadcast kwarg 2021-02-09 12:48:46 -08:00
Mouse Reeve
25e8b3ddeb Send activitypub pure mode activities when possible 2021-02-09 12:23:59 -08:00
Mouse Reeve
0682117a06 delete and re-add shelf books in switch edition 2021-02-09 12:07:45 -08:00
Mouse Reeve
8fb08e09fd Filter pending books from list display 2021-02-09 11:40:35 -08:00
Mouse Reeve
9561bb2294 Adds reverse runpython for migration 2021-02-09 11:21:43 -08:00
Mouse Reeve
e998ac28da Fixes broadcasting created status that needs second save 2021-02-09 11:13:02 -08:00
Mouse Reeve
0a554b002d Fixes test for handling direct recipients 2021-02-09 10:43:40 -08:00
Mouse Reeve
76491e4e35 Back off notification polling 2021-02-09 10:38:43 -08:00
Mouse Reeve
4ad51e62c6 Use recipients model attribute in broadcast 2021-02-09 10:26:04 -08:00
Mouse Reeve
0fd2885e7e Tests broadcasting from list views more thoroughly 2021-02-09 09:41:48 -08:00
Mouse Reeve
76e90cb3f6 Fixes remaining test patches 2021-02-08 09:38:28 -08:00
Mouse Reeve
80241e59a7 adds mocks to templatetags tests 2021-02-07 19:17:28 -08:00
Mouse Reeve
2fcfebd4e5 fixes broadcasting for incoming activities 2021-02-07 16:23:20 -08:00
Mouse Reeve
bf6aca5122 fixes mocks on tests 2021-02-07 11:29:24 -08:00
Mouse Reeve
ad7a045582 Makes shelbook user required 2021-02-07 11:29:13 -08:00
Mouse Reeve
ee2b656b08 fixes change password view 2021-02-06 22:37:40 -08:00
Mouse Reeve
6b10e487b6 adding mocks for views tests 2021-02-06 22:37:19 -08:00
Mouse Reeve
272685f27d sketchy fix for boost broadcasting 2021-02-06 21:30:43 -08:00
Mouse Reeve
63fe9777e2 Fixes shelf model tests 2021-02-06 21:02:58 -08:00
Mouse Reeve
b02a2c1aa4 broadcasting for follow, accept, and reject 2021-02-06 19:18:02 -08:00
Mouse Reeve
ffd0759f6f Fixes field and lists tests 2021-02-06 16:13:59 -08:00
Mouse Reeve
f917079c0b Adds update tests for objectmixin 2021-02-06 13:48:02 -08:00
Mouse Reeve
d477b6d3f3 tests create and delete activity for objectmixin 2021-02-06 13:43:09 -08:00
Mouse Reeve
3b17c0ed44 Fixes broadcast recipients with software constraint 2021-02-06 12:41:35 -08:00
Mouse Reeve
ff721896c0 Fixes call to mention_users 2021-02-06 12:06:45 -08:00
Mouse Reeve
c7c975d695 Use save method override instead of a signal
and gets the new test file working
2021-02-06 12:00:47 -08:00
Mouse Reeve
2ef777f87e Use activity type mixin 2021-02-04 14:36:57 -08:00
Mouse Reeve
7381536ad6 circular import issues and added_by migration 2021-02-04 14:27:26 -08:00
Mouse Reeve
5a3a6151a6 separate mixins for AP types 2021-02-04 13:22:27 -08:00
Mouse Reeve
42d80ce238 Remove explicit broadcast calls 2021-02-04 13:21:55 -08:00
Mouse Reeve
44996917c7 Activitypub model code in more files 2021-02-04 12:36:39 -08:00
Mouse Reeve
feb8190d8f Created mixin for ordered collection items 2021-02-04 12:25:07 -08:00
Mouse Reeve
b015d6c9a1 Fixes hiding import book option in search for anonymous users 2021-02-04 11:46:42 -08:00
Mouse Reeve
12e0e6a1f0 Broadcast implicitly from model save 2021-02-04 11:44:31 -08:00
Mouse Reeve
d633826a20 full path in user-based remote id 2021-02-04 10:48:56 -08:00
Mouse Reeve
dfb5c396b0 Moves activitypub mixin to its own file 2021-02-04 10:47:18 -08:00
Mouse Reeve
582ebc0fe3 Fixes local paths with remote users
Fixes #590
2021-02-04 10:31:08 -08:00
Mouse Reeve
ae0034e678 Fixes mismatched html tags 2021-02-03 18:09:07 -08:00
Mouse Reeve
736f28e254 Fixes user tabs linking to logged in user 2021-02-03 17:02:04 -08:00
Mouse Reeve
c03dcaf842 Distinct lists 2021-02-03 16:49:42 -08:00
Mouse Reeve
3f2f27bcac Fixes logged out list view 2021-02-03 16:40:29 -08:00
Mouse Reeve
39d31060e1 Sort list preview by most recently added 2021-02-03 16:11:42 -08:00
Mouse Reeve
476d65552e Hide other people's empty lists from lists page 2021-02-03 16:01:49 -08:00
Mouse Reeve
7af1f6c19d
Merge pull request #585 from mouse-reeve/inline-form
Inline form
2021-02-03 12:56:08 -08:00
Mouse Reeve
1dc02cd5fa
Merge pull request #576 from mouse-reeve/remove-editions
Clear unused editions with poor metadata
2021-02-03 12:55:27 -08:00
Mouse Reeve
7faf639758 Fixes openlibrary connector test 2021-02-03 12:52:13 -08:00
Mouse Reeve
502e235e59 Edit shelf form using component 2021-02-03 12:45:01 -08:00
Mouse Reeve
bcbcdd5b3b Uses component for create shelf form 2021-02-03 12:36:20 -08:00
Mouse Reeve
6ce4be7406 Adds inline form component 2021-02-03 12:25:33 -08:00
Mouse Reeve
0ba7c60e83
Merge pull request #577 from mouse-reeve/lists
Lists
2021-02-03 10:57:19 -08:00
Mouse Reeve
65f3333edb line length fix 2021-02-03 10:42:02 -08:00
Mouse Reeve
1b6dd666d9 Handling incoming list Creates and Updates 2021-02-03 10:34:27 -08:00
Mouse Reeve
627b2ae90a Set header when opening forms 2021-02-02 15:46:58 -08:00
Mouse Reeve
7aa9204cd2 Fixes missing privacy field for to-read statuses 2021-02-02 15:25:34 -08:00
Mouse Reeve
18ef041a25 Fixes broadcast task patch on shelves tests 2021-02-02 15:19:44 -08:00
Mouse Reeve
b8dc307a6b Fixes mocking broadcast task in lists tests 2021-02-02 15:14:33 -08:00
Mouse Reeve
bbc05578fb Fixes tests 2021-02-02 14:59:40 -08:00
Mouse Reeve
6b07911a01 Patches broadcasts in list and shelf tests 2021-02-02 12:17:21 -08:00
Mouse Reeve
3f9bb97693
Merge pull request #583 from mouse-reeve/level
adds icons to discover page
2021-02-02 12:10:59 -08:00
Mouse Reeve
f42a5444e5 User ordered collection subtype for shelves 2021-02-02 11:17:31 -08:00
Mouse Reeve
e61d8b7638 Serialize lists as custom activitypub object 2021-02-02 11:13:15 -08:00
Mouse Reeve
d37f8f68d8 Adds user lists template 2021-02-02 10:13:59 -08:00
Mouse Reeve
05c00b9eca Adds cute lil icons to discover page 2021-02-02 10:13:35 -08:00
Mouse Reeve
d2fc3febb0 Show reading activity panel when no readthroughs exist 2021-02-02 09:44:29 -08:00
Mouse Reeve
23ce639e5c migration to change privacy field type 2021-02-02 09:41:24 -08:00
Mouse Reeve
e53b4e57fa Federating lists and shelves 2021-02-02 09:37:46 -08:00
Mouse Reeve
c7914d1394 Fixes search tests 2021-02-01 13:06:06 -08:00
Mouse Reeve
3e3b21c46a Fixes ap serialization of list lists 2021-02-01 12:03:11 -08:00
Mouse Reeve
e865530142 Search lists 2021-02-01 11:50:47 -08:00
Mouse Reeve
ec7a9f68c2 Adds tabs to user profile page 2021-02-01 11:34:08 -08:00
Mouse Reeve
d7c32cc314 Paginates lists view 2021-01-31 17:34:06 -08:00
Mouse Reeve
6e0d258c97 Cards on list page 2021-01-31 14:03:51 -08:00
Mouse Reeve
fd9b98d443 Fixes logged out list view 2021-01-31 13:38:26 -08:00
Mouse Reeve
5939a72c81 More list models tests 2021-01-31 13:31:49 -08:00
Mouse Reeve
b9b5694165 Fixes bug in removing list item 2021-01-31 13:14:52 -08:00
Mouse Reeve
19b56c26f7 list views tests 2021-01-31 13:12:56 -08:00
Mouse Reeve
944503dde5 Use close button instead of cancel button on edit form 2021-01-31 12:36:53 -08:00
Mouse Reeve
697bcb0edb sidebar css class 2021-01-31 12:31:39 -08:00
Mouse Reeve
6824bdd5ed Fixes shelve menu display 2021-01-31 12:30:33 -08:00
Mouse Reeve
b17761cfc3 remove items from list 2021-01-31 12:15:38 -08:00
Mouse Reeve
47097c6b32 updates user rating tag 2021-01-31 12:10:10 -08:00
Mouse Reeve
13b38d40bb Curation view 2021-01-31 12:07:54 -08:00
Mouse Reeve
a6c5341ad1 curation ui 2021-01-31 11:45:16 -08:00
Mouse Reeve
846489e88e Only show approved list items 2021-01-31 11:21:50 -08:00
Mouse Reeve
a2e69d783d suggest button wording 2021-01-31 11:13:50 -08:00
Mouse Reeve
f15626b2cb Null state for search results 2021-01-31 11:13:05 -08:00
Mouse Reeve
6a68fe9475 Search for books to add to lists 2021-01-31 11:11:26 -08:00
Mouse Reeve
1e9189d43c Suggest recently edited books if we're out of user books 2021-01-31 10:56:40 -08:00
Mouse Reeve
1a4c53da2c Only show delete button to appropriate users 2021-01-31 10:44:46 -08:00
Mouse Reeve
acd922970a Add to and edit lists 2021-01-31 10:34:25 -08:00
Mouse Reeve
4883231347 Fixes model test 2021-01-31 09:08:06 -08:00
Mouse Reeve
d73a1b4ec1 handles list privacy in display 2021-01-31 08:41:11 -08:00
Mouse Reeve
69c2b192a4 Adds list creation form 2021-01-31 08:08:52 -08:00
Mouse Reeve
91483b56f5 Adds views tests 2021-01-31 07:09:03 -08:00
Mouse Reeve
8ef959ba73 Adds little icons, so cute 2021-01-31 06:52:18 -08:00
Mouse Reeve
0815b36ec9 Adds basic view and template files 2021-01-30 21:42:47 -08:00
Mouse Reeve
af65509527 stub test for list model 2021-01-30 21:03:50 -08:00
Mouse Reeve
fe088f21fb Model and migration for lists 2021-01-30 21:00:36 -08:00
Mouse Reeve
45ac13a7ff Clear unused editions with poor metadata 2021-01-30 18:30:07 -08:00
Mouse Reeve
a36de9026b
Merge pull request #575 from mouse-reeve/openlibrary-editions
Ignore openlibrary editions with little to no metadata
2021-01-30 17:49:54 -08:00
Mouse Reeve
9833f5a03d Tests creating editions 2021-01-30 17:44:42 -08:00
Mouse Reeve
661d49d9cc Ignore openlibrary editions with little to no metadata
Also fixes the isbn problem
2021-01-30 17:19:01 -08:00
Mouse Reeve
645e85050c Group modals with shelve button 2021-01-30 16:08:29 -08:00
Mouse Reeve
6ff70d0d2c directory for shelve button templates 2021-01-30 15:59:50 -08:00
Mouse Reeve
765a6a1878 uncomment error handling for bad shelf id 2021-01-30 15:56:22 -08:00
Mouse Reeve
74d37c84be Don't show the main button in the dropdown 2021-01-30 15:49:43 -08:00
Mouse Reeve
0c723eb550 Fixes shelf page template path bug 2021-01-30 15:49:43 -08:00
Mouse Reeve
7afab352b1 Fixes incorrect tempalte path in threaded status page 2021-01-30 15:49:43 -08:00
Mouse Reeve
9b326f7321 Give user control over "want to read" posts 2021-01-30 15:18:38 -08:00
Mouse Reeve
e5fd14b206 Confirmation modal for to-read shelve action 2021-01-30 13:11:43 -08:00
Mouse Reeve
b3bd6822b2 Make sure templates render rather than checking template paths 2021-01-30 12:30:03 -08:00
Mouse Reeve
ac4a178e83 Fixes shelf page template path bug 2021-01-30 12:03:50 -08:00
Mouse Reeve
37710144fa Adds options tempalte 2021-01-30 11:52:31 -08:00
Mouse Reeve
cd65ac7290 Fixes incorrect tempalte path in threaded status page 2021-01-30 11:46:15 -08:00
Mouse Reeve
e5746d6117 Menu list for shelf button options 2021-01-30 11:43:40 -08:00
Mouse Reeve
8add05d7fd Fixes incorrect display of reading progress 2021-01-29 18:06:17 -08:00
Mouse Reeve
9d3f48a1a9 Settings views tests 2021-01-29 17:06:10 -08:00
Mouse Reeve
d1ee26e282 list of federated servers for admin panel 2021-01-29 16:02:59 -08:00
Mouse Reeve
9db327a69e Edit view for site settings 2021-01-29 15:50:46 -08:00
Mouse Reeve
21aadf2920 Adds site settings view 2021-01-29 15:38:42 -08:00
Mouse Reeve
02c466e04a
Merge pull request #568 from mouse-reeve/send-dms
Compose window for dms
2021-01-29 14:23:06 -08:00
Mouse Reeve
93ef9e31ad Send message to a particular user 2021-01-29 11:44:04 -08:00
Mouse Reeve
779a5e0cbf Compose window for dms 2021-01-29 11:14:18 -08:00
Mouse Reeve
640db7e9e3 Fixes more tests for moved-around views 2021-01-29 10:47:47 -08:00
Mouse Reeve
bae54b6847 Shuffles tests around for feed views 2021-01-29 10:33:44 -08:00
Mouse Reeve
cc5fedb1d1 Fixes template paths in views 2021-01-29 10:29:21 -08:00
Mouse Reeve
b53ef73faf Feed templates 2021-01-29 10:25:31 -08:00
Mouse Reeve
932acc961f Fixes template paths in tests 2021-01-29 09:41:32 -08:00
Mouse Reeve
60721fd41e Fixes user layout 2021-01-29 09:29:59 -08:00
Mouse Reeve
9fa8ee3940 Groups profile settings templates 2021-01-29 09:28:00 -08:00
Mouse Reeve
24af288c52 Refactors user pages 2021-01-29 09:05:53 -08:00
Mouse Reeve
6ccf7841e1 Moves components out of snippets 2021-01-29 08:51:36 -08:00
Mouse Reeve
65db2e63ac
Merge pull request #566 from mouse-reeve/blockquote
Allows blockquote markdown
2021-01-29 08:18:05 -08:00
Mouse Reeve
e6a0e5f96c
Merge pull request #554 from bibliotechy/430-add-rss-support
First attempt at adding rss support
2021-01-29 08:09:32 -08:00
Mouse Reeve
68d00d590c Allows blockquote markdown 2021-01-29 08:00:19 -08:00
Chad Nelson
4274bf0508 Patch site settings so this can pass 2021-01-27 22:13:35 -05:00
Chad Nelson
9c2813545c Closer to some passing tests 2021-01-27 21:23:20 -05:00
Mouse Reeve
7d1c5fb0f2 Patches broadcast call in reading test 2021-01-27 11:01:36 -08:00
Mouse Reeve
c2d0c4b022 Adds missing init file for views tests
this is important!!
2021-01-27 09:31:11 -08:00
Mouse Reeve
b52aa5bee9 Fixes status tests 2021-01-27 09:31:01 -08:00
Mouse Reeve
1a54ed875b easier way to get user statuses queryset 2021-01-27 09:30:03 -08:00
Mouse Reeve
5377a8f187 Fixes reading view 2021-01-27 09:29:34 -08:00
Mouse Reeve
e2935b6364 Fixes shelve tests 2021-01-27 09:27:29 -08:00
Mouse Reeve
662cbf2da9
Merge pull request #555 from mouse-reeve/blocking
Blocking
2021-01-26 14:43:01 -08:00
Mouse Reeve
36486ca731 block/unblock view tests 2021-01-26 13:02:14 -08:00
Mouse Reeve
369b24f9ec null state for block page 2021-01-26 13:02:04 -08:00
Mouse Reeve
22e4138555 unblock 2021-01-26 13:00:36 -08:00
Mouse Reeve
acfc865d4e Adds blocked users view
also refactors the setting view
2021-01-26 10:01:50 -08:00
Mouse Reeve
3f011445e2 Hide user pages to blocked users 2021-01-26 08:31:55 -08:00
Mouse Reeve
12b95c6cd4
Merge pull request #558 from mouse-reeve/image-crop
Moves avatar crop into function and adds test
2021-01-26 08:24:52 -08:00
Mouse Reeve
681f5482fd Don't allow blocked users to access user page 2021-01-26 08:07:38 -08:00
Mouse Reeve
2a6a000e05 Moves avatar crop into function and adds test 2021-01-26 08:03:16 -08:00
Mouse Reeve
ac2ab2981f ui path to iniate blocks 2021-01-25 14:03:18 -08:00
Mouse Reeve
d994d8d3c8 Moves blocking side effects to model 2021-01-24 17:07:19 -08:00
Joel Bradshaw
ed83032330 Fix migration for if db has multiple empty emails
If the database has multiple users with an empty email column, this
migration will fail because multiple empty strings break the unique
constraint.

A fresh database won't have this problem because it won't have any
legacy users with empty strings instead of NULL, but for existing
databases we need to convert the empty strings to NULL so they don't run
awry of the unique constraint.
2021-01-24 16:39:26 -08:00