Commit graph

496 commits

Author SHA1 Message Date
Mouse Reeve
6b86bf32cd
Merge pull request #156 from cthulahoops/duplicate_reviews
Only import reviews if we're importing the book. (Avoid generating du…
2020-04-29 11:38:18 -07:00
Mouse Reeve
3f437069bd Prefer to only show default editions of works 2020-04-29 11:22:29 -07:00
Mouse Reeve
99adb2ef38 Mark default editions 2020-04-29 11:21:36 -07:00
Mouse Reeve
f7b8453594 Set author text when data is inherited from works 2020-04-29 11:08:51 -07:00
Mouse Reeve
e3525b13f5 Adds fulltext search of postgres 2020-04-29 10:57:20 -07:00
Mouse Reeve
6e218a85de Adds more fields to book data 2020-04-29 10:12:48 -07:00
Adam Kelly
62a3891ecf Only import reviews if we're importing the book. (Avoid generating duplicate reviews.) 2020-04-29 16:13:09 +01:00
Adam Kelly
aec8e5c536 Do some checks to make sure we've got a csv file on import.
Fixes #104.
2020-04-29 15:33:06 +01:00
Adam Kelly
64f9e12b1d Isbns aren't necessarily always unique. 2020-04-28 15:27:06 +01:00
Adam Kelly
9ffab814af Don't crash if we don't recognise the exclusive shelf. 2020-04-28 15:16:41 +01:00
Adam Kelly
543cc29ee1 Increase limit to 500 entries and warn about limit. 2020-04-28 14:59:48 +01:00
Mouse Reeve
4f9edae05a
Merge pull request #150 from cthulahoops/async_import
Async import
2020-04-27 10:15:43 -07:00
Adam Kelly
0b49d56707 Don't allow data source to change the primary key of an object. 2020-04-26 15:59:02 +01:00
Mouse Reeve
686d6328ae Adds alt text to book covers
Fixes #153
2020-04-25 12:21:44 -07:00
Adam Kelly
8c9b499cda Display fail reasons and reorder columns. 2020-04-25 11:44:59 +01:00
Adam Kelly
2006b2fbce Only use added_date as start_date for books being read right now. 2020-04-25 11:44:59 +01:00
Mouse Reeve
d51006b908 Hide pulldowns on covers shelf snippet
stopgap working on #139
2020-04-24 09:26:28 -07:00
Adam Kelly
fba78d7a0e Style fixes suggested by pylint. 2020-04-22 14:53:22 +01:00
Adam Kelly
60dabe442e Link import job to import status and display status on status page. 2020-04-22 14:16:46 +01:00
Adam Kelly
22b2a95fd3 Fixing up notifications. 2020-04-22 13:52:07 +01:00
Adam Kelly
0bf73fef24 Store csv in the database and then import via celery. 2020-04-22 13:52:07 +01:00
Adam Kelly
881cc4d64b First draft async imports. 2020-04-22 12:43:55 +01:00
Mouse Reeve
894f76f843 Oops I wasn't supposed to close input tags 2020-04-21 10:47:55 -07:00
Mouse Reeve
52651fdaa0 Use compose tabs in book page
Fixes #144
2020-04-21 08:01:54 -07:00
Mouse Reeve
94e66829b8 Fixes avatar crop logic 2020-04-20 18:42:13 -07:00
Mouse Reeve
b0493225be fixes typo in HTTPError 2020-04-20 17:46:32 -07:00
Mouse Reeve
b1a336bb08 Simplifies recipient logic 2020-04-20 17:43:42 -07:00
Mouse Reeve
bb3b25b7f4 generalize status creation 2020-04-20 17:06:11 -07:00
Mouse Reeve
2d4c2a7ee2 Process incoming federated quotes
Fixes #149
2020-04-20 16:37:53 -07:00
Adam Kelly
5a8a57523e Create and store reading progress when shelving books. 2020-04-15 13:27:25 +01:00
Adam Kelly
8e12071b99 Display start and finish dates in books list. 2020-04-15 13:27:25 +01:00
Adam Kelly
53ff28b5dc Save progress information from imports. 2020-04-15 13:27:25 +01:00
Adam Kelly
60f0aa207d Add model to store reading progress. 2020-04-15 13:27:25 +01:00
Adam Kelly
6d7f20caad Check if we already have edition in our database before using openlibrary. 2020-04-12 13:56:18 +01:00
Adam Kelly
5148820fa3 Move attempt to resolve books to view action. 2020-04-12 13:56:11 +01:00
Mouse Reeve
f2f0c979f1 Small html/css fixes 2020-04-11 21:49:06 -07:00
Mouse Reeve
ac279d7d2c Revert "Fixes pulldowns in all-shelves element"
This reverts commit a948ed9e03.
2020-04-11 12:05:54 -07:00
Mouse Reeve
8a6c21893f Consistent styles across pulldowns 2020-04-11 11:12:42 -07:00
Mouse Reeve
a948ed9e03 Fixes pulldowns in all-shelves element 2020-04-11 11:07:11 -07:00
Mouse Reeve
f4d8915b90 Center pulldown button and minor visual tweaks 2020-04-11 10:54:58 -07:00
Mouse Reeve
750ba550f1 move pulldown button icon closer to text 2020-04-11 10:48:17 -07:00
Mouse Reeve
13b6a8bc19 Use icon button for shelve pulldown 2020-04-11 10:35:13 -07:00
Mouse Reeve
5d5e97a0cc
Merge pull request #133 from cthulahoops/shelf_selection
Add css dropdown to select alternative shelves.
2020-04-11 10:29:35 -07:00
Adam Kelly
facbe33e37 Remove stray newline. 2020-04-09 22:40:24 +01:00
Adam Kelly
6fcc183377 Switch to using a list for buttons. 2020-04-09 22:39:12 +01:00
Adam Kelly
0a4524a524 Reuse the pull css styling from the user menu. 2020-04-09 22:33:51 +01:00
Adam Kelly
0d1395d602 Remove dead code for old shelf pulldown. 2020-04-09 11:23:37 +01:00
Adam Kelly
97e752cc12 Disable button for current shelf. 2020-04-09 11:23:08 +01:00
Adam Kelly
1783330708 Add css dropdown to select alternative shelves. 2020-04-09 11:11:17 +01:00
Mouse Reeve
1ebd6d5049 Tweaks css on compose popout 2020-04-08 10:49:20 -07:00
Mouse Reeve
a88cf2b6dd Adds quotes 2020-04-08 09:41:00 -07:00
Mouse Reeve
5b7f29c45b Fixes scrolling on covers shelf 2020-04-06 09:34:09 -07:00
Mouse Reeve
4f5b81c6ba return compose suggestion display to below shelves 2020-04-06 09:28:56 -07:00
Mouse Reeve
030233fb1a Serialize and broadcast ratings 2020-04-05 17:29:25 -07:00
Mouse Reeve
54ccd6ce47 Fix hover for books with no cover 2020-04-05 17:08:47 -07:00
Mouse Reeve
26d9454ec3 Refactors book ingest from openlibrary
it's very repetetive now but also works way better so who can say
2020-04-05 17:00:01 -07:00
Mouse Reeve
94efe860b0 use css for modals 2020-04-04 18:59:42 -07:00
Mouse Reeve
f0609e6ff3 SMall fixes for update form and ol connector 2020-04-04 13:46:10 -07:00
Mouse Reeve
630c94a34a Re-add tags to book page 2020-04-04 13:12:15 -07:00
Mouse Reeve
f35cae49b3 Move book page rate action to book preview 2020-04-04 12:35:28 -07:00
Mouse Reeve
5635e60c09 Use edition not book for adding missing covers 2020-04-04 12:34:36 -07:00
Mouse Reeve
58e4465bb2 Add rate action in previews 2020-04-04 11:52:35 -07:00
Mouse Reeve
88c3a9fbe8 Shwo book preview with rating status 2020-04-04 10:38:26 -07:00
Mouse Reeve
6ff1906a0b Add stars to book page review form 2020-04-04 10:11:55 -07:00
Mouse Reeve
71a61447d9 Keep stars clicker black in review form 2020-04-04 10:10:05 -07:00
Mouse Reeve
e66adc7d74 Fixes rating javascript 2020-04-04 10:08:34 -07:00
Mouse Reeve
458e71a41e Rate function in javascript 2020-04-03 16:47:47 -07:00
Mouse Reeve
560c5fd2f7 separates css for star forms 2020-04-03 16:25:27 -07:00
Mouse Reeve
3aeeaa80e7 Clickable star rating form 2020-04-03 16:19:11 -07:00
Mouse Reeve
07191a0bc9 Make your rating stars gold 2020-04-03 14:04:18 -07:00
Mouse Reeve
56411c4465 Show half stars 2020-04-03 13:58:14 -07:00
Mouse Reeve
d91b77f49e Show current rating in interaction rating 2020-04-03 13:40:04 -07:00
Mouse Reeve
a27effd05d Adds ratings 2020-04-03 12:44:02 -07:00
Mouse Reeve
f7cb3d9444 Load remote avatars 2020-04-03 10:19:04 -07:00
Mouse Reeve
4cfb4f2b0f Fixes template for status compose 2020-04-03 09:45:44 -07:00
Mouse Reeve
49b2ad1d48 Crop and resize avatars
Fixes #19
2020-04-02 10:23:34 -07:00
Mouse Reeve
6ad8d8662c
Merge pull request #122 from cthulahoops/import_reviews
Import reviews
2020-04-02 09:15:18 -07:00
Mouse Reeve
68372c3c43 Set work author for editions with no author 2020-04-02 09:11:42 -07:00
Adam Kelly
34c83e93e0 Sanitize the review name as well as content. 2020-04-02 17:05:22 +01:00
Adam Kelly
31b71cf35f Provide a default title for imported reviews. 2020-04-02 17:04:19 +01:00
Mouse Reeve
75a589571c Edit book form 2020-04-02 08:44:53 -07:00
Mouse Reeve
2b451f65ab Better default edition logic 2020-04-02 08:44:34 -07:00
Adam Kelly
5edef615c8 Formatting for ratings without reviews. 2020-04-02 10:38:40 +01:00
Adam Kelly
b5a5a63e88 Import books with either a rating or a review. 2020-04-02 10:29:30 +01:00
Adam Kelly
5bcf65a8a1 Parse rating int in view handler.
Activity already represents rating as an int in the json.
2020-04-02 10:25:47 +01:00
Adam Kelly
cceb433620 Don't display zero stars if there wasn't a rating 2020-04-02 10:08:52 +01:00
Adam Kelly
ae191731dc Fix create_review_from_activity. 2020-04-02 09:32:26 +01:00
Adam Kelly
9933dbba54 Generate reviews from import data. 2020-04-02 09:32:26 +01:00
Adam Kelly
1a5af7899b Style fixes (import order & else) 2020-04-02 09:32:26 +01:00
Adam Kelly
4e67d8bb38 Lift book lookup from create_review to review action. 2020-04-02 09:32:26 +01:00
Adam Kelly
d43c513d19 Style cleanup. 2020-04-02 09:32:26 +01:00
Mouse Reeve
c0ead910a4 small ol data fixes 2020-04-01 22:23:25 -07:00
Mouse Reeve
3a7c3724ad Merge branch 'master' into edition-task 2020-04-01 22:11:43 -07:00
Mouse Reeve
22c1d65ab9 move loading editions to task 2020-04-01 22:11:31 -07:00
Mouse Reeve
976e7ddf79 CSS reorg and cleans up ui
Fixes #93
2020-04-01 19:38:07 -07:00
Mouse Reeve
cfff75764b avoid error on bad book data in discover page 2020-04-01 16:21:11 -07:00
Mouse Reeve
ae37e5b9d9 Janky fix for z-index bug blocking review button 2020-04-01 16:18:58 -07:00
Mouse Reeve
5f940ef62a Helper function for getting activities 2020-04-01 16:02:39 -07:00
Mouse Reeve
4538a60490 Adds pagination to feed
Fixes #68
2020-04-01 15:36:35 -07:00
Mouse Reeve
575419cc5a Boost button shows if you boosted a post 2020-04-01 15:15:21 -07:00
Mouse Reeve
29693127ba Fixes boost display 2020-04-01 14:55:32 -07:00
Mouse Reeve
8d7ded1c69 display import books in a row 2020-04-01 14:32:56 -07:00
Mouse Reeve
772ba1840b Don't break on absent author name 2020-04-01 14:18:46 -07:00
Mouse Reeve
263b90599c Click through to book pages for no javascript 2020-04-01 14:04:59 -07:00
Mouse Reeve
c85eba53db Make user page covers shelf clickable 2020-04-01 12:32:24 -07:00
Mouse Reeve
87f12a970d Convert comments to AP Notes and unrated reviews
Works on #121
2020-04-01 11:34:48 -07:00
Mouse Reeve
1caf19863e use broadcast task 2020-04-01 10:16:20 -07:00
Mouse Reeve
d88ed7a90c this isn't mastodon 2020-03-31 20:06:42 -07:00
Mouse Reeve
0a8d080b62 Fixes for goodreads import + ol changes 2020-03-31 18:58:13 -07:00
Mouse Reeve
1970682c9c Move broadcast to celery 2020-03-31 18:03:58 -07:00
Mouse Reeve
c969e5550e Don't broadcast yourself 2020-03-31 17:07:35 -07:00
Mouse Reeve
aeb648a8d5 Turn incoming activities into tasks 2020-03-31 17:00:01 -07:00
Mouse Reeve
bb04a40044 Move to redis and fix a bunch of things 2020-03-31 16:31:33 -07:00
Mouse Reeve
ca26a712c3 Simplify default edition logic 2020-03-31 10:19:44 -07:00
Mouse Reeve
8101321871 Fixes merge for migration numbers 2020-03-30 15:45:11 -07:00
Mouse Reeve
5c4d078f92 Merge branch 'master' into works-editions 2020-03-30 15:30:06 -07:00
Mouse Reeve
33327e2bb6 sort editions correctly for picking default 2020-03-30 15:27:54 -07:00
Mouse Reeve
defd026ed0 handle work/edition concepts in ui 2020-03-30 15:03:21 -07:00
Mouse Reeve
f7fb9dde99 Differentiate works and editions more clearly 2020-03-30 14:12:18 -07:00
Mouse Reeve
44e1cf2a78 Mark default edition 2020-03-30 13:15:49 -07:00
Mouse Reeve
79e22183a2 Get editions of openlibrary works 2020-03-30 12:21:04 -07:00
Adam Kelly
a4c257a8d2 Don't create duplicate boosts. 2020-03-30 16:39:53 +01:00
Adam Kelly
acffb36f46 Display boosts in activity feed. 2020-03-30 16:31:31 +01:00
Adam Kelly
745ca7d4ff Boosts - handle url, store in database, send, notify. 2020-03-30 16:18:37 +01:00
Mouse Reeve
84d7e7c394 Simplifies incoming activity handler 2020-03-29 18:42:34 -07:00
Mouse Reeve
9aada80c05 Use timezone dates
Fixes #114
2020-03-29 17:40:51 -07:00
Mouse Reeve
da69b82d8a Clean up edit book page 2020-03-29 17:02:17 -07:00
Mouse Reeve
31f74c1a8c Hide follow request buttons after responding
Fixes #106
2020-03-29 16:18:04 -07:00
Mouse Reeve
c6d887defe Adds 404 and 500 pages
they only show up when debug is off though, thankfully
Fixes #112
2020-03-29 16:05:33 -07:00
Mouse Reeve
e7d18dada1 Keep track of remote servers
Fixes #32
2020-03-29 15:51:43 -07:00
Mouse Reeve
92790d520f code style cleanup 2020-03-29 11:18:42 -07:00
Mouse Reeve
3ead02e05f Rename handle_incoming_whatever functions 2020-03-28 23:52:07 -07:00
Mouse Reeve
952250009b Rename handle_outgoing_whatever to handle_whatever
it's in a file called outgoing.py! you can already tell it's outoging
2020-03-28 19:23:19 -07:00
Mouse Reeve
cf06b40c08 Broadcast update events for edit profile
Works on #26
2020-03-28 19:19:13 -07:00
Mouse Reeve
cf113e50fe Broadcast book update events 2020-03-28 19:12:17 -07:00
Mouse Reeve
db6af61f03 Fixes bug around unset absolute ids 2020-03-28 18:20:59 -07:00
Mouse Reeve
380e49712d Move database host to .env 2020-03-28 17:23:43 -07:00
Mouse Reeve
77e6e2d708 Use fedireads key as default author identifier 2020-03-28 16:38:20 -07:00
Mouse Reeve
06ff795df1 Periodically update books
Fixes #21
2020-03-28 16:32:18 -07:00
Mouse Reeve
0c9aad730d Set connectors on books 2020-03-28 16:01:02 -07:00
Mouse Reeve
1a33290267 Edit books
Fixes #109
2020-03-28 15:06:16 -07:00
Mouse Reeve
16fec1b6d5 Save source_url in connectors 2020-03-28 13:14:06 -07:00
Mouse Reeve
54b5f0097b Update connector and author tables 2020-03-28 13:03:49 -07:00
Mouse Reeve
d94dbf3974 More connectors more problems 2020-03-28 12:55:53 -07:00
Mouse Reeve
6fadf22a54
Merge pull request #95 from mouse-reeve/docker
Docker
2020-03-28 11:37:17 -07:00
Mouse Reeve
40028fa077 Fixes call to comment builder 2020-03-28 11:35:33 -07:00
Mouse Reeve
51e7a50b86 Get more data out of openlibrary 2020-03-27 21:28:52 -07:00
Mouse Reeve
5c475e448a ActivityPub serialize book 2020-03-27 19:52:05 -07:00
Mouse Reeve
0557a5cc69 Shuffle around some activitypub serializer files 2020-03-27 18:39:26 -07:00
Mouse Reeve
7f82546230 Typo fix 2020-03-27 18:36:45 -07:00