diff --git a/app/components/goals/avatar_component.rb b/app/components/goals/avatar_component.rb index 572a26909..dcfaf7159 100644 --- a/app/components/goals/avatar_component.rb +++ b/app/components/goals/avatar_component.rb @@ -10,7 +10,7 @@ class Goals::AvatarComponent < ApplicationComponent # Deterministic color pick from the palette so the same string maps to # the same color across processes (Ruby's String#hash is randomized per - # boot for DoS protection — not stable enough for visual identity). + # boot for DoS protection. not stable enough for visual identity). def self.color_for(name) return PALETTE.first if name.blank? PALETTE[Digest::MD5.hexdigest(name).to_i(16) % PALETTE.size] @@ -26,7 +26,7 @@ class Goals::AvatarComponent < ApplicationComponent attr_reader :color - # Don't expose @icon via attr_reader — `icon` collides with the global + # Don't expose @icon via attr_reader. `icon` collides with the global # icon helper used inside the template. def icon_name @icon diff --git a/app/components/goals/funding_accounts_breakdown_component.html.erb b/app/components/goals/funding_accounts_breakdown_component.html.erb index fcf167018..24ef45fd5 100644 --- a/app/components/goals/funding_accounts_breakdown_component.html.erb +++ b/app/components/goals/funding_accounts_breakdown_component.html.erb @@ -7,7 +7,7 @@
<%= t(".kpi.contributed_label") %>
diff --git a/app/views/goals/show.html.erb b/app/views/goals/show.html.erb index 4dd758b1c..be63409e6 100644 --- a/app/views/goals/show.html.erb +++ b/app/views/goals/show.html.erb @@ -148,10 +148,10 @@ <% end %> <% end %> <% elsif @goal.status == :behind && @goal.monthly_target_amount && @goal.catch_up_delta_money.amount.positive? %> - <%# Title uses the *delta* — the amount the user must add to current pace + <%# Title uses the *delta*. the amount the user must add to current pace to make the date, *after* subtracting open pledges. When pending pledges already cover the gap, `catch_up_delta_money` returns zero - and this branch suppresses — no "Save $0/mo" demand. Pre-fill the + and this branch suppresses. no "Save $0/mo" demand. Pre-fill the pledge CTA with the delta too, so submitting once funds the gap instead of double-counting on top of pace and pending. %> <%= render DS::Alert.new(variant: "warning", title: t("goals.show.catch_up.title", amount: @goal.catch_up_delta_money.format(precision: 0))) do %> diff --git a/config/locales/views/goal_pledges/en.yml b/config/locales/views/goal_pledges/en.yml index 3124561e1..fd69a9672 100644 --- a/config/locales/views/goal_pledges/en.yml +++ b/config/locales/views/goal_pledges/en.yml @@ -8,8 +8,8 @@ en: account_label: Into account submit: Record pledge preview_zero: "Currently {current} of {target} saved." - preview_nonzero: "Reaches {percent}% — {newTotal} of {target}." - preview_reached: "Hits your {target} target — goal reached." + preview_nonzero: "Reaches {percent}%, {newTotal} of {target}." + preview_reached: "Hits your {target} target. Goal reached." create: success: Pledge recorded. Sure will confirm it on the next sync. renew: diff --git a/config/locales/views/goals/en.yml b/config/locales/views/goals/en.yml index 345a5efd1..a54db7143 100644 --- a/config/locales/views/goals/en.yml +++ b/config/locales/views/goals/en.yml @@ -146,7 +146,7 @@ en: adjust_target_cta: Adjust target instead confirm_complete_title: Mark this goal complete? confirm_complete_body: It leaves the Ongoing list. You can still archive or restore it later. - confirm_complete_body_short: "You're at %{progress}% — %{saved} of %{target}. Marking complete records this as your achievement instead of the original target. Continue, or close this and adjust the target instead?" + confirm_complete_body_short: "You're at %{progress}%, %{saved} of %{target}. Marking complete records this as your achievement instead of the original target. Continue, or close this and adjust the target instead?" confirm_complete_cta: Mark complete confirm_archive_title: Archive this goal? confirm_archive_body: Archived goals disappear from the main list. You can restore them later. @@ -173,7 +173,7 @@ en: cta: Set target date empty: heading: No deposits yet - body: Make a transfer into your linked account — Sure will catch it on the next sync. Or update your manual account balance. + body: Make a transfer into your linked account. Sure will catch it on the next sync. Or update your manual account balance. errors: not_found: This goal couldn't be found. It may have been deleted. states: