Skip to content

openimis/openimis-fe-product_js

Repository files navigation

openIMIS Frontend Product reference module

This repository holds the files of the openIMIS Frontend Product reference module. It is dedicated to be deployed as a module of openimis-fe_js.

License: AGPL v3 Total alerts

Menu Contributions

  • /admin/products: List of all products
  • /admin/products/new: Form to create a new product
  • /admin/products/:product_id: Display the product in details

Other Contributions

None (Administration module providing menu entries to proxied pages for products)

Available Contribution Points

  • product.hooks.useProductsQuery.productFragment: Change the fields fetched by the useProductsQuery hook
  • product.hooks.useProductQuery.productFragment: Change the fields fetched by the useProductQuery hook

Published Components

  • product.ProductPicker: Picker that returns products matching the string entered by the user.
  • product.hooks.useProductsQuery: Hook to get a filtered connection on products
  • product.hooks.useProductQuery: Hook to get a product with all its fields