Create some Lyric Utils which will handle a lot of the logic powering the LyricView page later on. Some nice features I was able to code into here are
Full presentation mode and skip duplicates (can do either v1 c1 v2 c1 v3 c1 or v1 c1 v2 v3 based on a settings)
Display just "Chorus" instead of "Chorus 1" if there is only 1 chorus (applies to all verse types)
More robustness regarding presentation order - the reason many of original hymnal app was broken was sometimes the presentationOrder was like v1, v2, v3 instead of v1 v2 v3, the commas and other formatting things messed it up.
This PR also includes
Some StringUtils
Some edits to the data api data types to match the backend changes
Install Jest and add test cases for the util functions
Create some Lyric Utils which will handle a lot of the logic powering the LyricView page later on. Some nice features I was able to code into here are
v1 c1 v2 c1 v3 c1
orv1 c1 v2 v3
based on a settings)presentationOrder
was likev1, v2, v3
instead ofv1 v2 v3
, the commas and other formatting things messed it up.This PR also includes