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

Merged
merged 10 commits into from
Mar 17, 2025
Merged

Custom units docs #5082

merged 10 commits into from
Mar 17, 2025

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

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

@awwaiid I've made some proofing/rewording changes -- a little bit of making the things capitalized that should be, a little providing variety in words, a little this that and the other thing.
I think we might want to expand on the last line -- we don't need to show the whole thing, but maybe something like 'e.g., If you allow the unit 'boxes' on Pads, you will see a column for "Pads" and one for "Pads - boxes."

Read it over and see if I've introduced any new errors, but otherwise, I think we let Myranda tell us if it's confusing?

@awwaiid
Copy link
Collaborator Author

awwaiid commented Mar 16, 2025

Thanks @cielf! I looked through all of the changes you made and they are 👍

@awwaiid awwaiid requested a review from cielf March 16, 2025 14:38
@cielf
Copy link
Collaborator

cielf commented Mar 17, 2025

I think it's good enough to have the next step in it's refinement be beta testing with our designated user.

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

In other words, LGTM.

Just added "in beta testing" so that people don't see this and become confused that they can't have it yet.
@cielf cielf merged commit ac43842 into main Mar 17, 2025
23 checks passed
@cielf cielf deleted the custom-units-docs branch March 17, 2025 16:43
Copy link
Contributor

@awwaiid: Your PR Custom units docs is part of today's Human Essentials production release: 2025.03.23.
Thank you very much for your contribution!

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.

2 participants