Full Changelog (27-02-2024)
- POLS-94 Add codeowners file
Full Changelog (20-02-2024)
- KLS-1948 - Bump Minimum Django to 4.2.10
Full Changelog (22-01-2024)
- KLS-1864 - Bump Minimum Django to 4.2.7
[Full Changelog](#381
- KLS-1822 - Bump Django to 4.2.8
- KLS-1229 - Bump jquery to 3.7.1
- KLS-1009 - Bump jquery to 3.5.0
- KLS-705 - Bump directory-constants to 23.1.0
- KLS-622 - Bump Django to 4.2 from 3.1.9
KLS-457 - Changed footer margin top to 15px in domestic SOO
Changed footer margin top to 10px
Error in logo chosen in magma and great header component fixed (red => white)
Change of logos and department name to Department of business and trade
- KLS-399 - update directory-constants version to 22.0.2
- KLS-115 - update directory-constants version
- GLS-390 - Pin Python version as 3.9.13 for CI
- GLS-390 - dependencies update
Full Changelog update-d-constants
- HOTFIX - fix cookie banner styles for mobile devices
- GP2-3281 - Update contact us URL for international use
- GP2-2711 - Updates invest header logo
- GP2-2784 - Fixes header and footer domestic issues
- No ticket - Fixes international mobile menu issue
- No ticket - Remove dit logo from domestic footers
- GP2-2754 - Remove great branding from header
- GP2-2755 - Remove great branding from footer
- GP2-2711 - Update international logo
- No ticket - Revert to previous logout link
- GP2-2380 - Sign out via JS through Magna
- GP2-2358- Upgraded directory-constants package
- GP2-2332- Minor tweak for Magna URLS
- GP2-2256- Added logic to load magna header based on feature flag
- GBAU-889 - Fix focus error in console
- GAA-27 - Change form element focus border to 4px
- GAA-09 - Force focus into cookie modal
- GAA-20 - anchor tag fix for screen readers
- GAA-32 - Added alt text for image with caption component
- GAA-27 - Form field outline increase width
- GAA-8 - Add hidden label to search field
- GAA-12 - Add role to form errors
- GAA-1 - Add fieldset and legend around multiple checkboxes
- No ticket - Fix gulp dependencies
- GAA-25 - replace teal-text with grey-text
- GAA-14 - make mobile/desktop ids unique
- no ticket - Change vault updater to account for vault backend upgrade
- no ticket - Remove "refreshing" alert
- no ticket - Update GA360 context_processor to handle non-sso users
- no ticket - preserve querystring on link to /cookies, preserve querystring and refresh page on accept all cookies
- no ticket - Fix trailing commas in javascript
- no ticket - Fix spelling mistake
- no ticket - Added mobile support for cookie modal
- no ticket - Fix no ga360 handler
- XOT-1296 - Improve cookies modal
- XOT-1296 - Add react cookies modal component
- MVP - modify skip_ga360 to remove ga360 in-view javascript if true
- XOT-1290 - make banner buttons equal width
- XOT-1290 - update cookie banner to gov.uk requirements
- MVP - add GA360 Context Processor
- XOT-1271 - allow button text to wrap and align text to center
- TT-2225 - Fix
vault_update
so obfuscations are not upload to vault
- TT-2225 - Add
vault_update
command for bulk updating vault values
- CI-606 - Make international header sub nav not sticky
- TT-1818 - Fix mobile header links height
- No ticket - remove override border-radius styles on checkboxes
- No ticket - add smaller checkbox style
- No ticket - Fix bad details collapsed style
- No ticket - Fix bad sass importing
- TT-1132 - Improved contrast of breadcrumbs and error reporting components
- No ticket - Added error reporting component
- TT-1132 - Improved contrast of breadcrumbs and error reporting components
- No ticket - Added error reporting component
- No ticket - Fixed the sass importer hanging when file is not found
- Added RadioNestedField
- Added TextInputWithSubmitButton widget
- Added SelectMultipleAutocomplete widget
- Fixed skip navigation on IE 11
- remove arrow from hero cta button
- changed padding and h3 margin for no-padding-card
- add field to allow html content to be added inline with the other card-inner fields, alternative to html_content
- Add options for transparent background and no padding on card component - add subheading to key facts
- Fix accordions details arrow not hiding in IE
- Separate details and accordions into two styles
details_list
template tag has been renamed toaccordion_list
great-details-list
class has been renamed togreat-accordion-list
- Removed trailing commas in javascript
- Revert to old hero using
background-image
style.picture
element is not supported by IE
hero
template tag no longer takes the paramsxlarge_image
,large_image
,medium_image
,small_image
. Instead just useimage
- no ticket - change bullet point colour to #333
- Split out the content of the error pages, so that they can be used on multiple apps.
- GTRANSFORM-368 - update directory constants version
- no ticket - fix CallableBool(False) is not of type 'boolean' error for user.is_authenticated
- GA360 mixin handles AnonymouseUser, SSOUser, and None
- GTRANSFORM-368 - Add accessibility footer link, update constants version
- GA360 mixin handles
request.user
andrequest.sso_user
- Gave
search-page-expandable-options
an aria-label to fix accessibility error
django_language
andcountry
cookies are now set as secure and http-only.
- All implementing applications are required to provide the following additional settings
--
LANGUAGE_COOKIE_SECURE
should betrue
for all production environments. Should befalse
locally if required to run without https. --COUNTRY_COOKIE_SECURE
should betrue
for all production environments. Should befalse
locally if required to run without https.
- Amended list elements in footer to pass accessibility and mobile menu
- no ticket: Refactored makefile
- No ticket: Speed up tests during development and test by not running collectstatic
- No ticket: renamed config to conf for consistency
- TT-1808: Add no-validate to no cache middleware
- CMS-1843: Fix language picker not appearing in international header.
- no ticket: Fix home and domestic URL's in international header.
- no ticket: Fix country selector in the international header.
- Changed the colour of the second level nav (again) and the underline active colour of first level
- Changed the colour of the second level nav
- Update params for featured articles component to work properly with CMS fields
- Update params for key facts and featured articles components to work properly with CMS fields
- Add featured articles list component
section
padding-bottom has been updated from 30px to 60px
- Add details/accordion list component
- Update required version of directory-constants.
This will require you to update your settings file.
DIRECTORY_CONSTANTS_URL_INTERNATIONAL
should be added and should point at the root page for the international site (ie, please DO NOT includecontent/
)DIRECTORY_CONSTANTS_URL_GREAT_INTERNATIONAL
is no longer required for this library, and can be deleted as long as it isn't directly used in your application.
- Add key facts component
- Do not render labels and container of hidden form fields
- Some class names have changed:
case-study
=>great-case-study
hero
=>great-hero
hero-with-cta
=>great-hero-with-cta
hero-title
=>great-hero-title
hero-text
=>great-hero-text
heading-hero-generic
=>great-hero-heading
hero-subheading
=>great-hero-subheading
hero-description
=>great-hero-description
- Some classes have been removed:
hero-domestic
heading-hero-domestic
heading-hero-generic-compact
hero-title-compact
- The
large_title
param has been removed from hero components {% render_form form %}
has been removed. Please use{{ form }}
instead
- Update to latest version of directory-constants
- now uses
directory-constants
in the range>=19.1.0,<20.0.0
- Changes to international header to improve support for new sticky second tier navigation.
- The
InternationalHeader
mixin has been removed, and replaced with theinternational_header
templatetag.
- Added new full width image component
full_width_image_with_list_and_media
, this shows list of items with title and text and can have an image or video on the right
[Full Changelog] #271
- adding 5 column responsive grid layout class
- Show non-field errors in forms
- Added deprecation warning for
{% render_form form %}
: now can simply do{{ form }}
.
- Gtransform 338 external link tag added
- Allow override of login links for SOO static header
- Fix language selector not preserving other query params in URL on submit.
- Remove remaining lazyload code from templates
- Reduce false positives for settings janitor unused settings
- Center hero images horizontally and vertically
- Disable Lazy loading of images.
- Add external window parameter to card component
- Add title and rel attribute to external footer link
- Reduce false positives for settings janitor obsolete settings
- Colour output of environment_diff
- Fixed missing url in domestic header logo
- Added environment_diff management command
- Added settings_shake management command
- Fixed search input on domestic header which was covered by other elements and not clickable
- Fixed NPE JS error when submitting a form without serializing the data.
- Fixed login state links collapsed
- Removed old documentation and conf
- Demo login state in header footer
- Remove reference to old css file in base template
- Regenerate missing CSS
- re-order min-width breakpoints
- Introduce filter that adds anchors to all headings, not just
<h2>
s.
- Fix header arrow keys not working in IE.
- Refactored header css to simplify code and make it easier to extend.
- Fixed regression in accessibility of headers
- Refactored header code to simplify code and make it easier to extend.
domestic_header_static.html
has been removed. I believe this is unused, and so ought to have no impact.- Templates extending
domestic_header.html
andinternational_header.html
can now only overwrite the header_logo. All other overwrites are no longer allowed. I believe no templates do this, so there ought to be no impact. - Templates overwriting the
header_logo
ondomestic_header.html
andinternational_header.html
should now use aheader_logo.html
block to do so, instead of just an image. I believe no templates do this, so there ought to be no impact. dit.classes.Dropdown.js
has been removed. This should no longer be required anywhere, so can be safely removed.
- Added the class
bold-small
when bold is used inadd-export-elements-classes
filter
get_pagination_url
returns correct url with?
when no query params and removes added&
when page number and no query
- Support SSO auth backend
- Fix landing page library version number detection
- Display package version on demo homepage
- Add overridable blocks to component templates to allow some services to modify them when needed
- Can add custom css classes to fields via
Field.container_css_classes
- Added
forms.field_factory
for streamlining creating augmented django form fields. - Added
helpers.get_pagination_url
- members of
form.widgets
,form.fields
are now imported fromforms
directly.
- Update lodash vulnerability
- Add lazysizes library, which allows lazy loading of images (and more). Check out the directory-components app for usage notes.
- Moved the JQuery script tag in
base.html
from blockhead_js
to blockvendor_js
- Pagination component takes in Pagination object from the page it is being used on rather than creating it's own
- When pagination component is used the page is required to create it's own Pagination object in the view and pass this in to pagination component
- New international header with optional 2 tier navigation.
- Improvements to no-js header navigation
- greatInternationalHeader.js has been replaced by header.js (which is automatically included in base.html)
- Moved javascript from actual component
search-page-expandable-options.html
todit.components.searchPageExpandableOptions.js
which needs to be loaded when component is used (fixes bug when component is used more than once on a page)
- Requires javascript file
dit.components.searchPageExpandableOptions.js
to be loaded whensearch-page-expandable-options
component is used
- Moved javascript from demo page
selected_page_components.html
to actual componentsearch-page-expandable-options.html
- Made
search-page-expandable-options
use a form
search-page-expandable-options
previously required different parameters so needs to be changed to pass in a form with choices that are a list of tuples
- Re-added MANIFEST.in
- Added
pagination
template tag
- Added new
Search page components
including theselected filters
andexpandable options
components
- Added
error_box
andsuccess_box
template tags - Removed MANIFEST.in
- Fixed build on gov uk PaaS
- Updated to version 18.x.x of directory-constants.
- Fixed too tall line height in header domestic/international links
- Added new tagging.js file to automatically tag links forms and videos.
- Added new ga360_data tag for customising data sent to GA360.
- Removed old methods for GA360 interaction tagging.
- Added GTM page to the demo app to explain how it all works
ga360_tracker
has been removed.- You can now (probably) just delete any existing
tagging.js
files. Most user interaction tagging will now be performed automatically via thetagging.js
file within directory components. See the google tag manager demo page for details of what's covered in the new system. dit.components.greatDomesticHeader.js
has been removed from the base template. Each service will now need to explicitly load the JS file for the version of the header they are using e.g.
{% block header_js %}
{{ block.super }}
<script src="{% static 'directory_components/js/dit.components.greatDomesticHeader.js' %}"></script>
{% endblock %}
Or for international-facing services:
{% block header_js %}
{{ block.super }}
<script src="{% static 'directory_components/js/dit.components.greatInternationalHeader.js' %}"></script>
{% endblock %}
- Breadcrumbs template tag now supports context variables as first argument.
- Breadcrumbs template tag now is more flexible: supports any number of levels simplifies most usecases.
- Remove support for python 3.5
- breadcrumbs template tag interface has changed:
{% breadcrumbs left_url='/' left_label='Home' right_label='Statistics' %}
{% breadcrumbs left_url='/' left_label='Home' middle_url='/middle/' middle_label='middle' right_label='Statistics' %}
{% breadcrumbs 'Statistics' %}<a href="/">Home</a>{% endbreadcrumbs %}
{% breadcrumbs 'Statistics' %}<a href="/">Home</a><a href="/middle/">middle</a>{% endbreadcrumbs %}
- Removed Overpass semibold (600) weight from font imports
- Add CSS sourcemaps to aid style debugging in local dev
- Fixed margins on .underline class when used in the stats component
card-grid
CSS class has been removed in favour of the more descriptiveflex-grid
- Images used in card components (excluding
labelled_image_card
) now use the image's original aspect ratio. If the aspect ratios of multiple images used in a grid of cards do not match, their heights will no longer be aligned. In this case, please update your images to all be the same aspect ratio
- Added
handler404
so 404 pages render urls correctly. - Added
handler500
so 500 pages render urls correctly.
- Added message box with icon component
- Improved mobile style of message box
- Updated documentation
- Added 500 error page template based on gov.uk design system
- Fixed invalid property values
- Added support for Django 2 -> 2.2
- Gave
hero_with_cta
a min-height of 350px
- Added ga360_tracker tag for adding GA360 attributes to components.
- Fixed leaking of information between ga360_payload in different requests
- Added separate isd url via directory-constants context processor
- Added separate isd url please set DIRECTORY_CONSTANTS_URL_INVESTMENT_SUPPORT_DIRECTORY in all dev environments
15.2.0 (2019-06-03)
- Added contact form office finder url to urls_processor
- CI-108: Improve error handling to be simpler and give more informative error messages.
- Added
header_footer/invest_header
using invest logo specifically for invest pages
- CI-108: Fix GA360 Mixin failing when request.sso_user is unset.
- CI-108: Added middleware to check that all views have appropriate GA tags have been set or marked as 'skip_ga360'
- CI-108: Updated International Header GA tagging to match the new specification
- Changed the ga_payload format for the GA360Mixin. (see mixins.GA360Payload for details).
Implemented enhancements:
- Added GA360 tagging for the domestic header
- Cleaned up unused templates and js
- Rename all instances of
directory_components_tags
todirectory_components
The best way to do the rest of the upgrade is to switch to using the latest header/footer.
- CSS to do with the old header/footer have been removed.
- Feature flag no longer used:
NEW_HEADER_FOOTER_ON
- Six templates have been removed:
header_footer/invest_footer.html
header_footer/invest_header.html
header_footer_old/footer.html
header_footer_old/header.html
header_footer_old/header_international_link_js_disabled.html
header_footer_old/header_static.html
- Images removed:
IIG_Invest_in_GREAT_White_WITH_Flag.png
UK-Gov_STACK_WHITE_AW.png
- JavaScript files removed:
invest-header.js
- Templates renamed/moved:
header_footer/header_static.html
changed toheader_footer/domestic_header_static.html
header_footer/footer.html
changed toheader_footer/domestic_footer.html
header_footer/header.html
changed toheader_footer/domestic_header.html
Implemented enhancements:
- Added if statements to 'informative banner' so label or content can be used without the other
Implemented enhancements:
- Added Investment Support Directory URL
- CMS-1528: Add a feature flag for the country selector in the international header.
- All apps using this library must now provide the 'COUNTRY_SELECTOR_ON' feature flag in their settings file.
- Set text direction in country selector so English text displays correctly on pages in Arabic
- CMS-1245 Changed default country selector text to "Select a country"
- Improved mobile/tablet styling of full width banner/case study component, added examples to docs
- Added non-responsive classes for widths
- Added responsive display classes
full_width_banner_with_cta
inclusion tag has been renamed tocase_study
full-width-banner-with-cta
CSS class has been renamed tocase-study
- [CI-108] Fix potential bug where
dit.tagging
is undefined.
- [CMS-1460] Fix spacing issues of language/country selector on some browsers.
- [CI-108] Fix applying tags to international header.
- [CI-120] Fixed language selector cutting off the language text on firefox
- Rename references to
dit.tagging.internatinalHeader.js
todit.tagging.internationalHeader.js
- Fix typo in filename of
dit.tagging.internationalHeader.js
- Added 'UK setup guide' to the international header.
Implemented Enhancements
- Add GA tagging script for the international header.
- [CMS-1395] PersistLocaleMiddleware deletes deprecated cookie names
- Improved accessibility of breadcrumbs components based on WAI-ARIA guidelines
- Improved contrast on international header language dropdown for better accessibility
- Specified support for python 3.6 in setup.py
- Add breadcrumbs template tag that supports two and three levels.
- [CMS-1258] Add background-tint and section-id capability to full_width_banner_with_cta her banner
- [CI-108] Add mixin for Google Analytics Tags.
- [CMS-1386] Add block to base template for adding content after error-reporting banner