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 (51)
accordion, attachment, back link, big number, breadcrumbs, button, chat entry, contents list, contextual breadcrumbs, contextual footer, contextual sidebar, details, devolved nations, document list, error message, error summary, fieldset, govspeak, govspeak html publication, heading, hint, image card, input, inset text, intervention, inverse header, label, lead paragraph, list, meta tags, metadata, notice, organisation logo, phase banner, previous and next navigation, print link, radio, related navigation, search, share links, signup link, single page notification button, skip link, step by step nav, step by step nav header, step by step nav related, subscription links, success alert, title, translation nav, warning text
In stylesheets (0)
Uses per page component asset loading
In javascripts (10)
accordion, error summary, govspeak, image card, intervention, metadata, print link, radio, single page notification button, step by step nav
In ruby (2)
machine readable metadata, phase banner

Component references (2)

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 (7)

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 7 CSS 7 Print CSS 2 JS 0 JS test 0 GF CSS 0 GF JS 0 Test 0 Helper 0
back to top 11 lines of code in back to top template 15 lines of code in back to top stylesheet
banner 26 lines of code in banner template 42 lines of code in banner stylesheet
contents list with body 29 lines of code in contents list with body template 49 lines of code in contents list with body stylesheet
download link 18 lines of code in download link template 19 lines of code in download link stylesheet
figure 25 lines of code in figure template 46 lines of code in figure stylesheet
important metadata 21 lines of code in important metadata template 52 lines of code in important metadata stylesheet Yes
published dates 46 lines of code in published dates template 53 lines of code in published dates stylesheet Yes

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 94 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 74 lines of code in action link template 192 lines of code in action link stylesheet 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
back to top government-frontend 11 lines of code in back to top template 15 lines of code in back to top stylesheet
banner government-frontend 26 lines of code in banner template 42 lines of code in banner stylesheet
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 149 lines of code in chart template 64 lines of code in chart stylesheet 1 lines of code in chart javascript 106 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 93 lines of code in contents list template 113 lines of code in contents list stylesheet Yes 78 lines of code in contents list helper
contents list with body government-frontend 29 lines of code in contents list with body template 49 lines of code in contents list with body stylesheet
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 32 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 40 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 21 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 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 42 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 142 lines of code in document list template 184 lines of code in document list stylesheet Yes
download link government-frontend 18 lines of code in download link template 19 lines of code in download link stylesheet
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
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
figure government-frontend 25 lines of code in figure template 46 lines of code in figure stylesheet
file upload govuk_publishing_components 78 lines of code in file upload template 2 lines of code in file upload stylesheet Yes
google tag manager script govuk_publishing_components 17 lines of code in google tag manager script template
govspeak govuk_publishing_components 39 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 24 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 17 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
important metadata government-frontend 21 lines of code in important metadata template 52 lines of code in important metadata stylesheet Yes
input govuk_publishing_components 148 lines of code in input template 30 lines of code in input stylesheet Yes
inset text govuk_publishing_components 25 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 35 lines of code in label template 2 lines of code in label stylesheet Yes
layout footer govuk_publishing_components 140 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 337 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 16 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 102 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 51 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 41 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 32 lines of code in panel template 21 lines of code in panel stylesheet Yes
password input govuk_publishing_components 93 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 43 lines of code in phase banner template 47 lines of code in phase banner stylesheet Yes Yes
previous and next navigation govuk_publishing_components 77 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
published dates government-frontend 46 lines of code in published dates template 53 lines of code in published dates stylesheet Yes
radio govuk_publishing_components 140 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 48 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 47 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 87 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 123 lines of code in share links template 155 lines of code in share links stylesheet
signup link govuk_publishing_components 32 lines of code in signup link template 36 lines of code in signup link stylesheet
single page notification button govuk_publishing_components 36 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 119 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
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, skip link, textarea
layout header
search
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