Skip to content

Add and display addresses

Loic Huder requested to merge 255-shipping-address-management into SampleTracking
  • Adds a tab "Manage Adresses" that displays all addresses of a user image
  • Adds a form to add a new address to a proposal. The form is validated using react-hook-form capabilities. image

This MR is to discuss first the implementation of these basic functionalities before the full-fledged implementation of #255 (closed).

Points I would like to discuss:

  • Integration in the UI and layout in general

Used app__inner as suggested by @bocciare

  • Use of Redux ? I didn't use Redux state at all so I will be happy to have any pointers on that.

Done.

  • Request implementations. I put them in a dedicated api.js file but you might want to add the URI to your "catalogue".

Added to api/icatPlus.js

  • Author/CreatedBy field. Is this needed ? If yes, how can I get the name from the user id ?

Hidden for now

  • New routes. I put the form at addresses/new and the address table at addresses/. Is this fine by you ?

Same pattern as shipments

Edited by Loic Huder

Merge request reports

Loading