* Refactor: We can draw the horizontal lines for the graphs independent of min and max entries.
* Added navigation to the PowerMetrics log with a skeleton screen.
* Drew channel 1 voltage.
* Refactor: Assigned colors for the data within the enum instead of a list-ordinal combo.
* Plotted Ch1 current line.
* Refactor: Did not need the parameters being used to get the desired ui in the TimeLabels composable.
* Added a row to help distinguish between units.
* Refactor: MetricsTimeSelector.kt to SlidingSelector.kt; the new version allows for generic options.
* Added a sliding selector to choose between power channels and changed the legend data to instead display current and voltage.
* We now plot the line for which the user has selected a power channel option.
* Don't need the current line to be dotted anymore.
* Don't think we need to display an info dialog for voltage and current.
* Wrote card to display the power channel data entries.
* detekt
* Refactor: current color change to accommodate the themes better
---------
Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
* Removed repeated calculation.
* Centralized the radius used to plot points and draw lines within GraphUtil.kt.
* Updated the signal metrics chart to use the scroll features.
* SignalMetricsChart long method warning suppression.
* The battery line is only drawn from point to point when we don't have a significant break in time.
* Implemented GraphUtil.plotPoint
* Implemented GraphUtil.createPath
* Added licence to GraphUtil.kt.
https://developer.android.com/develop/background-work/background-tasks/broadcasts#context-registered-receivers
Note from Step 4.:
"Some system broadcasts come from highly privileged apps, such as Bluetooth and telephony, that are part of the Android framework but do not run under the system's unique process ID (UID). To receive all system broadcasts, including broadcasts from highly privileged apps, flag your receiver with RECEIVER_EXPORTED."
* Move battery info to compose - always show voltage level and icons to match battery percentage
Use tool text in preview, rather than actually set text value
Simplify node info layout to avoid defining margins on everything
* Move node position to Compose
* Update hyperlink color to match previous value
* Use compose preview in layout editor
* Use compose preview in layout editor
* Add simple preview for use in layout
* Move last heard node info to Compose
Clean up layout of node info
* Move signal info to Compose and simplify bind
* Prevent long coordinates from colliding with signal info
* Move the rest of the node info card to compose
Breaks the blinking feature when navigating from chat
Wrap position to new line if overflow
* Adjust layout and text sizing to closer match original
* Use constraint layout for tighter display on busy nodes
* Construct environment metrics so that there aren't trailing spaces if current is zero
* Swap viewholder root for compose view rather than inflating layout
Fix padding lost when changing out view holder root
Intelligently update the list with only nodes that changed
* Remove unused method, and adjust replacement method to match the same decimal precisions as before
* Add elevation and number of GPS satellites to node info list
Add some extension functions for easier conversion between units and systems
* Dispose composition on recycle to avoid lingering spacing from previous layouts
Remove comments explaning adapter functionality
Remove unused methods
* Use previous string for denoting unknown node names
* Align properly if altitude but no signal info