8
Commit Graph

420 Commits

Author SHA1 Message Date
Jasper Berghoef
d4ee67b778 Remove unnecessary query 2017-06-02 15:11:37 +02:00
Jasper Berghoef
c6e4d9cca8 Adds cool icons. Depends on #123 2017-06-02 15:11:37 +02:00
Jasper Berghoef
38aff16044 Adds additional options to the dropdown menu
Allows for quick access to both new and existing variations, as well as creation of new segments.
2017-06-02 15:11:37 +02:00
Jasper Berghoef
aafc8c4ed5 Simpler queries 2017-06-02 15:10:54 +02:00
Jasper Berghoef
f21c423b1c Updates functions for new mixin 2017-06-02 15:10:54 +02:00
Jasper Berghoef
7e24485aaf Adds comments to segment functions 2017-06-02 15:10:54 +02:00
Jasper Berghoef
12ae3fa173 Uses the Mixin for page lookups 2017-06-02 15:10:54 +02:00
Jasper Berghoef
961a58505a Adds variant count 2017-06-02 15:10:54 +02:00
Jasper Berghoef
cb03a36ba2 Work in progress 2017-06-02 15:10:54 +02:00
Michael van Tellingen
9605773a74 Update changelog 2017-06-02 15:06:26 +02:00
Jasper Berghoef
46d86d852d Adds stream fields to the sandbox 2017-06-02 15:00:34 +02:00
Jasper Berghoef
0776d2300a Feature/fa icons for rules (#123)
Integrate font-awesome for the rule icons
2017-06-02 14:53:41 +02:00
Jasper Berghoef
38620d916f Resolves page copy error (Fixes #159) 2017-06-02 14:11:49 +02:00
Jasper Berghoef
3ee0645267 Fixes summary icon 2017-06-02 13:18:45 +02:00
Pim Vernooij
eda00d624e Merge pull request #157 from LabD/tomdyson-readme-2
Include sandbox admin URL in README
2017-06-02 12:59:27 +02:00
Jasper Berghoef
0e24ae17ac Fixes PersonalisableBlock segment validation 2017-06-02 12:58:09 +02:00
Tom Dyson
39c31dc81a Include sandbox admin URL in README 2017-06-02 10:55:31 +01:00
Jasper Berghoef
702fa233a9 Fixes line length and adds Middleware code example 2017-06-02 11:52:31 +02:00
Michael van Tellingen
7405c34252 Add missing migration for tests.app.pages (fixes build) 2017-06-02 11:26:57 +02:00
Michael van Tellingen
6f96f2f172 Add more tests for wagtail_hooks 2017-06-02 11:23:39 +02:00
Michael van Tellingen
559d3c5356 Add unittest for serving a regular page
See #150
2017-06-02 10:32:41 +02:00
Michael van Tellingen
5aa754dd80 Rename PersonalisablePageMixin.personalisable_metadata
Use PersonalisablePageMixin.personalisation_metadata instead to mirror
the package name
2017-06-02 10:23:46 +02:00
Michael van Tellingen
282baa4787 Add tests for the wagtail_hooks.serve_variaton 2017-06-02 10:19:32 +02:00
Michael van Tellingen
35c22cb6af Use correct filenames for the tests (and split some) 2017-06-02 10:11:46 +02:00
Michael van Tellingen
6c5ab9c6ae Merge HomePage/SpecialPage to ContentPage in the tests
No need to create separate models with the same functionality
2017-06-02 09:30:04 +02:00
Michael van Tellingen
d92fe13d37 Refactor the test structure
This renames the tests.sandbox app to tests.site to clear up some
confusion with the two sandbox app's.
2017-06-02 09:25:51 +02:00
Jasper Berghoef
dfb364b7fc Adds additional segment to avoid confusion
As the dropdown checks if a page has been segmented, and disables when there are no segments available
2017-06-02 07:43:56 +02:00
Mike Dingjan
15a0276041 Update import sorting and newlines 2017-06-01 18:06:41 +02:00
Mike Dingjan
c0c3ce19fe Remove a few unused imports 2017-06-01 18:06:41 +02:00
Mike Dingjan
e0fffb70b7 Remove redefinition of `class Meta` warning 2017-06-01 18:06:41 +02:00
Jasper Berghoef
7f2882ce0e Adds sandbox example data for personalisation 2017-06-01 16:57:40 +02:00
Jasper Berghoef
a629bfc862 Enables rich text for the sanbox home page 2017-06-01 16:23:11 +02:00
Jasper Berghoef
e3ceecfa7d Adds a default value to the homepage text content
Ensures the migration prefills the RichTextField, wich in turn prevents validation errors when copying the page for personalisation. Fixes #154.
2017-06-01 16:06:27 +02:00
Michael van Tellingen
0f79cf1d15 Revert "Remove manage.py in the root"
This reverts commit dda0bc720e.
2017-06-01 13:55:39 +02:00
Michael van Tellingen
29001fac8e Remove custom wagtail page form
THe older page form allowed to change segment settings inline but since
support for this was temporarily removed in an earlier commit we can
clean this up too
2017-06-01 13:51:13 +02:00
Michael van Tellingen
dda0bc720e Remove manage.py in the root
This should not be here since it isn't a runnable project
2017-06-01 13:49:28 +02:00
Jasper Berghoef
5beef1b27c New icon for the segments menu item (#118)
New icon for the segments menu item
2017-06-01 08:48:34 +02:00
Michael van Tellingen
8465e6dcbb Fix serving the variant pages 2017-05-31 21:44:57 +02:00
Michael van Tellingen
cf8101156c Extend the sandbox home to show text content 2017-05-31 21:44:50 +02:00
Michael van Tellingen
7076973fc8 Refactor personalisable pages
Instead of working with django model mixins it now uses a separate
model entity to keep track of the personalized pages (metadata).

The current downside of this approach is that the segment of an existing
variant is no longer easily adjustable for now.
2017-05-31 21:31:40 +02:00
Jasper Berghoef
c2735807b4 Adds ‘Create new segment’ option to dropdown 2017-05-31 20:02:46 +02:00
Michael van Tellingen
2651eb0e3c Add related_name to PersonalisablePageMixin 2017-05-31 18:25:34 +02:00
Michael van Tellingen
18838b2e8c Revert "Fix migrations (#151)"
This reverts commit d35a7fee57.
2017-05-31 18:21:57 +02:00
Michael van Tellingen
763a67e2d4 Switch mixin ordering 2017-05-31 18:12:19 +02:00
Rob Moorman
d35a7fee57 Fix migrations (#151) 2017-05-31 18:09:50 +02:00
Paul J Stevens
c100dc603c fix regression 2017-05-31 18:01:19 +02:00
Paul J Stevens
d4421eebcb minor cleanup 2017-05-31 17:58:25 +02:00
Jasper Berghoef
fea3bc8b8e Updated commons.js.map 2017-05-31 17:56:14 +02:00
Bertrand Bordage
38a18f80a4 Merge pull request #146 from LabD/simplifications+optimisations
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:50:56 +02:00
Bertrand Bordage
85613db363 Merge branch 'simplifications+optimisations' of github.com:LabD/wagtail-personalisation into simplifications+optimisations 2017-05-31 17:43:18 +02:00