Wykres commitów

11226 Commity (779f50aa3c93b4b602be4d6a24a27cea052c1dd7)

Autor SHA1 Wiadomość Data
Matt Westcott 9bdb55584c failing test for ID collisions 2021-03-17 23:32:42 +00:00
Matt Westcott 2899968123 Reorganise try/except to avoid masking unrelated TypeErrors happening during `pack` 2021-03-17 23:32:42 +00:00
Matt Westcott 96f1cf4486 Don't reassign id to nodes if they already have one
It doesn't break either way (because the last-assigned ID will be the one used in the output) but it's neater and avoids weird gaps in the ID sequence...
2021-03-17 23:32:42 +00:00
Karl Hobley cd0e447b56 Merge most of ListChild and StreamChild into BaseSequenceChild 2021-03-17 23:32:41 +00:00
Karl Hobley 2738b21bf3 Add opening animation to ListChild 2021-03-17 23:32:41 +00:00
Karl Hobley e5dd68ed6d Remove data attributes that contained type name 2021-03-17 23:32:41 +00:00
Karl Hobley affe84f20c Remove unused ids from ListChild 2021-03-17 23:32:41 +00:00
Karl Hobley ce85081b3f Add type field on ListChild 2021-03-17 23:32:40 +00:00
Karl Hobley 0574c6b6f1 Add an id field to ListChild
This brings it slightly closer to StreamChild, and we'll need it later
for https://github.com/wagtail/rfcs/pull/65
2021-03-17 23:32:40 +00:00
Karl Hobley f78c96e73e Set index input in ListBlock child 2021-03-17 23:32:40 +00:00
Karl Hobley 565a0079b5 Telepath: Deletion of ListBlock items 2021-03-17 23:32:39 +00:00
Karl Hobley 9def22c292 Implement adding new list block children 2021-03-17 23:32:39 +00:00
Karl Hobley 2f6a635054 Refactor a ListChild out of ListBlock
Based on 73be2a6ffe
2021-03-17 23:32:39 +00:00
Matt Westcott 99f7e3e557 Support custom form_template on StructBlock 2021-03-17 23:32:39 +00:00
Matt Westcott 84b44b50b4 Populate label 'for' attribute on render 2021-03-17 23:32:38 +00:00
Matt Westcott 35dd2f2d3f Include help text on block rendering 2021-03-17 23:32:38 +00:00
Matt Westcott 71e2d542ff Add required asterisk to StructBlock children 2021-03-17 23:32:38 +00:00
Karl Hobley f0635165b3 Unit tests for StreamBlock 2021-03-17 23:32:38 +00:00
Karl Hobley 889689f754 Unit tests for ListBlock 2021-03-17 23:32:37 +00:00
Karl Hobley 5518c5ea34 Unit tests for StructBlock 2021-03-17 23:32:37 +00:00
Karl Hobley 87cdc215bd Telepath: Validation 2021-03-17 23:32:37 +00:00
Karl Hobley 7477ce1e1c Unit tests for FieldBlock 2021-03-17 23:32:36 +00:00
Karl Hobley 43995c7665 Unit tests for TableInput 2021-03-17 23:32:36 +00:00
Karl Hobley 996aa149cb Unit tests for date/time widgets 2021-03-17 23:32:36 +00:00
Karl Hobley a2baf4a99a Remove TableBlock's legacy widget rendering 2021-03-17 23:32:36 +00:00
Karl Hobley f083770d8d Make TableBlock translatable again 2021-03-17 23:32:35 +00:00
Karl Hobley d09938d400 Implement telepath adapter for TableInput 2021-03-17 23:32:35 +00:00
Karl Hobley 2314922ae1 Lint table.js 2021-03-17 23:32:35 +00:00
Karl Hobley 3664bfa838 Convert table.js to use 2-space indentation 2021-03-17 23:32:35 +00:00
Karl Hobley 84010b92a7 Moved TableBlock block's table.js into client 2021-03-17 23:32:34 +00:00
Matt Westcott 24d393d7cb Fix setting of initial state for datetime fields 2021-03-17 23:32:34 +00:00
Karl Hobley 7bc28b46b1 Telepath: Date time inputs 2021-03-17 23:32:34 +00:00
Karl Hobley c50ee54659 Add unit tests for DraftailRichTextArea 2021-03-17 23:32:34 +00:00
Karl Hobley 0a2f71856a Add unit tests for AdminAutoHeightTextInput 2021-03-17 23:32:33 +00:00
Karl Hobley e23e7c1c6e Add unit tests for PageChooser 2021-03-17 23:32:33 +00:00
Karl Hobley ca87668cb9 Add unit tests for RadioSelect/BoundRadioSelect 2021-03-17 23:32:33 +00:00
Karl Hobley 1d894ee6e7 Add unit tests for Widget/BoundWidget 2021-03-17 23:32:33 +00:00
Karl Hobley a7bc294c34 Decorate all currently failing tests with unittest.expectedFailure 2021-03-17 23:32:32 +00:00
Matt Westcott eaa16a924a Consistently pass 'animate' flag via an opts dict 2021-03-17 23:32:32 +00:00
Matt Westcott a2fc9a1661 Clarify comment on grouped_child_blocks 2021-03-17 23:32:32 +00:00
Matt Westcott d0bd2cbf7a Rename StreamMenu onclick handler to onSelectBlockType 2021-03-17 23:32:31 +00:00
Matt Westcott 8e00fbb13c StreamField block deletion 2021-03-17 23:32:31 +00:00
Matt Westcott 43a63d5567 Add type checks to telepath tests 2021-03-17 23:32:31 +00:00
Matt Westcott 31012506bd Move telepath.js to utils 2021-03-17 23:32:30 +00:00
Matt Westcott e651c1cdbd Avoid creating references for trivial primitive values and short strings 2021-03-17 23:32:30 +00:00
Matt Westcott cd50b842dc Support unpacking of references 2021-03-17 23:32:30 +00:00
Matt Westcott 6111d66728 Add tests for telepath client 2021-03-17 23:32:30 +00:00
Matt Westcott 19cfd7a423 Move telepath module to components 2021-03-17 23:32:29 +00:00
Matt Westcott 7c53261d16 lint fix for blocks.js 2021-03-17 23:32:29 +00:00
Matt Westcott 323f9bc2d2 Assign ids to nodes that are referenced multiple times 2021-03-17 23:32:29 +00:00