From ccf181bce95e700400eca09ca7bee1f2f122f8a4 Mon Sep 17 00:00:00 2001 From: geographybuff Date: Thu, 8 Oct 2026 03:37:35 +0000 Subject: [PATCH] Fix typos in comments, docs and spec descriptions Spelling-only changes; no identifiers, strings asserted on by specs, locale keys, migrations or vendored files are touched. Co-Authored-By: Claude Opus 5.5 --- Gemfile | 2 +- app/assets/stylesheets/base/_variables.scss | 2 +- app/controllers/distributions_controller.rb | 2 +- .../controllers/checkbox_with_nested_element_controller.js | 2 +- app/javascript/controllers/deadline_day_controller.js | 4 ++-- app/services/distribution_itemized_breakdown_service.rb | 2 +- db/seeds.rb | 2 +- .../decisions/0008-merging-partner-base-and-diaper-base.md | 2 +- .../decisions/0009-stick-with-adminlte-for-app-design.md | 2 +- docs/user_guide/bank/getting_started_partners.md | 2 +- docs/user_guide/bank/inventory_audits.md | 2 +- docs/wiki/application_overview.md | 2 +- spec/models/tag_spec.rb | 2 +- spec/models/tagging_spec.rb | 2 +- spec/services/exports/export_partners_csv_service_spec.rb | 2 +- spec/system/barcode_item_system_spec.rb | 2 +- spec/system/distribution_system_spec.rb | 2 +- spec/system/partner_system_spec.rb | 2 +- spec/system/partners/approval_process_spec.rb | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Gemfile b/Gemfile index 03e5a61142..1e8fe71044 100644 --- a/Gemfile +++ b/Gemfile @@ -38,7 +38,7 @@ gem 'dry-struct' # Use solid_cache as a cache store gem "solid_cache", "~> 1.0" -##### JAVSCRIPT/CSS/ASSETS ####### +##### JAVASCRIPT/CSS/ASSETS ####### # Bootstrap is a library for HTML, CSS and JS. gem 'bootstrap', '~> 5.2' diff --git a/app/assets/stylesheets/base/_variables.scss b/app/assets/stylesheets/base/_variables.scss index fadc0b73b1..edd25b9bcd 100644 --- a/app/assets/stylesheets/base/_variables.scss +++ b/app/assets/stylesheets/base/_variables.scss @@ -131,7 +131,7 @@ $diaper-color-purple-67: #9491c4; $diaper-text-color-interactive-default: $diaper-color-blue-49; $diaper-text-color-interactive-hover: $diaper-color-blue-64; -// notifcations +// notifications $diaper-notifcation-color-error-default: $diaper-color-red-55; $diaper-notifcation-color-warning-default: $diaper-color-orange-51; $diaper-notifcation-color-success-default: $diaper-color-green-33; diff --git a/app/controllers/distributions_controller.rb b/app/controllers/distributions_controller.rb index 1724d80b2f..3a98f6cd1f 100644 --- a/app/controllers/distributions_controller.rb +++ b/app/controllers/distributions_controller.rb @@ -1,7 +1,7 @@ # Provides full CRUD+ for Distributions, which are the primary way for inventory to leave a Diaperbank. Most # Distributions are given out through community partners (either via Partnerbase, or to Partners-on-record). It's # technically possible to also do Direct Services by having a Partner called "Direct Services" and then issuing -# Distributions to them, though it would lack some of the additional featuers and failsafes that a Diaperbank +# Distributions to them, though it would lack some of the additional features and failsafes that a Diaperbank # might want if they were doing direct services. class DistributionsController < ApplicationController include DateRangeHelper diff --git a/app/javascript/controllers/checkbox_with_nested_element_controller.js b/app/javascript/controllers/checkbox_with_nested_element_controller.js index 247a29fe85..01eca4bf78 100644 --- a/app/javascript/controllers/checkbox_with_nested_element_controller.js +++ b/app/javascript/controllers/checkbox_with_nested_element_controller.js @@ -13,7 +13,7 @@ export default class extends Controller { /** * Toggles the visibility of the nested element depending - * on wither the checkbox is checked or not. + * on whether the checkbox is checked or not. */ toggleNestedElementVisibility() { this.nestedElementTarget.classList.toggle("d-none", !this.checkboxTarget.checked) diff --git a/app/javascript/controllers/deadline_day_controller.js b/app/javascript/controllers/deadline_day_controller.js index 30b1041bdb..d2e810beb0 100644 --- a/app/javascript/controllers/deadline_day_controller.js +++ b/app/javascript/controllers/deadline_day_controller.js @@ -51,7 +51,7 @@ export default class extends Controller { freq: RRule.MONTHLY, interval: monthlyInterval, bymonthday: parseInt(this.dayOfMonthTarget.value), - byhour: 11, // Force RRule to calculate an occurrance after today + byhour: 11, // Force RRule to calculate an occurrence after today until: untilDate }) reminder_date = this.getFirstOccurrenceAfterToday( rule.all(), today ) @@ -62,7 +62,7 @@ export default class extends Controller { freq: RRule.MONTHLY, interval: monthlyInterval, byweekday: WEEKDAY_NUM_TO_OBJ[ parseInt(this.dayOfWeekTarget.value) ].nth( parseInt(this.everyNthDayTarget.value) ), - byhour: 11, // Force RRule to calculate an occurrance after today + byhour: 11, // Force RRule to calculate an occurrence after today wkst: RRule.SU, until: untilDate }) diff --git a/app/services/distribution_itemized_breakdown_service.rb b/app/services/distribution_itemized_breakdown_service.rb index 60e813cd53..509d963396 100644 --- a/app/services/distribution_itemized_breakdown_service.rb +++ b/app/services/distribution_itemized_breakdown_service.rb @@ -1,6 +1,6 @@ class DistributionItemizedBreakdownService # - # Initializes the DistributionItemizedBreakdownService whoms + # Initializes the DistributionItemizedBreakdownService whose # purpose to construct a itemized breakdown of items distributed # and what is left on-hand currently (at the time of running) # diff --git a/db/seeds.rb b/db/seeds.rb index 672e80ec77..a9e79777f5 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -303,7 +303,7 @@ # Base profile information all partners should have # Includes fields in the agency_information, contacts, and pick_up_person partial - # The counties and areas served by the partner are handled elsewere + # The counties and areas served by the partner are handled elsewhere profile = Partners::Profile.create!({ essentials_bank_id: p.organization_id, partner_id: p.id, diff --git a/docs/architecture/decisions/0008-merging-partner-base-and-diaper-base.md b/docs/architecture/decisions/0008-merging-partner-base-and-diaper-base.md index 20d7040351..3bb8a4feae 100644 --- a/docs/architecture/decisions/0008-merging-partner-base-and-diaper-base.md +++ b/docs/architecture/decisions/0008-merging-partner-base-and-diaper-base.md @@ -18,6 +18,6 @@ Change came into effective after https://github.com/rubyforgood/human-essentials ## Consequences -Merging the two applications has the benefit of reducing complexity for ease of maintaince. However, a great deal of refactor work is +Merging the two applications has the benefit of reducing complexity for ease of maintenance. However, a great deal of refactor work is needed to remove old concepts that were based on two applications (aka redundant models). In the interim, the data modeling is confusing until we refactor. diff --git a/docs/architecture/decisions/0009-stick-with-adminlte-for-app-design.md b/docs/architecture/decisions/0009-stick-with-adminlte-for-app-design.md index 4d63bbaef6..1453be9292 100644 --- a/docs/architecture/decisions/0009-stick-with-adminlte-for-app-design.md +++ b/docs/architecture/decisions/0009-stick-with-adminlte-for-app-design.md @@ -8,7 +8,7 @@ Accepted ## Context -The application's design is mainly based on [AdminLTE](https://adminlte.io/) which is a open source design library based off of boostrap. In 2022, TailwindCSS +The application's design is mainly based on [AdminLTE](https://adminlte.io/) which is a open source design library based off of bootstrap. In 2022, TailwindCSS was introduced in hopes to make the application easier to maintain. And subsequently, a theme was picked out to replace AdminLTE that is based on TailwindCSS. However, the team decided in a meeting that the benefits that TailwindCSS could offer does not outweigh the efforts to migrating to a new framework. diff --git a/docs/user_guide/bank/getting_started_partners.md b/docs/user_guide/bank/getting_started_partners.md index e9c67e55ca..ccc399e101 100644 --- a/docs/user_guide/bank/getting_started_partners.md +++ b/docs/user_guide/bank/getting_started_partners.md @@ -6,7 +6,7 @@ 2. However, if you're not ready to have your Partners make Requests yet, that's ok -- you can put them in the system without inviting them. You'll still be able to record what you are distributing to them. -3. You can import all your Partners at once. You can only import Partners once, though -- this is a precaution to make sure we don't accidently create duplicates. +3. You can import all your Partners at once. You can only import Partners once, though -- this is a precaution to make sure we don't accidentally create duplicates. 4. The usual way to handle bringing on Partners to be able to make Requests is to invite them, then have them fill in their profile before approving them, so that you get the information from them that your bank needs for grants, etc. However, if that's not how you want to work, it is also possible to invite and approve them in one step. diff --git a/docs/user_guide/bank/inventory_audits.md b/docs/user_guide/bank/inventory_audits.md index 11929b1df2..869611f57d 100644 --- a/docs/user_guide/bank/inventory_audits.md +++ b/docs/user_guide/bank/inventory_audits.md @@ -7,7 +7,7 @@ The big thing you need to remember is that Audits have to be 'finalized' by an o ## Starting an Audit Click on "Inventory", then "Inventory Audit" in the left hand menu, then "+New Audit". -![Navigaton to new Audit](images/inventory/inventory_audits_new_navigation.png) +![Navigation to new Audit](images/inventory/inventory_audits_new_navigation.png) This brings up the new Audit page. diff --git a/docs/wiki/application_overview.md b/docs/wiki/application_overview.md index 4f97cb9ff1..119a441a5a 100644 --- a/docs/wiki/application_overview.md +++ b/docs/wiki/application_overview.md @@ -123,7 +123,7 @@ For the second item, after the `BaseItem` is retrieved, it consults back to the ## Definitions & Terms -(Note - in the following sections, the term "diaper bank" and "organization" are used interchangably. +(Note - in the following sections, the term "diaper bank" and "organization" are used interchangeably. **Adjustment** - When a diaper bank has to make a change to its on-hand inventory totals, it creates an adjustment. A single adjustment can record the change of quantities for multiple different kinds of items. These adjustments create a record internally for transaction and are the only interface for an organization to make direct changes to their inventories. They are internally modeled as `Adjustment`. diff --git a/spec/models/tag_spec.rb b/spec/models/tag_spec.rb index dbb108ba11..6789f17225 100644 --- a/spec/models/tag_spec.rb +++ b/spec/models/tag_spec.rb @@ -19,7 +19,7 @@ it { should validate_length_of(:name).is_at_most(256) } end - describe "assocations" do + describe "associations" do it { should have_many(:taggings) } it { should belong_to(:organization) } end diff --git a/spec/models/tagging_spec.rb b/spec/models/tagging_spec.rb index 869e6a246e..a27c04f271 100644 --- a/spec/models/tagging_spec.rb +++ b/spec/models/tagging_spec.rb @@ -10,7 +10,7 @@ # taggable_id :bigint not null # RSpec.describe Tagging, type: :model do - describe "assocations" do + describe "associations" do it { should belong_to(:tag) } it { should belong_to(:taggable) } end diff --git a/spec/services/exports/export_partners_csv_service_spec.rb b/spec/services/exports/export_partners_csv_service_spec.rb index 0f2b49fbfb..6d9912d7e5 100644 --- a/spec/services/exports/export_partners_csv_service_spec.rb +++ b/spec/services/exports/export_partners_csv_service_spec.rb @@ -76,7 +76,7 @@ enable_quantity_based_requests: true) end - let(:county_1) { create(:county, name: "High County, Maine", region: "Maine") } # Information for the area_served parital + let(:county_1) { create(:county, name: "High County, Maine", region: "Maine") } # Information for the area_served partial let(:county_2) { create(:county, name: "laRue County, Louisiana", region: "Louisiana") } let(:county_3) { create(:county, name: "Ste. Anne County, Louisiana", region: "Louisiana") } let!(:served_area_1) { create(:partners_served_area, partner_profile: profile, county: county_1, client_share: 50) } diff --git a/spec/system/barcode_item_system_spec.rb b/spec/system/barcode_item_system_spec.rb index d7a36fdbcb..0b6218cf32 100644 --- a/spec/system/barcode_item_system_spec.rb +++ b/spec/system/barcode_item_system_spec.rb @@ -81,7 +81,7 @@ expect(page).not_to have_content("barcode_to_delete") end - it "Double clicking the delete button does not result in the barcode attemping to be deleted twice" do + it "Double clicking the delete button does not result in the barcode attempting to be deleted twice" do item = create(:item, name: "Red 1T Diapers", base_item: base_item) b_item = create(:barcode_item, organization: organization, barcodeable: item, value: "barcode_to_delete") diff --git a/spec/system/distribution_system_spec.rb b/spec/system/distribution_system_spec.rb index 2f0e503e60..ffd9a1e3ff 100644 --- a/spec/system/distribution_system_spec.rb +++ b/spec/system/distribution_system_spec.rb @@ -935,7 +935,7 @@ expect(page).to have_content("This distribution has been marked as being completed!") end - it "Double clicking distribution complete does not result in the distribution attemping to be completed twice" do + it "Double clicking distribution complete does not result in the distribution attempting to be completed twice" do visit new_distribution_path item = View::Inventory.new(organization.id).items_for_location(storage_location.id).first.db_item TestInventory.create_inventory(organization, diff --git a/spec/system/partner_system_spec.rb b/spec/system/partner_system_spec.rb index 1f318b4cfc..fb183f84e9 100644 --- a/spec/system/partner_system_spec.rb +++ b/spec/system/partner_system_spec.rb @@ -31,7 +31,7 @@ expect(partner_awaiting_approval.reload.approved?).to eq(true) end - it 'Double clicking approval button does not result in the partner attemping to be approved twice' do + it 'Double clicking approval button does not result in the partner attempting to be approved twice' do visit partners_path assert page.has_content? partner_awaiting_approval.name diff --git a/spec/system/partners/approval_process_spec.rb b/spec/system/partners/approval_process_spec.rb index 4b4f6305e7..e85bd2ecf2 100644 --- a/spec/system/partners/approval_process_spec.rb +++ b/spec/system/partners/approval_process_spec.rb @@ -24,7 +24,7 @@ refute page.has_content? '# of Individuals' end - it "Double clicking submit for approval button does not result in the partner attemping to be approved twice" do + it "Double clicking submit for approval button does not result in the partner attempting to be approved twice" do click_on 'My Profile' assert page.has_content? 'Uninvited' all('a', text: 'Update Information').last.click