Giter VIP home page Giter VIP logo

cds-snc / c19-benefits-node Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 4.8 MB

Answer some questions to find which federal programs can help you https://covid-benefits.alpha.canada.ca/. - Répondez à quelques questions pour trouver quels programmes d’aide financière fédéraux s’offrent à vous https://covid-prestations.alpha.canada.ca/.

License: MIT License

JavaScript 50.09% Dockerfile 0.10% HTML 0.02% HCL 4.92% Shell 0.60% SCSS 9.24% Nunjucks 34.45% Mustache 0.60%
alpha c-19-benefits-finder cppd esdc

c19-benefits-node's People

Contributors

antoineaugusti avatar ben851 avatar calvinrodo avatar dsamojlenko avatar ericdube avatar jeffmaher avatar jneen avatar katedee avatar khalidelaggan avatar maxneuvians avatar pcraig3 avatar sastels avatar sboisvert avatar smcmurtry avatar snyk-bot avatar timarney avatar var-kyle avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

c19-benefits-node's Issues

Cleanup schemas

All the schemas in our current code aren't relevant/don't apply to our forms + flow. Remove unneeded ones, and add just a simple one for our current questions (which at this time are just required).

Make sure that an appropriate error message is present as well.

Spruce up the way back link works

As noted in #122 there are a few issues with the way back link is integrated. With out timeline, it works for now, but in the future, would be nice to find a better solution.

  • If they come in in the middle of the app, the link won’t show
  • If the session clears in the middle, it also won’t work
  • It’s not perfect on the first language toggle (but I’m hesitant to put a solution for this in place until #97 is worked out)
  • if a person errors, the referrer will become the same page

Add Session ID to logs

Would like to be able to track a user through the service. To do that, could add some kind of identifier to the log output.

That identifier could perhaps be a session ID? a GUID? a hashed IP?

Add Heading element to all Questions

See new designs in Figma. The Question is no longer the <h1> element, there is a new heading element on the page.

PR #113 removes the <h1> from the radios macro.

Routing on Question 2 needs to be corrected

Made the wrong assumption that retired folks go straight to RRIF, but it's just that the result is added for them, and so that needs to be amended so they still get asked about mortgage, etc.

Will double check the routing and add the changes while at it

Infrastructure work to align with ESDC Requirements

Set default language by domain

We'll have two domains resolving to our service:

  • covid-benefits.alpha.canada.ca
  • covid-prestations.alpha.canada.ca

At minimum, users coming in on the French domain should default to french.

Additionally, we should probably also handle switching the subdomain when switching languages.

For discussion: what to do when the subdomain and url path don't match? ie, what to do if someone arrives at the url: https://covid-benefits.alpha.canada.ca/fr/debut?

  • Do we redirect to https://covid-benefits.alpha.canada.ca/en/start?
  • Do we redirect to https://covid-prestations.alpha.canada.ca/fr/debut?
  • Do we just render based on the uri? (so the domain only matters when entering, but after that just the URI matters)

Also: should we (can we?) remove the /en and /fr prefixes from uri's?

Add back button to question screens

See updated designs in Figma. There is a new "Back" button above the page title that returns the user to the previous question. (Can this just hook into the browser history?)

Results Includes

Once PR #39 is merged, will need to enter final content for results includes:

  • CERB
  • EI Regular
  • EI Sickness
  • EI Workshare
  • CCB
  • Mortgage deferral
  • Rent help
  • Student loan
  • RRIF

Implement Cancel link

See new designs in Figma. The Start Over link on Q pages gets moved down underneath the Next button. This is functionally the same.

WxT it

  • Import WxT? (possible issues with stylesheet collisions - particularly with the css resets)
  • or implement mandatory elements with Tailwind.

Render a build identifier in the footer

To help identify what build is currently deployed, display some sort of build identifier. We've done this in the past with a git hash.

This can either be displayed in the footer, or in a hidden comment in the page layout.

Testing conveniences

Let's setup some conveniences for our testers:

  • Link/button to clear the session (building on #56 which adds a /clear route, let's make that link accessible for test facilitators - do we just tell them about the route? or add a link to the footer?)
  • Save session data at the end (do we just save automatically when they hit the results screen? Do we add a button for the facilitator to save the session? Make sure we save the session id, so we can query the path they took in the logs)

Refactor benefit-results.njk macro.

modify the "preamble" (Why did I call it that it's post not pre...), so that we don't have to have css and html in the localization file.

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.