Add /info page which returns app's build version. Can include build number / commit hash etc. To help identify what version of code is live.
Add support for a page component with a single autocomplete textbox (or select drop-down when no Javascript).
Also included:
-
fix error summary layout on single textbox page component
-
9.2.1 => 9.2.2 miscellaneous single autocomplete improvements
Add hint text support to radio page component
Upgrade to GDS 5.2 with new tags, crown icon, improved accessibility etc Upgrade to MOJ 2.1.1 and DFE Frontend 1.0.1
- 9.1.1 => 9.15 Fixes
- 9.1.6 Add support for a class attribute to
<Summary-List>
and<Summary-Card>
- 9.1.7 Add MS Clarity support. Add the Clarity ID to the
Analytics
config section with the keyClarityId
Add Summary Card support. See the example for more info.
Breaking changes:
<summary-list-row>
has been renamed to<summary-row>
, as it's now used for both summary lists and summary cards.
Add CommonRadios.YesNo
for use when the radio component is used for a yes/no question.
Add fh-pre-wrap
class for preserving line breaks and spaces in a block of text.
Add class attribute support to <SummaryListRow>
, which adds any classes supplied to the generated <dd>
.
See the summary list example page for more info.
Add a full page checkbox component. See example page for more info.
Add support for a new full page control with radio buttons. See example page.
- 8.1.1 Fix heading size in radio page's legend
- 8.1.2 Fix back-links styling
Add support for a new full page control with a single textarea. See example page for more info.
Breaking changes:
-
namespaces for classes and interfaces in the
FamilyHubs.SharedKernel.Razor.FullPages
namespace have changed. -
8.0.1 : Make an empty text area an optional error condition (actually a breaking change!)
Add 'show-empty' attribute to the <<summary-list-row>
tag helper. If set to true, both the key can value are shown, even if the value is empty.
Add time entry component.
- 7.3.1 : Add missing styles for the time entry component and add an example.
- 7.3.2 : Convert TimeComponent to immutable record (from mutable class).
- 7.3.3 : Add error support to the time entry component.
Fixed an issue with the add-another component when the first instance in the DOM is errored.
It used to duplicate the error message from the first instance in the new instance, but now it strips out any error related DOM or classes.
At some point, we might switch to duplicating a hidden template of mark-up in the DOM instead.
Add support for accessible-autocomplete to work with errored fields.
Breaking changes:
- update AddAnotherAutocompleteErrorChecker to report all instances of errors, rather than just the first. Also report all sets of duplicate values
- remove the old error handling implementation
Update the add-another component example to work with error messages.
Add fh-add-another, a forked version of MOJ's add-another component, that works with accessible-autocomplete.
See the example page for more info.
- 6.6.1 : Make AddAnotherAutocompleteErrorChecker serializable.
- 6.6.2 : Fix Add Another when the selects are generated in the view with a pre-selected value.
- 6.6.3 : Fixes to
AddAnotherAutocompleteErrorChecker
.
Add support for accessible-autocomplete. See GitHub and the node package for more info.
Added MaxLength
support to the single textbox component.
Added an improved error implementation. The original error handling is still available (until all known consumers have been switched to the new implementation). See the new example page for more info.
The single textbox page (and it's example page) has been updated to use the new error handling.
Add initial support for a full page, single textbox component. See the example pages for more info.
Add <open-close-button target="elementId">
.
A button that's only visible on mobile that toggles the target element on and off.
See the example page for more options.
- 6.1.1 : Fix responsive handling wrt
<open-close-button>
.
Dashboards now support additional consumer supplied query parameters that get added to all links (such as the column sort and pagination links).
This is to support the use case of the dashboard displaying filterable content.
Dashboard columns can now be right aligned or numeric.
There is now an example paginated dashboard, and the existing dashboard example has right aligned and numeric columns.
Breaking changes:
ColumnImmutable()
now accepts aColumnType
enum parameter, rather than the oldAlign
enum.
Add Align parameter to ColumnImmutable constructor, to allow the alignment of dashboard columns to be specified.
Remove deprecated fh-new-tab
attribute from a
tag helper.
Add support for actions column to summary list row tag helper.
See Summary List example page for more info.
Add AddFamilyHubsHealthChecks()
extension method to IHealthChecksBuilder
to add:
- standard Family Hubs health checks, e.g. for any configured Feedback site
- health checks from configuration (see example site's
appsettings.json
for examples)
Add MapFamilyHubsHealthChecks()
extension method to WebApplication
to map the health checks to the /health
endpoint.
Customise default MOJ filter styling and add 'fh-' styles for enhancing the filtering, for such things as scrollable sub groups of radios/checkboxes.
The styles work in conjunction with the filtering classes introduced in v5.3.0.
Add the attribute data-toggle-visibility-id="id-of-element-to-toggle"
to an element, to make it toggle the visibility of the specified element, when it's clicked.
See the example page for more info.
Add summary list tag helpers, e.g.
<summary-list>
<summary-list-row key="Name">Sarah Philips</summary-list-row>
</summary-list>
See the summary list example page for more info.
New attributes are available for <a>'s...
web-page
- to indicate that the link is to a web page
email
- to indicate that the link is to an email address
phone
- to indicate that the link is to a phone number
Also note that fh-new-tab
is deprecated, please use new-tab
instead. fh-new-tab
will be removed once all known consumers have been updated.
See the example page for more info.
Initial support for filtering, based on the MOJ Filter component.
Example and documentation to follow.
-
Make the feedback link in the phase banner open in the same tab.
-
Add a tag helper for anchors that open in a new tab. To use...
Add this to your _ViewImports.cshtml
file:
@addTagHelper *, FamilyHubs.SharedKernel.Razor
Then add the fh-new-tab
attribute to the anchor element. That will add the relevant attributes to open the link in a new tab and add " (opens in new tab)" to the link text.
<a href="https://www.gov.uk" fh-new-tab>GOV.UK</a>
Add a 'Contact Us' partial view.
Add InputErrorMessageParaId
to Error
and use it to set the id on the <p>
element in the _ErrorMessage
partial view.
Further error handling improvements.
The CSP now has inline scripts disabled and nonce support for scripts has been added.
To add a nonce to an inline script:
Add the following to the _ViewImports.cshtml
file in your application. This makes the tag-helper available in your Razor views.
@addTagHelper *, NetEscapades.AspNetCore.SecurityHeaders.TagHelpers
Add the NonceTagHelper to an element by adding the asp-add-nonce attribute.
<script asp-add-nonce>
For more info, see NetEscapades.AspNetCore.SecurityHeaders.
GDS no longer requires IE support (and we don't test IE), so we've removed support for it.
- add _ErrorMessage partial view (and an example error handling page)
- fix family hubs js mappping for easier debugging
- further examples added
Breaking changes:
-
security header's CSP has had
unsafe-inline
removed from thestyle-src
-
Https has been removed from img-src (but GA specific domains have been added)
-
4.0.1 : Add more domain exceptions to the CSP to fix GA4 (as recommended by Google).
Add support for Areas by adding the ViewStart.InitialiseFamilyHubs()
method that can be called from an Area's _ViewStart.cshtml
, to initialise Family Hubs for the Area.
- 3.1.1 : Remove link to homepage from 404 & 500 pages.
Breaking changes:
- the class
app-back-link
has been renamed tofh-back-link
- the behaviour of back links with the class has also been changed, to not show the back link, if the page has been opened in a new tab.
- the class
app-custom-main
has been renamed tofh-custom-main
.
Fixes typescript transpilation.
- 3.0.1 : Fixed layout issue on cookie page.
Rename custom-main
class on the <main>
element to app-custom-main
.
Add PathPrefix
to FamilyHubsUiOptions
. If supplied,
the prefix will be prepended to all files included through the layout,
e.g. css, js and asset files.
Useful for when the site is being used behind an App Gateway using path based routing.
Update libraries:
Patches:
- 2.3.1 : Update phase banner wording.
When calling Url<>()
on an alternative FamilyHubsUiOptions
, if the Url isn't present in the alternative's Url config section, it will traverse the alternative's ancestors looking for the nearest instance of the Url.
This allows inheritance of Urls from ancestors, whilst still allowing the overriding of Urls.
- 2.2.1 : Support BaseUrl inheritance in configured links.
Add support to allow link status to be set in config and/or during [Navigation|Action]Links() calls.
New major version as contains breaking changes.
Improvements to header links handling to provide more flexibility.
ServiceName
in FamilyHubsUiOptions
is now optional. This allows consumers to use components without having to use the layout or provide a dummy ServiceName
.
Update GOV.UK Frontend to v4.7.0.
Add ability to change header links per page.
See, IFamilyHubsHeader.NavigationLinks()
and IFamilyHubsHeader.ActionLinks()
.
_Layout.cshtml
now has a Head
section for inserting page specific content at the end of the head section.
- 1.15.1 : Fix reference to our js file in the layout.
Support query params/fragment in the relativeUrl param to FamilyHubsUiOptions.Url<>()
.
Add support for header and footer links that have a BaseUrlKey
value that contains a path component.
Fix FamilyHubsUiOptions.Url<>()
when the base URL has a path component.
Add GetAlternative()
method to FamilyHubsUiOptions
to get alternative service config.
Add GetFamilyHubsUiOptions()
and other helper extension methods to ViewDataDictionary
Add support for alternative service layout by page (see Alternative example page)
Adds optional configurable link for the header (see Header:ServiceNameLink
)
Add Url()
helper to FamilyHubsUiOptions
Adds:
- BaseUrlKey support in header and footer links
Adds:
- Url helpers (
Html.FamilyHubUrl
&Html.FamilyHubConfigUrl
) - static DontShow pagination instances (
IPagination.DontShow
&ILinkPagination.DontShow
)
See the example site for usage.
Notes:
- This version requires
_ViewStart.cshtml
to not be overridden in the consuming project. If you need to override_ViewStart.cshtml
, ensure the contents of the version in this package is included in your overridden version. A later version might contain a helper for this.
Lost in the mists of time.