Bridger App and Components reboot
Feature
Merge Request
Related Issue
resolves #26 (closed), #27 (closed), #29 (closed), #30 (closed), #36 (closed), #38 (closed)
Description of Feature
Implements new ui in react components with typescript, with claimHandlers as classes that all inherit from abstract Handler class.
Some Notes:
- we ran into some issues with web3 library along the way
- encountered some confusion around the referencing of
claim
vsdata
properties of claim objects - employed a convention of prefixing interface names with a capital I (to help distinguish them from capitalized component names, for example)
- tried to minimize the use of stateful components, and instead use stateless functional components (
React.SFC
) as much as possible. This should make it easier to transition to Redux - created
app/statementGenerators
folder, on front-end, to generate one-line claim description statements for each claim type - created
app/utils
folder to separate out utility functions from react components - structured
app/components
folder with nested folders inside, to organize the functionality and relationships of react components - fixed form-rendering bug (see issue #38 (closed)) by using functional programming pattern of currying, or creating functions that return functions that will take future arguments (that are not yet available)
Related Tasks
-
#32 (closed) (phase out use of any
type in TypeScript)
What's Next?
-
#33 (implement Redux for state management)
Edited by Michiya