rubyforgood / human-essentials

Human Essentials is an inventory management system for diaper, incontinence, and period-supply banks. It supports them in distributing to partners, tracking inventory, and reporting stats and analytics.
https://humanessentials.app
MIT License
464 stars 493 forks source link

Add a flag that is the type of request. #4175

Open cielf opened 8 months ago

cielf commented 8 months ago

Summary

Add a request type flag that will be visible to the banks

Why

The banks don't know which request types their partners are using. Knowing will help them supporting their partners

Details

Add a flag to request that will be set according to whether the request is a quantity request, a by-individuals request or a child-based request. Show this to the bank on their request view, and in the request export.

This would enable the banks to see, after a couple of cycles, whether any of their partners are using each request type, and be able to simplify the options available to their partners based on that information.

Criteria for completion

nathangthomas commented 8 months ago

@cielf I can take this ticket.

cielf commented 8 months ago

Go for it!

nathangthomas commented 8 months ago

Would it be beneficial for there to be a default request type? If so which one?

  1. quantity
  2. by-individuals
  3. child-based

EDIT Actually... After digging into this a bit more it doesn't seem like there will be a need for a default request as type will be automatically set each time a new request is made.

cielf commented 8 months ago

That's right -- the type will be known before the request is created.

nathangthomas commented 8 months ago

@cielf are there any specific colors you would like each flag to be? I have included some screenshots of the request index and show pages as well as the export.

nathangthomas commented 8 months ago
Screenshot 2024-03-19 at 11 45 29 AM
nathangthomas commented 8 months ago
Screenshot 2024-03-19 at 11 51 34 AM
nathangthomas commented 8 months ago
Screenshot 2024-03-19 at 12 34 22 PM
cielf commented 8 months ago

Lets just have them all be normal text. They are just informational, and otherwise the users might think they are buttons.

I would actually just call them quantity, individual and child as well (should have noticed that earlier).

github-actions[bot] commented 6 months ago

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] commented 6 months ago

Automatically unassigned after 7 days of inactivity.

github-actions[bot] commented 6 months ago

Automatically unassigned after 7 days of inactivity.

cielf commented 6 months ago

This is in the final throes of review.

github-actions[bot] commented 5 months ago

Automatically unassigned after 7 days of inactivity.