Releases: ministryofjustice/intranet
Polls plugin update, agency banner colour change & breadcrumb fix
Agency banner colour change (OPG, HMCTS, JO)
- Agency banner colour changed due to contrast issues when the white external link text was overlay. This meant that it did not meet AA accessibility standards. New colours meet these standards.
Polls plugin update
- The polls plugin was several versions out of date and required updating. This update required some work to continue making it compatible with our site. This has now been updated to the latest version. The look of the plugin in the backend has slightly changed however the functionality is the same or slightly improved.
Bug fix
- Issue with the regional breadcrumb fixed now for CTSC. Issue caused by the regional template not being loaded on the page and was therefore not pulling in the correct breadcrumb.
New user agency assign bug fix & security update
Release notes:
Bug:
Issue
When an agency created a new user, the new user account was defaulting to HQ rather then the agency they were assigned to.
Fixed when
On creation of a new user, the new account user can only view the content their account has been assigned to and not default to HQ.
-
Bug fixed. This issue was caused by a permission setting withing the main agency class controlling what a agency user views. Restricting that permission setting, from the agency-editor role fixed the issue.
-
NPM update security vulnerability. NPM vulnerability in a few of our modules being used by Gulp, required some refactoring of our Gulp file to use POST CSS rather then the deprecated gulp CSSNANO being used.
-
Deprecated legacy smoke tests also removed. They were becoming a security issue and maintaining them did not make sense as they were not being used. Also the Ruby approach to smoke testing is not really the most suitable given we are using WP.
WP theme consolidation & agency opt-in refactor/bug fix
Agency opt-in changes
- Agency checkbox found at the side of every post/page is now the sole way to opt the post-in to your agency.
- All editors with opt-in permissions, can check and uncheck any agency to opt it into a post/page using the checkbox. This makes that post appear in the relevant areas within that agency.
- Agency editors still can only create and see their agency posts in the backend. But if another agency wants to send them a link to one of their pages to edit/opt into, they could edit it.
- Opt-in buttons have been removed throughout the site, including the filter HQ button.
- Fork button has been removed. This caused many issues with post duplication.
- You will now have a better view in the backend of what agencies have opt-ed into a particular post.
- Backend agency switcher has been removed. This was buggy and caused permission errors plus now agency admins with the checkbox shouldn't have to switch around to assign posts.
- HMCTS region sidebar removed on posts. HMCTS agency admin can still assign users to a specific region.
Bug fixes
- Bug fix: When two or more agencies clicked to share a a post without checking HQ, all agencies checked would get locked out of the post and it would default to HQ.
- Bug fix: Default template would, in some instances, display some fields from the campaign content template.
Theme changes
- mojintranet legacy theme removed.
- Agency opt-in legacy code moved into clarity theme.
- "intranet-theme-clarity" is now the parent theme. Simplifies system file structure, may even fix some errors, site speed.
Things not changed
- Homepage functionality assigning posts has not changed.
- Posts/pages still display both on frontend and backend on a per agency basis.
Comments default to "on" and mobile design improvements
This release includes changes to comments and design changes for desktop and mobile.
- Comments default now set to "on" when new blog or news page is created.
- On major mobile devices, iPhone, iPad and Pixel, site menu, external links and intranet switcher button appear laid out correctly with appropriate spacing.
- Added new agency emails to email whitelist. They can now leave comments and sign in.
Bugs fixed:
- Date not appearing if two or more posts shared the same date on the same page.
- Guidance pages duplicate text. Added additional logic so that excerpt only displays with excerpt field is populated on a page.
- Fixed date issue on single news page. Column sort was incorrect.
- Fixed banner on homepage to now crop rather then resize. This will improve homepage loading/performance.
Release notes - new design changes & upgrades
Design changes have been made across the site based on feedback from Jan homepage changes and design recommendations.
-
Upgraded Wordpress & plugins
Upgraded Wordpress to the latest version 5.2.0 . Upgraded select plugins classic-editor, co-authors-plus and regenerate-thumbnails. -
Change homepage notification banner to Gov style
Notification banner style has changed. It is now constant with GovUK banner styling. -
Restyled agency switcher list per design specs
More simple accessible list of agencies on the switcher page. -
Increase line spacing of external header links
Improve accessibility and readability of links now that they are underlined. -
Add underlines to external link section in header
Designer recommendations. As per GovUK links are now underlined. -
Add dates to homepage posts
Requested feature added back in after Jan homepage feedback and analytics. -
Modify single blog post page layout
Single blog pages now have a 2/3 width and a secondary right-hand column with recent blogs listed. Similar to single new pages. This was implemented as part of designer recommendations and for better readability. -
Add data and blog name to homepage blog listing
Name and date have been added back onto the homepage following from Jan homepage redesign.