Skip to content

Commit ff06650

Browse files
committed
Fix typos using typos source code spell checker
1 parent 456588a commit ff06650

File tree

50 files changed

+59
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+59
-59
lines changed

app/controllers/partners_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Provides full CRUD for Partners. These are minimal representations of corresponding Partner records in PartnerBase.
2-
# Though the functionality of Partners is actually fleshed out in PartnerBase, in HumanEssentails, we maintain a collection
2+
# Though the functionality of Partners is actually fleshed out in PartnerBase, in HumanEssentials, we maintain a collection
33
# of which Partners are associated with which Diaperbanks.
44
class PartnersController < ApplicationController
55
include Importable

app/controllers/transfers_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def destroy
4949
results = transfer_destroy_service.call
5050

5151
if results.success?
52-
flash[:notice] = "Succesfully deleted Transfer ##{params[:id]}!"
52+
flash[:notice] = "Successfully deleted Transfer ##{params[:id]}!"
5353
else
5454
flash[:error] = results.error.message
5555
end

app/javascript/controllers/checkbox_with_nested_element_controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export default class extends Controller {
88
static targets = [ "nestedElement", "checkbox" ]
99

1010
connect() {
11-
this.toggleNestedElementVisiblity()
11+
this.toggleNestedElementVisibility()
1212
}
1313

1414
/**
1515
* Toggles the visibility of the nested element depending
1616
* on wither the checkbox is checked or not.
1717
*/
18-
toggleNestedElementVisiblity() {
18+
toggleNestedElementVisibility() {
1919
this.nestedElementTarget.classList.toggle("d-none", !this.checkboxTarget.checked)
2020
}
2121

app/models/item.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Item < ApplicationRecord
7474
# 4/ Period supplies. All things with 'menstrual in the category'
7575
# 5/ Other -- Miscellaneous, and wipes
7676
# Known holes and ambiguities as of 20240527. Working on these with the business
77-
# 1/ Liners. We are adding a new item for AI liners, and renaming the current liners to be specficially for periods,
77+
# 1/ Liners. We are adding a new item for AI liners, and renaming the current liners to be specifically for periods,
7878
# having confirmed with the business that the majority of liners are for menstrual use.
7979
# However, there is a product which can be used for either, so we are still sussing out what to do about that.
8080

app/models/partners/child.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class Child < Base
3333
scope :from_family, ->(family_id) {
3434
where(family_id: family_id)
3535
}
36-
scope :from_children, ->(chidren_id) {
37-
where(id: chidren_id)
36+
scope :from_children, ->(children_id) {
37+
where(id: children_id)
3838
}
3939
scope :active, -> { where(active: true) }
4040

app/services/distribution_totals_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def calculate_quantities(distributions)
4545
.to_h
4646
end
4747

48-
# Returns hash of total value of items per distribution WIHOUT item id/category filter
48+
# Returns hash of total value of items per distribution WITHOUT item id/category filter
4949
# Value of entire distribution (not reduced by filtered items)
5050
#
5151
# @return [Hash<Integer, Integer>]

app/services/exports/export_request_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def compute_item_headers
8585
end
8686

8787
# Adding this to handle cases in which a requested item
88-
# has been deleted. Normally this wouldn't be neccessary,
88+
# has been deleted. Normally this wouldn't be necessary,
8989
# but previous versions of the application would cause
9090
# this orphaned data
9191
item_names.sort.uniq << DELETED_ITEMS_COLUMN_HEADER

app/services/service_object_errors_mixin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module ServiceObjectErrorsMixin
22
#
33
# This module is can be included into service object like
4-
# classes so that they get the similiar interface commonly used
4+
# classes so that they get the similar interface commonly used
55
# by active records. Here is an example of a how you could interact
66
# with a service object with this included.
77
#

app/views/admin/organizations/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<div class="col-3">
3737
<%= render_filterrific_spinner %>
3838
</div>
39-
<div clas="col-9">
39+
<div class="col-12">
4040
<div class="float-right">
4141
<%= new_button_to new_admin_organization_path, { text: "Add New Organization" } %>
4242
</div>

app/views/distributions/show.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<%= print_button_to print_distribution_path(@distribution, format: :pdf), {size: "md"} %>
9393
</div>
9494
<% if @distribution.has_inactive_item? %>
95-
<div class="low_prioirty_warning">
95+
<div class="low_priority_warning">
9696
You can only correct distributions where all the items are active.
9797
If you need to make a correction, please make the following items active: <%= @distribution.inactive_items.map(&:name).join(", ") %>
9898
</div>

app/views/kits/allocations.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163

164164
let baseQuantity = rowElement.attr('data-base-quantity');
165165
// Utilize the -1 to properly make the base kit item
166-
// go negative when the content goes postive
166+
// go negative when the content goes positive
167167
let newText = -1 * changeBy * baseQuantity
168168
rowElement.text(newText);
169169

app/views/layouts/application_old.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<a href="<%= root_path %>" class="logo">
2828
<% end %>
2929
<!-- mini logo for sidebar mini 50x50 pixels -->
30-
<span class="logo-mini"><img src="/img/diaper-base-logo-icon.svg" alt="Essentails Logo (icon)" title="Human Essentials">
30+
<span class="logo-mini"><img src="/img/diaper-base-logo-icon.svg" alt="Essentials Logo (icon)" title="Human Essentials">
3131
</span>
3232
<!-- logo for regular state and mobile devices -->
3333
<span class="logo-lg"><%= image_tag "/img/essentials.svg", alt: "Human Essentials Logo", id: "logo" %></span>

app/views/partner_groups/_form.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<div class='mt-3' data-controller='checkbox-with-nested-element'>
2424
<h2 class='text-bold text-lg'>Do you want to send deadline reminders to them every month?</h2>
25-
<%= f.input :send_reminders, as: :boolean, label: "Yes", input_html: { data: { action: 'click->checkbox-with-nested-element#toggleNestedElementVisiblity', 'checkbox-with-nested-element-target': 'checkbox' } } %>
25+
<%= f.input :send_reminders, as: :boolean, label: "Yes", input_html: { data: { action: 'click->checkbox-with-nested-element#toggleNestedElementVisibility', 'checkbox-with-nested-element-target': 'checkbox' } } %>
2626

2727
<div class='pl-5 d-none' data-checkbox-with-nested-element-target='nestedElement'>
2828
<div class="callout callout-info">

app/views/partners/_form.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<div data-controller='checkbox-with-nested-element'>
3333
<%= f.input :send_reminders, label: "Do you want this partner to receive emails for distributions and reminders from the system?", wrapper: :input_group do %>
34-
<%= f.check_box :send_reminders, { class: "input-group-text", id: "send_reminders", data: { action: 'click->checkbox-with-nested-element#toggleNestedElementVisiblity', 'checkbox-with-nested-element-target': 'checkbox' } }, "true", "false" %>
34+
<%= f.check_box :send_reminders, { class: "input-group-text", id: "send_reminders", data: { action: 'click->checkbox-with-nested-element#toggleNestedElementVisibility', 'checkbox-with-nested-element-target': 'checkbox' } }, "true", "false" %>
3535
<% end %>
3636
<div class="callout callout-info d-none" data-checkbox-with-nested-element-target='nestedElement'>
3737
<h5 class='text-uppercase font-weight-bold'>Reminder</h5>

app/views/partners/families/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<i class="fa fa-dashboard"></i> Home
1616
<% end %>
1717
</li>
18-
<li class="breadcrumb-item"><a href="#">Familes</a></li>
18+
<li class="breadcrumb-item"><a href="#">Families</a></li>
1919
</ol>
2020
</div>
2121
</div>

app/views/profiles/_show.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</p>
1313
<p>Proof of Agency Status
1414
<% if partner_profile.proof_of_partner_status.attached? %>
15-
<!-- NOTE: The actual download link may not work in local storage mode due to file locations being seperate locally. -->
15+
<!-- NOTE: The actual download link may not work in local storage mode due to file locations being separate locally. -->
1616
(Link): <%= link_to partner_profile.proof_of_partner_status.filename, rails_blob_path(partner_profile.proof_of_partner_status, disposition: 'inline') %>
1717
<% end %>
1818
</p>
@@ -49,7 +49,7 @@
4949
<p>Form 990: <%= humanize_boolean(partner_profile.proof_of_form_990.attached?) %></p>
5050
<p>Form 990
5151
<% if partner_profile.proof_of_form_990.attached? %>
52-
<!-- NOTE: The actual download link may not work in local storage mode due to file locations being seperate locally. -->
52+
<!-- NOTE: The actual download link may not work in local storage mode due to file locations being separate locally. -->
5353
(Link): <%= link_to partner_profile.proof_of_form_990.filename, rails_blob_path(partner_profile.proof_of_form_990, disposition: 'attachment') %>
5454
<% end %>
5555
</p>

config/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Application < Rails::Application
2929

3030
# Set the async mailer jobs to go through the default queue
3131
# that sidekiq comes with. This way `.deliver_later` will
32-
# generate a job that will be processed by the exisiting
32+
# generate a job that will be processed by the existing
3333
# sidekiq worker that is only taking work from the `default`
3434
# queue.
3535
config.action_mailer.deliver_later_queue_name = 'default'

config/initializers/simple_form.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
# You can define the class to use on all labels. Default is nil.
107107
# config.label_class = nil
108108

109-
# You can define the default class to be used on forms. Can be overriden
109+
# You can define the default class to be used on forms. Can be overridden
110110
# with `html: { :class }`. Defaulting to none.
111111
# config.default_form_class = nil
112112

db/seeds.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def seed_random_item_with_name(organization, name)
527527
end
528528
Organization.all.find_each { |org| SnapshotEvent.publish(org) }
529529

530-
# Set minimum and recomended inventory levels for the complete organizations
530+
# Set minimum and recommended inventory levels for the complete organizations
531531
# Only set inventory levels for the half of each org's items with the lowest stock
532532
complete_orgs.each do |org|
533533
half_items_count = (org.items.count / 2).to_i
@@ -540,16 +540,16 @@ def seed_random_item_with_name(organization, name)
540540
min_qty = low_items.first.total_quantity
541541
max_qty = low_items.last.total_quantity
542542

543-
# Ensure at least one of the items unqiue to the Second City Bank has minimum
543+
# Ensure at least one of the items unique to the Second City Bank has minimum
544544
# and recommended quantities set
545545
if (org == sc_org) && !(low_items & sc_org_unique_items).any?
546546
low_items << sc_org_unique_items.last
547547
end
548548

549549
low_items.each do |item|
550550
min_value = rand((min_qty / 10).floor..(max_qty / 10).ceil) * 10
551-
recomended_value = rand((min_value / 10).ceil..1000) * 10
552-
item.update(on_hand_minimum_quantity: min_value, on_hand_recommended_quantity: recomended_value)
551+
recommended_value = rand((min_value / 10).ceil..1000) * 10
552+
item.update(on_hand_minimum_quantity: min_value, on_hand_recommended_quantity: recommended_value)
553553
end
554554
end
555555

docs/architecture/decisions/0005-extract-all-partner-operations-into-a-separate-application-intended-for-partners.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Accepted
88

99
## Context
1010

11-
Partner organizations work directly with the families in need. Sometimes they will need to collect PII such as address, names and ages of family members, and other contact information. This data is not necessary for Diaperbase to operate, and there are security concerns about that PII being disclosed should there be a breach. There is also a separation of concerns between the two applications; Diaperbase is inventory management and Partnerbase is effectively a CRM. At this time, we belive that they are different enough in their purposes that they should be separate.
11+
Partner organizations work directly with the families in need. Sometimes they will need to collect PII such as address, names and ages of family members, and other contact information. This data is not necessary for Diaperbase to operate, and there are security concerns about that PII being disclosed should there be a breach. There is also a separation of concerns between the two applications; Diaperbase is inventory management and Partnerbase is effectively a CRM. At this time, we believe that they are different enough in their purposes that they should be separate.
1212

1313
## Decision
1414

docs/user_guide/bank/getting_started_customization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ You can also specify a different default Storage Location on any Partner, which
105105
If you specify a default Storage Location, it will be pre-populated as the Storage Location when you are adding new Distributions.
106106

107107
#### Custom Partner Invitation Message
108-
[!NOTE] The Custom Partner Invitation Message is currenty not working as advertised (as of November 13, 2024.). The current behavior is as if you did not enter anything here. We have fixing it on our "to do" list.
108+
[!NOTE] The Custom Partner Invitation Message is currently not working as advertised (as of November 13, 2024.). The current behavior is as if you did not enter anything here. We have fixing it on our "to do" list.
109109

110110
When you invite a Partner, they get an email. This field lets you specify the message you are sending to them. Just text -- we don't have any personalization capability for this email at this time.
111111

docs/user_guide/bank/intro_ii.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ We publish the zoom, and (when we remember) in the Announcements in Human Essent
2424

2525

2626
### Keeping up-to-date with changes
27-
We release changes to the system most weeks on Sundays between 10am and noon Eastern time (the system will be down for a short period when we do). When we do, we put up an announcment in the system, which you will see on your [dashboard](essentials_dashboard.md). We also record them in a newsletter at: https://ruby-for-good.gitbook.io/human-essentials-news
27+
We release changes to the system most weeks on Sundays between 10am and noon Eastern time (the system will be down for a short period when we do). When we do, we put up an announcement in the system, which you will see on your [dashboard](essentials_dashboard.md). We also record them in a newsletter at: https://ruby-for-good.gitbook.io/human-essentials-news
2828

2929

3030

docs/user_guide/bank/inventory_transfers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Specify where the Items being moved are coming from, in "From Storage Location,"
1919

2020
The Comment field is a good place to note the reason for the Transfer, but you can leave it blank.
2121

22-
Then select the Item and quantity for each Item that is being Transferred. If you have [barcodes](inventory_barcodes.md) set up, you can use your barcode reader to "boop" in the materials being Transfered.
22+
Then select the Item and quantity for each Item that is being Transferred. If you have [barcodes](inventory_barcodes.md) set up, you can use your barcode reader to "boop" in the materials being Transferred.
2323

2424
When you are done, click "Save". The system will check that you have enough inventory in "From" to cover the Transfer. If so, the inventory changes will take place immediately.
2525

docs/user_guide/bank/pm_announcements.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can add multiple Announcements, with links to additional information, and ei
1010

1111
Click on "Partner Agencies" in the left hand menu, then "Partner Announcement". This will bring up a list of all your partner Announcements.
1212

13-
![all announcments screen](images/partners/partners_announcements_1.png)
13+
![all announcements screen](images/partners/partners_announcements_1.png)
1414

1515
Click the "New Announcements" button to bring up a form for a new Announcement
1616

docs/user_guide/bank/pm_partner_profiles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ How does the agency get its funding?
9898
### Area Served (County/Client Share %)
9999
This asks what county/county equivalents the agency serves and what proportion of their client share is in which area.
100100

101-
At this time, this only covers U.S. counties and equivalents. We believe the list covers *all* of the U.S, including some areas that are not tecnically counties.
101+
At this time, this only covers U.S. counties and equivalents. We believe the list covers *all* of the U.S, including some areas that are not technically counties.
102102
Let us know if you need more!
103103

104104
The sum of the client share has to be either 0 or 100, and the numbers have to be positive whole numbers.

docs/user_guide/documentation_style_guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Style Guide
22
This style guide is for the Human Essentials Bank user guide.
33

4-
Its purpose is to set the standard ways of dealing with matters of style, such as hypenation, capitalization, and the like.
4+
Its purpose is to set the standard ways of dealing with matters of style, such as hyphenation, capitalization, and the like.
55

66
We want to do a final pass to make everything consistent with the style guide before officially launching the guide.
77

88

99
## Capitalization
1010
### Headings
11-
In documentaion, use title case for the main header for each page, then use sentence case (see this page as an example).
11+
In documentation, use title case for the main header for each page, then use sentence case (see this page as an example).
1212
### When quoting the system
1313
Match the text to what is in the application. For instance, if a button says "Manage Product drives". That being said, if there is something in the app that is inconsistent, let's get that fixed.
1414
### Otherwise, always capitalize

puma-dev.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ puma-dev -install
1515

1616
Link the application.
1717
```
18-
puma-dev link -n essentials {essentails_dir}
18+
puma-dev link -n essentials {essentials_dir}
1919
```
2020

2121
For example, if your diaper repo clone is in `~/ruby/human-essentials`. You would run this:

sbv.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We welcome contributions from teams and have had great success facilitating team
1616

1717
This is where we have defined a larger chunk of work that needs to be done, the work is fully understood, it is ready to start immediately, and we just need some people to complete it.
1818

19-
An example of this is the theme upgrade and facelift we have planned for the project. We have created a [massive issue](https://github.com/rubyforgood/human-essentials/issues/2965) that lists all the user facing pages and files (337 of them!) that need to first be evaluated for compatibility with the new theme, and then upgraded once they are evaluted!
19+
An example of this is the theme upgrade and facelift we have planned for the project. We have created a [massive issue](https://github.com/rubyforgood/human-essentials/issues/2965) that lists all the user facing pages and files (337 of them!) that need to first be evaluated for compatibility with the new theme, and then upgraded once they are evaluated!
2020

2121
#### Approach Two - You discover the work and suggest how to accomplish it
2222

spec/controllers/transfers_controller_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
let!(:new_transfer) { create(:transfer, created_at: 1.day.ago) }
2525

2626
context 'when date parameters are supplied' do
27-
it 'only returns the correct obejects' do
27+
it 'only returns the correct objects' do
2828
start_date = 3.days.ago.to_formatted_s(:date_picker)
2929
end_date = Time.zone.today.to_formatted_s(:date_picker)
3030
get :index, params: { filters: { date_range: "#{start_date} - #{end_date}" } }

spec/models/adjustment_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
RSpec.describe Adjustment, type: :model do
1515
it_behaves_like "itemizable"
16-
# This mixes feature specs with model specs... idealy we do not want to do this
16+
# This mixes feature specs with model specs... ideally we do not want to do this
1717
# it_behaves_like "pagination"
1818
#
1919
let(:organization) { create(:organization) }

spec/models/distribution_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
end
292292

293293
describe "#copy_from_request" do
294-
it "copy over relevant request information into the distrubution" do
294+
it "copy over relevant request information into the distribution" do
295295
item1 = create(:item, name: "Item1", organization: organization)
296296
item2 = create(:item, name: "Item2", organization: organization)
297297
request = create(:request,

spec/models/donation_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
RSpec.describe Donation, type: :model do
2121
it_behaves_like "itemizable"
22-
# This mixes feature specs with model specs... idealy we do not want to do this
22+
# This mixes feature specs with model specs... ideally we do not want to do this
2323
# it_behaves_like "pagination"
2424

2525
context "Validations >" do

spec/models/item_category_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
it { should validate_length_of(:description).is_at_most(250) }
2121
end
2222

23-
describe 'assocations' do
23+
describe 'associations' do
2424
it { should belong_to(:organization) }
2525
it { should have_many(:items) }
2626
it { should have_and_belong_to_many(:partner_groups) }

spec/models/item_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
RSpec.describe Item, type: :model do
2525
let(:organization) { create(:organization) }
2626

27-
describe 'Assocations >' do
27+
describe 'Associations >' do
2828
it { should belong_to(:item_category).optional }
2929
end
3030
context "Validations >" do

0 commit comments

Comments
 (0)