alphagov / calculators Goto Github PK
View Code? Open in Web Editor NEWServes the Child benefit tax calculator on GOV.UK
Home Page: https://docs.publishing.service.gov.uk/apps/calculators.html
License: MIT License
Serves the Child benefit tax calculator on GOV.UK
Home Page: https://docs.publishing.service.gov.uk/apps/calculators.html
License: MIT License
Dependabot can't resolve your Ruby dependencies.
As a result, Dependabot couldn't update any of your dependencies.
This could have been caused by a git reference having been deleted at the source, by an out-of-sync lockfile, or by a bug in Dependabot.
To help diagnose the issue, please try running bundle update --patch
locally. If no errors occur, get in touch and we'll help dig into it.
You can mention @dependabot in the comments below to contact the Dependabot team.
When you complete the child benefit tax calculator, you end up at a URL like this one
There is weird highlighting around the Results
tag, which disappears when it goes out of focus. (ie click on another part of the page)
Calculators uses the latest form styles from Elements. It should instead use the styles that government-frontend and now email-alert-frontend use, by reusing the form components in govuk_publishing_components.
eg
https://government-frontend.herokuapp.com/component-guide/radio
https://government-frontend.herokuapp.com/component-guide/error_summary
The calculator currently passes all input values as GET, meaning that it's possible to create very long URLs by typing long values into the form (for normal use this shouldn't be a problem for modern browsers, although attempting to claim for part of the year for 10 children can result in a URL of length > 3000 chars, limit for older IE is 2000).
If you trigger this, for example by putting in a ridiculously long number into each of the number fields, it triggers a 500 error, but it doesn't appear that this is being logged correctly in Erbit.
Running bundle install
for the first time results in the following warning:
Warning: the gem 'govuk_frontend_toolkit' was found in multiple sources.
Installed from: https://gem.fury.io/govuk/
Also found in:
* https://rubygems.org/
You should add a source requirement to restrict this gem to your preferred source.
For example:
gem 'govuk_frontend_toolkit', :source => 'https://gem.fury.io/govuk/'
Then uninstall the gem 'govuk_frontend_toolkit' (or delete all bundled gems) and then install again.
Subsequent runs of bundle install
result in the following warning:
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems.
To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
I can avoid the second warning by specifying the source of the 'govuk_frontend_toolkit' gem in either of the following two ways:
source 'https://[email protected]/govuk/' do
gem 'govuk_frontend_toolkit', '0.20.0'
end
# or
gem 'govuk_frontend_toolkit', '0.20.0', source: 'https://[email protected]/govuk/'
Even with the above changes, if I remove my bundled gems directory and then re-run bundle install
I still see the original warning.
This doesn't prevent anything from working but it's still somewhat frustrating.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.