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
n2no1
31146b00e4
import MultiValueDictKeyError to catch with formcopy
2021-04-06 21:40:15 -04:00
n2no1
51e16fba97
run black, add a try/catch around the formcopy fix
2021-04-06 21:01:57 -04:00
n2no1
0941c50c69
ensure that the book edit confirmation receives initial date data as a datetime
2021-04-06 20:46:18 -04:00
n2no1
502f29082c
check the form for initial date values if the book has none
2021-04-06 19:57:57 -04:00
tofuwabohu
1f99710dcd
Links to own user in menu
2021-04-06 22:36:24 +02: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
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
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