From 4233c39e544d5796182fb33baf847aa2ae3e7801 Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Sun, 26 Nov 2023 13:43:10 -0500 Subject: [PATCH 01/75] Allow Supervisors and Admins to See Learning Hours (#5404) --- app/controllers/learning_hours_controller.rb | 9 ++-- app/helpers/learning_hours_helper.rb | 7 +++ app/javascript/application.js | 2 + app/javascript/datatable.js | 7 +++ app/javascript/src/all_casa_admin/tables.js | 11 ++-- app/javascript/src/learning_hours.js | 5 ++ app/models/learning_hour.rb | 16 ++++++ app/policies/learning_hour_policy.rb | 28 ++++++++++ app/views/layouts/_sidebar.html.erb | 2 +- app/views/learning_hours/_form.html.erb | 2 +- .../_supervisor_admin_learning_hours.html.erb | 41 ++++++++++++++ .../_volunteer_learning_hours.html.erb | 48 +++++++++++++++++ app/views/learning_hours/index.html.erb | 53 ++----------------- app/views/learning_hours/show.html.erb | 4 +- config/routes.rb | 2 +- spec/helpers/learning_hours_helper_spec.rb | 20 +++++++ spec/models/learning_hour_spec.rb | 44 +++++++++++++++ .../learning_hour_policy/scope_spec.rb | 30 +++++++++++ spec/policies/learning_hour_policy_spec.rb | 23 ++++++++ spec/requests/learning_hours_spec.rb | 40 ++++++++++++-- spec/system/learning_hours/edit_spec.rb | 2 +- spec/system/learning_hours/index_spec.rb | 53 +++++++++++++++++++ spec/system/learning_hours/new_spec.rb | 2 +- spec/system/volunteers/new_spec.rb | 4 +- 24 files changed, 384 insertions(+), 71 deletions(-) create mode 100644 app/helpers/learning_hours_helper.rb create mode 100644 app/javascript/datatable.js create mode 100644 app/javascript/src/learning_hours.js create mode 100644 app/views/learning_hours/_supervisor_admin_learning_hours.html.erb create mode 100644 app/views/learning_hours/_volunteer_learning_hours.html.erb create mode 100644 spec/helpers/learning_hours_helper_spec.rb create mode 100644 spec/policies/learning_hour_policy/scope_spec.rb create mode 100644 spec/policies/learning_hour_policy_spec.rb create mode 100644 spec/system/learning_hours/index_spec.rb diff --git a/app/controllers/learning_hours_controller.rb b/app/controllers/learning_hours_controller.rb index 1891201810..ac2ba73cc5 100644 --- a/app/controllers/learning_hours_controller.rb +++ b/app/controllers/learning_hours_controller.rb @@ -3,7 +3,8 @@ class LearningHoursController < ApplicationController after_action :verify_authorized, except: :index # TODO add this back and fix all tests def index - @learning_hours = LearningHour.where(user_id: current_user.id) + authorize LearningHour + @learning_hours = policy_scope(LearningHour) end def show @@ -21,7 +22,7 @@ def create respond_to do |format| if @learning_hour.save - format.html { redirect_to volunteer_learning_hours_path(current_user), notice: "New entry was successfully created." } + format.html { redirect_to learning_hours_path, notice: "New entry was successfully created." } else format.html { render :new, status: 404 } end @@ -36,7 +37,7 @@ def update authorize @learning_hour respond_to do |format| if @learning_hour.update(update_learning_hours_params) - format.html { redirect_to volunteer_learning_hour_path(current_user, @learning_hour), notice: "Entry was successfully updated." } + format.html { redirect_to learning_hour_path(@learning_hour), notice: "Entry was successfully updated." } else format.html { render :edit, status: 404 } end @@ -47,7 +48,7 @@ def destroy authorize @learning_hour @learning_hour.destroy flash[:notice] = "Entry was successfully deleted." - redirect_to volunteer_learning_hours_path(volunteer_id: current_user.id) + redirect_to learning_hours_path end private diff --git a/app/helpers/learning_hours_helper.rb b/app/helpers/learning_hours_helper.rb new file mode 100644 index 0000000000..27c1230e2d --- /dev/null +++ b/app/helpers/learning_hours_helper.rb @@ -0,0 +1,7 @@ +module LearningHoursHelper + def format_time(minutes) + hours = minutes / 60 + remaining_minutes = minutes % 60 + "#{hours} hours #{remaining_minutes} minutes" + end +end diff --git a/app/javascript/application.js b/app/javascript/application.js index 234037cf49..36211fe518 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -6,6 +6,7 @@ import './sweet-alert-confirm.js' import './controllers' import 'trix' import '@rails/actiontext' +import './datatable.js' require('datatables.net-dt')(null, window.jQuery) // First parameter is the global object. Defaults to window if null require('select2')(window.jQuery) @@ -35,3 +36,4 @@ require('./src/display_app_metric.js') require('./src/casa_org') require('./src/sms_reactivation_toggle') require('./src/validated_form') +require('./src/learning_hours') diff --git a/app/javascript/datatable.js b/app/javascript/datatable.js new file mode 100644 index 0000000000..439af46cd1 --- /dev/null +++ b/app/javascript/datatable.js @@ -0,0 +1,7 @@ +/* global $ */ + +export function initializeDataTable (selector) { + if ($(selector).length > 0) { + $(selector).DataTable({ searching: true, order: [[0, 'asc']] }) + } +} diff --git a/app/javascript/src/all_casa_admin/tables.js b/app/javascript/src/all_casa_admin/tables.js index b25338cf44..5054d519f0 100644 --- a/app/javascript/src/all_casa_admin/tables.js +++ b/app/javascript/src/all_casa_admin/tables.js @@ -1,11 +1,8 @@ /* global $ */ -$(() => { // JQuery's callback for the DOM loading - if ($('table.admin-list').length > 0) { - $('table.admin-list').DataTable({ searching: true, order: [[0, 'asc']] }) - } +import { initializeDataTable } from '../../datatable' - if ($('table.organization-list').length > 0) { - $('table.organization-list').DataTable({ searching: true, order: [[0, 'asc']] }) - } +$(() => { + initializeDataTable('table.admin-list') + initializeDataTable('table.organization-list') }) diff --git a/app/javascript/src/learning_hours.js b/app/javascript/src/learning_hours.js new file mode 100644 index 0000000000..ad6a47a9de --- /dev/null +++ b/app/javascript/src/learning_hours.js @@ -0,0 +1,5 @@ +import { initializeDataTable } from '../datatable' + +$(() => { + initializeDataTable('table#learning-hours') +}) diff --git a/app/models/learning_hour.rb b/app/models/learning_hour.rb index 9a1da439d5..509d55b279 100644 --- a/app/models/learning_hour.rb +++ b/app/models/learning_hour.rb @@ -10,6 +10,22 @@ class LearningHour < ApplicationRecord validate :occurred_at_not_in_future validates :learning_hour_topic, presence: true, if: :user_org_learning_topic_enable? + scope :supervisor_volunteers_learning_hours, ->(supervisor_id) { + joins(user: :supervisor_volunteer) + .where(supervisor_volunteers: {supervisor_id: supervisor_id}) + .select("users.id as user_id, users.display_name, SUM(learning_hours.duration_minutes + learning_hours.duration_hours * 60) AS total_time_spent") + .group("users.display_name, users.id") + .order("users.display_name") + } + + scope :all_volunteers_learning_hours, ->(casa_admin_org_id) { + joins(:user) + .where(users: {casa_org_id: casa_admin_org_id}) + .select("users.id as user_id, users.display_name, SUM(learning_hours.duration_minutes + learning_hours.duration_hours * 60) AS total_time_spent") + .group("users.display_name, users.id") + .order("users.display_name") + } + private def zero_duration_hours? diff --git a/app/policies/learning_hour_policy.rb b/app/policies/learning_hour_policy.rb index 2ec969d828..8a25d9255b 100644 --- a/app/policies/learning_hour_policy.rb +++ b/app/policies/learning_hour_policy.rb @@ -1,4 +1,8 @@ class LearningHourPolicy < ApplicationPolicy + def index? + admin_or_supervisor_or_volunteer? + end + def show? record.user_id == @user.id end @@ -11,4 +15,28 @@ def new? alias_method :destroy?, :show? alias_method :create?, :show? alias_method :update?, :show? + + class Scope + attr_reader :user, :scope + + def initialize(user, scope) + @user = user + @scope = scope + end + + def resolve + case user + when CasaAdmin + scope.all_volunteers_learning_hours(@user.casa_org_id) + when Supervisor + scope.supervisor_volunteers_learning_hours(@user.id) + when Volunteer + scope.where(user_id: @user.id) + else + raise "unrecognized role #{@user.type}" + end + end + + alias_method :index?, :resolve + end end diff --git a/app/views/layouts/_sidebar.html.erb b/app/views/layouts/_sidebar.html.erb index fcd04bc085..2bdea65724 100644 --- a/app/views/layouts/_sidebar.html.erb +++ b/app/views/layouts/_sidebar.html.erb @@ -38,7 +38,7 @@ <%= group.with_link(title: "All", path: case_contacts_path, nav_item: false) %> <% group.with_links(current_user.casa_cases.map { |cc| { title: cc.case_number, path: case_contacts_path(casa_case_id: cc.id), nav_item: false } }) %> <% end %> - <%= render(Sidebar::LinkComponent.new(title: "Learning Hours", icon: "timer", path: volunteer_learning_hours_path(volunteer_id: current_user.id || 0), render_check: current_user.volunteer?)) %> + <%= render(Sidebar::LinkComponent.new(title: "Learning Hours", icon: "timer", path: learning_hours_path, render_check: policy(LearningHour).index?)) %> <%= render(Sidebar::LinkComponent.new(title: "Emancipation Checklist(s)", icon: "list", path: emancipation_checklists_path, render_check: current_user.serving_transition_aged_youth?)) %> <%= render(Sidebar::LinkComponent.new(title: "Other Duties", icon: "agenda", path: other_duties_path, render_check: current_user.volunteer?)) %> <%= render(Sidebar::LinkComponent.new(title: "Banners", icon: "flag", path: banners_path, render_check: policy(:application).see_banner_page?)) %> diff --git a/app/views/learning_hours/_form.html.erb b/app/views/learning_hours/_form.html.erb index 1f01b56368..fe01cf8ca9 100644 --- a/app/views/learning_hours/_form.html.erb +++ b/app/views/learning_hours/_form.html.erb @@ -1,5 +1,5 @@ <%= form_with(model: learning_hour, - url: learning_hour.persisted? ? volunteer_learning_hour_path(current_user, learning_hour) : volunteer_learning_hours_path(current_user), + url: learning_hour.persisted? ? learning_hour_path(learning_hour) : learning_hours_path, local: true, html: { id: "learning-hours-form"}) do |form| %> diff --git a/app/views/learning_hours/_supervisor_admin_learning_hours.html.erb b/app/views/learning_hours/_supervisor_admin_learning_hours.html.erb new file mode 100644 index 0000000000..323505869b --- /dev/null +++ b/app/views/learning_hours/_supervisor_admin_learning_hours.html.erb @@ -0,0 +1,41 @@ +
+
+
+
+

Learning Hours

+
+
+
+
+ + +
+
+
+
+
+ + + + + + + + + + <% @learning_hours.each do |learning_hour| %> + + + + + <% end %> + +
Volunteer
Time Completed
<%= link_to(learning_hour.display_name, volunteer_path(learning_hour.user_id)) %><%= format_time(learning_hour.total_time_spent) %>
+ +
+
+ +
+ +
+
diff --git a/app/views/learning_hours/_volunteer_learning_hours.html.erb b/app/views/learning_hours/_volunteer_learning_hours.html.erb new file mode 100644 index 0000000000..69ffc1106e --- /dev/null +++ b/app/views/learning_hours/_volunteer_learning_hours.html.erb @@ -0,0 +1,48 @@ +
+
+

Learning Hours

+ <%= link_to new_learning_hour_path, class: "btn-sm main-btn primary-btn btn-hover" do %> + Record Learning Hours + <% end %> +
+
+ +
+
+
+ + + + + + <% if current_user.casa_org.learning_topic_active %> + + <% end %> + + + + + + <% learning_hours.order(occurred_at: :desc).each do |learning_hour| %> + + + + <% if current_user.casa_org.learning_topic_active %> + + <% end %> + + + + <% end %> + +
TitleLearning TypeLearning TopicDateTime Spent
+ <%= link_to learning_hour.name, learning_hour_path(id: learning_hour.id) %> + <%= learning_hour.learning_hour_type.name %> <%= learning_hour.learning_hour_topic&.name %> <%= learning_hour.occurred_at.strftime("%B %d, %Y") %> + <% if (learning_hour.duration_hours > 0) %> + <%= learning_hour.duration_hours %> hr + <% end %> + <%= learning_hour.duration_minutes %> min +
+
+
+
diff --git a/app/views/learning_hours/index.html.erb b/app/views/learning_hours/index.html.erb index fbbb3f5d48..3ba5ba2b3f 100644 --- a/app/views/learning_hours/index.html.erb +++ b/app/views/learning_hours/index.html.erb @@ -1,48 +1,5 @@ -
-
-

Learning Hours

- <%= link_to new_volunteer_learning_hour_path, class: "btn-sm main-btn primary-btn btn-hover" do %> - Record Learning Hours - <% end %> -
-
- -
-
-
- - - - - - <% if current_user.casa_org.learning_topic_active %> - - <% end %> - - - - - - <% @learning_hours.order(occurred_at: :desc).each do |learning_hour| %> - - - - <% if current_user.casa_org.learning_topic_active %> - - <% end %> - - - - <% end %> - -
TitleLearning TypeLearning TopicDateTime Spent
- <%= link_to learning_hour.name, volunteer_learning_hour_path(id: learning_hour.id) %> - <%= learning_hour.learning_hour_type.name %> <%= learning_hour.learning_hour_topic&.name %> <%= learning_hour.occurred_at.strftime("%B %d, %Y") %> - <% if (learning_hour.duration_hours > 0) %> - <%= learning_hour.duration_hours %> hr - <% end %> - <%= learning_hour.duration_minutes %> min -
-
-
-
+<% if current_user.volunteer? %> + <%= render "volunteer_learning_hours", learning_hours: @learning_hours %> +<% else %> + <%= render "supervisor_admin_learning_hours" %> +<% end %> diff --git a/app/views/learning_hours/show.html.erb b/app/views/learning_hours/show.html.erb index b26b7384d8..e975a23b45 100644 --- a/app/views/learning_hours/show.html.erb +++ b/app/views/learning_hours/show.html.erb @@ -29,8 +29,8 @@ <%= @learning_hour.duration_minutes %> min - <%= link_to edit_volunteer_learning_hour_path, class: "text-primary" do %>Edit<% end %> | - <%= link_to volunteer_learning_hour_path, class: "text-danger", method: :delete, + <%= link_to edit_learning_hour_path, class: "text-primary" do %>Edit<% end %> | + <%= link_to learning_hour_path, class: "text-danger", method: :delete, data: { confirm: "Are you sure to delete this learning record?" } do %>Delete<% end %> diff --git a/config/routes.rb b/config/routes.rb index dd695e6bd3..9e44e88f64 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -118,6 +118,7 @@ resources :banners, only: %i[index new edit create update destroy] resources :bulk_court_dates, only: %i[new create] resources :case_groups, only: %i[index new edit create update destroy] + resources :learning_hours, only: %i[index show new create edit update destroy] resources :supervisors, except: %i[destroy show], concerns: %i[with_datatable] do member do @@ -143,7 +144,6 @@ get :impersonate end resources :notes, only: %i[create edit update destroy] - resources :learning_hours, only: %i[index show new create edit update destroy] end resources :case_assignments, only: %i[create destroy] do member do diff --git a/spec/helpers/learning_hours_helper_spec.rb b/spec/helpers/learning_hours_helper_spec.rb new file mode 100644 index 0000000000..a248f42c83 --- /dev/null +++ b/spec/helpers/learning_hours_helper_spec.rb @@ -0,0 +1,20 @@ +require "rails_helper" + +RSpec.describe LearningHoursHelper, type: :helper do + describe "#format_time" do + it "formats time correctly for positive values" do + expect(helper.format_time(120)).to eq("2 hours 0 minutes") + expect(helper.format_time(90)).to eq("1 hours 30 minutes") + expect(helper.format_time(75)).to eq("1 hours 15 minutes") + end + + it "formats time correctly for zero minutes" do + expect(helper.format_time(0)).to eq("0 hours 0 minutes") + end + + it "formats time correctly for large values" do + expect(helper.format_time(360)).to eq("6 hours 0 minutes") + expect(helper.format_time(1800)).to eq("30 hours 0 minutes") + end + end +end diff --git a/spec/models/learning_hour_spec.rb b/spec/models/learning_hour_spec.rb index 19afbc75c5..f31c99dfee 100644 --- a/spec/models/learning_hour_spec.rb +++ b/spec/models/learning_hour_spec.rb @@ -52,4 +52,48 @@ expect(learning_hour).to_not be_valid expect(learning_hour.errors[:learning_hour_topic]).to eq(["can't be blank"]) end + + describe "scopes" do + let(:casa_org_1) { build(:casa_org) } + let(:casa_org_2) { build(:casa_org) } + + let(:casa_admin) { create(:casa_admin, display_name: "Supervisor", casa_org: casa_org_1) } + let(:supervisor) { create(:supervisor, display_name: "Supervisor", casa_org: casa_org_1) } + let(:volunteer1) { create(:volunteer, display_name: "Volunteer 1", casa_org: casa_org_1) } + let(:volunteer2) { create(:volunteer, display_name: "Volunteer 2", casa_org: casa_org_1) } + let(:volunteer3) { create(:volunteer, display_name: "Volunteer 3", casa_org: casa_org_2) } + + before do + supervisor.volunteers << volunteer1 + end + + let!(:learning_hours) do + [ + create(:learning_hour, user: volunteer1, duration_hours: 1, duration_minutes: 0), + create(:learning_hour, user: volunteer1, duration_hours: 2, duration_minutes: 0), + create(:learning_hour, user: volunteer2, duration_hours: 1, duration_minutes: 0), + create(:learning_hour, user: volunteer2, duration_hours: 3, duration_minutes: 0), + create(:learning_hour, user: volunteer3, duration_hours: 1, duration_minutes: 0) + ] + end + + describe ".supervisor_volunteers_learning_hours" do + subject(:supervisor_volunteers_learning_hours) { described_class.supervisor_volunteers_learning_hours(supervisor.id) } + context "with specified supervisor" do + it "returns the total time spent for supervisor's volunteers" do + expect(supervisor_volunteers_learning_hours.length).to eq(1) + expect(supervisor_volunteers_learning_hours.first.total_time_spent).to eq(180) + end + end + end + + describe ".all_volunteers_learning_hours" do + subject(:all_volunteers_learning_hours) { described_class.all_volunteers_learning_hours(casa_admin.casa_org_id) } + + it "returns the total time spent for all volunteers" do + expect(all_volunteers_learning_hours.length).to eq(2) + expect(all_volunteers_learning_hours.last.total_time_spent).to eq(240) + end + end + end end diff --git a/spec/policies/learning_hour_policy/scope_spec.rb b/spec/policies/learning_hour_policy/scope_spec.rb new file mode 100644 index 0000000000..d2fc5d6df5 --- /dev/null +++ b/spec/policies/learning_hour_policy/scope_spec.rb @@ -0,0 +1,30 @@ +require "rails_helper" + +RSpec.describe LearningHourPolicy::Scope do + describe "#resolve" do + it "returns all volunteers learning hours when user is a CasaAdmin" do + casa_admin = create(:casa_admin) + + scope = described_class.new(casa_admin, LearningHour) + + expect(scope.resolve).to match_array(LearningHour.all_volunteers_learning_hours(casa_admin.casa_org_id)) + end + + it "returns supervisor's volunteers learning hours when user is a Supervisor" do + supervisor = create(:supervisor) + create(:supervisor_volunteer, supervisor: supervisor) + + scope = described_class.new(supervisor, LearningHour) + + expect(scope.resolve).to match_array(LearningHour.supervisor_volunteers_learning_hours(supervisor.id)) + end + + it "returns volunteer's learning hours when user is a Volunteer" do + volunteer = create(:volunteer) + + scope = described_class.new(volunteer, LearningHour) + + expect(scope.resolve).to match_array(LearningHour.where(user_id: volunteer.id)) + end + end +end diff --git a/spec/policies/learning_hour_policy_spec.rb b/spec/policies/learning_hour_policy_spec.rb new file mode 100644 index 0000000000..7e61d7f2f4 --- /dev/null +++ b/spec/policies/learning_hour_policy_spec.rb @@ -0,0 +1,23 @@ +require "rails_helper" + +RSpec.describe LearningHourPolicy do + subject { described_class } + + let(:casa_admin) { build_stubbed(:casa_admin) } + let(:supervisor) { build_stubbed(:supervisor) } + let(:volunteer) { build_stubbed(:volunteer) } + + permissions :index? do + it "allows casa_admins" do + is_expected.to permit(casa_admin) + end + + it "allows supervisors" do + is_expected.to permit(supervisor) + end + + it "allows volunteer" do + is_expected.to permit(volunteer) + end + end +end diff --git a/spec/requests/learning_hours_spec.rb b/spec/requests/learning_hours_spec.rb index e521358758..886273f7f6 100644 --- a/spec/requests/learning_hours_spec.rb +++ b/spec/requests/learning_hours_spec.rb @@ -8,21 +8,55 @@ describe "GET /index" do it "succeeds" do - get volunteer_learning_hours_path(volunteer_id: volunteer.id) + get learning_hours_path expect(response).to have_http_status(:success) end it "displays the Learning Topic column if learning_topic_active is true" do volunteer.casa_org.update(learning_topic_active: true) - get volunteer_learning_hours_path(volunteer_id: volunteer.id) + get learning_hours_path expect(response.body).to include("Learning Topic") end it "does not display the Learning Topic column if learning_topic_active is false" do volunteer.casa_org.update(learning_topic_active: false) - get volunteer_learning_hours_path(volunteer_id: volunteer.id) + get learning_hours_path expect(response.body).not_to include("Learning Topic") end end end + + context "as a supervisor user" do + let(:supervisor) { create(:supervisor) } + before { sign_in supervisor } + + describe "GET /index" do + it "succeeds" do + get learning_hours_path + expect(response).to have_http_status(:success) + end + + it "displays the time completed column" do + get learning_hours_path + expect(response.body).to include("Time Completed") + end + end + end + + context "as an admin user" do + let(:admin) { create(:casa_admin) } + before { sign_in admin } + + describe "GET /index" do + it "succeeds" do + get learning_hours_path + expect(response).to have_http_status(:success) + end + + it "displays the time completed column" do + get learning_hours_path + expect(response.body).to include("Time Completed") + end + end + end end diff --git a/spec/system/learning_hours/edit_spec.rb b/spec/system/learning_hours/edit_spec.rb index 0764e3e112..79e296afbe 100644 --- a/spec/system/learning_hours/edit_spec.rb +++ b/spec/system/learning_hours/edit_spec.rb @@ -8,7 +8,7 @@ before do sign_in volunteer - visit edit_volunteer_learning_hour_path(volunteer, learning_hours) + visit edit_learning_hour_path(learning_hours) end it "shows error message when future date entered" do diff --git a/spec/system/learning_hours/index_spec.rb b/spec/system/learning_hours/index_spec.rb new file mode 100644 index 0000000000..ddc4d0c89e --- /dev/null +++ b/spec/system/learning_hours/index_spec.rb @@ -0,0 +1,53 @@ +require "rails_helper" + +RSpec.describe "Learning Hours Index", type: :system do + let(:volunteer) { create(:volunteer) } + let(:supervisor) { create(:supervisor) } + let(:learning_hours) { create_list(:learning_hour, 5, user: volunteer) } + + before do + login_as user, scope: :user + end + + context "when the user is a volunteer" do + let(:user) { volunteer } + + it "displays the volunteer learning hours" do + visit learning_hours_path + expect(page).to have_content("Learning Hours") + expect(page).to have_content("Title") + expect(page).to have_content("Time Spent") + expect(page).to have_link("Record Learning Hours", href: new_learning_hour_path) + end + end + + context "when the user is a supervisor or admin" do + let(:user) { supervisor } + + before do + visit learning_hours_path + end + + it "displays the supervisor/admin learning hours", js: true do + expect(page).to have_content("Learning Hours") + expect(page).to have_content("Volunteer") + expect(page).to have_content("Time Completed") + end + + shared_examples_for "functioning sort buttons" do + it "sorts table columns" do + expect(page).to have_selector("tr:nth-child(1)", text: expected_first_ordered_value) + + find("th", text: column_to_sort).click + + expect(page).to have_selector("th.sorting_asc", text: column_to_sort) + expect(page).to have_selector("tr:nth-child(1)", text: expected_last_ordered_value) + end + end + + it "shows pagination", js: true do + expect(page).to have_content("Previous") + expect(page).to have_content("Next") + end + end +end diff --git a/spec/system/learning_hours/new_spec.rb b/spec/system/learning_hours/new_spec.rb index 1b8226ca1d..69aeb466e9 100644 --- a/spec/system/learning_hours/new_spec.rb +++ b/spec/system/learning_hours/new_spec.rb @@ -9,7 +9,7 @@ sign_in volunteer - visit new_volunteer_learning_hour_path(volunteer) + visit new_learning_hour_path end it "errors without selected type of learning" do diff --git a/spec/system/volunteers/new_spec.rb b/spec/system/volunteers/new_spec.rb index 81241e2669..b8e4008f07 100644 --- a/spec/system/volunteers/new_spec.rb +++ b/spec/system/volunteers/new_spec.rb @@ -56,7 +56,7 @@ volunteer = create(:volunteer, casa_org: organization) sign_in volunteer - visit new_volunteer_learning_hour_path(volunteer) + visit new_learning_hour_path expect(page).to have_text("Learning Topic") end @@ -65,7 +65,7 @@ volunteer = create(:volunteer, casa_org: organization) sign_in volunteer - visit new_volunteer_learning_hour_path(volunteer) + visit new_learning_hour_path expect(page).to_not have_text("Learning Topic") end end From e0c3f19b0a6cf1ffa7ca57004a6a606094b47760 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 11:55:23 +0000 Subject: [PATCH 02/75] build(deps): bump esbuild from 0.19.6 to 0.19.8 Bumps [esbuild](https://github.com/evanw/esbuild) from 0.19.6 to 0.19.8. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.19.6...v0.19.8) --- updated-dependencies: - dependency-name: esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 270 +++++++++++++++++++++++++-------------------------- 2 files changed, 136 insertions(+), 136 deletions(-) diff --git a/package.json b/package.json index e7a4bddc96..f3967e7afc 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "chart.js": "^4.3.3", "chartjs-adapter-luxon": "^1.3.1", "datatables.net-dt": "^1.13.8", - "esbuild": "^0.19.6", + "esbuild": "^0.19.8", "faker": "^5.5.3", "jquery": "^3.6.4", "js-cookie": "^3.0.5", diff --git a/yarn.lock b/yarn.lock index 380175e60a..0e53317b2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1026,115 +1026,115 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@esbuild/android-arm64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.6.tgz#13d98a34bbbde4237867cc232307a20ded139b6f" - integrity sha512-KQ/hbe9SJvIJ4sR+2PcZ41IBV+LPJyYp6V1K1P1xcMRup9iYsBoQn4MzE3mhMLOld27Au2eDcLlIREeKGUXpHQ== - -"@esbuild/android-arm@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.6.tgz#68898d949672c56f10451f540fd92301dc713fb3" - integrity sha512-muPzBqXJKCbMYoNbb1JpZh/ynl0xS6/+pLjrofcR3Nad82SbsCogYzUE6Aq9QT3cLP0jR/IVK/NHC9b90mSHtg== - -"@esbuild/android-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.6.tgz#51a0ab83680dedc6dd1ae26133def26b178ed3a1" - integrity sha512-VVJVZQ7p5BBOKoNxd0Ly3xUM78Y4DyOoFKdkdAe2m11jbh0LEU4bPles4e/72EMl4tapko8o915UalN/5zhspg== - -"@esbuild/darwin-arm64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.6.tgz#2883f14197111febb118c0463c080930a30883e5" - integrity sha512-91LoRp/uZAKx6ESNspL3I46ypwzdqyDLXZH7x2QYCLgtnaU08+AXEbabY2yExIz03/am0DivsTtbdxzGejfXpA== - -"@esbuild/darwin-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.6.tgz#400bf20f9a35a7d68a17f5898c0f9ecb099f062b" - integrity sha512-QCGHw770ubjBU1J3ZkFJh671MFajGTYMZumPs9E/rqU52md6lIil97BR0CbPq6U+vTh3xnTNDHKRdR8ggHnmxQ== - -"@esbuild/freebsd-arm64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.6.tgz#8af07bd848afa2470b8a2339b203ce29a721152b" - integrity sha512-J53d0jGsDcLzWk9d9SPmlyF+wzVxjXpOH7jVW5ae7PvrDst4kiAz6sX+E8btz0GB6oH12zC+aHRD945jdjF2Vg== - -"@esbuild/freebsd-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.6.tgz#ae0230860e27df204a616671e028ff8fdffa009a" - integrity sha512-hn9qvkjHSIB5Z9JgCCjED6YYVGCNpqB7dEGavBdG6EjBD8S/UcNUIlGcB35NCkMETkdYwfZSvD9VoDJX6VeUVA== - -"@esbuild/linux-arm64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.6.tgz#3042bc423a978deab44a72244b863f743fd9fda1" - integrity sha512-HQCOrk9XlH3KngASLaBfHpcoYEGUt829A9MyxaI8RMkfRA8SakG6YQEITAuwmtzFdEu5GU4eyhKcpv27dFaOBg== - -"@esbuild/linux-arm@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.6.tgz#50a537de609315979509120b0181882978294db1" - integrity sha512-G8IR5zFgpXad/Zp7gr7ZyTKyqZuThU6z1JjmRyN1vSF8j0bOlGzUwFSMTbctLAdd7QHpeyu0cRiuKrqK1ZTwvQ== - -"@esbuild/linux-ia32@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.6.tgz#f99c48b597facf9cbf8e1a2522ce379b2ad7b0c4" - integrity sha512-22eOR08zL/OXkmEhxOfshfOGo8P69k8oKHkwkDrUlcB12S/sw/+COM4PhAPT0cAYW/gpqY2uXp3TpjQVJitz7w== - -"@esbuild/linux-loong64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.6.tgz#9fe79be31ce305564aa62da190f38e199d6d26b7" - integrity sha512-82RvaYAh/SUJyjWA8jDpyZCHQjmEggL//sC7F3VKYcBMumQjUL3C5WDl/tJpEiKtt7XrWmgjaLkrk205zfvwTA== - -"@esbuild/linux-mips64el@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.6.tgz#5a922dad90fc8a83fd0631c136b46128153ffb6f" - integrity sha512-8tvnwyYJpR618vboIv2l8tK2SuK/RqUIGMfMENkeDGo3hsEIrpGldMGYFcWxWeEILe5Fi72zoXLmhZ7PR23oQA== - -"@esbuild/linux-ppc64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.6.tgz#a7fccf924824999b301546843adb4f51051965e8" - integrity sha512-Qt+D7xiPajxVNk5tQiEJwhmarNnLPdjXAoA5uWMpbfStZB0+YU6a3CtbWYSy+sgAsnyx4IGZjWsTzBzrvg/fMA== - -"@esbuild/linux-riscv64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.6.tgz#41d2db11550662d6c03902d9d8d26b0ed5bb8d55" - integrity sha512-lxRdk0iJ9CWYDH1Wpnnnc640ajF4RmQ+w6oHFZmAIYu577meE9Ka/DCtpOrwr9McMY11ocbp4jirgGgCi7Ls/g== - -"@esbuild/linux-s390x@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.6.tgz#d7a843a2620e73c5c9d65c482e2fbddc7e0f7753" - integrity sha512-MopyYV39vnfuykHanRWHGRcRC3AwU7b0QY4TI8ISLfAGfK+tMkXyFuyT1epw/lM0pflQlS53JoD22yN83DHZgA== - -"@esbuild/linux-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.6.tgz#d3f20f0c2bdaa1b9ed1c0df7db034771e7aa5234" - integrity sha512-UWcieaBzsN8WYbzFF5Jq7QULETPcQvlX7KL4xWGIB54OknXJjBO37sPqk7N82WU13JGWvmDzFBi1weVBajPovg== - -"@esbuild/netbsd-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.6.tgz#6108d7270599ee37cd57bb14e4516a83541885d5" - integrity sha512-EpWiLX0fzvZn1wxtLxZrEW+oQED9Pwpnh+w4Ffv8ZLuMhUoqR9q9rL4+qHW8F4Mg5oQEKxAoT0G+8JYNqCiR6g== - -"@esbuild/openbsd-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.6.tgz#b1b5aaa2c9028e90a2bef6774a9c67451f53f164" - integrity sha512-fFqTVEktM1PGs2sLKH4M5mhAVEzGpeZJuasAMRnvDZNCV0Cjvm1Hu35moL2vC0DOrAQjNTvj4zWrol/lwQ8Deg== - -"@esbuild/sunos-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.6.tgz#b51b648cea77c62b1934a4fdcfee7aaa9de174cb" - integrity sha512-M+XIAnBpaNvaVAhbe3uBXtgWyWynSdlww/JNZws0FlMPSBy+EpatPXNIlKAdtbFVII9OpX91ZfMb17TU3JKTBA== - -"@esbuild/win32-arm64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.6.tgz#34e5665f239047c302c8d153406c87db22afd58a" - integrity sha512-2DchFXn7vp/B6Tc2eKdTsLzE0ygqKkNUhUBCNtMx2Llk4POIVMUq5rUYjdcedFlGLeRe1uLCpVvCmE+G8XYybA== - -"@esbuild/win32-ia32@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.6.tgz#f7aaebe325e67f44c0a738e80a98221504677b4a" - integrity sha512-PBo/HPDQllyWdjwAVX+Gl2hH0dfBydL97BAH/grHKC8fubqp02aL4S63otZ25q3sBdINtOBbz1qTZQfXbP4VBg== - -"@esbuild/win32-x64@0.19.6": - version "0.19.6" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.6.tgz#7134e5dea1f5943b013e96fc34f9638a5f3d7e3e" - integrity sha512-OE7yIdbDif2kKfrGa+V0vx/B3FJv2L4KnIiLlvtibPyO9UkgO3rzYE0HhpREo2vmJ1Ixq1zwm9/0er+3VOSZJA== +"@esbuild/android-arm64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.8.tgz#fb7130103835b6d43ea499c3f30cfb2b2ed58456" + integrity sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLECj6FhDzk1cF9WHMVwrtA== + +"@esbuild/android-arm@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.8.tgz#b46e4d9e984e6d6db6c4224d72c86b7757e35bcb" + integrity sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvLBax+VKTPlpnx+sPicOA== + +"@esbuild/android-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.8.tgz#a13db9441b5a4f4e4fec4a6f8ffacfea07888db7" + integrity sha512-rdqqYfRIn4jWOp+lzQttYMa2Xar3OK9Yt2fhOhzFXqg0rVWEfSclJvZq5fZslnz6ypHvVf3CT7qyf0A5pM682A== + +"@esbuild/darwin-arm64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.8.tgz#49f5718d36541f40dd62bfdf84da9c65168a0fc2" + integrity sha512-RQw9DemMbIq35Bprbboyf8SmOr4UXsRVxJ97LgB55VKKeJOOdvsIPy0nFyF2l8U+h4PtBx/1kRf0BelOYCiQcw== + +"@esbuild/darwin-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.8.tgz#75c5c88371eea4bfc1f9ecfd0e75104c74a481ac" + integrity sha512-3sur80OT9YdeZwIVgERAysAbwncom7b4bCI2XKLjMfPymTud7e/oY4y+ci1XVp5TfQp/bppn7xLw1n/oSQY3/Q== + +"@esbuild/freebsd-arm64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.8.tgz#9d7259fea4fd2b5f7437b52b542816e89d7c8575" + integrity sha512-WAnPJSDattvS/XtPCTj1tPoTxERjcTpH6HsMr6ujTT+X6rylVe8ggxk8pVxzf5U1wh5sPODpawNicF5ta/9Tmw== + +"@esbuild/freebsd-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.8.tgz#abac03e1c4c7c75ee8add6d76ec592f46dbb39e3" + integrity sha512-ICvZyOplIjmmhjd6mxi+zxSdpPTKFfyPPQMQTK/w+8eNK6WV01AjIztJALDtwNNfFhfZLux0tZLC+U9nSyA5Zg== + +"@esbuild/linux-arm64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.8.tgz#c577932cf4feeaa43cb9cec27b89cbe0df7d9098" + integrity sha512-z1zMZivxDLHWnyGOctT9JP70h0beY54xDDDJt4VpTX+iwA77IFsE1vCXWmprajJGa+ZYSqkSbRQ4eyLCpCmiCQ== + +"@esbuild/linux-arm@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.8.tgz#d6014d8b98b5cbc96b95dad3d14d75bb364fdc0f" + integrity sha512-H4vmI5PYqSvosPaTJuEppU9oz1dq2A7Mr2vyg5TF9Ga+3+MGgBdGzcyBP7qK9MrwFQZlvNyJrvz6GuCaj3OukQ== + +"@esbuild/linux-ia32@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.8.tgz#2379a0554307d19ac4a6cdc15b08f0ea28e7a40d" + integrity sha512-1a8suQiFJmZz1khm/rDglOc8lavtzEMRo0v6WhPgxkrjcU0LkHj+TwBrALwoz/OtMExvsqbbMI0ChyelKabSvQ== + +"@esbuild/linux-loong64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.8.tgz#e2a5bbffe15748b49356a6cd7b2d5bf60c5a7123" + integrity sha512-fHZWS2JJxnXt1uYJsDv9+b60WCc2RlvVAy1F76qOLtXRO+H4mjt3Tr6MJ5l7Q78X8KgCFudnTuiQRBhULUyBKQ== + +"@esbuild/linux-mips64el@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.8.tgz#1359331e6f6214f26f4b08db9b9df661c57cfa24" + integrity sha512-Wy/z0EL5qZYLX66dVnEg9riiwls5IYnziwuju2oUiuxVc+/edvqXa04qNtbrs0Ukatg5HEzqT94Zs7J207dN5Q== + +"@esbuild/linux-ppc64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.8.tgz#9ba436addc1646dc89dae48c62d3e951ffe70951" + integrity sha512-ETaW6245wK23YIEufhMQ3HSeHO7NgsLx8gygBVldRHKhOlD1oNeNy/P67mIh1zPn2Hr2HLieQrt6tWrVwuqrxg== + +"@esbuild/linux-riscv64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.8.tgz#fbcf0c3a0b20f40b5fc31c3b7695f0769f9de66b" + integrity sha512-T2DRQk55SgoleTP+DtPlMrxi/5r9AeFgkhkZ/B0ap99zmxtxdOixOMI570VjdRCs9pE4Wdkz7JYrsPvsl7eESg== + +"@esbuild/linux-s390x@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.8.tgz#989e8a05f7792d139d5564ffa7ff898ac6f20a4a" + integrity sha512-NPxbdmmo3Bk7mbNeHmcCd7R7fptJaczPYBaELk6NcXxy7HLNyWwCyDJ/Xx+/YcNH7Im5dHdx9gZ5xIwyliQCbg== + +"@esbuild/linux-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.8.tgz#b187295393a59323397fe5ff51e769ec4e72212b" + integrity sha512-lytMAVOM3b1gPypL2TRmZ5rnXl7+6IIk8uB3eLsV1JwcizuolblXRrc5ShPrO9ls/b+RTp+E6gbsuLWHWi2zGg== + +"@esbuild/netbsd-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.8.tgz#c1ec0e24ea82313cb1c7bae176bd5acd5bde7137" + integrity sha512-hvWVo2VsXz/8NVt1UhLzxwAfo5sioj92uo0bCfLibB0xlOmimU/DeAEsQILlBQvkhrGjamP0/el5HU76HAitGw== + +"@esbuild/openbsd-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.8.tgz#0c5b696ac66c6d70cf9ee17073a581a28af9e18d" + integrity sha512-/7Y7u77rdvmGTxR83PgaSvSBJCC2L3Kb1M/+dmSIvRvQPXXCuC97QAwMugBNG0yGcbEGfFBH7ojPzAOxfGNkwQ== + +"@esbuild/sunos-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.8.tgz#2a697e1f77926ff09fcc457d8f29916d6cd48fb1" + integrity sha512-9Lc4s7Oi98GqFA4HzA/W2JHIYfnXbUYgekUP/Sm4BG9sfLjyv6GKKHKKVs83SMicBF2JwAX6A1PuOLMqpD001w== + +"@esbuild/win32-arm64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.8.tgz#ec029e62a2fca8c071842ecb1bc5c2dd20b066f1" + integrity sha512-rq6WzBGjSzihI9deW3fC2Gqiak68+b7qo5/3kmB6Gvbh/NYPA0sJhrnp7wgV4bNwjqM+R2AApXGxMO7ZoGhIJg== + +"@esbuild/win32-ia32@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.8.tgz#cbb9a3146bde64dc15543e48afe418c7a3214851" + integrity sha512-AIAbverbg5jMvJznYiGhrd3sumfwWs8572mIJL5NQjJa06P8KfCPWZQ0NwZbPQnbQi9OWSZhFVSUWjjIrn4hSw== + +"@esbuild/win32-x64@0.19.8": + version "0.19.8" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.8.tgz#c8285183dbdb17008578dbacb6e22748709b4822" + integrity sha512-bfZ0cQ1uZs2PqpulNL5j/3w+GDhP36k1K5c38QdQg+Swy51jFZWWeIkteNsufkQxp986wnqRRsb/bHbY1WQ7TA== "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" @@ -2569,33 +2569,33 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -esbuild@^0.19.6: - version "0.19.6" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.6.tgz#baa0e8b6b9e655c54ffd57f1772e44677a7931cc" - integrity sha512-Xl7dntjA2OEIvpr9j0DVxxnog2fyTGnyVoQXAMQI6eR3mf9zCQds7VIKUDCotDgE/p4ncTgeRqgX8t5d6oP4Gw== +esbuild@^0.19.8: + version "0.19.8" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.8.tgz#ad05b72281d84483fa6b5345bd246c27a207b8f1" + integrity sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w== optionalDependencies: - "@esbuild/android-arm" "0.19.6" - "@esbuild/android-arm64" "0.19.6" - "@esbuild/android-x64" "0.19.6" - "@esbuild/darwin-arm64" "0.19.6" - "@esbuild/darwin-x64" "0.19.6" - "@esbuild/freebsd-arm64" "0.19.6" - "@esbuild/freebsd-x64" "0.19.6" - "@esbuild/linux-arm" "0.19.6" - "@esbuild/linux-arm64" "0.19.6" - "@esbuild/linux-ia32" "0.19.6" - "@esbuild/linux-loong64" "0.19.6" - "@esbuild/linux-mips64el" "0.19.6" - "@esbuild/linux-ppc64" "0.19.6" - "@esbuild/linux-riscv64" "0.19.6" - "@esbuild/linux-s390x" "0.19.6" - "@esbuild/linux-x64" "0.19.6" - "@esbuild/netbsd-x64" "0.19.6" - "@esbuild/openbsd-x64" "0.19.6" - "@esbuild/sunos-x64" "0.19.6" - "@esbuild/win32-arm64" "0.19.6" - "@esbuild/win32-ia32" "0.19.6" - "@esbuild/win32-x64" "0.19.6" + "@esbuild/android-arm" "0.19.8" + "@esbuild/android-arm64" "0.19.8" + "@esbuild/android-x64" "0.19.8" + "@esbuild/darwin-arm64" "0.19.8" + "@esbuild/darwin-x64" "0.19.8" + "@esbuild/freebsd-arm64" "0.19.8" + "@esbuild/freebsd-x64" "0.19.8" + "@esbuild/linux-arm" "0.19.8" + "@esbuild/linux-arm64" "0.19.8" + "@esbuild/linux-ia32" "0.19.8" + "@esbuild/linux-loong64" "0.19.8" + "@esbuild/linux-mips64el" "0.19.8" + "@esbuild/linux-ppc64" "0.19.8" + "@esbuild/linux-riscv64" "0.19.8" + "@esbuild/linux-s390x" "0.19.8" + "@esbuild/linux-x64" "0.19.8" + "@esbuild/netbsd-x64" "0.19.8" + "@esbuild/openbsd-x64" "0.19.8" + "@esbuild/sunos-x64" "0.19.8" + "@esbuild/win32-arm64" "0.19.8" + "@esbuild/win32-ia32" "0.19.8" + "@esbuild/win32-x64" "0.19.8" escalade@^3.1.1: version "3.1.1" From ece2233f38b20844122408103067b2cb5f27dbd5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 11:58:12 +0000 Subject: [PATCH 03/75] build(deps): bump delayed_job_active_record from 4.1.7 to 4.1.8 Bumps [delayed_job_active_record](https://github.com/collectiveidea/delayed_job_active_record) from 4.1.7 to 4.1.8. - [Commits](https://github.com/collectiveidea/delayed_job_active_record/compare/v4.1.7...v4.1.8) --- updated-dependencies: - dependency-name: delayed_job_active_record dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 76abdffefb..d1ebd1b9f0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -142,9 +142,9 @@ GEM database_cleaner-core (~> 2.0.0) database_cleaner-core (2.0.1) date (3.3.4) - delayed_job (4.1.10) + delayed_job (4.1.11) activesupport (>= 3.0, < 8.0) - delayed_job_active_record (4.1.7) + delayed_job_active_record (4.1.8) activerecord (>= 3.0, < 8.0) delayed_job (>= 3.0, < 5) devise (4.9.3) From f5e8d5c5fb49380aaf2441098171a3200d873265 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 11:59:08 +0000 Subject: [PATCH 04/75] build(deps): bump lograge from 0.13.0 to 0.14.0 Bumps [lograge](https://github.com/roidrage/lograge) from 0.13.0 to 0.14.0. - [Release notes](https://github.com/roidrage/lograge/releases) - [Changelog](https://github.com/roidrage/lograge/blob/master/CHANGELOG.md) - [Commits](https://github.com/roidrage/lograge/compare/v0.13.0...v0.14.0) --- updated-dependencies: - dependency-name: lograge dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 76abdffefb..d367b981ab 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -263,7 +263,7 @@ GEM llhttp-ffi (0.4.0) ffi-compiler (~> 1.0) rake (~> 13.0) - lograge (0.13.0) + lograge (0.14.0) actionpack (>= 4) activesupport (>= 4) railties (>= 4) From b88b3ae1c07864c6c94980900da018eec2a5808d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:00:01 +0000 Subject: [PATCH 05/75] build(deps-dev): bump spring from 4.1.2 to 4.1.3 Bumps [spring](https://github.com/rails/spring) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/rails/spring/releases) - [Changelog](https://github.com/rails/spring/blob/main/CHANGELOG.md) - [Commits](https://github.com/rails/spring/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: spring dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 76abdffefb..aaaed51c6a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -452,7 +452,7 @@ GEM simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) smart_properties (1.17.0) - spring (4.1.2) + spring (4.1.3) spring-commands-rspec (1.0.4) spring (>= 0.9.1) sprockets (4.1.1) From 7ea9f07e1d9a53ed68305fc8bb1be79c68ec9de5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:01:05 +0000 Subject: [PATCH 06/75] build(deps): bump rswag-api from 2.11.0 to 2.12.0 Bumps [rswag-api](https://github.com/rswag/rswag) from 2.11.0 to 2.12.0. - [Release notes](https://github.com/rswag/rswag/releases) - [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md) - [Commits](https://github.com/rswag/rswag/compare/2.11.0...2.12.0) --- updated-dependencies: - dependency-name: rswag-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 76abdffefb..3d0778a239 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -401,7 +401,7 @@ GEM rspec-mocks (~> 3.12) rspec-support (~> 3.12) rspec-support (3.12.1) - rswag-api (2.11.0) + rswag-api (2.12.0) railties (>= 3.1, < 7.2) rswag-specs (2.11.0) activesupport (>= 3.1, < 7.2) From b69ed13231bc43803b08860e27c34d05d69d80f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:02:13 +0000 Subject: [PATCH 07/75] build(deps-dev): bump factory_bot_rails from 6.2.0 to 6.4.2 Bumps [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails) from 6.2.0 to 6.4.2. - [Release notes](https://github.com/thoughtbot/factory_bot_rails/releases) - [Changelog](https://github.com/thoughtbot/factory_bot_rails/blob/main/NEWS.md) - [Commits](https://github.com/thoughtbot/factory_bot_rails/compare/v6.2.0...v6.4.2) --- updated-dependencies: - dependency-name: factory_bot_rails dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 76abdffefb..45a60b838f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -186,10 +186,10 @@ GEM rubocop smart_properties erubi (1.12.0) - factory_bot (6.2.1) + factory_bot (6.4.2) activesupport (>= 5.0.0) - factory_bot_rails (6.2.0) - factory_bot (~> 6.2.0) + factory_bot_rails (6.4.2) + factory_bot (~> 6.4) railties (>= 5.0.0) faker (3.2.1) i18n (>= 1.8.11, < 2) From c6e8976bcba9d824979ea14eb48e746181c310e4 Mon Sep 17 00:00:00 2001 From: Anderson Date: Sat, 2 Dec 2023 16:55:12 -0300 Subject: [PATCH 08/75] fix: fixes the list of "no_recent_sign_in" on supervisor weekly_digest email to account for recent case_contacts --- app/models/supervisor.rb | 8 ++++++ .../_no_recent_sign_in.html.erb | 7 ++--- spec/mailers/supervisor_mailer_spec.rb | 26 ++++++++++++++++++- 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/app/models/supervisor.rb b/app/models/supervisor.rb index 4127389be1..7d0c7b9713 100644 --- a/app/models/supervisor.rb +++ b/app/models/supervisor.rb @@ -37,6 +37,14 @@ def pending_volunteers ).where(invitation_accepted_at: nil).where.not(invitation_created_at: nil) end + def not_signed_in_nor_have_case_contacts_volunteers + recent_case_contact_volunteer_ids = volunteers.joins(:case_contacts).where( + case_contacts: {occurred_at: 30.days.ago..} + ).pluck(:id) + + volunteers.no_recent_sign_in.where.not(id: recent_case_contact_volunteer_ids) + end + def recently_unassigned_volunteers unassigned_supervisor_volunteers.joins(:volunteer).includes(:volunteer) .where(updated_at: 1.week.ago..Time.zone.now).map(&:volunteer) diff --git a/app/views/supervisor_mailer/_no_recent_sign_in.html.erb b/app/views/supervisor_mailer/_no_recent_sign_in.html.erb index c924b1dd57..675da35b87 100644 --- a/app/views/supervisor_mailer/_no_recent_sign_in.html.erb +++ b/app/views/supervisor_mailer/_no_recent_sign_in.html.erb @@ -1,10 +1,11 @@ -<% if supervisor.volunteers.no_recent_sign_in.any? %> +<% volunteer_list = supervisor.not_signed_in_nor_have_case_contacts_volunteers %> +<% if volunteer_list.any? %> - <%= "The following volunteers have not recently signed in, within 30 days" %> + <%= "The following volunteers have not signed nor had case contacts in the last 30 days" %>
- <% supervisor.volunteers.no_recent_sign_in.each do |volunteer| %> + <% volunteer_list.each do |volunteer| %> - <%= volunteer.display_name %>
<% end %> diff --git a/spec/mailers/supervisor_mailer_spec.rb b/spec/mailers/supervisor_mailer_spec.rb index 6aa7a39abb..44a806944b 100644 --- a/spec/mailers/supervisor_mailer_spec.rb +++ b/spec/mailers/supervisor_mailer_spec.rb @@ -101,9 +101,33 @@ expect(mail.body.encoded).to_not match("There are no additional notes.") end - it "displays no additional notes messsage when there are no additional notes" do + it "displays no additional notes message when there are no additional notes" do expect(mail.body.encoded).to match("There are no additional notes.") end + + it "does not display no_recent_sign_in section" do + expect(mail.body.encoded).not_to match("volunteers have not signed nor had case contacts in the last 30 days") + end + + context "when supervisor has a volunteer that has not been active for the last 30 days" do + let!(:volunteer) do + create(:volunteer, casa_org: supervisor.casa_org, supervisor: supervisor, last_sign_in_at: 31.days.ago) + end + + it "display no_recent_sign_in section" do + expect(mail.body.encoded).to match("volunteers have not signed nor had case contacts in the last 30 days") + end + + context "but volunteer has a recent case_contact to its name" do + let!(:recent_case_contact) do + create(:case_contact, casa_case: casa_case, occurred_at: 29.days.ago, creator: volunteer) + end + + it "does not display no_recent_sign_in section" do + expect(mail.body.encoded).not_to match("volunteers have not signed nor had case contacts in the last 30 days") + end + end + end end describe ".invitation_instructions for a supervisor" do From d467e557ef1c934ada8a3a8d4c69c0a90c4a92f5 Mon Sep 17 00:00:00 2001 From: Anderson Date: Sat, 2 Dec 2023 17:30:28 -0300 Subject: [PATCH 09/75] chore: add missing spec --- spec/models/supervisor_spec.rb | 22 +++++++++++++++++++ .../weekly_digest.html.erb_spec.rb | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/spec/models/supervisor_spec.rb b/spec/models/supervisor_spec.rb index 90fc02a3e3..9a81befc84 100644 --- a/spec/models/supervisor_spec.rb +++ b/spec/models/supervisor_spec.rb @@ -43,6 +43,28 @@ end end + describe "not_signed_in_nor_have_case_contacts_volunteers" do + let(:supervisor) { create(:supervisor) } + let(:volunteer) { create(:volunteer, last_sign_in_at: 31.days.ago) } + let(:other_volunteer) { create(:volunteer, last_sign_in_at: 29.days.ago) } + + subject { supervisor.not_signed_in_nor_have_case_contacts_volunteers } + + before do + create(:supervisor_volunteer, supervisor: supervisor, volunteer: volunteer) + create(:supervisor_volunteer, supervisor: supervisor, volunteer: other_volunteer) + end + + it { is_expected.to contain_exactly(volunteer) } + + context "when volunteer has a recent case_contact" do + let(:casa_case) { create(:casa_case, casa_org: supervisor.casa_org) } + let!(:case_contact) { create(:case_contact, casa_case: casa_case, occurred_at: 29.days.ago, creator: volunteer) } + + it { is_expected.to be_empty } + end + end + describe "change to admin" do it "returns true if the change was successful" do expect(subject.change_to_admin!).to be_truthy diff --git a/spec/views/supervisor_mailer/weekly_digest.html.erb_spec.rb b/spec/views/supervisor_mailer/weekly_digest.html.erb_spec.rb index 7ef6823832..74146684a7 100644 --- a/spec/views/supervisor_mailer/weekly_digest.html.erb_spec.rb +++ b/spec/views/supervisor_mailer/weekly_digest.html.erb_spec.rb @@ -126,7 +126,7 @@ render template: "supervisor_mailer/weekly_digest" end - it { expect(rendered).to have_text("The following volunteers have not recently signed in, within 30 days") } + it { expect(rendered).to have_text("The following volunteers have not signed nor had case contacts in the last 30 days") } it { expect(rendered).to have_text("- #{volunteer.display_name}") } end end From 349a16fb0b0481bb6c3d40438cdcc72fc82c3155 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:30:50 +0000 Subject: [PATCH 10/75] build(deps-dev): bump rspec-rails from 6.0.3 to 6.1.0 Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 6.0.3 to 6.1.0. - [Release notes](https://github.com/rspec/rspec-rails/releases) - [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md) - [Commits](https://github.com/rspec/rspec-rails/compare/v6.0.3...v6.1.0) --- updated-dependencies: - dependency-name: rspec-rails dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 859ae05ab3..9678b8fb4e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -389,10 +389,10 @@ 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) + rspec-rails (6.1.0) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) From 7198cb6075404de6889502a7a916525da5108119 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:31:07 +0000 Subject: [PATCH 11/75] build(deps): bump twilio-ruby from 6.8.0 to 6.8.3 Bumps [twilio-ruby](https://github.com/twilio/twilio-ruby) from 6.8.0 to 6.8.3. - [Release notes](https://github.com/twilio/twilio-ruby/releases) - [Changelog](https://github.com/twilio/twilio-ruby/blob/main/CHANGES.md) - [Commits](https://github.com/twilio/twilio-ruby/compare/6.8.0...6.8.3) --- updated-dependencies: - dependency-name: twilio-ruby dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 859ae05ab3..c184eb833b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -482,7 +482,7 @@ GEM timeout (0.4.1) traceroute (0.8.1) rails (>= 3.0.0) - twilio-ruby (6.8.0) + twilio-ruby (6.8.3) faraday (>= 0.9, < 3.0) jwt (>= 1.5, < 3.0) nokogiri (>= 1.6, < 2.0) From dbf1874772968b4bf5ff2fbf7cdfc9d2c46e3719 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:31:42 +0000 Subject: [PATCH 12/75] build(deps): bump faker from 3.2.1 to 3.2.2 Bumps [faker](https://github.com/faker-ruby/faker) from 3.2.1 to 3.2.2. - [Release notes](https://github.com/faker-ruby/faker/releases) - [Changelog](https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md) - [Commits](https://github.com/faker-ruby/faker/compare/v3.2.1...v3.2.2) --- updated-dependencies: - dependency-name: faker dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 859ae05ab3..75a4a9bc7b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -191,7 +191,7 @@ GEM factory_bot_rails (6.4.2) factory_bot (~> 6.4) railties (>= 5.0.0) - faker (3.2.1) + faker (3.2.2) i18n (>= 1.8.11, < 2) faraday (1.10.3) faraday-em_http (~> 1.0) From c7598dc3fccf1a0cd614e8417a1ac2f8231c1352 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:31:59 +0000 Subject: [PATCH 13/75] build(deps): bump rswag-api from 2.12.0 to 2.13.0 Bumps [rswag-api](https://github.com/rswag/rswag) from 2.12.0 to 2.13.0. - [Release notes](https://github.com/rswag/rswag/releases) - [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md) - [Commits](https://github.com/rswag/rswag/compare/2.12.0...2.13.0) --- updated-dependencies: - dependency-name: rswag-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 859ae05ab3..4c41fc7191 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -401,7 +401,8 @@ GEM rspec-mocks (~> 3.12) rspec-support (~> 3.12) rspec-support (3.12.1) - rswag-api (2.12.0) + rswag-api (2.13.0) + activesupport (>= 3.1, < 7.2) railties (>= 3.1, < 7.2) rswag-specs (2.11.0) activesupport (>= 3.1, < 7.2) From 4ac1bfb3c72e813357aea6bb9b93316ac47d9119 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:56:19 +0000 Subject: [PATCH 14/75] build(deps): bump @fortawesome/fontawesome-free from 6.4.2 to 6.5.1 Bumps [@fortawesome/fontawesome-free](https://github.com/FortAwesome/Font-Awesome) from 6.4.2 to 6.5.1. - [Release notes](https://github.com/FortAwesome/Font-Awesome/releases) - [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md) - [Commits](https://github.com/FortAwesome/Font-Awesome/compare/6.4.2...6.5.1) --- updated-dependencies: - dependency-name: "@fortawesome/fontawesome-free" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f3967e7afc..d6848b97cf 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@babel/core": "^7.23.3", - "@fortawesome/fontawesome-free": "^6.4.2", + "@fortawesome/fontawesome-free": "^6.5.1", "@hotwired/stimulus": "^3.2.2", "@popperjs/core": "^2.11.8", "@rails/actioncable": "^7.0.7", diff --git a/yarn.lock b/yarn.lock index 0e53317b2b..eccb5a6319 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1168,10 +1168,10 @@ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.43.0.tgz#559ca3d9ddbd6bf907ad524320a0d14b85586af0" integrity sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg== -"@fortawesome/fontawesome-free@^6.4.2": - version "6.4.2" - resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.2.tgz#36b6a9cb5ffbecdf89815c94d0c0ffa489ac5ecb" - integrity sha512-m5cPn3e2+FDCOgi1mz0RexTUvvQibBebOUlUlW0+YrMjDTPkiJ6VTKukA1GRsvRw+12KyJndNjj0O4AgTxm2Pg== +"@fortawesome/fontawesome-free@^6.5.1": + version "6.5.1" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-6.5.1.tgz#55cc8410abf1003b726324661ce5b0d1c10de258" + integrity sha512-CNy5vSwN3fsUStPRLX7fUYojyuzoEMSXPl7zSLJ8TgtRfjv24LOnOWKT2zYwaHZCJGkdyRnTmstR0P+Ah503Gw== "@hapi/hoek@^9.0.0": version "9.3.0" From af28454004489a2eff5eb72c7a880d8553a4bb62 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:56:53 +0000 Subject: [PATCH 15/75] build(deps-dev): bump @babel/preset-env from 7.23.3 to 7.23.5 Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.23.3 to 7.23.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.5/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 173 +++++++++++++++++++++++++-------------------------- 2 files changed, 85 insertions(+), 90 deletions(-) diff --git a/package.json b/package.json index f3967e7afc..bb89072911 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "version": "0.1.0", "devDependencies": { - "@babel/preset-env": "^7.22.10", + "@babel/preset-env": "^7.23.5", "jest": "^29.6.2", "jest-environment-jsdom": "^29.6.2", "markdown-toc": "^1.2.0", diff --git a/yarn.lock b/yarn.lock index 0e53317b2b..86f63b72c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,15 +18,10 @@ "@babel/highlight" "^7.22.13" chalk "^2.4.2" -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9": - version "7.23.2" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.2.tgz#6a12ced93455827037bfb5ed8492820d60fc32cc" - integrity sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ== - -"@babel/compat-data@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.3.tgz#3febd552541e62b5e883a25eb3effd7c7379db11" - integrity sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ== +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98" + integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.3": version "7.23.3" @@ -278,10 +273,10 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== -"@babel/helper-validator-option@^7.22.15": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz#694c30dfa1d09a6534cdfcafbe56789d36aba040" - integrity sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA== +"@babel/helper-validator-option@^7.22.15", "@babel/helper-validator-option@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" + integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== "@babel/helper-wrap-function@^7.22.20": version "7.22.20" @@ -499,10 +494,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-async-generator-functions@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.3.tgz#9df2627bad7f434ed13eef3e61b2b65cafd4885b" - integrity sha512-59GsVNavGxAXCDDbakWSMJhajASb4kBCqDjqJsv+p5nKdbz7istmZ3HrX3L2LuiI80+zsOADCvooqQH3qGCucQ== +"@babel/plugin-transform-async-generator-functions@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz#93ac8e3531f347fba519b4703f9ff2a75c6ae27a" + integrity sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw== dependencies: "@babel/helper-environment-visitor" "^7.22.20" "@babel/helper-plugin-utils" "^7.22.5" @@ -525,10 +520,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-block-scoping@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.3.tgz#e99a3ff08f58edd28a8ed82481df76925a4ffca7" - integrity sha512-QPZxHrThbQia7UdvfpaRRlq/J9ciz1J4go0k+lPBXbgaNeY7IQrBj/9ceWjvMMI07/ZBzHl/F0R/2K0qH7jCVw== +"@babel/plugin-transform-block-scoping@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz#b2d38589531c6c80fbe25e6b58e763622d2d3cf5" + integrity sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw== dependencies: "@babel/helper-plugin-utils" "^7.22.5" @@ -540,19 +535,19 @@ "@babel/helper-create-class-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-class-static-block@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.3.tgz#56f2371c7e5bf6ff964d84c5dc4d4db5536b5159" - integrity sha512-PENDVxdr7ZxKPyi5Ffc0LjXdnJyrJxyqF5T5YjlVg4a0VFfQHW0r8iAtRiDXkfHlu1wwcvdtnndGYIeJLSuRMQ== +"@babel/plugin-transform-class-static-block@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz#2a202c8787a8964dd11dfcedf994d36bfc844ab5" + integrity sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ== dependencies: "@babel/helper-create-class-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-class-static-block" "^7.14.5" -"@babel/plugin-transform-classes@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.3.tgz#73380c632c095b03e8503c24fd38f95ad41ffacb" - integrity sha512-FGEQmugvAEu2QtgtU0uTASXevfLMFfBeVCIIdcQhn/uBQsMTjBajdnAtanQlOcuihWh10PZ7+HWvc7NtBwP74w== +"@babel/plugin-transform-classes@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz#e7a75f815e0c534cc4c9a39c56636c84fc0d64f2" + integrity sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" "@babel/helper-compilation-targets" "^7.22.15" @@ -594,10 +589,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-dynamic-import@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.3.tgz#82625924da9ed5fb11a428efb02e43bc9a3ab13e" - integrity sha512-vTG+cTGxPFou12Rj7ll+eD5yWeNl5/8xvQvF08y5Gv3v4mZQoyFf8/n9zg4q5vvCWt5jmgymfzMAldO7orBn7A== +"@babel/plugin-transform-dynamic-import@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz#c7629e7254011ac3630d47d7f34ddd40ca535143" + integrity sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" @@ -610,10 +605,10 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-export-namespace-from@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.3.tgz#dcd066d995f6ac6077e5a4ccb68322a01e23ac49" - integrity sha512-yCLhW34wpJWRdTxxWtFZASJisihrfyMOTOQexhVzA78jlU+dH7Dw+zQgcPepQ5F3C6bAIiblZZ+qBggJdHiBAg== +"@babel/plugin-transform-export-namespace-from@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz#084c7b25e9a5c8271e987a08cf85807b80283191" + integrity sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" @@ -634,10 +629,10 @@ "@babel/helper-function-name" "^7.23.0" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-json-strings@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.3.tgz#489724ab7d3918a4329afb4172b2fd2cf3c8d245" - integrity sha512-H9Ej2OiISIZowZHaBwF0tsJOih1PftXJtE8EWqlEIwpc7LMTGq0rPOrywKLQ4nefzx8/HMR0D3JGXoMHYvhi0A== +"@babel/plugin-transform-json-strings@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz#a871d9b6bd171976efad2e43e694c961ffa3714d" + integrity sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-json-strings" "^7.8.3" @@ -649,10 +644,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-logical-assignment-operators@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.3.tgz#3a406d6083feb9487083bca6d2334a3c9b6c4808" - integrity sha512-+pD5ZbxofyOygEp+zZAfujY2ShNCXRpDRIPOiBmTO693hhyOEteZgl876Xs9SAHPQpcV0vz8LvA/T+w8AzyX8A== +"@babel/plugin-transform-logical-assignment-operators@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz#e599f82c51d55fac725f62ce55d3a0886279ecb5" + integrity sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" @@ -714,26 +709,26 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-nullish-coalescing-operator@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.3.tgz#8a613d514b521b640344ed7c56afeff52f9413f8" - integrity sha512-xzg24Lnld4DYIdysyf07zJ1P+iIfJpxtVFOzX4g+bsJ3Ng5Le7rXx9KwqKzuyaUeRnt+I1EICwQITqc0E2PmpA== +"@babel/plugin-transform-nullish-coalescing-operator@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz#45556aad123fc6e52189ea749e33ce090637346e" + integrity sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-transform-numeric-separator@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.3.tgz#2f8da42b75ba89e5cfcd677afd0856d52c0c2e68" - integrity sha512-s9GO7fIBi/BLsZ0v3Rftr6Oe4t0ctJ8h4CCXfPoEJwmvAPMyNrfkOOJzm6b9PX9YXcCJWWQd/sBF/N26eBiMVw== +"@babel/plugin-transform-numeric-separator@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz#03d08e3691e405804ecdd19dd278a40cca531f29" + integrity sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-object-rest-spread@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.3.tgz#509373753b5f7202fe1940e92fd075bd7874955f" - integrity sha512-VxHt0ANkDmu8TANdE9Kc0rndo/ccsmfe2Cx2y5sI4hu3AukHQ5wAu4cM7j3ba8B9548ijVyclBU+nuDQftZsog== +"@babel/plugin-transform-object-rest-spread@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz#2b9c2d26bf62710460bdc0d1730d4f1048361b83" + integrity sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g== dependencies: "@babel/compat-data" "^7.23.3" "@babel/helper-compilation-targets" "^7.22.15" @@ -749,18 +744,18 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-replace-supers" "^7.22.20" -"@babel/plugin-transform-optional-catch-binding@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.3.tgz#362c0b545ee9e5b0fa9d9e6fe77acf9d4c480027" - integrity sha512-LxYSb0iLjUamfm7f1D7GpiS4j0UAC8AOiehnsGAP8BEsIX8EOi3qV6bbctw8M7ZvLtcoZfZX5Z7rN9PlWk0m5A== +"@babel/plugin-transform-optional-catch-binding@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz#318066de6dacce7d92fa244ae475aa8d91778017" + integrity sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.3.tgz#92fc83f54aa3adc34288933fa27e54c13113f4be" - integrity sha512-zvL8vIfIUgMccIAK1lxjvNv572JHFJIKb4MWBz5OGdBQA0fB0Xluix5rmOby48exiJc987neOmP/m9Fnpkz3Tg== +"@babel/plugin-transform-optional-chaining@^7.23.3", "@babel/plugin-transform-optional-chaining@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz#6acf61203bdfc4de9d4e52e64490aeb3e52bd017" + integrity sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA== dependencies: "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" @@ -781,10 +776,10 @@ "@babel/helper-create-class-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/plugin-transform-private-property-in-object@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.3.tgz#5cd34a2ce6f2d008cc8f91d8dcc29e2c41466da6" - integrity sha512-a5m2oLNFyje2e/rGKjVfAELTVI5mbA0FeZpBnkOWWV7eSmKQ+T/XW0Vf+29ScLzSxX+rnsarvU0oie/4m6hkxA== +"@babel/plugin-transform-private-property-in-object@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz#3ec711d05d6608fd173d9b8de39872d8dbf68bf5" + integrity sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A== dependencies: "@babel/helper-annotate-as-pure" "^7.22.5" "@babel/helper-create-class-features-plugin" "^7.22.15" @@ -880,15 +875,15 @@ "@babel/helper-create-regexp-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/preset-env@^7.22.10": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.3.tgz#d299e0140a7650684b95c62be2db0ef8c975143e" - integrity sha512-ovzGc2uuyNfNAs/jyjIGxS8arOHS5FENZaNn4rtE7UdKMMkqHCvboHfcuhWLZNX5cB44QfcGNWjaevxMzzMf+Q== +"@babel/preset-env@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.5.tgz#350a3aedfa9f119ad045b068886457e895ba0ca1" + integrity sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A== dependencies: - "@babel/compat-data" "^7.23.3" + "@babel/compat-data" "^7.23.5" "@babel/helper-compilation-targets" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.15" + "@babel/helper-validator-option" "^7.23.5" "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.23.3" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.23.3" "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.23.3" @@ -912,25 +907,25 @@ "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" "@babel/plugin-transform-arrow-functions" "^7.23.3" - "@babel/plugin-transform-async-generator-functions" "^7.23.3" + "@babel/plugin-transform-async-generator-functions" "^7.23.4" "@babel/plugin-transform-async-to-generator" "^7.23.3" "@babel/plugin-transform-block-scoped-functions" "^7.23.3" - "@babel/plugin-transform-block-scoping" "^7.23.3" + "@babel/plugin-transform-block-scoping" "^7.23.4" "@babel/plugin-transform-class-properties" "^7.23.3" - "@babel/plugin-transform-class-static-block" "^7.23.3" - "@babel/plugin-transform-classes" "^7.23.3" + "@babel/plugin-transform-class-static-block" "^7.23.4" + "@babel/plugin-transform-classes" "^7.23.5" "@babel/plugin-transform-computed-properties" "^7.23.3" "@babel/plugin-transform-destructuring" "^7.23.3" "@babel/plugin-transform-dotall-regex" "^7.23.3" "@babel/plugin-transform-duplicate-keys" "^7.23.3" - "@babel/plugin-transform-dynamic-import" "^7.23.3" + "@babel/plugin-transform-dynamic-import" "^7.23.4" "@babel/plugin-transform-exponentiation-operator" "^7.23.3" - "@babel/plugin-transform-export-namespace-from" "^7.23.3" + "@babel/plugin-transform-export-namespace-from" "^7.23.4" "@babel/plugin-transform-for-of" "^7.23.3" "@babel/plugin-transform-function-name" "^7.23.3" - "@babel/plugin-transform-json-strings" "^7.23.3" + "@babel/plugin-transform-json-strings" "^7.23.4" "@babel/plugin-transform-literals" "^7.23.3" - "@babel/plugin-transform-logical-assignment-operators" "^7.23.3" + "@babel/plugin-transform-logical-assignment-operators" "^7.23.4" "@babel/plugin-transform-member-expression-literals" "^7.23.3" "@babel/plugin-transform-modules-amd" "^7.23.3" "@babel/plugin-transform-modules-commonjs" "^7.23.3" @@ -938,15 +933,15 @@ "@babel/plugin-transform-modules-umd" "^7.23.3" "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" "@babel/plugin-transform-new-target" "^7.23.3" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.23.3" - "@babel/plugin-transform-numeric-separator" "^7.23.3" - "@babel/plugin-transform-object-rest-spread" "^7.23.3" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.23.4" + "@babel/plugin-transform-numeric-separator" "^7.23.4" + "@babel/plugin-transform-object-rest-spread" "^7.23.4" "@babel/plugin-transform-object-super" "^7.23.3" - "@babel/plugin-transform-optional-catch-binding" "^7.23.3" - "@babel/plugin-transform-optional-chaining" "^7.23.3" + "@babel/plugin-transform-optional-catch-binding" "^7.23.4" + "@babel/plugin-transform-optional-chaining" "^7.23.4" "@babel/plugin-transform-parameters" "^7.23.3" "@babel/plugin-transform-private-methods" "^7.23.3" - "@babel/plugin-transform-private-property-in-object" "^7.23.3" + "@babel/plugin-transform-private-property-in-object" "^7.23.4" "@babel/plugin-transform-property-literals" "^7.23.3" "@babel/plugin-transform-regenerator" "^7.23.3" "@babel/plugin-transform-reserved-words" "^7.23.3" From 354563c5d9ea5be43fa3c1b56f1b1fb109991ac4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 01:05:12 +0000 Subject: [PATCH 16/75] build(deps-dev): bump rswag-specs from 2.11.0 to 2.13.0 Bumps [rswag-specs](https://github.com/rswag/rswag) from 2.11.0 to 2.13.0. - [Release notes](https://github.com/rswag/rswag/releases) - [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md) - [Commits](https://github.com/rswag/rswag/compare/2.11.0...2.13.0) --- updated-dependencies: - dependency-name: rswag-specs dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 8312b25120..d5adfb4179 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -251,7 +251,7 @@ GEM jsbundling-rails (1.2.1) railties (>= 6.0.0) json (2.6.3) - json-schema (3.0.0) + json-schema (4.1.1) addressable (>= 2.8) jwt (2.7.1) language_server-protocol (3.17.0.3) @@ -330,7 +330,7 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - public_suffix (5.0.3) + public_suffix (5.0.4) puma (6.4.0) nio4r (~> 2.0) pundit (2.3.1) @@ -404,9 +404,9 @@ GEM rswag-api (2.13.0) activesupport (>= 3.1, < 7.2) railties (>= 3.1, < 7.2) - rswag-specs (2.11.0) + rswag-specs (2.13.0) activesupport (>= 3.1, < 7.2) - json-schema (>= 2.2, < 4.0) + json-schema (>= 2.2, < 5.0) railties (>= 3.1, < 7.2) rspec-core (>= 2.14) rswag-ui (2.11.0) From 3661241d1436060f19936921144b74406ab2ef05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 01:05:18 +0000 Subject: [PATCH 17/75] build(deps): bump @babel/core from 7.23.3 to 7.23.5 Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.23.3 to 7.23.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.5/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 102 +++++++++++++++++++++++++-------------------------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/package.json b/package.json index b9fc621ab2..c3a4a4f288 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build:css:dev": "sass app/assets/stylesheets/application.scss app/assets/builds/application.css --load-path=node_modules --watch" }, "dependencies": { - "@babel/core": "^7.23.3", + "@babel/core": "^7.23.5", "@fortawesome/fontawesome-free": "^6.5.1", "@hotwired/stimulus": "^3.2.2", "@popperjs/core": "^2.11.8", diff --git a/yarn.lock b/yarn.lock index d269528cd0..1a3125bffa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,12 +10,12 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.13": - version "7.22.13" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e" - integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.13", "@babel/code-frame@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.5.tgz#9009b69a8c602293476ad598ff53e4562e15c244" + integrity sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA== dependencies: - "@babel/highlight" "^7.22.13" + "@babel/highlight" "^7.23.4" chalk "^2.4.2" "@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": @@ -23,33 +23,33 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98" integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.3.tgz#5ec09c8803b91f51cc887dedc2654a35852849c9" - integrity sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew== +"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.5.tgz#6e23f2acbcb77ad283c5ed141f824fd9f70101c7" + integrity sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.22.13" - "@babel/generator" "^7.23.3" + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.5" "@babel/helper-compilation-targets" "^7.22.15" "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.23.2" - "@babel/parser" "^7.23.3" + "@babel/helpers" "^7.23.5" + "@babel/parser" "^7.23.5" "@babel/template" "^7.22.15" - "@babel/traverse" "^7.23.3" - "@babel/types" "^7.23.3" + "@babel/traverse" "^7.23.5" + "@babel/types" "^7.23.5" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.23.3", "@babel/generator@^7.7.2": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.3.tgz#86e6e83d95903fbe7613f448613b8b319f330a8e" - integrity sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg== +"@babel/generator@^7.23.5", "@babel/generator@^7.7.2": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.5.tgz#17d0a1ea6b62f351d281350a5f80b87a810c4755" + integrity sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA== dependencies: - "@babel/types" "^7.23.3" + "@babel/types" "^7.23.5" "@jridgewell/gen-mapping" "^0.3.2" "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" @@ -263,10 +263,10 @@ dependencies: "@babel/types" "^7.22.5" -"@babel/helper-string-parser@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" - integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== +"@babel/helper-string-parser@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83" + integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ== "@babel/helper-validator-identifier@^7.22.20": version "7.22.20" @@ -287,28 +287,28 @@ "@babel/template" "^7.22.15" "@babel/types" "^7.22.19" -"@babel/helpers@^7.23.2": - version "7.23.2" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.2.tgz#2832549a6e37d484286e15ba36a5330483cac767" - integrity sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ== +"@babel/helpers@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.5.tgz#52f522840df8f1a848d06ea6a79b79eefa72401e" + integrity sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg== dependencies: "@babel/template" "^7.22.15" - "@babel/traverse" "^7.23.2" - "@babel/types" "^7.23.0" + "@babel/traverse" "^7.23.5" + "@babel/types" "^7.23.5" -"@babel/highlight@^7.22.13": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.20.tgz#4ca92b71d80554b01427815e06f2df965b9c1f54" - integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg== +"@babel/highlight@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b" + integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A== dependencies: "@babel/helper-validator-identifier" "^7.22.20" chalk "^2.4.2" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.3.tgz#0ce0be31a4ca4f1884b5786057cadcb6c3be58f9" - integrity sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.5.tgz#37dee97c4752af148e1d38c34b856b2507660563" + integrity sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3": version "7.23.3" @@ -991,28 +991,28 @@ "@babel/parser" "^7.22.15" "@babel/types" "^7.22.15" -"@babel/traverse@^7.23.2", "@babel/traverse@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.3.tgz#26ee5f252e725aa7aca3474aa5b324eaf7908b5b" - integrity sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ== +"@babel/traverse@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.5.tgz#f546bf9aba9ef2b042c0e00d245990c15508e7ec" + integrity sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w== dependencies: - "@babel/code-frame" "^7.22.13" - "@babel/generator" "^7.23.3" + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.5" "@babel/helper-environment-visitor" "^7.22.20" "@babel/helper-function-name" "^7.23.0" "@babel/helper-hoist-variables" "^7.22.5" "@babel/helper-split-export-declaration" "^7.22.6" - "@babel/parser" "^7.23.3" - "@babel/types" "^7.23.3" + "@babel/parser" "^7.23.5" + "@babel/types" "^7.23.5" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.3", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.3.tgz#d5ea892c07f2ec371ac704420f4dcdb07b5f9598" - integrity sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw== +"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.5.tgz#48d730a00c95109fa4393352705954d74fb5b602" + integrity sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w== dependencies: - "@babel/helper-string-parser" "^7.22.5" + "@babel/helper-string-parser" "^7.23.4" "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" From ee88b7aef2798a6ea846b0ca600e3f897a1c25dd Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Wed, 6 Dec 2023 23:16:21 -0500 Subject: [PATCH 18/75] Feature to implement Line chart for Case Contacts --- Gemfile | 1 + Gemfile.lock | 3 + app/controllers/health_controller.rb | 23 ++++++ app/javascript/src/display_app_metric.js | 96 ++++++++++++++++++++++++ app/views/health/index.html.erb | 1 + config/routes.rb | 1 + spec/requests/health_spec.rb | 23 ++++++ 7 files changed, 148 insertions(+) diff --git a/Gemfile b/Gemfile index dff7e42254..3e383d7dc5 100644 --- a/Gemfile +++ b/Gemfile @@ -50,6 +50,7 @@ gem "rswag-api" gem "rswag-ui" gem "blueprinter" # for JSON serialization gem "oj" # faster JSON parsing 🍊 +gem "groupdate" # Group Data group :development, :test do gem "bullet" # Detect and fix N+1 queries diff --git a/Gemfile.lock b/Gemfile.lock index 859ae05ab3..3dbe4039a3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -227,6 +227,8 @@ GEM activerecord (>= 4.0.0) globalid (1.2.1) activesupport (>= 6.1) + groupdate (6.4.0) + activesupport (>= 6.1) hashdiff (1.0.1) htmlentities (4.3.4) http (5.1.1) @@ -557,6 +559,7 @@ DEPENDENCIES faker filterrific friendly_id (~> 5.5.1) + groupdate httparty image_processing (~> 1.12) jbuilder diff --git a/app/controllers/health_controller.rb b/app/controllers/health_controller.rb index e7fc2a5e89..0b0013bc8c 100644 --- a/app/controllers/health_controller.rb +++ b/app/controllers/health_controller.rb @@ -22,4 +22,27 @@ def case_contacts_creation_times_in_last_week # Return the timestamps as a JSON response render json: {timestamps: timestamps} end + + def case_contacts_creation_times_in_last_year + # Generate an array of the last 12 months + last_12_months = (11.months.ago.to_date..Date.current).map { |date| date.beginning_of_month } + + # Fetch case contact counts, counts with notes updated, and counts of users for each month + data = CaseContact.group_by_month(:created_at, last: 12).count + data_with_notes = CaseContact.where("notes != ''").group_by_month(:created_at, last: 12).count + users_data = CaseContact.select(:creator_id).distinct.group_by_month(:created_at, last: 12).count + + # Combine the counts for each month + chart_data = last_12_months.map do |month| + count_all = data[month] || 0 + count_with_notes = data_with_notes[month] || 0 + count_users = users_data[month] || 0 + + [month.strftime("%b %Y"), count_all, count_with_notes, count_users] + end + + chart_data = chart_data.uniq! + + render json: chart_data + end end diff --git a/app/javascript/src/display_app_metric.js b/app/javascript/src/display_app_metric.js index 27ae158f87..23d786a1a7 100644 --- a/app/javascript/src/display_app_metric.js +++ b/app/javascript/src/display_app_metric.js @@ -30,6 +30,27 @@ $(() => { // JQuery's callback for the DOM loading } }) } + + const monthLineChart = document.getElementById('monthLineChart') + + if (monthLineChart) { + const notificationsElement = $('#notifications') + const pageNotifier = notificationsElement.length ? new Notifier(notificationsElement) : null + + $.ajax({ + type: 'GET', + url: '/health/case_contacts_creation_times_in_last_year', + success: function (data) { + console.log(data) + createLineChart(monthLineChart, data) + }, + error: function (xhr, status, error) { + console.error('Failed to fetch data for case contact entry times chart display') + console.error(error) + pageNotifier?.notify('Failed to display metric chart. Check the console for error details.', 'error') + } + }) + } }) function formatData (timestamps) { @@ -142,3 +163,78 @@ function getTooltipLabelCallback (context) { const caseContactCountSqrt = bubbleData.r / 4 return `${Math.round(caseContactCountSqrt * caseContactCountSqrt)} case contacts created on ${days[bubbleData.y]} at ${bubbleData.x}:00` } + +function createLineChart (chartElement, dataset) { + const ctx = chartElement.getContext('2d') + + const allMonths = dataset.map(([month]) => month) + const allCaseContactsCount = dataset.map(([_, caseContactsCount]) => caseContactsCount) + const allCaseContactNotesCount = dataset.map(([_, __, caseContactNotesCount]) => caseContactNotesCount) + const allUsersCount = dataset.map(([, , , usersCount]) => usersCount) + + return new Chart(ctx, { + type: 'line', + data: { + labels: allMonths, + datasets: [{ + label: 'Total Case Contacts', + data: allCaseContactsCount, + fill: false, + borderColor: '#308af3', + pointBackgroundColor: '#308af3', + pointBorderWidth: 2, + pointHoverBackgroundColor: '#fff', + pointHoverBorderWidth: 2, + lineTension: 0.05 + }, { + label: 'Total Case Contacts with Notes', + data: allCaseContactNotesCount, + fill: false, + borderColor: '#48ba16', + pointBackgroundColor: '#48ba16', + pointBorderWidth: 2, + pointHoverBackgroundColor: '#fff', + pointHoverBorderWidth: 2, + lineTension: 0.05 + }, { + label: 'Total Users', + data: allUsersCount, + fill: false, + borderColor: '#FF0000', + pointBackgroundColor: '#FF0000', + pointBorderWidth: 2, + pointHoverBackgroundColor: '#fff', + pointHoverBorderWidth: 2, + lineTension: 0.05 + }] + }, + options: { + legend: { display: true }, + plugins: { + legend: { + display: true, + position: 'bottom' + }, + title: { + display: true, + font: { + size: 18 + }, + text: 'Case Contact Creation Times in last 12 months' + }, + tooltips: { + callbacks: { + label: function (tooltipItem, data) { + let label = data.datasets[tooltipItem.datasetIndex].label || '' + if (label) { + label += ': ' + } + label += Math.round(tooltipItem.yLabel * 100) / 100 + return label + } + } + } + } + } + }) +} diff --git a/app/views/health/index.html.erb b/app/views/health/index.html.erb index 747a856d69..c893e86519 100644 --- a/app/views/health/index.html.erb +++ b/app/views/health/index.html.erb @@ -1,3 +1,4 @@
+
diff --git a/config/routes.rb b/config/routes.rb index 9e44e88f64..0da21c9b4c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -36,6 +36,7 @@ resources :health, only: %i[index] do collection do get :case_contacts_creation_times_in_last_week + get :case_contacts_creation_times_in_last_year end end diff --git a/spec/requests/health_spec.rb b/spec/requests/health_spec.rb index 9d18d1860f..f80a59bdb8 100644 --- a/spec/requests/health_spec.rb +++ b/spec/requests/health_spec.rb @@ -45,4 +45,27 @@ expect(timestamps).not_to include(case_contact2.created_at.iso8601(3)) end end + + describe "GET #case_contacts_creation_times_in_last_year" do + it "returns case contacts creation times in the last year" do + # Create case contacts for testing + create(:case_contact, notes: "Test Notes", created_at: 11.months.ago) + create(:case_contact, notes: "", created_at: 11.months.ago) + create(:case_contact, created_at: 10.months.ago) + create(:case_contact, created_at: 9.months.ago) + + get case_contacts_creation_times_in_last_year_health_index_path + expect(response).to have_http_status(:ok) + expect(response.content_type).to include("application/json") + + chart_data = JSON.parse(response.body) + expect(chart_data).to be_an(Array) + expect(chart_data.length).to eq(12) + + expect(chart_data[0]).to eq([11.months.ago.strftime("%b %Y"), 2, 1, 2]) + expect(chart_data[1]).to eq([10.months.ago.strftime("%b %Y"), 1, 0, 1]) + expect(chart_data[2]).to eq([9.months.ago.strftime("%b %Y"), 1, 0, 1]) + expect(chart_data[3]).to eq([8.months.ago.strftime("%b %Y"), 0, 0, 0]) + end + end end From a1be8096a01cd00d9cb4d46c94545e69fdb6fe4c Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Wed, 6 Dec 2023 23:57:58 -0500 Subject: [PATCH 19/75] Code refactoring and clean up for code climate issues --- app/javascript/src/display_app_metric.js | 125 ++++++++++------------- 1 file changed, 52 insertions(+), 73 deletions(-) diff --git a/app/javascript/src/display_app_metric.js b/app/javascript/src/display_app_metric.js index 23d786a1a7..0c2148ee67 100644 --- a/app/javascript/src/display_app_metric.js +++ b/app/javascript/src/display_app_metric.js @@ -9,48 +9,40 @@ const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', $(() => { // JQuery's callback for the DOM loading const chartElement = document.getElementById('myChart') + const monthLineChart = document.getElementById('monthLineChart') - if (chartElement) { - const notificationsElement = $('#notifications') - const pageNotifier = notificationsElement.length ? new Notifier(notificationsElement) : null - - $.ajax({ - type: 'GET', - url: '/health/case_contacts_creation_times_in_last_week', - success: function (data) { - const timestamps = data.timestamps - const graphData = formatData(timestamps) + const notificationsElement = $('#notifications') + const pageNotifier = notificationsElement.length ? new Notifier(notificationsElement) : null - createChart(chartElement, graphData) - }, - error: function (xhr, status, error) { - console.error('Failed to fetch data for case contact entry times chart display') - console.error(error) - pageNotifier?.notify('Failed to display metric chart. Check the console for error details.', 'error') - } + if (chartElement) { + fetchDataAndCreateChart('/health/case_contacts_creation_times_in_last_week', chartElement, function (data) { + const timestamps = data.timestamps + const graphData = formatData(timestamps) + createChart(chartElement, graphData) }) } - const monthLineChart = document.getElementById('monthLineChart') - if (monthLineChart) { - const notificationsElement = $('#notifications') - const pageNotifier = notificationsElement.length ? new Notifier(notificationsElement) : null + fetchDataAndCreateChart('/health/case_contacts_creation_times_in_last_year', monthLineChart, function (data) { + console.log(data) + createLineChart(monthLineChart, data) + }) + } + function fetchDataAndCreateChart (url, chartElement, successCallback) { $.ajax({ type: 'GET', - url: '/health/case_contacts_creation_times_in_last_year', - success: function (data) { - console.log(data) - createLineChart(monthLineChart, data) - }, - error: function (xhr, status, error) { - console.error('Failed to fetch data for case contact entry times chart display') - console.error(error) - pageNotifier?.notify('Failed to display metric chart. Check the console for error details.', 'error') - } + url, + success: successCallback, + error: handleAjaxError }) } + + function handleAjaxError (xhr, status, error) { + console.error('Failed to fetch data for case contact entry times chart display') + console.error(error) + pageNotifier?.notify('Failed to display metric chart. Check the console for error details.', 'error') + } }) function formatData (timestamps) { @@ -167,59 +159,28 @@ function getTooltipLabelCallback (context) { function createLineChart (chartElement, dataset) { const ctx = chartElement.getContext('2d') - const allMonths = dataset.map(([month]) => month) - const allCaseContactsCount = dataset.map(([_, caseContactsCount]) => caseContactsCount) - const allCaseContactNotesCount = dataset.map(([_, __, caseContactNotesCount]) => caseContactNotesCount) - const allUsersCount = dataset.map(([, , , usersCount]) => usersCount) + const allMonths = extractChartData(dataset, 0) + const allCaseContactsCount = extractChartData(dataset, 1) + const allCaseContactNotesCount = extractChartData(dataset, 2) + const allUsersCount = extractChartData(dataset, 3) return new Chart(ctx, { type: 'line', data: { labels: allMonths, - datasets: [{ - label: 'Total Case Contacts', - data: allCaseContactsCount, - fill: false, - borderColor: '#308af3', - pointBackgroundColor: '#308af3', - pointBorderWidth: 2, - pointHoverBackgroundColor: '#fff', - pointHoverBorderWidth: 2, - lineTension: 0.05 - }, { - label: 'Total Case Contacts with Notes', - data: allCaseContactNotesCount, - fill: false, - borderColor: '#48ba16', - pointBackgroundColor: '#48ba16', - pointBorderWidth: 2, - pointHoverBackgroundColor: '#fff', - pointHoverBorderWidth: 2, - lineTension: 0.05 - }, { - label: 'Total Users', - data: allUsersCount, - fill: false, - borderColor: '#FF0000', - pointBackgroundColor: '#FF0000', - pointBorderWidth: 2, - pointHoverBackgroundColor: '#fff', - pointHoverBorderWidth: 2, - lineTension: 0.05 - }] + datasets: [ + createDataset('Total Case Contacts', allCaseContactsCount, '#308af3', '#308af3'), + createDataset('Total Case Contacts with Notes', allCaseContactNotesCount, '#48ba16', '#48ba16'), + createDataset('Total Users', allUsersCount, '#FF0000', '#FF0000') + ] }, options: { legend: { display: true }, plugins: { - legend: { - display: true, - position: 'bottom' - }, + legend: { display: true, position: 'bottom' }, title: { display: true, - font: { - size: 18 - }, + font: { size: 18 }, text: 'Case Contact Creation Times in last 12 months' }, tooltips: { @@ -238,3 +199,21 @@ function createLineChart (chartElement, dataset) { } }) } + +function extractChartData (dataset, index) { + return dataset.map(data => data[index]) +} + +function createDataset (label, data, borderColor, pointBackgroundColor) { + return { + label, + data, + fill: false, + borderColor, + pointBackgroundColor, + pointBorderWidth: 2, + pointHoverBackgroundColor: '#fff', + pointHoverBorderWidth: 2, + lineTension: 0.05 + } +} From 1f58a17bd1793769f844b6b4b550844ff122cf07 Mon Sep 17 00:00:00 2001 From: Richard Cresswell Date: Thu, 7 Dec 2023 07:00:26 -0500 Subject: [PATCH 20/75] fix: last contact display time based on occurred date, not created date --- app/helpers/contact_types_helper.rb | 6 ++++-- spec/helpers/contact_types_helper_spec.rb | 15 +++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/helpers/contact_types_helper.rb b/app/helpers/contact_types_helper.rb index abf0c82a6a..44aee1fa1c 100644 --- a/app/helpers/contact_types_helper.rb +++ b/app/helpers/contact_types_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Helper methods for new/edit contact type form module ContactTypesHelper def set_group_options @@ -9,7 +11,7 @@ def time_ago_of_last_contact_made_of(contact_type_name, casa_case) return "never" if contact.nil? - "#{time_ago_in_words(contact.created_at)} ago" + "#{time_ago_in_words(contact.occurred_at)} ago" end def last_contact_made_of(contact_type_name, casa_case) @@ -19,7 +21,7 @@ def last_contact_made_of(contact_type_name, casa_case) .case_contacts .joins(:contact_types) .where(contact_types: {name: contact_type_name}) - .order(created_at: :desc) + .order(occurred_at: :desc) .first end end diff --git a/spec/helpers/contact_types_helper_spec.rb b/spec/helpers/contact_types_helper_spec.rb index 514956cbd0..0bf2117c4b 100644 --- a/spec/helpers/contact_types_helper_spec.rb +++ b/spec/helpers/contact_types_helper_spec.rb @@ -15,7 +15,7 @@ context "when contact was made" do before do - contact = build_stubbed(:case_contact, casa_case: casa_case, created_at: 1.day.ago) + contact = build_stubbed(:case_contact, casa_case:, created_at: 2.days.ago, occurred_at: 1.day.ago) allow(helper).to receive(:last_contact_made_of).and_return(contact) end @@ -29,15 +29,18 @@ let(:casa_case) { create(:casa_case) } let(:contact_type) { create(:contact_type) } - let!(:contact_1) { create(:case_contact, casa_case: casa_case, contact_types: [contact_type]) } + let!(:contact1) do + create(:case_contact, casa_case:, contact_types: [contact_type], + created_at: 2.days.ago, occurred_at: 1.day.ago) + end - let!(:contact_2) do - create(:case_contact, casa_case: casa_case, contact_types: [contact_type], - created_at: 1.day.ago) + let!(:contact2) do + create(:case_contact, casa_case:, contact_types: [contact_type], + created_at: 1.day.ago, occurred_at: 2.days.ago) end it "returns the last contact made of the given type" do - expect(subject).to eq(contact_1) + expect(subject).to eq(contact1) end context "when casa_case is nil" do From 0b5f6332025d21eaaec168e10ddabb2169670cfe Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Thu, 7 Dec 2023 11:13:52 -0500 Subject: [PATCH 21/75] Code refactoring for code climate issue --- app/javascript/src/display_app_metric.js | 52 +++++++++++++----------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/app/javascript/src/display_app_metric.js b/app/javascript/src/display_app_metric.js index 0c2148ee67..f027d79649 100644 --- a/app/javascript/src/display_app_metric.js +++ b/app/javascript/src/display_app_metric.js @@ -174,30 +174,8 @@ function createLineChart (chartElement, dataset) { createDataset('Total Users', allUsersCount, '#FF0000', '#FF0000') ] }, - options: { - legend: { display: true }, - plugins: { - legend: { display: true, position: 'bottom' }, - title: { - display: true, - font: { size: 18 }, - text: 'Case Contact Creation Times in last 12 months' - }, - tooltips: { - callbacks: { - label: function (tooltipItem, data) { - let label = data.datasets[tooltipItem.datasetIndex].label || '' - if (label) { - label += ': ' - } - label += Math.round(tooltipItem.yLabel * 100) / 100 - return label - } - } - } - } - } - }) + options: createChartOptions() + }); } function extractChartData (dataset, index) { @@ -217,3 +195,29 @@ function createDataset (label, data, borderColor, pointBackgroundColor) { lineTension: 0.05 } } + +function createChartOptions() { + return { + legend: { display: true }, + plugins: { + legend: { display: true, position: 'bottom' }, + title: { + display: true, + font: { size: 18 }, + text: 'Case Contact Creation Times in last 12 months' + }, + tooltips: { + callbacks: { + label: function (tooltipItem, data) { + let label = data.datasets[tooltipItem.datasetIndex].label || ''; + if (label) { + label += ': '; + } + label += Math.round(tooltipItem.yLabel * 100) / 100; + return label; + } + } + } + } + }; +} From ee83fde39b096c4c34c0487b03453bb6933d2a8c Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Thu, 7 Dec 2023 11:25:30 -0500 Subject: [PATCH 22/75] Lint Fix --- app/javascript/src/display_app_metric.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/javascript/src/display_app_metric.js b/app/javascript/src/display_app_metric.js index f027d79649..b0c49468b4 100644 --- a/app/javascript/src/display_app_metric.js +++ b/app/javascript/src/display_app_metric.js @@ -175,7 +175,7 @@ function createLineChart (chartElement, dataset) { ] }, options: createChartOptions() - }); + }) } function extractChartData (dataset, index) { @@ -196,7 +196,7 @@ function createDataset (label, data, borderColor, pointBackgroundColor) { } } -function createChartOptions() { +function createChartOptions () { return { legend: { display: true }, plugins: { @@ -209,15 +209,15 @@ function createChartOptions() { tooltips: { callbacks: { label: function (tooltipItem, data) { - let label = data.datasets[tooltipItem.datasetIndex].label || ''; + let label = data.datasets[tooltipItem.datasetIndex].label || '' if (label) { - label += ': '; + label += ': ' } - label += Math.round(tooltipItem.yLabel * 100) / 100; - return label; + label += Math.round(tooltipItem.yLabel * 100) / 100 + return label } } } } - }; + } } From 27d508f5c4c5904f02f031b59eca575157afda60 Mon Sep 17 00:00:00 2001 From: Francisco das Chagas Silva Junior Date: Sat, 9 Dec 2023 09:29:48 -0500 Subject: [PATCH 23/75] feature: Add default 0 (zero) value for hour_minute duration form --- app/components/form/hour_minute_duration_component.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/components/form/hour_minute_duration_component.rb b/app/components/form/hour_minute_duration_component.rb index 2557b28eda..953ccd2403 100644 --- a/app/components/form/hour_minute_duration_component.rb +++ b/app/components/form/hour_minute_duration_component.rb @@ -16,7 +16,9 @@ def initialize(form:, hour_value:, minute_value:) raise RangeError.new("Parameter hour_value must be positive") end - if hour_value.nil? || hour_value.is_a?(Integer) + if hour_value.nil? + @hour_value = 0 + elsif hour_value.is_a?(Integer) @hour_value = hour_value else raise TypeError.new("Parameter hour_value must be an integer") @@ -34,7 +36,9 @@ def initialize(form:, hour_value:, minute_value:) raise RangeError.new("Parameter minute_value must be positive") end - if minute_value.nil? || minute_value.is_a?(Integer) + if minute_value.nil? + @minute_value = 0 + elsif minute_value.is_a?(Integer) @minute_value = minute_value else raise TypeError.new("Parameter minute_value must be an integer") From 7c97ff74bf8a433916cec145fb0c48577568e5bc Mon Sep 17 00:00:00 2001 From: Francisco das Chagas Silva Junior Date: Sat, 9 Dec 2023 09:41:55 -0500 Subject: [PATCH 24/75] Change error message for zero hours and minutes learning hours input --- app/models/learning_hour.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/learning_hour.rb b/app/models/learning_hour.rb index 509d55b279..1179eea428 100644 --- a/app/models/learning_hour.rb +++ b/app/models/learning_hour.rb @@ -4,7 +4,7 @@ class LearningHour < ApplicationRecord belongs_to :learning_hour_topic, optional: true validates :duration_minutes, presence: true - validates :duration_minutes, numericality: {greater_than: 0}, if: :zero_duration_hours? + validates :duration_minutes, numericality: {greater_than: 0, message: " and hours (total duration) must be greater than 0"}, if: :zero_duration_hours? validates :name, presence: {message: "/ Title cannot be blank"} validates :occurred_at, presence: true validate :occurred_at_not_in_future From 80119a40760725ba4f63e0ceace8a01344b18b52 Mon Sep 17 00:00:00 2001 From: Francisco das Chagas Silva Junior Date: Sat, 9 Dec 2023 10:29:36 -0500 Subject: [PATCH 25/75] Update tests for creating learning hours data --- app/models/learning_hour.rb | 2 +- spec/models/learning_hour_spec.rb | 2 +- spec/system/learning_hours/new_spec.rb | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/app/models/learning_hour.rb b/app/models/learning_hour.rb index 1179eea428..a3405354c1 100644 --- a/app/models/learning_hour.rb +++ b/app/models/learning_hour.rb @@ -4,7 +4,7 @@ class LearningHour < ApplicationRecord belongs_to :learning_hour_topic, optional: true validates :duration_minutes, presence: true - validates :duration_minutes, numericality: {greater_than: 0, message: " and hours (total duration) must be greater than 0"}, if: :zero_duration_hours? + validates :duration_minutes, numericality: {greater_than: 0, message: "and hours (total duration) must be greater than 0"}, if: :zero_duration_hours? validates :name, presence: {message: "/ Title cannot be blank"} validates :occurred_at, presence: true validate :occurred_at_not_in_future diff --git a/spec/models/learning_hour_spec.rb b/spec/models/learning_hour_spec.rb index f31c99dfee..62dd040281 100644 --- a/spec/models/learning_hour_spec.rb +++ b/spec/models/learning_hour_spec.rb @@ -17,7 +17,7 @@ it "has a duration in minutes that is greater than 0" do learning_hour = build_stubbed(:learning_hour, duration_hours: 0, duration_minutes: 0) expect(learning_hour).to_not be_valid - expect(learning_hour.errors[:duration_minutes]).to eq(["must be greater than 0"]) + expect(learning_hour.errors[:duration_minutes]).to eq(["and hours (total duration) must be greater than 0"]) end end diff --git a/spec/system/learning_hours/new_spec.rb b/spec/system/learning_hours/new_spec.rb index 69aeb466e9..6c8afbde65 100644 --- a/spec/system/learning_hours/new_spec.rb +++ b/spec/system/learning_hours/new_spec.rb @@ -30,4 +30,30 @@ expect(page).to have_text("New entry was successfully created.") end + + it "creates learning hours entry without minutes duration" do + fill_in "Learning Hours Title", with: "Test title" + select "Book", from: "Type of Learning" + fill_in "Hour(s)", with: "3" + click_on "Create New Learning Hours Entry" + + expect(page).to have_text("New entry was successfully created.") + end + + it "creates learning hours entry without hours duration" do + fill_in "Learning Hours Title", with: "Test title" + select "Book", from: "Type of Learning" + fill_in "Minute(s)", with: "30" + click_on "Create New Learning Hours Entry" + + expect(page).to have_text("New entry was successfully created.") + end + + it "errors without hours and minutes duration" do + fill_in "Learning Hours Title", with: "Test title" + select "Book", from: "Type of Learning" + click_on "Create New Learning Hours Entry" + + expect(page).to have_text("Duration minutes and hours (total duration) must be greater than 0") + end end From d9917410f81401693a11e82b8836ffc9d918038a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:31:40 +0000 Subject: [PATCH 26/75] build(deps): bump oj from 3.16.1 to 3.16.2 Bumps [oj](https://github.com/ohler55/oj) from 3.16.1 to 3.16.2. - [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md) - [Commits](https://github.com/ohler55/oj/compare/v3.16.1...v3.16.2) --- updated-dependencies: - dependency-name: oj dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9d57906542..d0bf9cd225 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -95,6 +95,7 @@ GEM erubi (~> 1.4) parser (>= 2.4) smart_properties + bigdecimal (3.1.4) bindex (0.8.1) blueprinter (0.30.0) brakeman (6.0.1) @@ -309,7 +310,8 @@ GEM noticed (1.6.3) http (>= 4.0.0) rails (>= 5.2.0) - oj (3.16.1) + oj (3.16.2) + bigdecimal (~> 3.1) orm_adapter (0.5.0) parallel (1.23.0) paranoia (2.6.3) From a8f3cf707462bcf5253ae63e5be92834c52b835c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:32:23 +0000 Subject: [PATCH 27/75] build(deps): bump rswag-ui from 2.11.0 to 2.13.0 Bumps [rswag-ui](https://github.com/rswag/rswag) from 2.11.0 to 2.13.0. - [Release notes](https://github.com/rswag/rswag/releases) - [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md) - [Commits](https://github.com/rswag/rswag/compare/2.11.0...2.13.0) --- updated-dependencies: - dependency-name: rswag-ui dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9d57906542..b508f022e5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -409,7 +409,7 @@ GEM json-schema (>= 2.2, < 5.0) railties (>= 3.1, < 7.2) rspec-core (>= 2.14) - rswag-ui (2.11.0) + rswag-ui (2.13.0) actionpack (>= 3.1, < 7.2) railties (>= 3.1, < 7.2) rubocop (1.56.4) From edb59bbff26344835b51a1a7b0d84a440c4c95cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:32:41 +0000 Subject: [PATCH 28/75] build(deps-dev): bump selenium-webdriver from 4.15.0 to 4.16.0 Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.15.0 to 4.16.0. - [Release notes](https://github.com/SeleniumHQ/selenium/releases) - [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES) - [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.15.0...selenium-4.16.0) --- updated-dependencies: - dependency-name: selenium-webdriver dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9d57906542..a6f6aa9c06 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -440,7 +440,7 @@ GEM safe_shell (1.1.0) scout_apm (5.3.5) parser - selenium-webdriver (4.15.0) + selenium-webdriver (4.16.0) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) From b0e596cf3456ca7a7be237364609339d8ec8fbaf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:36:05 +0000 Subject: [PATCH 29/75] build(deps): bump chart.js from 4.4.0 to 4.4.1 Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.0 to 4.4.1. - [Release notes](https://github.com/chartjs/Chart.js/releases) - [Commits](https://github.com/chartjs/Chart.js/compare/v4.4.0...v4.4.1) --- updated-dependencies: - dependency-name: chart.js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c3a4a4f288..563978b93f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "bootstrap-datepicker": "^1.10.0", "bootstrap-scss": "^5.3.0", "bootstrap-select": "^1.13.18", - "chart.js": "^4.3.3", + "chart.js": "^4.4.1", "chartjs-adapter-luxon": "^1.3.1", "datatables.net-dt": "^1.13.8", "esbuild": "^0.19.8", diff --git a/yarn.lock b/yarn.lock index 1a3125bffa..7cd5c1e94e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2144,10 +2144,10 @@ char-regex@^1.0.2: resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== -chart.js@^4.3.3: - version "4.4.0" - resolved "https://registry.yarnpkg.com/chart.js/-/chart.js-4.4.0.tgz#df843fdd9ec6bd88d7f07e2b95348d221bd2698c" - integrity sha512-vQEj6d+z0dcsKLlQvbKIMYFHd3t8W/7L2vfJIbYcfyPcRx92CsHqECpueN8qVGNlKyDcr5wBrYAYKnfu/9Q1hQ== +chart.js@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/chart.js/-/chart.js-4.4.1.tgz#ac5dc0e69a7758909158a96fe80ce43b3bb96a9f" + integrity sha512-C74QN1bxwV1v2PEujhmKjOZ7iUM4w6BWs23Md/6aOZZSlwMzeCIDGuZay++rBgChYru7/+QFeoQW0fQoP534Dg== dependencies: "@kurkle/color" "^0.3.0" From 17e220e1a93530d2bbd5f8cc44d5b0126bca730f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:46:47 +0000 Subject: [PATCH 30/75] build(deps): bump actions/labeler from 4 to 5 Bumps [actions/labeler](https://github.com/actions/labeler) from 4 to 5. - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/labeler dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/label.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index a801a8873c..f50312bcaf 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -12,6 +12,6 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From d2249a233110c46b2e0d50ac12c359a1b624bc0e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:46:51 +0000 Subject: [PATCH 31/75] build(deps): bump actions/stale from 8 to 9 Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v8...v9) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3eb2ddd824..a405ea2eb1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v8 + - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: "This issue has been open without changes for a long time! What's up?" From eef9a3adfb87dea88c3e18182f477fb095381669 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 01:07:24 +0000 Subject: [PATCH 32/75] build(deps-dev): bump brakeman from 6.0.1 to 6.1.0 Bumps [brakeman](https://github.com/presidentbeef/brakeman) from 6.0.1 to 6.1.0. - [Release notes](https://github.com/presidentbeef/brakeman/releases) - [Changelog](https://github.com/presidentbeef/brakeman/blob/main/CHANGES.md) - [Commits](https://github.com/presidentbeef/brakeman/compare/v6.0.1...v6.1.0) --- updated-dependencies: - dependency-name: brakeman dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 8444f1f186..e420e65159 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -98,7 +98,7 @@ GEM bigdecimal (3.1.4) bindex (0.8.1) blueprinter (0.30.0) - brakeman (6.0.1) + brakeman (6.1.0) bugsnag (6.26.0) concurrent-ruby (~> 1.0) builder (3.2.4) From c29615538fabebf8fc656853b185de6be891d3b7 Mon Sep 17 00:00:00 2001 From: firelemons Date: Tue, 12 Dec 2023 19:29:19 -0600 Subject: [PATCH 33/75] update config to match new labeler version --- .github/labeler.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 2f9857f3d7..d8b7cdc83a 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -11,21 +11,21 @@ # properly added. ruby: -- "**/*.rb" +- changed-files: + - any-glob-to-any-file: "**/*.rb" erb: -- "**/*.erb" +- changed-files: + - any-glob-to-any-file: "**/*.erb" javascript: -- "**/*.js" -- "package*.json" -- "yarn.lock" +- changed-files: + - any-glob-to-any-file: ["**/*.js", "package*.json", "yarn.lock"] Tests! 🎉💖👏: -- "app/javascript/__tests__/**.test.js" -- "spec/**/*_spec.rb" +- changed-files: + - any-glob-to-any-file: ["app/javascript/__tests__/**.test.js", "spec/**/*_spec.rb"] dependencies: -- "Gemfile*" -- "package*.json" -- "yarn.lock" +- changed-files: + - any-glob-to-any-file: ["Gemfile*", "package*.json", "yarn.lock"] From 9caaf1e96811316f4b45025973496bf47ad66bfe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Dec 2023 02:06:20 +0000 Subject: [PATCH 34/75] build(deps): bump esbuild from 0.19.8 to 0.19.9 Bumps [esbuild](https://github.com/evanw/esbuild) from 0.19.8 to 0.19.9. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.19.8...v0.19.9) --- updated-dependencies: - dependency-name: esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 270 +++++++++++++++++++++++++-------------------------- 2 files changed, 136 insertions(+), 136 deletions(-) diff --git a/package.json b/package.json index 563978b93f..826c557d23 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "chart.js": "^4.4.1", "chartjs-adapter-luxon": "^1.3.1", "datatables.net-dt": "^1.13.8", - "esbuild": "^0.19.8", + "esbuild": "^0.19.9", "faker": "^5.5.3", "jquery": "^3.6.4", "js-cookie": "^3.0.5", diff --git a/yarn.lock b/yarn.lock index 7cd5c1e94e..c20cc09a62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1021,115 +1021,115 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@esbuild/android-arm64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.8.tgz#fb7130103835b6d43ea499c3f30cfb2b2ed58456" - integrity sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLECj6FhDzk1cF9WHMVwrtA== - -"@esbuild/android-arm@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.8.tgz#b46e4d9e984e6d6db6c4224d72c86b7757e35bcb" - integrity sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvLBax+VKTPlpnx+sPicOA== - -"@esbuild/android-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.8.tgz#a13db9441b5a4f4e4fec4a6f8ffacfea07888db7" - integrity sha512-rdqqYfRIn4jWOp+lzQttYMa2Xar3OK9Yt2fhOhzFXqg0rVWEfSclJvZq5fZslnz6ypHvVf3CT7qyf0A5pM682A== - -"@esbuild/darwin-arm64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.8.tgz#49f5718d36541f40dd62bfdf84da9c65168a0fc2" - integrity sha512-RQw9DemMbIq35Bprbboyf8SmOr4UXsRVxJ97LgB55VKKeJOOdvsIPy0nFyF2l8U+h4PtBx/1kRf0BelOYCiQcw== - -"@esbuild/darwin-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.8.tgz#75c5c88371eea4bfc1f9ecfd0e75104c74a481ac" - integrity sha512-3sur80OT9YdeZwIVgERAysAbwncom7b4bCI2XKLjMfPymTud7e/oY4y+ci1XVp5TfQp/bppn7xLw1n/oSQY3/Q== - -"@esbuild/freebsd-arm64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.8.tgz#9d7259fea4fd2b5f7437b52b542816e89d7c8575" - integrity sha512-WAnPJSDattvS/XtPCTj1tPoTxERjcTpH6HsMr6ujTT+X6rylVe8ggxk8pVxzf5U1wh5sPODpawNicF5ta/9Tmw== - -"@esbuild/freebsd-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.8.tgz#abac03e1c4c7c75ee8add6d76ec592f46dbb39e3" - integrity sha512-ICvZyOplIjmmhjd6mxi+zxSdpPTKFfyPPQMQTK/w+8eNK6WV01AjIztJALDtwNNfFhfZLux0tZLC+U9nSyA5Zg== - -"@esbuild/linux-arm64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.8.tgz#c577932cf4feeaa43cb9cec27b89cbe0df7d9098" - integrity sha512-z1zMZivxDLHWnyGOctT9JP70h0beY54xDDDJt4VpTX+iwA77IFsE1vCXWmprajJGa+ZYSqkSbRQ4eyLCpCmiCQ== - -"@esbuild/linux-arm@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.8.tgz#d6014d8b98b5cbc96b95dad3d14d75bb364fdc0f" - integrity sha512-H4vmI5PYqSvosPaTJuEppU9oz1dq2A7Mr2vyg5TF9Ga+3+MGgBdGzcyBP7qK9MrwFQZlvNyJrvz6GuCaj3OukQ== - -"@esbuild/linux-ia32@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.8.tgz#2379a0554307d19ac4a6cdc15b08f0ea28e7a40d" - integrity sha512-1a8suQiFJmZz1khm/rDglOc8lavtzEMRo0v6WhPgxkrjcU0LkHj+TwBrALwoz/OtMExvsqbbMI0ChyelKabSvQ== - -"@esbuild/linux-loong64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.8.tgz#e2a5bbffe15748b49356a6cd7b2d5bf60c5a7123" - integrity sha512-fHZWS2JJxnXt1uYJsDv9+b60WCc2RlvVAy1F76qOLtXRO+H4mjt3Tr6MJ5l7Q78X8KgCFudnTuiQRBhULUyBKQ== - -"@esbuild/linux-mips64el@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.8.tgz#1359331e6f6214f26f4b08db9b9df661c57cfa24" - integrity sha512-Wy/z0EL5qZYLX66dVnEg9riiwls5IYnziwuju2oUiuxVc+/edvqXa04qNtbrs0Ukatg5HEzqT94Zs7J207dN5Q== - -"@esbuild/linux-ppc64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.8.tgz#9ba436addc1646dc89dae48c62d3e951ffe70951" - integrity sha512-ETaW6245wK23YIEufhMQ3HSeHO7NgsLx8gygBVldRHKhOlD1oNeNy/P67mIh1zPn2Hr2HLieQrt6tWrVwuqrxg== - -"@esbuild/linux-riscv64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.8.tgz#fbcf0c3a0b20f40b5fc31c3b7695f0769f9de66b" - integrity sha512-T2DRQk55SgoleTP+DtPlMrxi/5r9AeFgkhkZ/B0ap99zmxtxdOixOMI570VjdRCs9pE4Wdkz7JYrsPvsl7eESg== - -"@esbuild/linux-s390x@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.8.tgz#989e8a05f7792d139d5564ffa7ff898ac6f20a4a" - integrity sha512-NPxbdmmo3Bk7mbNeHmcCd7R7fptJaczPYBaELk6NcXxy7HLNyWwCyDJ/Xx+/YcNH7Im5dHdx9gZ5xIwyliQCbg== - -"@esbuild/linux-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.8.tgz#b187295393a59323397fe5ff51e769ec4e72212b" - integrity sha512-lytMAVOM3b1gPypL2TRmZ5rnXl7+6IIk8uB3eLsV1JwcizuolblXRrc5ShPrO9ls/b+RTp+E6gbsuLWHWi2zGg== - -"@esbuild/netbsd-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.8.tgz#c1ec0e24ea82313cb1c7bae176bd5acd5bde7137" - integrity sha512-hvWVo2VsXz/8NVt1UhLzxwAfo5sioj92uo0bCfLibB0xlOmimU/DeAEsQILlBQvkhrGjamP0/el5HU76HAitGw== - -"@esbuild/openbsd-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.8.tgz#0c5b696ac66c6d70cf9ee17073a581a28af9e18d" - integrity sha512-/7Y7u77rdvmGTxR83PgaSvSBJCC2L3Kb1M/+dmSIvRvQPXXCuC97QAwMugBNG0yGcbEGfFBH7ojPzAOxfGNkwQ== - -"@esbuild/sunos-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.8.tgz#2a697e1f77926ff09fcc457d8f29916d6cd48fb1" - integrity sha512-9Lc4s7Oi98GqFA4HzA/W2JHIYfnXbUYgekUP/Sm4BG9sfLjyv6GKKHKKVs83SMicBF2JwAX6A1PuOLMqpD001w== - -"@esbuild/win32-arm64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.8.tgz#ec029e62a2fca8c071842ecb1bc5c2dd20b066f1" - integrity sha512-rq6WzBGjSzihI9deW3fC2Gqiak68+b7qo5/3kmB6Gvbh/NYPA0sJhrnp7wgV4bNwjqM+R2AApXGxMO7ZoGhIJg== - -"@esbuild/win32-ia32@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.8.tgz#cbb9a3146bde64dc15543e48afe418c7a3214851" - integrity sha512-AIAbverbg5jMvJznYiGhrd3sumfwWs8572mIJL5NQjJa06P8KfCPWZQ0NwZbPQnbQi9OWSZhFVSUWjjIrn4hSw== - -"@esbuild/win32-x64@0.19.8": - version "0.19.8" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.8.tgz#c8285183dbdb17008578dbacb6e22748709b4822" - integrity sha512-bfZ0cQ1uZs2PqpulNL5j/3w+GDhP36k1K5c38QdQg+Swy51jFZWWeIkteNsufkQxp986wnqRRsb/bHbY1WQ7TA== +"@esbuild/android-arm64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.9.tgz#683794bdc3d27222d3eced7b74cad15979548031" + integrity sha512-q4cR+6ZD0938R19MyEW3jEsMzbb/1rulLXiNAJQADD/XYp7pT+rOS5JGxvpRW8dFDEfjW4wLgC/3FXIw4zYglQ== + +"@esbuild/android-arm@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.9.tgz#21a4de41f07b2af47401c601d64dfdefd056c595" + integrity sha512-jkYjjq7SdsWuNI6b5quymW0oC83NN5FdRPuCbs9HZ02mfVdAP8B8eeqLSYU3gb6OJEaY5CQabtTFbqBf26H3GA== + +"@esbuild/android-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.9.tgz#e2d7674bc025ddc8699f0cc76cb97823bb63c252" + integrity sha512-KOqoPntWAH6ZxDwx1D6mRntIgZh9KodzgNOy5Ebt9ghzffOk9X2c1sPwtM9P+0eXbefnDhqYfkh5PLP5ULtWFA== + +"@esbuild/darwin-arm64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.9.tgz#ae7a582289cc5c0bac15d4b9020a90cb7288f1e9" + integrity sha512-KBJ9S0AFyLVx2E5D8W0vExqRW01WqRtczUZ8NRu+Pi+87opZn5tL4Y0xT0mA4FtHctd0ZgwNoN639fUUGlNIWw== + +"@esbuild/darwin-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.9.tgz#8a216c66dcf51addeeb843d8cfaeff712821d12b" + integrity sha512-vE0VotmNTQaTdX0Q9dOHmMTao6ObjyPm58CHZr1UK7qpNleQyxlFlNCaHsHx6Uqv86VgPmR4o2wdNq3dP1qyDQ== + +"@esbuild/freebsd-arm64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.9.tgz#63d4f603e421252c3cd836b18d01545be7c6c440" + integrity sha512-uFQyd/o1IjiEk3rUHSwUKkqZwqdvuD8GevWF065eqgYfexcVkxh+IJgwTaGZVu59XczZGcN/YMh9uF1fWD8j1g== + +"@esbuild/freebsd-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.9.tgz#a3db52595be65360eae4de1d1fa3c1afd942e1e4" + integrity sha512-WMLgWAtkdTbTu1AWacY7uoj/YtHthgqrqhf1OaEWnZb7PQgpt8eaA/F3LkV0E6K/Lc0cUr/uaVP/49iE4M4asA== + +"@esbuild/linux-arm64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.9.tgz#4ae5811ce9f8d7df5eb9edd9765ea9401a534f13" + integrity sha512-PiPblfe1BjK7WDAKR1Cr9O7VVPqVNpwFcPWgfn4xu0eMemzRp442hXyzF/fSwgrufI66FpHOEJk0yYdPInsmyQ== + +"@esbuild/linux-arm@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.9.tgz#9807e92cfd335f46326394805ad488e646e506f2" + integrity sha512-C/ChPohUYoyUaqn1h17m/6yt6OB14hbXvT8EgM1ZWaiiTYz7nWZR0SYmMnB5BzQA4GXl3BgBO1l8MYqL/He3qw== + +"@esbuild/linux-ia32@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.9.tgz#18892c10f3106652b16f9da88a0362dc95ed46c7" + integrity sha512-f37i/0zE0MjDxijkPSQw1CO/7C27Eojqb+r3BbHVxMLkj8GCa78TrBZzvPyA/FNLUMzP3eyHCVkAopkKVja+6Q== + +"@esbuild/linux-loong64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.9.tgz#dc2ebf9a125db0a1bba18c2bbfd4fbdcbcaf61c2" + integrity sha512-t6mN147pUIf3t6wUt3FeumoOTPfmv9Cc6DQlsVBpB7eCpLOqQDyWBP1ymXn1lDw4fNUSb/gBcKAmvTP49oIkaA== + +"@esbuild/linux-mips64el@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.9.tgz#4c2f7c5d901015e3faf1563c4a89a50776cb07fd" + integrity sha512-jg9fujJTNTQBuDXdmAg1eeJUL4Jds7BklOTkkH80ZgQIoCTdQrDaHYgbFZyeTq8zbY+axgptncko3v9p5hLZtw== + +"@esbuild/linux-ppc64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.9.tgz#8385332713b4e7812869622163784a5633f76fc4" + integrity sha512-tkV0xUX0pUUgY4ha7z5BbDS85uI7ABw3V1d0RNTii7E9lbmV8Z37Pup2tsLV46SQWzjOeyDi1Q7Wx2+QM8WaCQ== + +"@esbuild/linux-riscv64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.9.tgz#23f1db24fa761be311874f32036c06249aa20cba" + integrity sha512-DfLp8dj91cufgPZDXr9p3FoR++m3ZJ6uIXsXrIvJdOjXVREtXuQCjfMfvmc3LScAVmLjcfloyVtpn43D56JFHg== + +"@esbuild/linux-s390x@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.9.tgz#2dffe497726b897c9f0109e774006e25b33b4fd0" + integrity sha512-zHbglfEdC88KMgCWpOl/zc6dDYJvWGLiUtmPRsr1OgCViu3z5GncvNVdf+6/56O2Ca8jUU+t1BW261V6kp8qdw== + +"@esbuild/linux-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.9.tgz#ceb1d62cd830724ff5b218e5d3172a8bad59420e" + integrity sha512-JUjpystGFFmNrEHQnIVG8hKwvA2DN5o7RqiO1CVX8EN/F/gkCjkUMgVn6hzScpwnJtl2mPR6I9XV1oW8k9O+0A== + +"@esbuild/netbsd-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.9.tgz#0cbca65e9ef4d3fc41502d3e055e6f49479a8f18" + integrity sha512-GThgZPAwOBOsheA2RUlW5UeroRfESwMq/guy8uEe3wJlAOjpOXuSevLRd70NZ37ZrpO6RHGHgEHvPg1h3S1Jug== + +"@esbuild/openbsd-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.9.tgz#1f57adfbee09c743292c6758a3642e875bcad1cf" + integrity sha512-Ki6PlzppaFVbLnD8PtlVQfsYw4S9n3eQl87cqgeIw+O3sRr9IghpfSKY62mggdt1yCSZ8QWvTZ9jo9fjDSg9uw== + +"@esbuild/sunos-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.9.tgz#116be6adbd2c7479edeeb5f6ea0441002ab4cb9c" + integrity sha512-MLHj7k9hWh4y1ddkBpvRj2b9NCBhfgBt3VpWbHQnXRedVun/hC7sIyTGDGTfsGuXo4ebik2+3ShjcPbhtFwWDw== + +"@esbuild/win32-arm64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.9.tgz#2be22131ab18af4693fd737b161d1ef34de8ca9d" + integrity sha512-GQoa6OrQ8G08guMFgeXPH7yE/8Dt0IfOGWJSfSH4uafwdC7rWwrfE6P9N8AtPGIjUzdo2+7bN8Xo3qC578olhg== + +"@esbuild/win32-ia32@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.9.tgz#e10ead5a55789b167b4225d2469324538768af7c" + integrity sha512-UOozV7Ntykvr5tSOlGCrqU3NBr3d8JqPes0QWN2WOXfvkWVGRajC+Ym0/Wj88fUgecUCLDdJPDF0Nna2UK3Qtg== + +"@esbuild/win32-x64@0.19.9": + version "0.19.9" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.9.tgz#b2da6219b603e3fa371a78f53f5361260d0c5585" + integrity sha512-oxoQgglOP7RH6iasDrhY+R/3cHrfwIDvRlT4CGChflq6twk8iENeVvMJjmvBb94Ik1Z+93iGO27err7w6l54GQ== "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" @@ -2564,33 +2564,33 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -esbuild@^0.19.8: - version "0.19.8" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.8.tgz#ad05b72281d84483fa6b5345bd246c27a207b8f1" - integrity sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w== +esbuild@^0.19.9: + version "0.19.9" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.9.tgz#423a8f35153beb22c0b695da1cd1e6c0c8cdd490" + integrity sha512-U9CHtKSy+EpPsEBa+/A2gMs/h3ylBC0H0KSqIg7tpztHerLi6nrrcoUJAkNCEPumx8yJ+Byic4BVwHgRbN0TBg== optionalDependencies: - "@esbuild/android-arm" "0.19.8" - "@esbuild/android-arm64" "0.19.8" - "@esbuild/android-x64" "0.19.8" - "@esbuild/darwin-arm64" "0.19.8" - "@esbuild/darwin-x64" "0.19.8" - "@esbuild/freebsd-arm64" "0.19.8" - "@esbuild/freebsd-x64" "0.19.8" - "@esbuild/linux-arm" "0.19.8" - "@esbuild/linux-arm64" "0.19.8" - "@esbuild/linux-ia32" "0.19.8" - "@esbuild/linux-loong64" "0.19.8" - "@esbuild/linux-mips64el" "0.19.8" - "@esbuild/linux-ppc64" "0.19.8" - "@esbuild/linux-riscv64" "0.19.8" - "@esbuild/linux-s390x" "0.19.8" - "@esbuild/linux-x64" "0.19.8" - "@esbuild/netbsd-x64" "0.19.8" - "@esbuild/openbsd-x64" "0.19.8" - "@esbuild/sunos-x64" "0.19.8" - "@esbuild/win32-arm64" "0.19.8" - "@esbuild/win32-ia32" "0.19.8" - "@esbuild/win32-x64" "0.19.8" + "@esbuild/android-arm" "0.19.9" + "@esbuild/android-arm64" "0.19.9" + "@esbuild/android-x64" "0.19.9" + "@esbuild/darwin-arm64" "0.19.9" + "@esbuild/darwin-x64" "0.19.9" + "@esbuild/freebsd-arm64" "0.19.9" + "@esbuild/freebsd-x64" "0.19.9" + "@esbuild/linux-arm" "0.19.9" + "@esbuild/linux-arm64" "0.19.9" + "@esbuild/linux-ia32" "0.19.9" + "@esbuild/linux-loong64" "0.19.9" + "@esbuild/linux-mips64el" "0.19.9" + "@esbuild/linux-ppc64" "0.19.9" + "@esbuild/linux-riscv64" "0.19.9" + "@esbuild/linux-s390x" "0.19.9" + "@esbuild/linux-x64" "0.19.9" + "@esbuild/netbsd-x64" "0.19.9" + "@esbuild/openbsd-x64" "0.19.9" + "@esbuild/sunos-x64" "0.19.9" + "@esbuild/win32-arm64" "0.19.9" + "@esbuild/win32-ia32" "0.19.9" + "@esbuild/win32-x64" "0.19.9" escalade@^3.1.1: version "3.1.1" From 4cda022e99a5505bd1ef9b09e620ef1a26379d9b Mon Sep 17 00:00:00 2001 From: Rowen Willabus Date: Thu, 14 Dec 2023 00:16:31 -0400 Subject: [PATCH 35/75] Update Slack expired links --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/ISSUE_TEMPLATE/chore.md | 2 +- .github/ISSUE_TEMPLATE/documentation.md | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- .github/ISSUE_TEMPLATE/flaky_test.md | 2 +- .github/ISSUE_TEMPLATE/problem_validation.md | 2 +- README.md | 4 ++-- doc/CONTRIBUTING.md | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 7f6abfb56c..f5bd163247 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -43,4 +43,4 @@ password for all users: 12345678 ### Questions? Join Slack! -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly. And [discord](https://discord.gg/qJcw2RZH8Q) for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly. And [discord](https://discord.gg/qJcw2RZH8Q) for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. diff --git a/.github/ISSUE_TEMPLATE/chore.md b/.github/ISSUE_TEMPLATE/chore.md index cee7a8181b..c28185169c 100644 --- a/.github/ISSUE_TEMPLATE/chore.md +++ b/.github/ISSUE_TEMPLATE/chore.md @@ -6,4 +6,4 @@ ### Questions? Join Slack! -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.md index 18a7d3b4fd..53bdbc7df3 100644 --- a/.github/ISSUE_TEMPLATE/documentation.md +++ b/.github/ISSUE_TEMPLATE/documentation.md @@ -6,4 +6,4 @@ ### Questions? Join Slack! -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index f219740384..61af8b23d7 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -31,4 +31,4 @@ password for all users: 12345678 ### Questions? Join Slack! -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly. And [discord](https://discord.gg/qJcw2RZH8Q) for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly. And [discord](https://discord.gg/qJcw2RZH8Q) for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. diff --git a/.github/ISSUE_TEMPLATE/flaky_test.md b/.github/ISSUE_TEMPLATE/flaky_test.md index 72531e81b2..19a6c2f51e 100644 --- a/.github/ISSUE_TEMPLATE/flaky_test.md +++ b/.github/ISSUE_TEMPLATE/flaky_test.md @@ -16,4 +16,4 @@ rspec or rspec in docker? ### Questions? Join Slack! -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. diff --git a/.github/ISSUE_TEMPLATE/problem_validation.md b/.github/ISSUE_TEMPLATE/problem_validation.md index bc230942a1..3a505cf754 100644 --- a/.github/ISSUE_TEMPLATE/problem_validation.md +++ b/.github/ISSUE_TEMPLATE/problem_validation.md @@ -15,4 +15,4 @@ Please use this template to document problems mentioned by CASA stakeholders so ### Questions? Join Slack! -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. diff --git a/README.md b/README.md index b8418fb844..20ac95c656 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ A CASA (Court Appointed Special Advocate) is a role where a volunteer advocates We are very happy to have you! CASA and Ruby for Good are committed to welcoming new contributors of all skill levels. -We highly recommend that you join us in [slack](http://bit.ly/3Quxc1Q) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. +We highly recommend that you join us in [slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA) #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues. Issues on the issue board https://github.com/rubyforgood/casa/projects/1 in the TODO column are fair game. An issue can be claimed by commenting on it. @@ -222,7 +222,7 @@ Thank you to [Scout](https://ter.li/h8k29r) for letting us use their dashboard f # Communication and Collaboration -Most conversation happens in the #casa channel of the Ruby For Good slack. Get access here: http://bit.ly/3Quxc1Q +Most conversation happens in the #casa channel of the Ruby For Good slack. Get access [here](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA). You can also open an issue or comment on an issue on GitHub and a maintainer will reply to you. diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md index b551b8cb3b..e4dbc2592a 100644 --- a/doc/CONTRIBUTING.md +++ b/doc/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing We ♥ contributors! By participating in this project, you agree to abide by the Ruby for Good [code of conduct](https://github.com/rubyforgood/code-of-conduct). -If you have any questions about an issue, comment on the issue, open a new issue or ask in [the RubyForGood slack](http://bit.ly/3Quxc1Q). CASA has a `#casa` channel in the Slack. Our channel in slack also contains a zoom link for office hours every day office hours are held. +If you have any questions about an issue, comment on the issue, open a new issue or ask in [the RubyForGood slack](https://join.slack.com/t/rubyforgood/shared_invite/zt-21pyz2ab8-H6JgQfGGI0Ab6MfNOZRIQA). CASA has a `#casa` channel in the Slack. Our channel in slack also contains a zoom link for office hours every day office hours are held. You won't be yelled at for giving your best effort. The worst that can happen is that you'll be politely asked to change something. We appreciate any sort of contributions, and don't want a wall of rules to get in the way of that. From 6fb064c4043806353e49731d931510faec4060de Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Sun, 17 Dec 2023 21:56:14 -0500 Subject: [PATCH 36/75] Chart and dataset label change --- app/javascript/src/display_app_metric.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/src/display_app_metric.js b/app/javascript/src/display_app_metric.js index b0c49468b4..02f3e4a2fa 100644 --- a/app/javascript/src/display_app_metric.js +++ b/app/javascript/src/display_app_metric.js @@ -171,7 +171,7 @@ function createLineChart (chartElement, dataset) { datasets: [ createDataset('Total Case Contacts', allCaseContactsCount, '#308af3', '#308af3'), createDataset('Total Case Contacts with Notes', allCaseContactNotesCount, '#48ba16', '#48ba16'), - createDataset('Total Users', allUsersCount, '#FF0000', '#FF0000') + createDataset('Total Case Contact Users', allUsersCount, '#FF0000', '#FF0000') ] }, options: createChartOptions() @@ -204,7 +204,7 @@ function createChartOptions () { title: { display: true, font: { size: 18 }, - text: 'Case Contact Creation Times in last 12 months' + text: 'Case Contact Creation' }, tooltips: { callbacks: { From 18f653b7420efc96961950f73d62344eb55bb9ed Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:01:41 +0000 Subject: [PATCH 37/75] build(deps): bump twilio-ruby from 6.8.3 to 6.9.0 Bumps [twilio-ruby](https://github.com/twilio/twilio-ruby) from 6.8.3 to 6.9.0. - [Release notes](https://github.com/twilio/twilio-ruby/releases) - [Changelog](https://github.com/twilio/twilio-ruby/blob/main/CHANGES.md) - [Commits](https://github.com/twilio/twilio-ruby/compare/6.8.3...6.9.0) --- updated-dependencies: - dependency-name: twilio-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 273b15cc44..6183a61a2a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -485,7 +485,7 @@ GEM timeout (0.4.1) traceroute (0.8.1) rails (>= 3.0.0) - twilio-ruby (6.8.3) + twilio-ruby (6.9.0) faraday (>= 0.9, < 3.0) jwt (>= 1.5, < 3.0) nokogiri (>= 1.6, < 2.0) From 7e7715e0040387e1b53c78f6ec03aec4b81ca9b0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:01:59 +0000 Subject: [PATCH 38/75] build(deps): bump net-imap from 0.4.5 to 0.4.8 Bumps [net-imap](https://github.com/ruby/net-imap) from 0.4.5 to 0.4.8. - [Release notes](https://github.com/ruby/net-imap/releases) - [Commits](https://github.com/ruby/net-imap/compare/v0.4.5...v0.4.8) --- updated-dependencies: - dependency-name: net-imap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 273b15cc44..6148e72e0d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -288,7 +288,7 @@ GEM multipart-post (2.3.0) net-http-persistent (4.0.1) connection_pool (~> 2.2) - net-imap (0.4.5) + net-imap (0.4.8) date net-protocol net-pop (0.1.2) From 3e6e034246f5f04248798d30ba74a3599ca31c6a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:02:16 +0000 Subject: [PATCH 39/75] build(deps): bump oj from 3.16.2 to 3.16.3 Bumps [oj](https://github.com/ohler55/oj) from 3.16.2 to 3.16.3. - [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md) - [Commits](https://github.com/ohler55/oj/compare/v3.16.2...v3.16.3) --- updated-dependencies: - dependency-name: oj dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 273b15cc44..80c1072c3c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -95,7 +95,7 @@ GEM erubi (~> 1.4) parser (>= 2.4) smart_properties - bigdecimal (3.1.4) + bigdecimal (3.1.5) bindex (0.8.1) blueprinter (0.30.0) brakeman (6.1.0) @@ -310,8 +310,8 @@ GEM noticed (1.6.3) http (>= 4.0.0) rails (>= 5.2.0) - oj (3.16.2) - bigdecimal (~> 3.1) + oj (3.16.3) + bigdecimal (>= 3.0) orm_adapter (0.5.0) parallel (1.23.0) paranoia (2.6.3) From 336df5e14fe14d29678d5b4f243d9605d3a0fac7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:02:32 +0000 Subject: [PATCH 40/75] build(deps): bump view_component from 3.7.0 to 3.8.0 Bumps [view_component](https://github.com/viewcomponent/view_component) from 3.7.0 to 3.8.0. - [Release notes](https://github.com/viewcomponent/view_component/releases) - [Changelog](https://github.com/ViewComponent/view_component/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/viewcomponent/view_component/compare/v3.7.0...v3.8.0) --- updated-dependencies: - dependency-name: view_component dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 273b15cc44..065ad0738e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -496,7 +496,7 @@ GEM unf_ext (0.0.8.2) unicode-display_width (2.4.2) uniform_notifier (1.16.0) - view_component (3.7.0) + view_component (3.8.0) activesupport (>= 5.2.0, < 8.0) concurrent-ruby (~> 1.0) method_source (~> 1.0) From b83bb4aaf0328088d65ca3447cc4abc685cebc60 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:18:40 +0000 Subject: [PATCH 41/75] build(deps): bump @babel/core from 7.23.5 to 7.23.6 Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.23.5 to 7.23.6. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.6/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 152 ++++++++++++++++++++++++--------------------------- 2 files changed, 73 insertions(+), 81 deletions(-) diff --git a/package.json b/package.json index 826c557d23..5ae154f354 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build:css:dev": "sass app/assets/stylesheets/application.scss app/assets/builds/application.css --load-path=node_modules --watch" }, "dependencies": { - "@babel/core": "^7.23.5", + "@babel/core": "^7.23.6", "@fortawesome/fontawesome-free": "^6.5.1", "@hotwired/stimulus": "^3.2.2", "@popperjs/core": "^2.11.8", diff --git a/yarn.lock b/yarn.lock index c20cc09a62..15ff114f9d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,38 +18,38 @@ "@babel/highlight" "^7.23.4" chalk "^2.4.2" -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98" integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.5": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.5.tgz#6e23f2acbcb77ad283c5ed141f824fd9f70101c7" - integrity sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g== +"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.6.tgz#8be77cd77c55baadcc1eae1c33df90ab6d2151d4" + integrity sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.23.5" - "@babel/generator" "^7.23.5" - "@babel/helper-compilation-targets" "^7.22.15" + "@babel/generator" "^7.23.6" + "@babel/helper-compilation-targets" "^7.23.6" "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.23.5" - "@babel/parser" "^7.23.5" + "@babel/helpers" "^7.23.6" + "@babel/parser" "^7.23.6" "@babel/template" "^7.22.15" - "@babel/traverse" "^7.23.5" - "@babel/types" "^7.23.5" + "@babel/traverse" "^7.23.6" + "@babel/types" "^7.23.6" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.23.5", "@babel/generator@^7.7.2": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.5.tgz#17d0a1ea6b62f351d281350a5f80b87a810c4755" - integrity sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA== +"@babel/generator@^7.23.6", "@babel/generator@^7.7.2": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e" + integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw== dependencies: - "@babel/types" "^7.23.5" + "@babel/types" "^7.23.6" "@jridgewell/gen-mapping" "^0.3.2" "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" @@ -75,14 +75,14 @@ dependencies: "@babel/types" "^7.22.15" -"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.6": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52" - integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw== +"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" + integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== dependencies: - "@babel/compat-data" "^7.22.9" - "@babel/helper-validator-option" "^7.22.15" - browserslist "^4.21.9" + "@babel/compat-data" "^7.23.5" + "@babel/helper-validator-option" "^7.23.5" + browserslist "^4.22.2" lru-cache "^5.1.1" semver "^6.3.1" @@ -273,7 +273,7 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== -"@babel/helper-validator-option@^7.22.15", "@babel/helper-validator-option@^7.23.5": +"@babel/helper-validator-option@^7.23.5": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== @@ -287,14 +287,14 @@ "@babel/template" "^7.22.15" "@babel/types" "^7.22.19" -"@babel/helpers@^7.23.5": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.5.tgz#52f522840df8f1a848d06ea6a79b79eefa72401e" - integrity sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg== +"@babel/helpers@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.6.tgz#d03af2ee5fb34691eec0cda90f5ecbb4d4da145a" + integrity sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA== dependencies: "@babel/template" "^7.22.15" - "@babel/traverse" "^7.23.5" - "@babel/types" "^7.23.5" + "@babel/traverse" "^7.23.6" + "@babel/types" "^7.23.6" "@babel/highlight@^7.23.4": version "7.23.4" @@ -305,10 +305,10 @@ chalk "^2.4.2" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.5": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.5.tgz#37dee97c4752af148e1d38c34b856b2507660563" - integrity sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.6.tgz#ba1c9e512bda72a47e285ae42aff9d2a635a9e3b" + integrity sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3": version "7.23.3" @@ -991,26 +991,26 @@ "@babel/parser" "^7.22.15" "@babel/types" "^7.22.15" -"@babel/traverse@^7.23.5": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.5.tgz#f546bf9aba9ef2b042c0e00d245990c15508e7ec" - integrity sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w== +"@babel/traverse@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.6.tgz#b53526a2367a0dd6edc423637f3d2d0f2521abc5" + integrity sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ== dependencies: "@babel/code-frame" "^7.23.5" - "@babel/generator" "^7.23.5" + "@babel/generator" "^7.23.6" "@babel/helper-environment-visitor" "^7.22.20" "@babel/helper-function-name" "^7.23.0" "@babel/helper-hoist-variables" "^7.22.5" "@babel/helper-split-export-declaration" "^7.22.6" - "@babel/parser" "^7.23.5" - "@babel/types" "^7.23.5" - debug "^4.1.0" + "@babel/parser" "^7.23.6" + "@babel/types" "^7.23.6" + debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.5.tgz#48d730a00c95109fa4393352705954d74fb5b602" - integrity sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w== +"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.22.15", "@babel/types@^7.22.19", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.6", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.6.tgz#be33fdb151e1f5a56877d704492c240fc71c7ccd" + integrity sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg== dependencies: "@babel/helper-string-parser" "^7.23.4" "@babel/helper-validator-identifier" "^7.22.20" @@ -2050,16 +2050,6 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@^4.21.9: - version "4.21.9" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.9.tgz#e11bdd3c313d7e2a9e87e8b4b0c7872b13897635" - integrity sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg== - dependencies: - caniuse-lite "^1.0.30001503" - electron-to-chromium "^1.4.431" - node-releases "^2.0.12" - update-browserslist-db "^1.0.11" - browserslist@^4.22.1: version "4.22.1" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.1.tgz#ba91958d1a59b87dab6fed8dfbcb3da5e2e9c619" @@ -2070,6 +2060,16 @@ browserslist@^4.22.1: node-releases "^2.0.13" update-browserslist-db "^1.0.13" +browserslist@^4.22.2: + version "4.22.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.2.tgz#704c4943072bd81ea18997f3bd2180e89c77874b" + integrity sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A== + dependencies: + caniuse-lite "^1.0.30001565" + electron-to-chromium "^1.4.601" + node-releases "^2.0.14" + update-browserslist-db "^1.0.13" + bser@2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" @@ -2112,16 +2112,16 @@ camelcase@^6.2.0: resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001503: - version "1.0.30001515" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001515.tgz#418aefeed9d024cd3129bfae0ccc782d4cb8f12b" - integrity sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA== - caniuse-lite@^1.0.30001541: version "1.0.30001549" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001549.tgz#7d1a3dce7ea78c06ed72c32c2743ea364b3615aa" integrity sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA== +caniuse-lite@^1.0.30001565: + version "1.0.30001570" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz#b4e5c1fa786f733ab78fc70f592df6b3f23244ca" + integrity sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw== + chalk@^2.4.2: version "2.4.2" resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" @@ -2350,7 +2350,7 @@ datatables.net@1.13.8: dependencies: jquery ">=1.7" -debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: +debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -2438,16 +2438,16 @@ duplexer@~0.1.1: resolved "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz" integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== -electron-to-chromium@^1.4.431: - version "1.4.457" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.457.tgz#3fdc7b4f97d628ac6b51e8b4b385befb362fe343" - integrity sha512-/g3UyNDmDd6ebeWapmAoiyy+Sy2HyJ+/X8KyvNeHfKRFfHaA2W8oF5fxD5F3tjBDcjpwo0iek6YNgxNXDBoEtA== - electron-to-chromium@^1.4.535: version "1.4.554" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.554.tgz#04e09c2ee31dc0f1546174033809b54cc372740b" integrity sha512-Q0umzPJjfBrrj8unkONTgbKQXzXRrH7sVV7D9ea2yBV3Oaogz991yhbpfvo2LMNkJItmruXTEzVpP9cp7vaIiQ== +electron-to-chromium@^1.4.601: + version "1.4.614" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.614.tgz#2fe789d61fa09cb875569f37c309d0c2701f91c0" + integrity sha512-X4ze/9Sc3QWs6h92yerwqv7aB/uU8vCjZcrMjA8N9R1pjMFRe44dLsck5FzLilOYvcXuDn93B+bpGYyufc70gQ== + emittery@^0.13.1: version "0.13.1" resolved "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz" @@ -4407,16 +4407,16 @@ node-int64@^0.4.0: resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.12: - version "2.0.12" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.12.tgz#35627cc224a23bfb06fb3380f2b3afaaa7eb1039" - integrity sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ== - node-releases@^2.0.13: version "2.0.13" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== +node-releases@^2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" @@ -5526,14 +5526,6 @@ universalify@^0.2.0: resolved "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" - integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== - dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" - update-browserslist-db@^1.0.13: version "1.0.13" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" From 3801b06b47cb35f0214cf14171b65f7536a4287e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:19:30 +0000 Subject: [PATCH 42/75] build(deps-dev): bump @babel/preset-env from 7.23.5 to 7.23.6 Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.23.5 to 7.23.6. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.6/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 97 ++++++++++++++++++++++++---------------------------- 2 files changed, 46 insertions(+), 53 deletions(-) diff --git a/package.json b/package.json index 826c557d23..8731d567a5 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "version": "0.1.0", "devDependencies": { - "@babel/preset-env": "^7.23.5", + "@babel/preset-env": "^7.23.6", "jest": "^29.6.2", "jest-environment-jsdom": "^29.6.2", "markdown-toc": "^1.2.0", diff --git a/yarn.lock b/yarn.lock index c20cc09a62..c72ec2e3c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,7 +18,7 @@ "@babel/highlight" "^7.23.4" chalk "^2.4.2" -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.23.3", "@babel/compat-data@^7.23.5": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.23.5.tgz#ffb878728bb6bdcb6f4510aa51b1be9afb8cfd98" integrity sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw== @@ -75,14 +75,14 @@ dependencies: "@babel/types" "^7.22.15" -"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.6": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52" - integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw== +"@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" + integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== dependencies: - "@babel/compat-data" "^7.22.9" - "@babel/helper-validator-option" "^7.22.15" - browserslist "^4.21.9" + "@babel/compat-data" "^7.23.5" + "@babel/helper-validator-option" "^7.23.5" + browserslist "^4.22.2" lru-cache "^5.1.1" semver "^6.3.1" @@ -273,7 +273,7 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== -"@babel/helper-validator-option@^7.22.15", "@babel/helper-validator-option@^7.23.5": +"@babel/helper-validator-option@^7.23.5": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== @@ -613,12 +613,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" -"@babel/plugin-transform-for-of@^7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz#afe115ff0fbce735e02868d41489093c63e15559" - integrity sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw== +"@babel/plugin-transform-for-of@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.6.tgz#81c37e24171b37b370ba6aaffa7ac86bcb46f94e" + integrity sha512-aYH4ytZ0qSuBbpfhuofbg/e96oQ7U2w1Aw/UQmKT+1l39uEhUPoFS3fHevDc1G0OvewyDudfMKY1OulczHzWIw== dependencies: "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" "@babel/plugin-transform-function-name@^7.23.3": version "7.23.3" @@ -875,13 +876,13 @@ "@babel/helper-create-regexp-features-plugin" "^7.22.15" "@babel/helper-plugin-utils" "^7.22.5" -"@babel/preset-env@^7.23.5": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.5.tgz#350a3aedfa9f119ad045b068886457e895ba0ca1" - integrity sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A== +"@babel/preset-env@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.23.6.tgz#ad0ea799d5a3c07db5b9a172819bbd444092187a" + integrity sha512-2XPn/BqKkZCpzYhUUNZ1ssXw7DcXfKQEjv/uXZUXgaebCMYmkEsfZ2yY+vv+xtXv50WmL5SGhyB6/xsWxIvvOQ== dependencies: "@babel/compat-data" "^7.23.5" - "@babel/helper-compilation-targets" "^7.22.15" + "@babel/helper-compilation-targets" "^7.23.6" "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-validator-option" "^7.23.5" "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.23.3" @@ -921,7 +922,7 @@ "@babel/plugin-transform-dynamic-import" "^7.23.4" "@babel/plugin-transform-exponentiation-operator" "^7.23.3" "@babel/plugin-transform-export-namespace-from" "^7.23.4" - "@babel/plugin-transform-for-of" "^7.23.3" + "@babel/plugin-transform-for-of" "^7.23.6" "@babel/plugin-transform-function-name" "^7.23.3" "@babel/plugin-transform-json-strings" "^7.23.4" "@babel/plugin-transform-literals" "^7.23.3" @@ -2050,16 +2051,6 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@^4.21.9: - version "4.21.9" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.9.tgz#e11bdd3c313d7e2a9e87e8b4b0c7872b13897635" - integrity sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg== - dependencies: - caniuse-lite "^1.0.30001503" - electron-to-chromium "^1.4.431" - node-releases "^2.0.12" - update-browserslist-db "^1.0.11" - browserslist@^4.22.1: version "4.22.1" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.1.tgz#ba91958d1a59b87dab6fed8dfbcb3da5e2e9c619" @@ -2070,6 +2061,16 @@ browserslist@^4.22.1: node-releases "^2.0.13" update-browserslist-db "^1.0.13" +browserslist@^4.22.2: + version "4.22.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.22.2.tgz#704c4943072bd81ea18997f3bd2180e89c77874b" + integrity sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A== + dependencies: + caniuse-lite "^1.0.30001565" + electron-to-chromium "^1.4.601" + node-releases "^2.0.14" + update-browserslist-db "^1.0.13" + bser@2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" @@ -2112,16 +2113,16 @@ camelcase@^6.2.0: resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001503: - version "1.0.30001515" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001515.tgz#418aefeed9d024cd3129bfae0ccc782d4cb8f12b" - integrity sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA== - caniuse-lite@^1.0.30001541: version "1.0.30001549" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001549.tgz#7d1a3dce7ea78c06ed72c32c2743ea364b3615aa" integrity sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA== +caniuse-lite@^1.0.30001565: + version "1.0.30001570" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz#b4e5c1fa786f733ab78fc70f592df6b3f23244ca" + integrity sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw== + chalk@^2.4.2: version "2.4.2" resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" @@ -2438,16 +2439,16 @@ duplexer@~0.1.1: resolved "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz" integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== -electron-to-chromium@^1.4.431: - version "1.4.457" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.457.tgz#3fdc7b4f97d628ac6b51e8b4b385befb362fe343" - integrity sha512-/g3UyNDmDd6ebeWapmAoiyy+Sy2HyJ+/X8KyvNeHfKRFfHaA2W8oF5fxD5F3tjBDcjpwo0iek6YNgxNXDBoEtA== - electron-to-chromium@^1.4.535: version "1.4.554" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.554.tgz#04e09c2ee31dc0f1546174033809b54cc372740b" integrity sha512-Q0umzPJjfBrrj8unkONTgbKQXzXRrH7sVV7D9ea2yBV3Oaogz991yhbpfvo2LMNkJItmruXTEzVpP9cp7vaIiQ== +electron-to-chromium@^1.4.601: + version "1.4.614" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.614.tgz#2fe789d61fa09cb875569f37c309d0c2701f91c0" + integrity sha512-X4ze/9Sc3QWs6h92yerwqv7aB/uU8vCjZcrMjA8N9R1pjMFRe44dLsck5FzLilOYvcXuDn93B+bpGYyufc70gQ== + emittery@^0.13.1: version "0.13.1" resolved "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz" @@ -4407,16 +4408,16 @@ node-int64@^0.4.0: resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.12: - version "2.0.12" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.12.tgz#35627cc224a23bfb06fb3380f2b3afaaa7eb1039" - integrity sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ== - node-releases@^2.0.13: version "2.0.13" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== +node-releases@^2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" @@ -5526,14 +5527,6 @@ universalify@^0.2.0: resolved "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940" - integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA== - dependencies: - escalade "^3.1.1" - picocolors "^1.0.0" - update-browserslist-db@^1.0.13: version "1.0.13" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" From eed3393ad31ab1e4f91309d7ba1413a6884d951c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:31:54 +0000 Subject: [PATCH 43/75] build(deps): bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/docker.yml | 2 +- .github/workflows/rspec.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 79aec715d5..e516469d33 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -39,7 +39,7 @@ jobs: - name: Archive selenium screenshots if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: selenium-screenshots path: ${{ github.workspace }}/tmp/capybara/*.png diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 818e05887c..3f0143a8e7 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -78,7 +78,7 @@ jobs: - name: Archive selenium screenshots if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: selenium-screenshots path: | From 44e7e804115c3ee50f92ccf2354bd69e6321f095 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:31:58 +0000 Subject: [PATCH 44/75] build(deps): bump github/codeql-action from 2 to 3 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e0b52e4b75..682d9ddc28 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -47,7 +47,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -58,7 +58,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -72,4 +72,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 From aa9d59b7b86a03c2cba0dc82efd91dcb03797c63 Mon Sep 17 00:00:00 2001 From: Francisco das Chagas Silva Junior Date: Mon, 18 Dec 2023 22:15:18 -0500 Subject: [PATCH 45/75] update bootstrap tag bg-success and bg-danger --- app/helpers/sidebar_helper.rb | 2 +- app/views/all_casa_admins/casa_admins/edit.html.erb | 2 +- app/views/casa_cases/_volunteer_assignment.html.erb | 4 ++-- app/views/casa_cases/show.html.erb | 2 +- app/views/supervisors/_manage_active.html.erb | 2 +- app/views/volunteers/_manage_active.html.erb | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/helpers/sidebar_helper.rb b/app/helpers/sidebar_helper.rb index e4be743388..e732a3acaa 100644 --- a/app/helpers/sidebar_helper.rb +++ b/app/helpers/sidebar_helper.rb @@ -8,7 +8,7 @@ def cases_index_title def inbox_label unread_count = current_user.notifications.unread.count return "Inbox" if unread_count == 0 - "Inbox #{unread_count}".html_safe + "Inbox #{unread_count}".html_safe end def menu_item(label:, path:, visible: false) diff --git a/app/views/all_casa_admins/casa_admins/edit.html.erb b/app/views/all_casa_admins/casa_admins/edit.html.erb index 924143f672..31e5af946d 100644 --- a/app/views/all_casa_admins/casa_admins/edit.html.erb +++ b/app/views/all_casa_admins/casa_admins/edit.html.erb @@ -16,7 +16,7 @@ <% if @casa_admin.persisted? %>
<% if @casa_admin.active? %> - Admin is Active + Admin is Active <%= link_to "Deactivate", deactivate_all_casa_admins_casa_org_casa_admin_path, method: :patch, diff --git a/app/views/casa_cases/_volunteer_assignment.html.erb b/app/views/casa_cases/_volunteer_assignment.html.erb index b18255973a..87e1e2cc9f 100644 --- a/app/views/casa_cases/_volunteer_assignment.html.erb +++ b/app/views/casa_cases/_volunteer_assignment.html.erb @@ -19,9 +19,9 @@ <%= assignment&.volunteer&.email %> <% if assignment.active? %> - Assigned + Assigned <% else %> - + <%= assignment.volunteer.active? ? "Unassigned" : "Deactivated volunteer" %> <% end %> diff --git a/app/views/casa_cases/show.html.erb b/app/views/casa_cases/show.html.erb index 6fe5505248..ef75c14e0f 100644 --- a/app/views/casa_cases/show.html.erb +++ b/app/views/casa_cases/show.html.erb @@ -18,7 +18,7 @@ <%= link_to(casa_case_emancipation_path(@casa_case), class: "main-btn primary-btn btn-sm pull-left casa-case-button") do %> Emancipation - + <%= @casa_case.decorate.emancipation_checklist_count %> <% end %> diff --git a/app/views/supervisors/_manage_active.html.erb b/app/views/supervisors/_manage_active.html.erb index 8c8c2b5a08..0cc7f23471 100644 --- a/app/views/supervisors/_manage_active.html.erb +++ b/app/views/supervisors/_manage_active.html.erb @@ -1,6 +1,6 @@
<% if user.active? %> - Supervisor is Active + Supervisor is Active
<% if current_user.casa_admin? %> <% if policy(user).deactivate? %> <%= link_to deactivate_supervisor_path(user), class: "btn-sm main-btn danger-btn-outline btn-hover", method: :patch, data: { confirm: "WARNING: Marking a supervisor inactive will make them unable to login. Are you sure you want to do this?" } do %> diff --git a/app/views/volunteers/_manage_active.html.erb b/app/views/volunteers/_manage_active.html.erb index adb7cfc089..bdea87bd5f 100644 --- a/app/views/volunteers/_manage_active.html.erb +++ b/app/views/volunteers/_manage_active.html.erb @@ -1,6 +1,6 @@
<% if user.active? %> - Volunteer is Active
+ Volunteer is Active
<% if policy(user).deactivate? %> <%= link_to deactivate_volunteer_path(user), method: :patch, From 234f16e459d1070983ae0613d1db6f715d8d006e Mon Sep 17 00:00:00 2001 From: Francisco das Chagas Silva Junior Date: Mon, 18 Dec 2023 22:41:00 -0500 Subject: [PATCH 46/75] Change test cases to fit bootstrap v5 badges tag --- spec/system/casa_cases/edit_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/system/casa_cases/edit_spec.rb b/spec/system/casa_cases/edit_spec.rb index 54224f6153..524b45741d 100644 --- a/spec/system/casa_cases/edit_spec.rb +++ b/spec/system/casa_cases/edit_spec.rb @@ -294,7 +294,7 @@ def sign_in_and_assign_volunteer unassign_button = page.find("button.btn-outline-danger") expect(unassign_button.text).to eq "Unassign Volunteer" - assign_badge = page.find("span.badge-success") + assign_badge = page.find("span.bg-success") expect(assign_badge.text).to eq "ASSIGNED" end @@ -316,7 +316,7 @@ def sign_in_and_assign_volunteer click_on "Unassign Volunteer" - assign_badge = page.find("span.badge-danger") + assign_badge = page.find("span.bg-danger") expect(assign_badge.text).to eq "UNASSIGNED" expected_start_and_end_date = "August 29, 2020" @@ -339,7 +339,7 @@ def sign_in_and_assign_volunteer click_on "Unassign Volunteer" - assign_badge = page.find("span.badge-danger") + assign_badge = page.find("span.bg-danger") expect(assign_badge.text).to eq "UNASSIGNED" end end From 9de074687b8035550382c2f6fa160828a4d44055 Mon Sep 17 00:00:00 2001 From: Pavel Goloblia Date: Mon, 18 Dec 2023 01:14:16 +0200 Subject: [PATCH 47/75] Adjusted notes form section for design --- .../controllers/icon_toggle_controller.js | 10 +++++++ app/javascript/controllers/index.js | 3 +++ app/views/case_contacts/_form.html.erb | 25 +++++++++++++----- spec/system/case_contacts/edit_spec.rb | 4 +-- spec/system/case_contacts/new_spec.rb | 26 +++++++++---------- 5 files changed, 47 insertions(+), 21 deletions(-) create mode 100644 app/javascript/controllers/icon_toggle_controller.js diff --git a/app/javascript/controllers/icon_toggle_controller.js b/app/javascript/controllers/icon_toggle_controller.js new file mode 100644 index 0000000000..acfc392997 --- /dev/null +++ b/app/javascript/controllers/icon_toggle_controller.js @@ -0,0 +1,10 @@ +import { Controller } from '@hotwired/stimulus' + +export default class extends Controller { + static targets = ['icon'] + + toggle () { + this.iconTarget.classList.toggle('lni-chevron-up') + this.iconTarget.classList.toggle('lni-chevron-down') + } +} diff --git a/app/javascript/controllers/index.js b/app/javascript/controllers/index.js index 7044ce11aa..eef42f5b79 100644 --- a/app/javascript/controllers/index.js +++ b/app/javascript/controllers/index.js @@ -10,6 +10,8 @@ import ExtendedNestedFormController from './extended_nested_form_controller' import HelloController from './hello_controller' +import IconToggleController from './icon_toggle_controller' + import MultipleSelectController from './multiple_select_controller' import NavbarController from './navbar_controller' @@ -20,6 +22,7 @@ import SidebarGroupController from './sidebar_group_controller' application.register('dismiss', DismissController) application.register('extended-nested-form', ExtendedNestedFormController) application.register('hello', HelloController) +application.register('icon-toggle', IconToggleController) application.register('multiple-select', MultipleSelectController) application.register('navbar', NavbarController) application.register('sidebar', SidebarController) diff --git a/app/views/case_contacts/_form.html.erb b/app/views/case_contacts/_form.html.erb index f8e6e93b2f..fc8fcf796a 100644 --- a/app/views/case_contacts/_form.html.erb +++ b/app/views/case_contacts/_form.html.erb @@ -214,13 +214,26 @@ readonly: true %> <% end %>
-
-

<%= form.label :notes, "5. Enter Notes" %>

-
- Please refer to individuals by their roles instead of by their names. Ex: My supervisor joined me for a call with the social worker to discuss my youth. +
+
+

<%= form.label :notes, "7. Additional notes (optional)" %>

+
-
- <%= form.text_area :notes, :rows => 5, placeholder: "Enter notes here", class: "form-control" %> + +
+

+ Include any additional comments or notes that may assist in future case tracking or reporting. +

+
+ <%= form.text_area :notes, :rows => 5, placeholder: "Additional notes", class: "form-control" %> +
diff --git a/spec/system/case_contacts/edit_spec.rb b/spec/system/case_contacts/edit_spec.rb index b75c2bbb18..c63799769e 100644 --- a/spec/system/case_contacts/edit_spec.rb +++ b/spec/system/case_contacts/edit_spec.rb @@ -152,7 +152,7 @@ choose "Yes" end - fill_in "Notes", with: "Hello world" + fill_in "Additional notes", with: "Hello world" find("button#profile").click click_on "Sign Out" @@ -161,7 +161,7 @@ visit edit_case_contact_path(case_contact) - expect(page).to have_field("Notes", with: "Hello world") + expect(page).to have_field("Additional notes", with: "Hello world") end end end diff --git a/spec/system/case_contacts/new_spec.rb b/spec/system/case_contacts/new_spec.rb index 2301280187..588e13501c 100644 --- a/spec/system/case_contacts/new_spec.rb +++ b/spec/system/case_contacts/new_spec.rb @@ -76,7 +76,7 @@ fill_in "case_contact_miles_driven", with: "0" short_notes = "Hello world!" - fill_in "Notes", with: short_notes + fill_in "Additional notes", with: short_notes click_on "Submit" expect(page).to have_text("Confirm Note Content") @@ -119,7 +119,7 @@ "euismod diam pretium, mattis nibh. Fusce eget leo ex. Donec vitae lacus eu" \ "magna tincidunt placerat. Mauris nibh nibh, venenatis sit amet libero in," \ - fill_in "Notes", with: long_notes + fill_in "Additional notes", with: long_notes click_on "Submit" expect(page).to have_text("Confirm Note Content") @@ -183,7 +183,7 @@ note_content = "

Hello world

" - fill_in "Notes", with: note_content + fill_in "Additional notes", with: note_content click_on "Submit" expect(page).to have_text("Confirm Note Content") @@ -264,7 +264,7 @@ def index_of(text) fill_in "c. Occurred On", with: "04/04/2020" choose "case_contact_want_driving_reimbursement_false" - fill_in "Notes", with: "Hello world" + fill_in "Additional notes", with: "Hello world" expect(page).not_to have_text("error") expect(page).to_not have_text("Empty") @@ -303,7 +303,7 @@ def index_of(text) fill_in "c. Occurred On", with: "2020/4/4" fill_in "a. Miles Driven", with: "30" choose "case_contact_want_driving_reimbursement_false" - fill_in "Notes", with: "Hello world" + fill_in "Additional notes", with: "Hello world" click_on "Submit" expect(page).to have_text("Confirm Note Content") @@ -328,7 +328,7 @@ def index_of(text) expect(page).to have_field("a. Miles Driven", with: "30") expect(page).to have_checked_field("case_contact_want_driving_reimbursement_false") expect(page).not_to have_checked_field("case_contact_want_driving_reimbursement_true") - expect(page).to have_field("Notes", with: "Hello world") + expect(page).to have_field("Additional notes", with: "Hello world") end it "delete local storage notes after successfuly submited", js: true do @@ -350,7 +350,7 @@ def index_of(text) fill_in "case_contact_duration_minutes", with: "45" fill_in "a. Miles Driven", with: "30" choose "case_contact_want_driving_reimbursement_false" - fill_in "Notes", with: "Hello world" + fill_in "Additional notes", with: "Hello world" # Allow 5 seconds for the Notes to be saved in localstorage sleep 5 @@ -361,7 +361,7 @@ def index_of(text) visit new_case_contact_path - expect(page).to_not have_field("Notes", with: "Hello world") + expect(page).to_not have_field("Additional notes", with: "Hello world") end it "submits the form when no note was added", js: true do @@ -385,7 +385,7 @@ def index_of(text) fill_in "c. Occurred On", with: "04/04/2020" fill_in "a. Miles Driven", with: "30" choose "case_contact_want_driving_reimbursement_false" - fill_in "Notes", with: "" + fill_in "Additional notes", with: "" expect(page).not_to have_text("error") expect { @@ -416,7 +416,7 @@ def index_of(text) fill_in "c. Occurred On", with: "04/04/2020" fill_in "a. Miles Driven", with: "30" choose "case_contact_want_driving_reimbursement_false" - fill_in "Notes", with: "This is the note" + fill_in "Additional notes", with: "This is the note" expect(page).not_to have_text("error") click_on "Submit" @@ -449,7 +449,7 @@ def index_of(text) fill_in "c. Occurred On", with: "04/04/2020" fill_in "a. Miles Driven", with: "30" choose "case_contact_want_driving_reimbursement_false" - fill_in "Notes", with: "This is the note" + fill_in "Additional notes", with: "This is the note" expect(page).not_to have_text("error") click_on "Submit" @@ -532,7 +532,7 @@ def index_of(text) fill_in "a. Miles Driven", with: "0" choose "case_contact_want_driving_reimbursement_true" fill_in "case_contact_casa_case_attributes_volunteers_attributes_0_address_attributes_content", with: "123 str" - fill_in "Notes", with: "Hello world" + fill_in "Additional notes", with: "Hello world" click_on "Submit" expect(page).to have_text("Confirm Note Content") @@ -553,7 +553,7 @@ def index_of(text) expect(page).to have_field("a. Miles Driven", with: "0") expect(page).to have_checked_field("case_contact_want_driving_reimbursement_true") expect(page).not_to have_checked_field("case_contact_want_driving_reimbursement_false") - expect(page).to have_field("Notes", with: "Hello world") + expect(page).to have_field("Additional notes", with: "Hello world") end end From 6d4f92e0d917571fac89c0c25b70507b10fff37d Mon Sep 17 00:00:00 2001 From: Sam Williams Date: Sat, 23 Dec 2023 10:46:06 -0500 Subject: [PATCH 48/75] Small fixes // more reusable, and number on form --- app/javascript/controllers/icon_toggle_controller.js | 8 ++++++-- app/views/case_contacts/_form.html.erb | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/javascript/controllers/icon_toggle_controller.js b/app/javascript/controllers/icon_toggle_controller.js index acfc392997..1cb57a0d28 100644 --- a/app/javascript/controllers/icon_toggle_controller.js +++ b/app/javascript/controllers/icon_toggle_controller.js @@ -2,9 +2,13 @@ import { Controller } from '@hotwired/stimulus' export default class extends Controller { static targets = ['icon'] + static values = { + icons: Array + } toggle () { - this.iconTarget.classList.toggle('lni-chevron-up') - this.iconTarget.classList.toggle('lni-chevron-down') + this.iconsValue.forEach((icon) => { + this.iconTarget.classList.toggle(icon) + }) } } diff --git a/app/views/case_contacts/_form.html.erb b/app/views/case_contacts/_form.html.erb index fc8fcf796a..d41e157215 100644 --- a/app/views/case_contacts/_form.html.erb +++ b/app/views/case_contacts/_form.html.erb @@ -215,8 +215,8 @@ readonly: true %>
-
-

<%= form.label :notes, "7. Additional notes (optional)" %>

+
+

<%= form.label :notes, "5. Additional notes (optional)" %>