Skip to content

Project board - https://github.com/alphagov/verify-local-patterns/projects/1 ||||| This is a prototype of some content that will be included in the GOV.UK Service Toolkit about the best practice for councils to deliver two services - parking permits and concessionary travel. The repo also includes a working prototype of both services which follo…

License

Notifications You must be signed in to change notification settings

EUzkuraityte/verify-local-patterns

 
 

Repository files navigation

Verify Local Patterns

About this project

This project includes two things:

  • Pattern guidance: This is content that will be included in the GOV.UK Service Manual outlining best practice for councils to deliver two services - "Apply for a resident's parking permit" and "Apply for an older person's bus pass."
  • A working prototype of both services which follows the pattern. By default this is styled for the fictional council of Argleton, but the prototype can be localised.

Localising the prototype

If you are working with a council involved in the #VerifyLocal pilots project, you need to localise the prototype to properly test it for your user research. This involves:

  1. Forking the repository and running it locally
  2. Adding your council options
  3. Adding a council stylesheet and template
  4. Making a pull request

1. Forking this repository and running it locally

  • First, fork the repository.
  • You'll need to run npm install from the command line to install the node modules that the project requires.
  • To start your local server, run npm start from the command line.
  • The project will now be accessible in your browser at http://localhost:3000.

2. Adding your council options

  • If you navigate to http://localhost:3000/council-picker, you should see the councils that have been added so far as options.
  • To add your council as an option, first open app/councils.json.
  • Copy one of the other council objects. This will look something like this:
{
  "name" : "Argleton County Council",
  "shortName": "Argleton",
  "parkingBoundary": "Argleton City Centre",
  "permitMax": "four",
  "permitsCosts": [51, 81, 153, 153],
  "permitWait": 0,
  "string" : "argleton"
},

(Every object needs the comma at the end except for the last object. Read more about valid JSON.)

  • Fill in the options relevant to your council.
  • You can delete the parking permits options if you're only doing the bus pass pilot, and vice versa.
  • The string option should be lowercase.
  • If you want to see where any option is used, do a project search for the option name in your text editor.

Once you've added your council into app/councils.json, your council will show up as an option in http://localhost:3000/council-picker. You can select it, but the page will look pretty broken until you do the next step.

If you need to add new options for further localisations, either talk to us on Slack, or raise an issue on Github. For example, if your council doesn't charge anything for permits - Let us know and we'll back it possible for that to be an option in the kit.

3. Adding a council stylesheet and template

  • The council stylesheets are in app/assets/sass/. You should name your file with your string option set in step 2. For example if your string option is exampleland, your stylesheet should be exampleland.scss
    • The project uses Sass for writing CSS. You don't need to use this though, you can just write normal CSS - But either way, you should save your CSS or SCSS file with a .scss file extension.
  • The layout templates are in lib/. The file should be called [string]_template.html. (eg exampleland_template.html).
    • The HTML template language is Nunjucks.

Once you've added the above, you should be able to step through your prototype. Do what you can with those two files to make the prototype look like the live service will look on your council's website.

4. Making a pull request

Once you're happy with your changes, make a pull request from your fork.

Contributing issues

If you spot an issue, add it to this project. But first, read the contributing to this project guide.

We're currently using the GitHub project board to manage tasks and iterations, so you can see if what you've found is something we're already working on.

Using this project

Feel free to fork or use this project for testing government services.

If you fix a bug, or want your changes to be hosted on our Heroku instance for some other reason, feel free to make a pull request.

Argleton styles

CSS for the Argleton prototype are found in app/assets/sass/unbranded.scss.

HTML for the services are found in app/views/service-patterns/[service-name]/example-service.

Routes

To change where a user goes when they click options such as radio buttons, you'll need to edit app/routes.js. Read more about that in the prototype kit docs.


Here follows the docs ported over from the prototype kit.

GOV.UK Prototype kit

About the prototype kit

The prototype kit provides a simple way to make interactive prototypes that look like pages on GOV.UK. These prototypes can be used to show ideas to people you work with, and to do user research.

Read the project principles.

Security

If you publish your prototypes online, they must be protected by a username and password. This is to prevent members of the public finding prototypes and thinking they are real services.

You must protect user privacy at all times, even when using prototypes. Prototypes made with the kit look like GOV.UK, but do not have the same security provisions. Always make sure you are handling user data appropriately.

Installation instructions

Guides

  1. Setting up git
  2. Publishing on the web (Heroku)
  3. Using GOV.UK Verify

Other documentation

Community

We have two Slack channels for the Prototype kit. You'll need a government email address to join them.

About

Project board - https://github.com/alphagov/verify-local-patterns/projects/1 ||||| This is a prototype of some content that will be included in the GOV.UK Service Toolkit about the best practice for councils to deliver two services - parking permits and concessionary travel. The repo also includes a working prototype of both services which follo…

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 76.5%
  • JavaScript 15.8%
  • CSS 6.9%
  • Shell 0.8%