From 5e6d4352775fb8fb57a6283920f775c88b3578ef Mon Sep 17 00:00:00 2001 From: Ryan Wold <64987852+ryanwoldatwork@users.noreply.github.com> Date: Wed, 19 Jul 2023 11:23:07 -0700 Subject: [PATCH] Form builder drag handles * use a dropdown for HISP Portfolio Managers * update gems * specify chrome version because CircleCI can't find the latest 115.x --- .circleci/config.yml | 9 ++- Dockerfile | 2 +- Gemfile | 2 +- Gemfile.lock | 61 ++++++++++--------- app/assets/stylesheets/site.scss | 1 - app/views/admin/form_sections/_view.html.erb | 7 +++ app/views/admin/questions/_question.html.erb | 9 +++ .../admin/service_providers/_form.html.erb | 4 +- .../components/forms/edit/_builder.html.erb | 2 + .../forms/edit/_button_dropdown.html.erb | 2 +- spec/rails_helper.rb | 2 + 11 files changed, 64 insertions(+), 37 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bc67c3fc..1b58c5a2a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,11 +2,14 @@ # # Check https://circleci.com/docs/2.0/language-ruby/ for more details # -version: 2 +version: 2.1 +orbs: + browser-tools: circleci/browser-tools@1.4.2 + jobs: build: docker: - - image: cimg/ruby:3.1.3-browsers + - image: cimg/ruby:3.1.4-browsers environment: RAILS_ENV: test PGHOST: 127.0.0.1 @@ -23,6 +26,8 @@ jobs: working_directory: ~/repo steps: + - browser-tools/install-browser-tools + - checkout # Download and cache dependencies diff --git a/Dockerfile b/Dockerfile index 90973c047..7fba25646 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.1.3-slim +FROM ruby:3.1.4-slim RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ diff --git a/Gemfile b/Gemfile index 89a2abc5e..67dda5718 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } -ruby '3.1.3' +ruby '3.1.4' # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem "rails", "~> 7.0.4" diff --git a/Gemfile.lock b/Gemfile.lock index dbe343ac8..2395dcaf9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,36 +96,36 @@ GEM aes_key_wrap (1.1.0) ast (2.4.2) aws-eventstream (1.2.0) - aws-partitions (1.783.0) + aws-partitions (1.788.0) aws-record (2.11.0) aws-sdk-dynamodb (~> 1, >= 1.85.0) - aws-sdk-core (3.176.1) + aws-sdk-core (3.178.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) jmespath (~> 1, >= 1.6.1) - aws-sdk-dynamodb (1.90.0) - aws-sdk-core (~> 3, >= 3.176.0) + aws-sdk-dynamodb (1.92.0) + aws-sdk-core (~> 3, >= 3.177.0) aws-sigv4 (~> 1.1) - aws-sdk-rails (3.7.1) + aws-sdk-rails (3.8.0) aws-record (~> 2) - aws-sdk-ses (~> 1) - aws-sdk-sesv2 (~> 1) - aws-sdk-sqs (~> 1) + aws-sdk-ses (~> 1, >= 1.50.0) + aws-sdk-sesv2 (~> 1, >= 1.34.0) + aws-sdk-sqs (~> 1, >= 1.56.0) aws-sessionstore-dynamodb (~> 2) concurrent-ruby (~> 1) railties (>= 5.2.0) - aws-sdk-ses (1.49.0) - aws-sdk-core (~> 3, >= 3.165.0) + aws-sdk-ses (1.54.0) + aws-sdk-core (~> 3, >= 3.177.0) aws-sigv4 (~> 1.1) - aws-sdk-sesv2 (1.32.0) - aws-sdk-core (~> 3, >= 3.165.0) + aws-sdk-sesv2 (1.38.0) + aws-sdk-core (~> 3, >= 3.177.0) aws-sigv4 (~> 1.1) - aws-sdk-sqs (1.53.0) - aws-sdk-core (~> 3, >= 3.165.0) + aws-sdk-sqs (1.61.0) + aws-sdk-core (~> 3, >= 3.177.0) aws-sigv4 (~> 1.1) - aws-sessionstore-dynamodb (2.0.1) - aws-sdk-dynamodb (~> 1) + aws-sessionstore-dynamodb (2.1.0) + aws-sdk-dynamodb (~> 1, >= 1.85.0) rack (~> 2) aws-sigv4 (1.6.0) aws-eventstream (~> 1, >= 1.0.2) @@ -169,7 +169,7 @@ GEM chronic (0.10.2) coderay (1.1.3) concurrent-ruby (1.2.2) - connection_pool (2.4.0) + connection_pool (2.4.1) crass (1.0.6) database_cleaner (2.0.2) database_cleaner-active_record (>= 2, < 3) @@ -243,7 +243,7 @@ GEM bindata httpclient jsonapi-renderer (0.2.2) - jwt (2.7.0) + jwt (2.7.1) kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -262,7 +262,7 @@ GEM listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logstop (0.3.0) + logstop (0.3.1) loofah (2.21.3) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -279,9 +279,9 @@ GEM mime-types-data (3.2023.0218.1) mini_magick (4.12.0) mini_mime (1.1.2) - mini_portile2 (2.8.2) + mini_portile2 (2.8.4) minitest (5.18.1) - msgpack (1.7.1) + msgpack (1.7.2) multi_json (1.15.0) multi_xml (0.6.0) multipart-post (2.3.0) @@ -294,7 +294,7 @@ GEM timeout net-smtp (0.3.3) net-protocol - newrelic_rpm (9.3.0) + newrelic_rpm (9.3.1) nio4r (2.5.9) nokogiri (1.15.3) mini_portile2 (~> 2.8.2) @@ -330,7 +330,7 @@ GEM pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - public_suffix (5.0.1) + public_suffix (5.0.3) puma (5.6.5) nio4r (~> 2.0) racc (1.7.1) @@ -383,8 +383,8 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - redis (4.8.0) - redis-namespace (1.10.0) + redis (4.8.1) + redis-namespace (1.11.0) redis (>= 4) regexp_parser (2.8.1) request_store (1.5.1) @@ -399,7 +399,7 @@ GEM rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-mocks (3.12.5) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-rails (6.0.3) @@ -413,7 +413,7 @@ GEM rspec-support (3.12.1) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.54.1) + rubocop (1.54.2) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -428,13 +428,16 @@ GEM parser (>= 3.2.1.0) rubocop-capybara (2.18.0) rubocop (~> 1.41) + rubocop-factory_bot (2.23.1) + rubocop (~> 1.33) rubocop-rails (2.20.2) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) - rubocop-rspec (2.19.0) + rubocop-rspec (2.22.0) rubocop (~> 1.33) rubocop-capybara (~> 2.17) + rubocop-factory_bot (~> 2.22) ruby-graphviz (1.2.5) rexml ruby-progressbar (1.13.0) @@ -577,7 +580,7 @@ DEPENDENCIES whenever RUBY VERSION - ruby 3.1.3p185 + ruby 3.1.4p223 BUNDLED WITH 2.3.12 diff --git a/app/assets/stylesheets/site.scss b/app/assets/stylesheets/site.scss index 56863924f..82ba24a90 100644 --- a/app/assets/stylesheets/site.scss +++ b/app/assets/stylesheets/site.scss @@ -481,7 +481,6 @@ span.usa-hint.save-notice { margin: 10px 0; padding-bottom: 20px; padding-left: 20px; - padding-right: 20px; padding-top: 1px; } .word-break { diff --git a/app/views/admin/form_sections/_view.html.erb b/app/views/admin/form_sections/_view.html.erb index fe641e78a..1dcd86671 100644 --- a/app/views/admin/form_sections/_view.html.erb +++ b/app/views/admin/form_sections/_view.html.erb @@ -2,6 +2,13 @@