Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom units docs #5082

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Custom units docs #5082

wants to merge 7 commits into from

Conversation

awwaiid
Copy link
Collaborator

@awwaiid awwaiid commented Mar 8, 2025

Needs some editing feedback!

@awwaiid awwaiid requested a review from cielf March 8, 2025 23:09
@awwaiid
Copy link
Collaborator Author

awwaiid commented Mar 8, 2025

@@ -19,7 +19,7 @@
<td class="p-4 d-flex flex-wrap">
<% partner_request.item_requests.map do |item| %>
<span class="p-1 mr-1 mb-2 lg:mb-0 border border-dark rounded-1">
<%= item.quantity %> <%= item.name %>
<%= item.quantity %> <%= item.name_with_unit %>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug fix 1 - the partner request view didn't include the units

@@ -22,7 +22,7 @@
<td><%= line_item.name %></td>
<td><%= line_item.quantity %></td>
<% if Flipper.enabled?(:enable_packs) && @partner_request.item_requests.any?( &:request_unit ) %>
<td><%= line_item.request_unit %></td>
<td><%= line_item.request_unit&.capitalize&.pluralize(line_item.quantity.to_i) %></td>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug fix 2 - the partner request review pop-up didn't pluralize units

@awwaiid
Copy link
Collaborator Author

awwaiid commented Mar 9, 2025

@cielf I added in the preamble you suggsted on slack into a new section at the top. Here is the evergreen branch preview link -- https://github.com/rubyforgood/human-essentials/blob/custom-units-docs/docs/user_guide/bank/special_custom_units.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant