These are things that need to be done (we should create stories, but maybe for next PI?).
- Easy peasy:
- The JD app currently calls EP with
counterpartyId
in the URL. This should be changed (on both ends) tocounterpartyCode
to be consistent with the queries, etc. - Speaking of which, the current EP query is
DduiByParty
, but it should beDduiByCounterpartyCode
, again to avoid confusion.
- The JD app currently calls EP with
- The PhoneField is not set up properly with the state machines and the mutation for updating (it displays fine)
- The field is a composite field, so the countryCode and the lineNumber need to be combined into a single object.
- The Mutation needs to be updated so that composite field objects can be passed as variables. (See the mutation to see what it looks like.)
- There is no reason that the countryCode and lineNumber fields can't be handled independently by the form, but it needs to know to combine them, so maybe the individual fields have their common names (e.g., lineNumber), but also a
parentName
for the composite field (e.g.,mobileNumber
). - When the form is submitted, the mutation can combined fields under common parent names in the
reducer
.
- The AddressFinder field is another field that would be good to do as a composite, like the PhoneField, but it needs a toggle.
- The toggle is between automatically looking up the address with a LookupField (need to build this) and a manual form with one or more of the AddressFinder metadata fields (address components):
- BUILDING_NAME
- UNIT_TYPE
- UNIT_IDENTIFIER
- FLOOR
- NUMBER
- STREET
- STREET_TYPE
- STREET_NAME
- SUBURB
- CITY
- STATE
- BOX_TYPE
- BOX_NUMBER
- LOBBY_NAME
- RD_NUMBER
- POST_SUBURB
- MAIL_TOWN
- POSTCODE
- COUNTRY
- Weirdly, it aslo has a
longValue
andshortValue
. Not sure how to handle these. - Note: there is supposed to be an AddressFinder and Numverify back end proxy so we do these functions via company rather than directly. Benji was the person working on this, but he rolled off. Have heard nothing about it since.
- The toggle is between automatically looking up the address with a LookupField (need to build this) and a manual form with one or more of the AddressFinder metadata fields (address components):
- The bank account numbers (and possibly other things like emails, addresses, or phone numbers) may eventually need the user to be able to ADD a new number, EDIT a number, or DELETE a number. None of this has been implemented yet. Should use the state machines and pub sub system like everything else.
- I'd intended to add Storybook, so that's something that could be done in the
modules/getComponent/...
folders.