human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

[PACKS] #3 Allowing the selection of custom request units in partner request

Open cielf opened this issue 1 year ago • 1 comments

Summary

Allow the selection of custom request units in partner request

Why

This is step #3 of adding the ability to specify "packs" versus "individual" for requests

Details

When an item is selected that has request choice units, the units drop down will appear. It will contain the reporting unit and the additional units selected. The units will be pluralized.

If the item selected has no request choice units, the units drop down will not appear.

If the item selected has custom units, the units must be selected.

Image

Disallow selecting multiple different unit selections on the same item within the same request. (Example -- we would disallow requesting 15 Adult Briefs (Large XL) units and 3 Adult Briefs (Large XL) packs within the same request. The error message in this case should be "You may only request one unit level per item -- please consolidate: Adult Briefs (Large XL)")

Please note that the seed has data in it that does not pass the above condition -- we'll need to address that too!

N.B.

All of the changes for PACKS must be implemented behind a flipper flag "enable_packs"

Criteria for completion

  • [ ] functionality as described above
  • [ ] tests that support the functionality as described above

Background

The following sections have been identified as required for the PACKS implementation. These should be implemented in numerical order.

Image

cielf avatar May 30 '24 18:05 cielf

I will claim this.

patelkrunal31 avatar Jun 01 '24 16:06 patelkrunal31

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] avatar Jul 02 '24 00:07 github-actions[bot]

This issue is available for contribution. There is a draft-PR (thank you @patelkrunal31) at https://github.com/rubyforgood/human-essentials/pull/4420 with an experiment toward a dependent-dropdown; you may build on top of that or be inspired by it as you like!

awwaiid avatar Jul 07 '24 15:07 awwaiid

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] avatar Aug 14 '24 00:08 github-actions[bot]