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

Organizers can create new mission and specify mission details (how many of which food box) and then be taken to mission edit view #565

Open
utunga opened this issue May 18, 2020 · 0 comments
Labels
organizer Belongs to the organizer view

Comments

@utunga
Copy link
Contributor

utunga commented May 18, 2020

Part of the mission edit user story - #431

Relates to or may be a duplicate of #549

Organizers may also need to create entirely new food box missions as part of MVP0. To do this they need to be able to specify which foodboxes are in the mission and how many.

That means bringing this type of editing into the 'create mission' for organizers.

image.png

Hopefully, some code can be re-used or copy and pasted from request/foodbox/FoodBoxStep.jsx

I don't want to do premature design but I would imagine this will be easier as a step before diving into the mission edit view that an organizer sees when they click 'edit' on an existing mission.

Again apologies for what may be premature design but I imagine that this step creates a 'blank' mission that you can click through to the real mission. However there may be other better options for that, so this is just a strawman idea.

The data we're editing here is "mission details" specifically fields that look like this on a mission.

"type": "resource",
"details": [
  {
    "resourceUid": "1",
    "displayName": "Produce Box #1",
    "quantity": 3,
    "type": "foodbox",
    "cost": "25",
    "description": "Frisee and Head Lettuce box - one of every head of lettuce, 1/2 lb bag baby spinach, 1/4lb Italian parsley, 1/4lb cilantro"
  },
  {
    "resourceUid": "1",
    "displayName": "Produce Box #1",
    "quantity": 3,
    "type": "foodbox",
    "cost": "25",
    "description": "Frisee and Head Lettuce box - one of every head of lettuce, 1/2 lb bag baby spinach, 1/4lb Italian parsley, 1/4lb cilantro"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
organizer Belongs to the organizer view
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant