Skip to content

Commit

Permalink
Merge pull request #2822 from uktrade/develop
Browse files Browse the repository at this point in the history
Release to UAT/Production
  • Loading branch information
timothyPatterson authored Jan 4, 2024
2 parents d2c90ee + 97a716f commit e7535d0
Show file tree
Hide file tree
Showing 49 changed files with 1,331 additions and 169 deletions.
1 change: 1 addition & 0 deletions config/env/test
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ FEATURE_COURSES_LANDING_PAGE=True
FEATURE_DEA_V2=True
FEATURE_SHOW_OLD_CONTACT_FORM=False
FEATURE_HOMEPAGE_REDESIGN_V1=True
FEATURE_SHARE_COMPONENT=True
6 changes: 2 additions & 4 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@
FEATURE_DEA_V2 = env.bool('FEATURE_DEA_V2', False)
FEATURE_SHOW_OLD_CONTACT_FORM = env.bool('FEATURE_SHOW_OLD_CONTACT_FORM', False)
FEATURE_HOMEPAGE_REDESIGN_V1 = env.bool('FEATURE_HOMEPAGE_REDESIGN_V1', False)
FEATURE_SHARE_COMPONENT = env.bool('FEATURE_SHARE_COMPONENT', False)

MAX_COMPARE_PLACES_ALLOWED = env.int('MAX_COMPARE_PLACES_ALLOWED', 10)

Expand Down Expand Up @@ -1022,9 +1023,6 @@
) # noqa
CSP_IMG_SRC = ("'self'", "data:", "https:") # noqa
CSP_FRAME_SRC = ("'self'", 'https://www.google.com', 'https:')
CSP_FRAME_ANCESTORS = (
"'self'",
"'none'",
) # noqa
CSP_FRAME_ANCESTORS = ("'self'",) # noqa
CSP_UPGRADE_INSECURE_REQUESTS = env.bool('CSP_UPGRADE_INSECURE_REQUESTS', True)
CSP_BLOCK_ALL_MIXED_CONTENT = True
3 changes: 3 additions & 0 deletions core/components/static/icons/guidance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions core/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def feature_flags(request):
retval['features']['FEATURE_DEA_V2'] = settings.FEATURE_DEA_V2
retval['features']['FEATURE_SHOW_OLD_CONTACT_FORM'] = settings.FEATURE_SHOW_OLD_CONTACT_FORM
retval['features']['FEATURE_HOMEPAGE_REDESIGN_V1'] = settings.FEATURE_HOMEPAGE_REDESIGN_V1
retval['features']['FEATURE_SHARE_COMPONENT'] = settings.FEATURE_SHARE_COMPONENT

return retval

Expand Down
47 changes: 47 additions & 0 deletions core/migrations/0123_sharesettings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Generated by Django 4.1.10 on 2024-01-03 12:59

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0083_workflowcontenttype'),
('core', '0122_rename_side_links_listpage_popular_links'),
]

operations = [
migrations.CreateModel(
name='ShareSettings',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
(
'share_prefix',
models.TextField(
blank=True,
help_text='Prepends draft social media post and email subject when using the share page component',
max_length=255,
verbose_name='Share prefix',
),
),
(
'hashtags',
models.TextField(
blank=True,
help_text='Appends draft social media post when using the share page component. Prefixes each string with a #, removes spaces, and applies Pascal casing',
max_length=255,
verbose_name='Hashtags',
),
),
(
'site',
models.OneToOneField(
editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.site'
),
),
],
options={
'verbose_name': 'Sharing',
},
),
]
Loading

0 comments on commit e7535d0

Please sign in to comment.