diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f7ba5f..ea26a4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [Unreleased] - XXXX-XX-XX -- Wagtail 4.2 compatibility -- Wagtail 4.1 compatibility +- [Wagtail 4.1, 4.2, 5.0, 5.1 and 5.2 support 🎉](https://github.com/wagtail-nest/wagtail-ab-testing/pull/52) - NO SUPPORT for Wagtail 4.0 and older, sorry +- [Revisions that are part of A/B test are now marked as protected to avoid data loss when the revision is deleted](https://github.com/wagtail-nest/wagtail-ab-testing/pull/54) + +**Maintenance** + +- The package was moved to Wagtail Nest +- Move to GitHub Actions for CI +- Move to Codecov for coverage +- [Add Trusted Publishing for publishing to PyPI](https://github.com/wagtail-nest/wagtail-ab-testing/pull/60) +- [Upload wheels to PyPI for faster installs](https://github.com/wagtail-nest/wagtail-ab-testing/pull/60) ## [0.7] - 2022-03-31 diff --git a/screenshot-create.png b/screenshot-create.png index 187b18b..39d2806 100644 Binary files a/screenshot-create.png and b/screenshot-create.png differ diff --git a/screenshot-finish.png b/screenshot-finish.png index 44adf77..5364bd7 100644 Binary files a/screenshot-finish.png and b/screenshot-finish.png differ diff --git a/screenshot.png b/screenshot.png index e7c8017..b41fa07 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/setup.py b/setup.py index 5959301..5d0f074 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -import sys, os - from setuptools import setup, find_packages # Hack to prevent "TypeError: 'NoneType' object is not callable" error @@ -38,8 +36,10 @@ "Framework :: Django :: 3.2", "Framework :: Django :: 4.0", "Framework :: Django :: 4.1", + "Framework :: Django :: 4.2", "Framework :: Wagtail", "Framework :: Wagtail :: 4", + "Framework :: Wagtail :: 5", ], install_requires=[ "Wagtail>=4.1", diff --git a/tox.ini b/tox.ini index d7523f0..f48b03c 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ usedevelop = True envlist = py{38,39,310}-django{32,40,41}-wagtail{41,42}-{sqlite,postgres} py311-django41-wagtail{41,42}-{sqlite,postgres} + py{38,39,310,311}-django{32,41,42}-wagtail{50,51,52}-{sqlite,postgres} [flake8] # E501: Line too long @@ -31,6 +32,9 @@ deps = wagtail41: wagtail~=4.1 wagtail42: wagtail~=4.2 + wagtail50: wagtail~=5.0 + wagtail51: wagtail~=5.1 + wagtail52: wagtail~=5.2 wagtailmain: git+https://github.com/wagtail/wagtail.git postgres: psycopg2>=2.9 diff --git a/wagtail_ab_testing/templates/wagtail_ab_testing/add_compare.html b/wagtail_ab_testing/templates/wagtail_ab_testing/add_compare.html index d3d1f6c..ed0e656 100644 --- a/wagtail_ab_testing/templates/wagtail_ab_testing/add_compare.html +++ b/wagtail_ab_testing/templates/wagtail_ab_testing/add_compare.html @@ -4,7 +4,7 @@ {% block content %} {% trans "Create an A/B Test" as title %} - {% include "wagtailadmin/shared/header.html" with title=title subtitle=page.title icon='people-arrows' tabbed=1 merged=1 %} + {% include "wagtailadmin/shared/header.html" with title=title subtitle=page.title icon='people-arrows' merged=1 %}

{% trans "This will create an A/B test comparing the published version of this page and the draft with the following differences:" %}

diff --git a/wagtail_ab_testing/templates/wagtail_ab_testing/add_form.html b/wagtail_ab_testing/templates/wagtail_ab_testing/add_form.html index 24aafd0..a986779 100644 --- a/wagtail_ab_testing/templates/wagtail_ab_testing/add_form.html +++ b/wagtail_ab_testing/templates/wagtail_ab_testing/add_form.html @@ -4,7 +4,7 @@ {% block content %} {% trans "Create an A/B Test" as title %} - {% include "wagtailadmin/shared/header.html" with title=title subtitle=page.title icon='people-arrows' tabbed=1 merged=1 %} + {% include "wagtailadmin/shared/header.html" with title=title subtitle=page.title icon='people-arrows' merged=1 %}
{% csrf_token %} @@ -16,8 +16,12 @@

{% trans "Enter test details" %}

    - {% include "wagtailadmin/shared/field_as_li.html" with field=form.name %} - {% include "wagtailadmin/shared/field_as_li.html" with field=form.hypothesis %} +
  • + {% include "wagtailadmin/shared/field.html" with field=form.name %} +
  • +
  • + {% include "wagtailadmin/shared/field.html" with field=form.hypothesis %} +
@@ -41,7 +45,9 @@

{% trans "Sample size" %}

    - {% include "wagtailadmin/shared/field_as_li.html" with field=form.sample_size %} +
  • + {% include "wagtailadmin/shared/field.html" with field=form.sample_size %} +
{% trans 'Need help calculating sample size for A/B tests? Try Optimisely, Evan Miller, or AB Tasty.' %}
@@ -53,11 +59,11 @@

{% trans "Sample size" %}

-
+ {% help_block status="info"%}

{% trans "A/B tests are calculated using Pearson's chi squared test and are set at 95% confidence level." %}

{% trans "Traffic is split evenly between each version." %}

{% trans 'Users with "Do Not Track" enabled are not counted.' %}

-
+ {% endhelp_block %}
{% endblock %} diff --git a/wagtail_ab_testing/templates/wagtail_ab_testing/compare.html b/wagtail_ab_testing/templates/wagtail_ab_testing/compare.html index 21ab900..8a9b4f9 100644 --- a/wagtail_ab_testing/templates/wagtail_ab_testing/compare.html +++ b/wagtail_ab_testing/templates/wagtail_ab_testing/compare.html @@ -4,7 +4,7 @@ {% block content %} {% trans "Compare A/B test versions" as title %} - {% include "wagtailadmin/shared/header.html" with title=title subtitle=page.title tabbed=1 merged=1 %} + {% include "wagtailadmin/shared/header.html" with title=title subtitle=page.title merged=1 %}
{% include "./includes/comparison.html" %} diff --git a/wagtail_ab_testing/templates/wagtail_ab_testing/progress.html b/wagtail_ab_testing/templates/wagtail_ab_testing/progress.html index fef838e..d8a86fe 100644 --- a/wagtail_ab_testing/templates/wagtail_ab_testing/progress.html +++ b/wagtail_ab_testing/templates/wagtail_ab_testing/progress.html @@ -9,10 +9,10 @@
{% csrf_token %} -