Components audit

Contents

This application

How to use this information

This page shows information about component use on GOV.UK. This information has been cross referenced with the components in the gem to produce warnings where e.g. JavaScript for a component exists but has not been included in an application.

Warnings should be investigated, although there may be a reason why the application has been configured as it is. Note that 'code' can refer to templates or ruby code.

More information about this application is available by viewing the component guide from a locally running instance of govuk_publishing_components.

Components used

In templates (27)
breadcrumbs, button, chat entry, checkboxes, contextual breadcrumbs, document list, error message, error summary, govspeak, heading, hint, input, inverse header, label, machine readable metadata, meta tags, metadata, option select, phase banner, previous and next navigation, radio, search, select, skip link, step by step nav header, subscription links, title
In stylesheets (0)
Uses per page component asset loading
In javascripts (7)
checkboxes, error summary, govspeak, intervention, metadata, option select, radio
In ruby (1)
date input

Component references (1)

This shows instances of `gem-c-` classes found in the application. This could be a style override or hard coded component markup, which is a violation of our principle of component isolation.

Application components (5)

This is a list of components found in this application. Note that some components may appear to be missing files due to inconsistencies in directory structure and naming conventions.

Numbers in table headers show column totals. Numbers in table cells show number of lines in files. Note that component test files cannot currently be detected in applications that use minitest instead of Rspec.

Component Template 5 CSS 4 Print CSS 0 JS 2 JS test 2 GF CSS 0 GF JS 0 Test 5 Helper 0
date filter 46 lines of code in date filter template 51 lines of code in date filter test
expander 28 lines of code in expander template 96 lines of code in expander stylesheet 144 lines of code in expander javascript 163 lines of code in expander javascript test 61 lines of code in expander test
filter panel 93 lines of code in filter panel template 99 lines of code in filter panel stylesheet 38 lines of code in filter panel javascript 77 lines of code in filter panel javascript test 123 lines of code in filter panel test
filter section 53 lines of code in filter section template 64 lines of code in filter section stylesheet 81 lines of code in filter section test
filter summary 65 lines of code in filter summary template 57 lines of code in filter summary stylesheet 100 lines of code in filter summary test

Component files

Lists what files each component has

Numbers in table headers show column totals. Numbers in table cells show number of lines in files. Note that component test files cannot currently be detected in applications that use minitest instead of Rspec.

Component Template CSS Print CSS JS JS test GF CSS GF JS Test Helper
accordion govuk_publishing_components 92 lines of code in accordion template 57 lines of code in accordion stylesheet Yes 106 lines of code in accordion javascript Yes Yes 38 lines of code in accordion helper
action link govuk_publishing_components 71 lines of code in action link template 192 lines of code in action link stylesheet Yes
add another govuk_publishing_components 29 lines of code in add another template 12 lines of code in add another stylesheet 124 lines of code in add another javascript Yes
attachment govuk_publishing_components 133 lines of code in attachment template 106 lines of code in attachment stylesheet Yes 200 lines of code in attachment helper
attachment link govuk_publishing_components 40 lines of code in attachment link template 19 lines of code in attachment link stylesheet Yes
back link govuk_publishing_components 22 lines of code in back link template 2 lines of code in back link stylesheet Yes
big number govuk_publishing_components 47 lines of code in big number template 60 lines of code in big number stylesheet 30 lines of code in big number helper
breadcrumbs govuk_publishing_components 44 lines of code in breadcrumbs template 76 lines of code in breadcrumbs stylesheet Yes Yes 75 lines of code in breadcrumbs helper
button govuk_publishing_components 36 lines of code in button template 114 lines of code in button stylesheet Yes 5 lines of code in button javascript Yes Yes 140 lines of code in button helper
cards govuk_publishing_components 53 lines of code in cards template 184 lines of code in cards stylesheet Yes
character count govuk_publishing_components 28 lines of code in character count template 2 lines of code in character count stylesheet 5 lines of code in character count javascript Yes Yes
chart govuk_publishing_components 146 lines of code in chart template 57 lines of code in chart stylesheet 1 lines of code in chart javascript 112 lines of code in chart helper
chat entry govuk_publishing_components 55 lines of code in chat entry template 39 lines of code in chat entry stylesheet
checkboxes govuk_publishing_components 66 lines of code in checkboxes template 24 lines of code in checkboxes stylesheet 68 lines of code in checkboxes javascript Yes Yes 105 lines of code in checkboxes helper
contents list govuk_publishing_components 91 lines of code in contents list template 113 lines of code in contents list stylesheet Yes 78 lines of code in contents list helper
contextual breadcrumbs govuk_publishing_components 20 lines of code in contextual breadcrumbs template
contextual footer govuk_publishing_components 12 lines of code in contextual footer template
contextual guidance govuk_publishing_components 30 lines of code in contextual guidance template 49 lines of code in contextual guidance stylesheet 31 lines of code in contextual guidance javascript
contextual sidebar govuk_publishing_components 39 lines of code in contextual sidebar template 49 lines of code in contextual sidebar stylesheet
cookie banner govuk_publishing_components 111 lines of code in cookie banner template 24 lines of code in cookie banner stylesheet Yes 141 lines of code in cookie banner javascript Yes
copy to clipboard govuk_publishing_components 22 lines of code in copy to clipboard template 1 lines of code in copy to clipboard stylesheet 26 lines of code in copy to clipboard javascript
cross service header govuk_publishing_components 19 lines of code in cross service header template 469 lines of code in cross service header stylesheet Yes 78 lines of code in cross service header javascript
date filter finder-frontend 46 lines of code in date filter template 51 lines of code in date filter test
date input govuk_publishing_components 86 lines of code in date input template 16 lines of code in date input stylesheet Yes
details govuk_publishing_components 39 lines of code in details template 2 lines of code in details stylesheet Yes
devolved nations govuk_publishing_components 43 lines of code in devolved nations template 27 lines of code in devolved nations stylesheet Yes 53 lines of code in devolved nations helper
document list govuk_publishing_components 140 lines of code in document list template 184 lines of code in document list stylesheet Yes
emergency banner govuk_publishing_components 68 lines of code in emergency banner template 84 lines of code in emergency banner stylesheet Yes 17 lines of code in emergency banner helper
error alert govuk_publishing_components 23 lines of code in error alert template 38 lines of code in error alert stylesheet
error message govuk_publishing_components 20 lines of code in error message template 2 lines of code in error message stylesheet Yes
error summary govuk_publishing_components 49 lines of code in error summary template 7 lines of code in error summary stylesheet 5 lines of code in error summary javascript Yes Yes
expander finder-frontend 28 lines of code in expander template 96 lines of code in expander stylesheet 144 lines of code in expander javascript 163 lines of code in expander javascript test 61 lines of code in expander test
feedback govuk_publishing_components 25 lines of code in feedback template 260 lines of code in feedback stylesheet 226 lines of code in feedback javascript
fieldset govuk_publishing_components 50 lines of code in fieldset template 2 lines of code in fieldset stylesheet Yes
file upload govuk_publishing_components 78 lines of code in file upload template 2 lines of code in file upload stylesheet Yes
filter panel finder-frontend 93 lines of code in filter panel template 99 lines of code in filter panel stylesheet 38 lines of code in filter panel javascript 77 lines of code in filter panel javascript test 123 lines of code in filter panel test
filter section finder-frontend 53 lines of code in filter section template 64 lines of code in filter section stylesheet 81 lines of code in filter section test
filter summary finder-frontend 65 lines of code in filter summary template 57 lines of code in filter summary stylesheet 100 lines of code in filter summary test
glance metric govuk_publishing_components 37 lines of code in glance metric template 75 lines of code in glance metric stylesheet
google tag manager script govuk_publishing_components 17 lines of code in google tag manager script template
govspeak govuk_publishing_components 37 lines of code in govspeak template 120 lines of code in govspeak stylesheet Yes 28 lines of code in govspeak javascript
govspeak html publication govuk_publishing_components 13 lines of code in govspeak html publication template 151 lines of code in govspeak html publication stylesheet Yes
heading govuk_publishing_components 23 lines of code in heading template 63 lines of code in heading stylesheet Yes 38 lines of code in heading helper
hint govuk_publishing_components 14 lines of code in hint template 2 lines of code in hint stylesheet Yes
image card govuk_publishing_components 80 lines of code in image card template 363 lines of code in image card stylesheet Yes 19 lines of code in image card javascript 147 lines of code in image card helper
input govuk_publishing_components 148 lines of code in input template 30 lines of code in input stylesheet Yes
inset text govuk_publishing_components 23 lines of code in inset text template 8 lines of code in inset text stylesheet Yes Yes
intervention govuk_publishing_components 90 lines of code in intervention template 35 lines of code in intervention stylesheet Yes 69 lines of code in intervention javascript 50 lines of code in intervention helper
inverse header govuk_publishing_components 14 lines of code in inverse header template 43 lines of code in inverse header stylesheet Yes
label govuk_publishing_components 36 lines of code in label template 2 lines of code in label stylesheet Yes
layout footer govuk_publishing_components 143 lines of code in layout footer template 59 lines of code in layout footer stylesheet Yes Yes 35 lines of code in layout footer helper
layout for admin govuk_publishing_components 37 lines of code in layout for admin template 1 lines of code in layout for admin stylesheet
layout for public govuk_publishing_components 193 lines of code in layout for public template 60 lines of code in layout for public stylesheet
layout header govuk_publishing_components 45 lines of code in layout header template 189 lines of code in layout header stylesheet Yes 5 lines of code in layout header javascript Yes Yes
layout super navigation header govuk_publishing_components 345 lines of code in layout super navigation header template 1018 lines of code in layout super navigation header stylesheet Yes 226 lines of code in layout super navigation header javascript
lead paragraph govuk_publishing_components 15 lines of code in lead paragraph template 20 lines of code in lead paragraph stylesheet Yes
list govuk_publishing_components 31 lines of code in list template
machine readable metadata govuk_publishing_components 32 lines of code in machine readable metadata template
meta tags govuk_publishing_components 5 lines of code in meta tags template
metadata govuk_publishing_components 103 lines of code in metadata template 116 lines of code in metadata stylesheet Yes 27 lines of code in metadata javascript
modal dialogue govuk_publishing_components 23 lines of code in modal dialogue template 150 lines of code in modal dialogue stylesheet 108 lines of code in modal dialogue javascript
notice govuk_publishing_components 52 lines of code in notice template 25 lines of code in notice stylesheet Yes
option select govuk_publishing_components 76 lines of code in option select template 177 lines of code in option select stylesheet 319 lines of code in option select javascript
organisation logo govuk_publishing_components 39 lines of code in organisation logo template 169 lines of code in organisation logo stylesheet Yes 36 lines of code in organisation logo helper
panel govuk_publishing_components 34 lines of code in panel template 21 lines of code in panel stylesheet Yes
password input govuk_publishing_components 91 lines of code in password input template 2 lines of code in password input stylesheet 5 lines of code in password input javascript Yes Yes
phase banner govuk_publishing_components 44 lines of code in phase banner template 47 lines of code in phase banner stylesheet Yes Yes
previous and next navigation govuk_publishing_components 76 lines of code in previous and next navigation template 10 lines of code in previous and next navigation stylesheet Yes Yes
print link govuk_publishing_components 44 lines of code in print link template 56 lines of code in print link stylesheet 16 lines of code in print link javascript
radio govuk_publishing_components 138 lines of code in radio template 6 lines of code in radio stylesheet 5 lines of code in radio javascript Yes Yes
related navigation govuk_publishing_components 50 lines of code in related navigation template 112 lines of code in related navigation stylesheet 211 lines of code in related navigation helper
reorderable list govuk_publishing_components 49 lines of code in reorderable list template 118 lines of code in reorderable list stylesheet 108 lines of code in reorderable list javascript
search govuk_publishing_components 86 lines of code in search template 321 lines of code in search stylesheet
search with autocomplete govuk_publishing_components 27 lines of code in search with autocomplete template 200 lines of code in search with autocomplete stylesheet 171 lines of code in search with autocomplete javascript
secondary navigation govuk_publishing_components 29 lines of code in secondary navigation template 94 lines of code in secondary navigation stylesheet
select govuk_publishing_components 41 lines of code in select template 7 lines of code in select stylesheet Yes 81 lines of code in select helper
share links govuk_publishing_components 122 lines of code in share links template 158 lines of code in share links stylesheet
signup link govuk_publishing_components 31 lines of code in signup link template 36 lines of code in signup link stylesheet
single page notification button govuk_publishing_components 35 lines of code in single page notification button template 40 lines of code in single page notification button stylesheet 71 lines of code in single page notification button javascript 83 lines of code in single page notification button helper
skip link govuk_publishing_components 7 lines of code in skip link template 2 lines of code in skip link stylesheet 5 lines of code in skip link javascript Yes Yes
step by step nav govuk_publishing_components 124 lines of code in step by step nav template 546 lines of code in step by step nav stylesheet Yes 467 lines of code in step by step nav javascript 125 lines of code in step by step nav helper
step by step nav header govuk_publishing_components 51 lines of code in step by step nav header template 36 lines of code in step by step nav header stylesheet Yes
step by step nav related govuk_publishing_components 60 lines of code in step by step nav related template 53 lines of code in step by step nav related stylesheet Yes
subscription links govuk_publishing_components 80 lines of code in subscription links template 131 lines of code in subscription links stylesheet 48 lines of code in subscription links helper
success alert govuk_publishing_components 31 lines of code in success alert template 28 lines of code in success alert stylesheet Yes Yes
summary card govuk_publishing_components 66 lines of code in summary card template 16 lines of code in summary card stylesheet Yes
summary list govuk_publishing_components 137 lines of code in summary list template 53 lines of code in summary list stylesheet Yes
table govuk_publishing_components 80 lines of code in table template 167 lines of code in table stylesheet Yes 52 lines of code in table javascript Yes
tabs govuk_publishing_components 74 lines of code in tabs template 65 lines of code in tabs stylesheet Yes 5 lines of code in tabs javascript Yes Yes
textarea govuk_publishing_components 83 lines of code in textarea template 28 lines of code in textarea stylesheet Yes Yes
title govuk_publishing_components 42 lines of code in title template 50 lines of code in title stylesheet Yes
translation nav govuk_publishing_components 31 lines of code in translation nav template 55 lines of code in translation nav stylesheet 33 lines of code in translation nav helper
warning text govuk_publishing_components 36 lines of code in warning text template 34 lines of code in warning text stylesheet Yes Yes

Components containing other components

Shows which components contain other components
add another
error message, fieldset
attachment
details
character count
error message, hint, label, textarea
chart
details, heading, skip link
contextual breadcrumbs
breadcrumbs, step by step nav header
contextual footer
related navigation
contextual sidebar
related navigation, step by step nav, step by step nav related
cookie banner
button
copy to clipboard
button, error message, hint, input, label
date input
error message, fieldset, hint, input, label
feedback
button, error message, hint, label, textarea
fieldset
error message
file upload
error message, hint, label
input
error message, hint, label
label
hint
layout for public
button, cookie banner, cross service header, error message, feedback, hint, label, layout footer, layout header, layout super navigation header, phase banner, search, search with autocomplete, skip link, textarea
layout header
search
layout super navigation header
search, search with autocomplete
metadata
heading
notice
govspeak
option select
checkboxes
password input
hint, label
radio
error message, hint, label
reorderable list
button, error message, hint, input, label
select
error message, hint
subscription links
error message, hint, input, label
table
error message, hint, input, label
textarea
error message, hint, label