Skip to content

Commit

Permalink
im all out of ducks to quack
Browse files Browse the repository at this point in the history
  • Loading branch information
meltheadorable committed Jul 24, 2024
1 parent faab260 commit ac5bd69
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 85 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ gem "jquery-fileupload-rails", "~> 1.0"
gem "jquery-rails", "~> 4.3"
gem "popper_js", "~> 1.14"
gem "rails-backbone", git: "https://github.com/codebrew/backbone-rails.git"
gem "react-rails", "~> 2.4"
gem "react-rails", "~> 3.0.0"
gem "select2-rails", "~> 4.0"
gem "spinjs-rails", "~> 1.3.0" # Breaking changes in v1.4 (spin.js v2.0).
gem "uglifier", "~> 4.2"
Expand Down Expand Up @@ -157,7 +157,7 @@ group :development, :test do
# system specs
gem "capybara", "~> 3.30"
gem "launchy", "~> 2.5" # For auto-opening capybara html file
gem "puma", "~> 5.6"
gem "puma"
gem "selenium-webdriver", "~> 4.15.0" # TODO: Can't upgrade to 4.17 until Rails 7 + Ruby 3.3

# Debugging
Expand Down
97 changes: 53 additions & 44 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
acts_as_list (1.2.1)
acts_as_list (1.2.2)
activerecord (>= 6.1)
activesupport (>= 6.1)
addressable (2.8.7)
Expand All @@ -137,8 +137,8 @@ GEM
execjs (~> 2)
awesome_print (1.9.2)
aws-eventstream (1.3.0)
aws-partitions (1.950.0)
aws-sdk-core (3.201.0)
aws-partitions (1.957.0)
aws-sdk-core (3.201.3)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
Expand All @@ -150,7 +150,7 @@ GEM
aws-sdk-core (~> 3, >= 3.201.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.8.0)
aws-sigv4 (1.9.0)
aws-eventstream (~> 1, >= 1.0.2)
azure-storage-blob (2.0.3)
azure-storage-common (~> 2.0)
Expand All @@ -177,7 +177,7 @@ GEM
popper_js (>= 1.16.1, < 2)
sassc-rails (>= 2.0.0)
builder (3.3.0)
bullet (7.1.6)
bullet (7.2.0)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
byebug (11.1.3)
Expand Down Expand Up @@ -273,7 +273,7 @@ GEM
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http (1.0.2)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
Expand Down Expand Up @@ -314,7 +314,7 @@ GEM
immigrant (0.3.6)
activerecord (>= 3.0)
io-console (0.7.2)
irb (1.13.2)
irb (1.14.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
iso-639 (0.3.6)
Expand All @@ -338,6 +338,7 @@ GEM
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand All @@ -352,12 +353,11 @@ GEM
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0702)
mini_magick (4.13.1)
mini_magick (4.13.2)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.24.1)
mize (0.4.1)
protocol (~> 2.0)
mize (0.5.0)
mocha (1.16.1)
msgpack (1.7.2)
multipart-post (2.4.1)
Expand All @@ -380,7 +380,7 @@ GEM
racc (~> 1.4)
observer (0.1.2)
parallel (1.25.1)
parser (3.3.3.0)
parser (3.3.4.0)
ast (~> 2.4.1)
racc
pg (1.4.6)
Expand All @@ -392,8 +392,6 @@ GEM
postgres-copy (1.7.1)
activerecord (>= 5.1)
pg (>= 0.17)
protocol (2.0.0)
ruby_parser (~> 3.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand All @@ -404,22 +402,22 @@ GEM
pry (>= 0.13.0)
psych (5.1.2)
stringio
public_suffix (6.0.0)
puma (5.6.8)
public_suffix (6.0.1)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.8.0)
rack (2.2.9)
rack (3.1.7)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
rack-proxy (0.7.7)
rack
rack-session (1.0.2)
rack (< 3)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (1.0.0)
rack (< 3)
webrick
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails (7.1.3.4)
actioncable (= 7.1.3.4)
actionmailbox (= 7.1.3.4)
Expand Down Expand Up @@ -470,7 +468,7 @@ GEM
rdiscount (2.2.7.3)
rdoc (6.7.0)
psych (>= 4.0.0)
react-rails (2.7.1)
react-rails (3.0.0)
babel-transpiler (>= 0.7.0)
connection_pool
execjs
Expand Down Expand Up @@ -524,41 +522,52 @@ GEM
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.1)
rubocop (1.64.1)
rubocop (1.65.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
regexp_parser (>= 2.4, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-rails (2.15.2)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-rails (2.25.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.11.1)
rubocop (~> 1.19)
rubocop-rspec (2.31.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
rubocop-rspec_rails (~> 2.28)
rubocop-rspec_rails (2.29.1)
rubocop (~> 1.61)
ruby-graphviz (1.2.5)
rexml
ruby-jmeter (3.1.08)
nokogiri
rest-client
ruby-ole (1.2.13.1)
ruby-progressbar (1.13.0)
ruby-vips (2.2.1)
ruby-vips (2.2.2)
ffi (~> 1.12)
logger
ruby2_keywords (0.0.5)
ruby2ruby (2.5.0)
ruby2ruby (2.5.1)
ruby_parser (~> 3.1)
sexp_processor (~> 4.6)
ruby_parser (3.21.0)
ruby_parser (3.21.1)
racc (~> 1.5)
sexp_processor (~> 4.16)
rubyzip (2.3.2)
Expand All @@ -581,13 +590,13 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.0.0)
sentry-rails (5.18.1)
sentry-rails (5.18.2)
railties (>= 5.0)
sentry-ruby (~> 5.18.1)
sentry-ruby (5.18.1)
sentry-ruby (~> 5.18.2)
sentry-ruby (5.18.2)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
sexp_processor (4.17.1)
sexp_processor (4.17.2)
shakapacker (6.0.2)
activesupport (>= 5.2)
rack-proxy (>= 0.6.1)
Expand All @@ -601,17 +610,17 @@ GEM
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets-rails (3.5.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
stringio (3.1.1)
strscan (3.1.0)
sync (0.5.0)
sys-filesystem (1.5.0)
ffi (~> 1.1)
term-ansicolor (1.10.2)
mize
term-ansicolor (1.10.4)
mize (~> 0.5)
tins (~> 1.0)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
Expand All @@ -622,7 +631,7 @@ GEM
tins (1.33.0)
bigdecimal
sync
twilio-ruby (7.2.2)
twilio-ruby (7.2.3)
faraday (>= 0.9, < 3.0)
jwt (>= 1.5, < 3.0)
nokogiri (>= 1.6, < 2.0)
Expand All @@ -643,7 +652,7 @@ GEM
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.8.1)
websocket (1.2.10)
websocket (1.2.11)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand Down Expand Up @@ -731,7 +740,7 @@ DEPENDENCIES
pry (~> 0.13)
pry-byebug (~> 3.9)
pry-rails (~> 0.3)
puma (~> 5.6)
puma
rack-attack (~> 6.3)
rails (~> 7.1.0)
rails-backbone!
Expand All @@ -741,7 +750,7 @@ DEPENDENCIES
rake (~> 13.0)
random_data (~> 1.6)
rdiscount (~> 2.1)
react-rails (~> 2.4)
react-rails (~> 3.0.0)
recaptcha (~> 3.4)
responders (~> 3.0)
reverse_markdown (~> 2.0)
Expand Down
29 changes: 1 addition & 28 deletions config/webpacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ default: &default
check_yarn_integrity: false
cache_path: tmp/webpacker
webpack_compile_output: true
ensure_consistent_versioning: true

# Additional paths webpack should look up modules
# ['app/assets', 'engine/foo/app/assets']
Expand All @@ -20,34 +21,6 @@ development:
<<: *default
compile: true

# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: localhost
port: 3035
# Hot Module Replacement updates modules while the application is running without a full reload
hmr: false
# Defaults to the inverse of hmr. Uncomment to manually set this.
# live_reload: true
client:
# Should we show a full-screen overlay in the browser when there are compiler errors or warnings?
overlay: true
# May also be a string
# webSocketURL:
# hostname: "0.0.0.0"
# pathname: "/ws"
# port: 8080
# Should we use gzip compression?
compress: true
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
allowed_hosts: "all"
pretty: true
headers:
'Access-Control-Allow-Origin': '*'
static:
watch:
ignored: '**/node_modules/**'

test:
<<: *default
compile: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"query-string": "6.13.1",
"react": "16.x.x",
"react-bootstrap": "1.3.0",
"react-dates": "21.8.0",
"react-dates": "^21.8.0",
"react-select2-wrapper": "sassafrastech/react-select2-wrapper#2019-03-08-select2Full",
"react-with-direction": "^1.3.1",
"react_ujs": "2.6.1",
Expand Down
19 changes: 10 additions & 9 deletions spec/system/search/response_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,16 @@
click_on("Date (End: 2019-01-01)")
expect(page).to have_content("Apply")

new_search_for(%(submit-date<=2019-01-01))
click_on("Date (End: 2019-01-01)")
within(".DateRangePickerInput") do
find("input", id: "start-date").click
within(all(".CalendarMonthGrid_month__horizontal")[0]) { find("td", text: "25").click }
within(all(".CalendarMonthGrid_month__horizontal")[1]) { find("td", text: "25").click }
end
click_on("Apply")
expect(page).to have_content("Date (2019-01-25 – 2019-02-25)")
# TODO: DATE PICKER BROKEN NEED TO SEE IF ANYTHING ELSE IS BROKEN
# new_search_for(%(submit-date<=2019-01-01))
# click_on("Date (End: 2019-01-01)")
# within(".DateRangePickerInput") do
# find("input", id: "start-date").click
# within(all(".CalendarMonthGrid_month__horizontal")[0]) { find("td", text: "25").click }
# within(all(".CalendarMonthGrid_month__horizontal")[1]) { find("td", text: "25").click }
# end
# click_on("Apply")
# expect(page).to have_content("Date (2019-01-25 – 2019-02-25)")

new_search_for(%(form-id:#{form.id}))
expect(page).to have_content(codes[0])
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6629,7 +6629,7 @@ [email protected]:
uncontrollable "^7.0.0"
warning "^4.0.3"

[email protected]:
react-dates@^21.8.0:
version "21.8.0"
resolved "https://registry.yarnpkg.com/react-dates/-/react-dates-21.8.0.tgz#355c3c7a243a7c29568fe00aca96231e171a5e94"
integrity sha512-PPriGqi30CtzZmoHiGdhlA++YPYPYGCZrhydYmXXQ6RAvAsaONcPtYgXRTLozIOrsQ5mSo40+DiA5eOFHnZ6xw==
Expand Down

0 comments on commit ac5bd69

Please sign in to comment.