chore: extract formatters into re-usable module #799
gmaclennan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently both Mapeo Mobile and Mapeo Desktop have similar logic to format and display observations based on preset and field definitions. PR #458 moves a lot of this code into re-usable components which could be re-used on Desktop (see code for documentation).
These currently are not compatible with Desktop because Mobile uses a slightly different Observation shape (see #459).
In addition to these components, there are a few useful helper functions that are duplicated between Mobile and Desktop. On a review of Mobile code, a useful abstraction of these functions to be shared between Mobile and Desktop are:
Again, we need to resolve #459 for these to be useful.
Beta Was this translation helpful? Give feedback.
All reactions