- 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
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).
* 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
* Make "Are you sure?" on comment reply deletion correct size
* Update wording of warning after editing comment
* Tighten up height of comment warnings
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'
* 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
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.