mysociety / theyworkforyou

Keeping tabs on the UK's parliaments and assemblies
http://www.theyworkforyou.com/
Other
224 stars 50 forks source link

New announcement system for TheyWorkForYou #1711

Closed ajparsons closed 1 year ago

ajparsons commented 1 year ago

This PR adds a more general announcement feature to TheyWorkForYou.

The three locations style content in slightly different ways:

The backend has been adapted to store JSON that stores details of multiple options. Format is shown here. Invalid Json throws an error (but is not checked against a specific schema):

Dev helpers:

For consistency with the script-to-rule-them-all approach elsewhere the 'script' directory as opposed to 'script', stores several useful management commands for use in dev. Currently this contains watch-css and `create-superuser'.

Other styling changes:

image

image

image

ajparsons commented 1 year ago

Things not covered in this PR:

ajparsons commented 1 year ago

Should have fixed all of the big things and it looks like it works okay.

If seems alright, I'll fix up the history to something sensible.

ajparsons commented 1 year ago

OK! Should be almost there.

ajparsons commented 1 year ago

Okay! History tidied up (and spelling fixed). Will merge in this afternoon!