-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
7398644
to
8b251a6
Compare
Coverage decreased (-3.2%) to 95.203% when pulling 8b251a6e50c27fa2951f1310f8776e2495276d41 on components-v2 into 8688d87 on master. |
home/factories.py
Outdated
class Meta: | ||
model = Page | ||
# | ||
# @classmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete?
pages/components/text.py
Outdated
value = RichTextBlock() | ||
|
||
def __init__(self, **kwargs): | ||
super(TextBlock, self).__init__(**kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not super().__init__(**kwargs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 no reason, still getting used to it.
8b251a6
to
27f02dd
Compare
Coverage decreased (-3.2%) to 95.2% when pulling 27f02dd0b837d4727ff5c2c7d0e9a3dc8eef5c60 on components-v2 into 8688d87 on master. |
Coverage decreased (-3.2%) to 95.2% when pulling 4e8f669525561f857eaae51d97e30623861e6f99 on components-v2 into 8688d87 on master. |
Coverage decreased (-3.2%) to 95.2% when pulling 5e782d126fa558932c602e6e81d83d015295ec05 on components-v2 into 8688d87 on master. |
Coverage decreased (-3.2%) to 95.2% when pulling e2f1ee1c0d28bcb51a609c8eacc1d4e8b17c3800 on components-v2 into 8688d87 on master. |
This redesigns the components making them more flexible from a technical point of view.
This does not translate custom markdown (callouts, reveal etc.) into proper components as it would be too fragile.
e2f1ee1
to
3894f3d
Compare
Coverage decreased (-3.2%) to 95.2% when pulling 3894f3dd2cfcd599e39af3fcb9a01fd1ed17aa60 on components-v2 into 8688d87 on master. |
Python is fine, no idea about the other stuff! |
{% block content %} | ||
{% include "wagtailadmin/shared/header.html" with title="Import content" %} | ||
|
||
<div class="nice-padding"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it four or two spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyom changed to 4 spaces as it seems to be the convention at Torchbox
I think this is fine for this major change of restructuring the components and some of the UI but I imagine we'll have to do some more to the UI to reduce the complexity. We're still requiring content designers to think of components as we do whereas they will be thinking in the context of the page and what content appears in a component. We may want to investigate the idea of presets which are related to a certain content structure like "Do/don't" component which gets rendered as two areas of content and the content store handles sending that out via the API as something like a Food for thought... |
So that it's easy to move content to our Publishing Tool from our current filesystem strategy. This app is meant to be removed after switching to REST Api rendering only.
This adds a migration to automatically create symptoms and conditions pages if they don't exist in the db already.
3894f3d
to
cc06ebe
Compare
This:
Things still to address but probably in separate PRs:
rashes-in-babies-and-children
page contains components to redesign (section_list
andsection_nav
)hernia/surgery-guide
page contains components to redesign (article_list
andarticle_nav
)hernia/operation
page contains areveal
with acallout
which causes circle dependency errorsdescription
field and the import script should import the related values from the content folderBefore:
![wagtail - old interface](https://cloud.githubusercontent.com/assets/178865/23136264/df2caefe-f793-11e6-8f0c-7f9d2f0795d9.png)
After:
![wagtail - new interface](https://cloud.githubusercontent.com/assets/178865/23136274/e39fee9c-f793-11e6-9b16-d9dd671bc049.png)