Wykres commitów

11378 Commity (f7bc89c03e3e901c2ee4161b7bed0b67692db30c)

Autor SHA1 Wiadomość Data
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
jacobtoppm dc95d6e22f Don't focus comments on menu click to avoid movement 2021-04-26 16:45:27 +01:00
Simon Evans 2f57a7a4e3 Fix jitter on draftail comment button icon 2021-04-26 15:55:24 +01:00
Karl Hobley 331a4f5719
Tweak comment warnings (#7102)
* Make "Are you sure?" on comment reply deletion correct size

* Update wording of warning after editing comment

* Tighten up height of comment warnings
2021-04-26 15:51:17 +01:00
Jaap Roes f6a35c719a Test on Django 3.2, stable and main branch 2021-04-26 13:12:56 +01:00
Matt Westcott 6395f4bcc1 Fix BooleanBlock for telepath
Fixes #7083. Override default FieldBlock / BoundWidget behaviour so that:

* BooleanBlock.get_form_state bypasses CheckboxInput.format_value (which Django uses to determine the 'value' HTML attribute rather than the checked state)
* BoundCheckboxInput.get_state / set_state / get_value work with the 'checked' attribute rather than 'value'
2021-04-26 12:39:04 +01:00
jacobtoppm 144a7a74d4 Add decorator to CommentableEditor even when disabled, as adding after first render doesn't work 2021-04-26 12:14:01 +01:00
Simon Evans 678e117081
Feature/commenting responsive layout (#7091)
* Improve commenting layout

* Improve mobile layout

* Position comments absolutely on mobile

* Remove mobile state toggle
2021-04-26 11:53:04 +01:00
Loic Teixeira 312eae3a26 Prevent creation of issues without using a template 2021-04-26 10:22:08 +01:00
Loic Teixeira a8f10b3b28 Replace question issue template with contact links 2021-04-26 10:22:08 +01:00
Jacob Topp-Mugglestone 82897ee573
Set show_comments_toggle based on required fields (#7092)
* Set show_comments_toggle based on required fields

* Update test to use correct TabbedInterface arguments
2021-04-26 08:56:00 +01:00
Karl Hobley c97bc56c68
Add warning to bottom of draft comments (#7089)
* Add warning to bottom of draft comments

* Add a warning to bottom of edited comments

* Add a warning at the bottom of comments with unsaved replies

* Set role="status" on the comment notice
2021-04-23 17:53:54 +01:00
Simon Evans 05f1eb51aa
Feature/commenting improve notification toggle UI (#7085) 2021-04-23 16:24:27 +01:00
jacobtoppm 8f85d95078 Hide comments for collapsed blocks and panels 2021-04-23 15:05:58 +01:00
jacobtoppm e09ab4e597 Move resolve action to comment menu 2021-04-23 15:05:36 +01:00
jacobtoppm d6ff2d51ea Fix comment menu on non-IE11 2021-04-23 15:05:36 +01:00
Robert Rollins 0bd4224bfa Apply WidgetAdapter to CheckboxSelectMultiple.
Without this, any project that uses django.forms.widgets.CheckboxSelectMultiple crashes needlessly in any step that touches the database, because of Telepath's "don't know how to pack object" error.

Simply applying WidgetAdapter to CheckboxSelectMultiple seems to work fine, though I haven't tested it in any robust way. I just went in to my site that uses CheckboxSelectMultiple in several places, and confirmed that it still works.
2021-04-23 13:59:20 +01:00
Karl Hobley 84db8436d6 Don't include tab-content--comments-enabled in initial response
Let the JS add this when it's ready
2021-04-23 13:42:43 +01:00
Karl Hobley e62103ae1c Remove field width transition when commenting is enabled/disabled 2021-04-23 13:42:43 +01:00
Matt Westcott 5885494908 Move #6962 release note to 2.14 2021-04-23 12:52:21 +01:00