Uber-coffee / Front-end

0 stars 1 forks source link

Components page Story #73

Closed NikitaPetaichuk closed 4 years ago

NikitaPetaichuk commented 4 years ago

AS A admin I WANT TO see and manage a list of components SO THAT I can quickly find the right components, view all available components and add a new one.

AC:

  1. Admin can find "Components" section in the sidebar
  2. "Components" section should contain a list with all components what can be used in recipes. It should provide information for every component about its name, units and class name
  3. "Components" section should also contain a button which should open a modal window, where you can see the list with all possible categories of components, for example cup, coffee, milk and etc. For every category, there are next fileds: name, is it always requierd for the recipe ("Is Required"), is it not more than 1 ("Is Single")
  4. There should be one search panel for components table on the page and one search panel for category table on the modal window
  5. The table with components should be able to search by fields: name, class name
  6. The table with categories should be able to search by name field
  7. The following information about the new component is requested in the form: name, measure, class name (drop-down list). Form which is responsible for adding new category should ask name, is it required (check-box) and is it single (check-box)
  8. After clicking on ‘ADD’ button an addition confirmation will be asked. If this confirmation window will be closed component/category won't be added to the app
  9. After confirming the addition, the information about the new component/category is sent to the database and the components/component classes table is updated
  10. If confirmation was not received, we return to the "Components" page (if we tried to add new component) or to the modal window with caterogies (if we tried to add new category) without adding a new component/category to the database

UX: ComponentsPage ComponentsAddModal ComponentsConfirmAddModal CategoryModal CategoryAddModal CategoryConfirmAddModal

Related Story:

68

TASKS:

Murwar commented 4 years ago

It's a duplicate. You can change this issue (https://github.com/Uber-coffee/Front-end/issues/65) or remove it.