Official upstream source mirror. Do not make UH changes here.
  • Ruby 75.2%
  • JavaScript 14.3%
  • HTML 6.2%
  • SCSS 2.4%
  • Gherkin 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-28 09:58:16 +01:00
.github Use standard workflow in CI rather than standardx 2026-09-10 14:39:20 +01:00
.yarn/releases Run yarn set version berry 2026-09-10 09:30:08 +01:00
app Fix linting errors 2026-09-14 11:31:02 +01:00
bin Generate binstubs for Bootsnap and Puma 2026-05-18 12:11:56 +01:00
config Restrict debugger to when using govuk-docker 2026-07-13 09:58:59 +01:00
db Rails, rspec, cucumber 2014-01-23 15:02:38 +00:00
docs Add documentation for debugging 2026-07-07 09:37:59 +01:00
features Update references 2026-07-02 13:31:35 +01:00
lib Add erb_lint 2026-07-08 16:41:02 +01:00
log Rails, rspec, cucumber 2014-01-23 15:02:38 +00:00
public Remove Brexit checker code 2021-12-01 10:54:04 +00:00
script Ruby lint double-quoted strings 2019-11-07 11:28:14 +00:00
spec Fix forbidden slug 2026-09-22 18:12:52 +01:00
vendor/assets Rails, rspec, cucumber 2014-01-23 15:02:38 +00:00
.dockerignore Remove obsolete Jenkinsfile. 2024-01-31 16:20:45 +00:00
.erb_lint.yml Add erb_lint 2026-07-08 16:41:02 +01:00
.gitignore Add yarn cache and install state to gitignore 2026-09-10 10:40:20 +01:00
.govuk_dependabot_merger.yml Add govuk dependabot merger v2 2024-05-07 06:16:32 +01:00
.rspec Rails, rspec, cucumber 2014-01-23 15:02:38 +00:00
.rubocop.yml Enable rubocop-rspec 2024-09-25 10:44:32 +00:00
.ruby-version Upgrade Ruby version to 4.0x 2026-05-18 11:44:42 +01:00
.yarnrc.yml Update configuration 2026-09-10 10:42:49 +01:00
app.json Remove static app variables 2026-01-13 11:36:34 +00:00
config.ru Run rails app:update 2021-05-06 11:46:10 +01:00
Dockerfile Upgrade Ruby version to 4.0x 2026-05-18 11:44:42 +01:00
Gemfile Bump govuk_app_config from 9.25.3 to 9.26.0 2026-09-11 15:42:37 +00:00
Gemfile.lock Merge pull request #4183 from alphagov/dependabot/bundler/rubyzip-3.4.0 2026-09-28 09:58:16 +01:00
LICENCE Rename Licence reference in README 2022-12-02 15:41:26 +00:00
package.json Remove resolutions rules in package.json 2026-09-16 11:52:20 +01:00
procfile.dev Change port to match the port in govuk-docker (which is the only place procfile is used) 2026-07-14 10:08:25 +01:00
Rakefile Remove PLEK_SERVICE_STATIC_URI from rakefile 2026-01-13 11:37:27 +00:00
README.md Add documentation for debugging 2026-07-07 09:37:59 +01:00
startup.sh Remove static app variables 2026-01-13 11:36:34 +00:00
yarn.lock Remove resolutions rules in package.json 2026-09-16 11:52:20 +01:00

Finder Frontend

Renders search on GOV.UK:

Live examples

Nomenclature

  • Finder: Page containing a list of filterable documents and filters.
  • Facets: Metadata associated with documents. See app/models/*_facet.rb for examples.
  • Filters: Searchable/filterable metadata for example case_state={open|closed} for a CMA case.
  • Parser: Transforms API responses into model objects.

Technical documentation

This is a Ruby on Rails app, and should follow our Rails app conventions.

Running the app locally

You can use the GOV.UK Docker environment or the local startup.sh script to run the app. Read the guidance on local frontend development to find out more about each approach, before you get started.

  • govuk-docker-up builds finder-frontend and all its dependent applications
  • govuk-docker-up app-live builds finder-frontend pointing at the production content store and search stack
  • govuk-docker-up app-integration builds finder-frontend pointing at the integration content store and search stack
  • govuk-docker-up app-live-local-search builds finder-frontend pointing at the live content store and a local version of search api.

Running the test suite

If you are using GOV.UK Docker, remember to prefix the commands that follow with govuk-docker-run. See the GOV.UK Docker usage instructions for examples.

# run all the tests
bundle exec rake

# run only feature tests
bundle exec cucumber

# run only JS tests
bundle exec rake jasmine:ci

Debugging support

See Debugging

Further documentation

See the docs/ directory for manuals and instructions.

Licence

MIT License