File tree Expand file tree Collapse file tree
app/controllers/appliance_calculator/daily_usage_creation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,17 +34,20 @@ gem "meta-tags", "~> 2.22"
3434# Reduces boot times through caching; required in config/boot.rb
3535gem "bootsnap" , require : false
3636
37+ # Use the Citizens Advice Design System
38+ # Pinned version, should match @citizensadvice/design-system in package.json
3739gem "citizens_advice_components" ,
3840 github : "citizensadvice/design-system" ,
3941 tag : "v8.1.0" ,
4042 glob : "engine/*.gemspec"
4143
42- gem "citizens_advice_form_builder" ,
43- github : "citizensadvice/rails-form-builder" ,
44- tag : "v0.2.0"
45-
44+ # The citizens_advice_components gem uses view component but we also use this to write
45+ # our app components so explicitly name it as an application dependency.
4646gem "view_component" , "~> 3.23"
4747
48+ # Multi-step forms. Used alongside the design system form builder
49+ gem "wizard_steps" , "~> 0.1.4"
50+
4851gem "datadog"
4952gem "factory_bot_rails"
5053gem "faraday"
@@ -93,5 +96,3 @@ group :test do
9396 gem "selenium-webdriver"
9497 gem "webdrivers"
9598end
96-
97- gem "wizard_steps" , "~> 0.1.4"
Original file line number Diff line number Diff line change 3535 railties (>= 7.1.0 , < 9.0 )
3636 view_component (>= 2.0.0 , < 5.0 )
3737
38- GIT
39- remote: https://github.com/citizensadvice/rails-form-builder.git
40- revision: c55469691bd453f665a299d592e1ef263024e454
41- tag: v0.2.0
42- specs:
43- citizens_advice_form_builder (0.2.0 )
44- actionpack (>= 6.1.0 , < 8.0 )
45- actionview (>= 6.1.0 , < 8.0 )
46- activemodel (>= 6.1.0 , < 8.0 )
47- activerecord (>= 6.1.0 , < 8.0 )
48- activesupport (>= 6.1.0 , < 8.0 )
49- citizens_advice_components
50-
5138GEM
5239 remote: https://rubygems.org/
5340 specs:
@@ -547,7 +534,6 @@ DEPENDENCIES
547534 capybara_accessible_selectors !
548535 citizens-advice-style !
549536 citizens_advice_components !
550- citizens_advice_form_builder !
551537 climate_control
552538 cssbundling-rails
553539 cucumber-rails
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class StepsController < ApplicationController
77
88 self . wizard_class = ::DailyUsageCreation ::Wizard
99
10- default_form_builder ::CitizensAdviceFormBuilder ::FormBuilder
10+ default_form_builder ::CitizensAdviceComponents ::FormBuilder
1111
1212 class MissingApplianceError < StandardError ; end
1313
You can’t perform that action at this time.
0 commit comments