Coder Social home page Coder Social logo

hpcds-screens's Introduction

HPCDS prototype screens

Browse screenshots of HPCDS prototypes and scenarios.

http://ministryofjustice.github.io/hpcds-screens/

You can view prototypes as an overview, or select a screen for more detail and then step through them in order.

Running the app locally

The app is very simple. You can view screens locally by opening the root index.html file in a browser.

It works especially well in Chrome's presentation mode. Your experience may vary in other browsers.

How to contribute your screens

Adding your screens is a great way to showcase the problems you've solved. It also allows us to ensure consistency across all our services and helps to identify design patterns.

Screenshots of production services are better than prototypes as they show what’s currently seen by our users. Also, it’s not easy to screenshot a service that requires authentication.

Creating pull requests are the best way to contribute. So, you'll need to know how to use GitHub.

Option 01

You'll need to have node installed to contribute screens using this option.

Using the command line tool (CLI), you can create a service and add screenshots you’ve taken, scenario by scenario. The prompts in the CLI are straightforward:

1. Run the tool

  1. Open your terminal
  2. Navigate to the root directory
  3. If this is the first time you've run the tool you'll have to run npm install
  4. Type npm run add
  5. Follow the prompts

You’ll be given a list of the services that are already in the app and the option to add a new one.

To add a new scenario to an existing service

  • Select the service from the list
  • Hit enter
  • Enter the name of the scenario

To add a new service:

  • Select 'create a new service'
  • Hit enter
  • Enter the name of the service
  • Enter the name of the scenario

2. Add your images

Each service has its own folder in /service. Add all your images into the scenario folder in the service's images directory.

Return to the command line and hit enter. Your screenshots will be renamed (to make them web friendly) and ordered chronologically according to when they were created. This means that as you've captured the screens while navigating through a journey, they’ll be in the same order in the app.

Capturing screenshots

On OSX, Paparazzi is the best way to capture screenshots. You can set the maximum and minimum widths for the screens (1024px wide is best), and it can capture images in batches.

Nixon is a tool that allows you to automate screenshot capture using CasperJS or PhantomJS.

On Windows you can use the Awesome Screenshot plugin for Chrome.

You can also use services like BrowserStack or Sauce Labs for automated serverside screenshot capture.

Future enhancements

We plan to add more functionality to the app to make it even easier to take screenshots and add them to the app.

Through the UI, you’ll be able to:

  • add notes to each screen
  • rearrange the screens
  • take screenshots

Acknowledgements

hpcds-screens's People

Contributors

rowlando avatar

Watchers

 avatar  avatar  avatar

Forkers

uk-gov-mirror

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.