0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

11397 Commits

Author SHA1 Message Date
Matt Westcott
9d29ba862c Document idForLabel on the telepath widget API
Fixes #7145
2021-05-04 16:01:01 +01:00
Karl Hobley
19671c7073 Remove no longer needed enable_comment_panel hack 2021-05-04 15:07:03 +01:00
Karl Hobley
c6d15175e8 Remove unneeded check from log_commenting_changes 2021-05-04 15:07:03 +01:00
Karl Hobley
8be72de524 Check for commenting changes in workflow actions too
One of them checks has_content_changes before creating a revision. Think
it's worth checking this in all variants for consitency, and also so we
don't forget to update the logic if we ever move comments out of
content in the future.
2021-05-04 15:07:03 +01:00
Karl Hobley
935ad479db Added methods to Comment and CommentReply for creating logs 2021-05-04 15:07:03 +01:00
Karl Hobley
0e184aefdc Make get_commenting_changes return a dict 2021-05-04 15:07:03 +01:00
Karl Hobley
8d19454a49 Allow log actions to define comments 2021-05-04 15:07:03 +01:00
Karl Hobley
122f509b1d Move comment formatting logic to LogActionRegistry 2021-05-04 15:07:03 +01:00
Karl Hobley
7494075e98 Add basic audit logging for replies 2021-05-04 15:07:03 +01:00
Karl Hobley
5089195cf3 Add basic audit logging for comments 2021-05-04 15:07:03 +01:00
Karl Hobley
5b197bab8b Add get_commenting_changes method to EditView 2021-05-04 15:07:03 +01:00
Karl Hobley
5e13a74a6d Allow message formatters to take the whole log entry record 2021-05-04 15:07:03 +01:00
jacobtoppm
722d8836a9 Remove explicit height from comment-list to stop overflow on short pages 2021-05-04 15:05:19 +01:00
Karl Hobley
437a098ece Update ts-loader to 9.1.1
Current version is incompatibile with our version of Webpack.

Fixes #7153
2021-05-04 14:48:56 +01:00
Karl Hobley
09e0126583 Add .get_users() method to log entry query sets 2021-05-04 14:39:19 +01:00
Karl Hobley
074f673629 Split views/reports.py into multiple files 2021-05-04 14:39:19 +01:00
Karl Hobley
b03279e7e2 Move non-reusable filter set classes into their respective views 2021-05-04 14:39:19 +01:00
jacobtoppm
8eca778314 Swap footer__save-warning class to child to correct spacing 2021-05-04 10:48:18 +01:00
jacobtoppm
af92d56b49 Fix unsaved changes warning not hiding fully on mobile 2021-05-04 10:16:23 +01:00
jacobtoppm
f7bc89c03e Remove teal line under active tab and align tab and comment text better 2021-05-04 10:16:23 +01:00
Karl Hobley
d50da87cf4 Get commenting stories working again 2021-05-03 17:05:56 +01:00
Karl Hobley
b9d61ab82a Use stubs in storybook 2021-05-03 17:05:56 +01:00
Karl Hobley
325587c3d2 Update to a pre-release of Storybook 6.3
https://stackoverflow.com/questions/67070802/webpack-5-and-storybook
2021-05-03 17:05:56 +01:00
Karl Hobley
d927838b6c Add crypto to storybook fallbacks 2021-05-03 17:05:56 +01:00
Karl Hobley
66ff35ea52 Installed storybook
- Run `npx -p @storybook/cli sb init --type react --builder webpack5`
- Moved .storybook and stories folders into client
- Run `npm i --save-dev html-webpack-plugin@latest` to workaround https://github.com/storybookjs/storybook/issues/13332
- Add storybook-static to .gitignore
2021-05-03 17:05:56 +01:00
jacobtoppm
59f63abdad Add documentation for commenting 2021-04-30 17:46:08 +01:00
Matt Westcott
85c97fe87f Drop support for Django 2.2 2021-04-30 10:33:41 +01:00
jacobtoppm
9b1156210c Prevent Draftail rerender when editing comments 2021-04-29 10:58:07 +01:00
Matt Westcott
6f87665735 Remove Django 2.2 from Wagtail 2.14 compatibility list 2021-04-29 10:31:39 +01:00
Matt Westcott
e316d1f424 Add note about end of Django 2.2 support 2021-04-29 10:30:52 +01:00
jacobtoppm
6c3647f3c5 Fix comment reply actions padding 2021-04-28 17:36:07 +01:00
Naomi I. Morduch Toubman
552ee52e43
Update core team (#7123)
* Alphabetize core team in contributors list

* Update core team list

* Add Cynthia, Martin, & Storm to the core team list
2021-04-28 11:27:59 -04:00
jacobtoppm
7be2006e8d Align comment notification with comment bottom 2021-04-28 16:21:52 +01:00
Jacob Topp-Mugglestone
c652e67c5e
Feature/commenting streamfield hover fix (#7131)
* Fix streamfield comment buttons not showing on hover

* Fix hover colour change only happening for some comment buttons
2021-04-28 16:21:16 +01:00
jacobtoppm
0c27528dda Swap sr-only class for visuallyhidden, as sr-only is from bakerydemo css 2021-04-28 10:29:46 +01:00
jacobtoppm
24899dddb8 Add WAGTAILADMIN_COMMENTS_ENABLED default to docs 2021-04-28 10:08:13 +01:00
Matt Westcott
cf3c328f71 Make StreamField block objects available globally 2021-04-28 09:16:58 +01:00
Matt Westcott
cdeed1954e Implement telepath adapter for HalloRichTextArea
Fixes #7110
2021-04-28 09:15:18 +01:00
jacobtoppm
9728fab70e Add WAGTAILADMIN_COMMENTS_ENABLED setting 2021-04-27 19:28:51 +01:00
jacobtoppm
5dbcce4e1c Remove comment styles from further typing on enter, right/left arrow 2021-04-27 17:02:26 +01:00
Matt Westcott
df4dbfe9ec Fetch new translations from transifex 2021-04-27 16:28:05 +01:00
Karl Hobley
5271b4e97a Lighten comment more actions icon 2021-04-27 15:45:29 +01:00
Tibor Leupold
9ea40ed705
Docs: Covert "topics - pages" from RST to MD (#6870) 2021-04-27 16:18:34 +02:00
Tom Dyson
9735a22bd5 Fix typo in issue contact description
https://www.askdifference.com/preferred-vs-prefered/
2021-04-27 12:35:38 +01:00
Matt Westcott
1061caa5ef Fix inconsistent StreamField ValidationError nesting
Fixes #7086. As per https://github.com/wagtail/wagtail/issues/7086#issuecomment-826945031, ensure that .as_data() is consistently called when telepath-packing ErrorList objects (so that we preserve any embedded ValidationError objects instead of casting them to strings), and introduce an explicit ValidationError class on the client side to make mismatches more obvious (and for future extensibility in case we need to attach more fancy logic to ValidationError).

Also add tests for setError, and fix rendering of StreamBlock non-field errors (selector to clear old errors was incorrect, and jest apparently doesn't support innerText).
2021-04-27 09:59:57 +01:00
jacobtoppm
53e55d28e6 Close comment menu when you click anywhere outside 2021-04-26 18:18:45 +01:00
Karl Hobley
44a3737266
Styling fixes for the "Are you sure?" prompt when deleting a comment/reply (#7101)
* Add a bit of bottom padding to "Are you sure?" buttons

* Change delete buttons from red to blue

* Right-align delete and cancel buttons

* Insert clearfix after delete/cancel buttons
2021-04-26 18:02:49 +01:00
Karl Hobley
f15699414a Put notices straight after the relevant comment/reply 2021-04-26 17:38:52 +01:00
Karl Hobley
ab485064e9 Changelog / release note for #7069 2021-04-26 16:56:39 +01:00
Tijani-Dia
d532b3a3a2
Redirect to parent page when a child page is deleted from its listing view (#7069) 2021-04-26 16:52:51 +01:00