Commit graph

397 commits

Author SHA1 Message Date
andrekir
cfdb245da2 refactor: convert connectionState to StateFlow 2024-11-12 09:15:45 -03:00
andrekir
a980441fd1 refactor: move ignoreIncoming logic to ViewModel 2024-11-12 08:47:17 -03:00
andrekir
417523967e fix: move device list sorting to ViewModel 2024-11-11 18:31:26 -03:00
Robert-0410
7e54ad950c
feat: Metrics time selection (#1396) 2024-11-11 17:54:26 -03:00
andrekir
1d992d5caf fix: convert SNR values to Float for decimal precision 2024-11-11 16:41:06 -03:00
andrekir
1ae65ef267 refactor: pass nav args to ViewModel using SavedStateHandle 2024-11-10 07:45:25 -03:00
andrekir
296f1944b7 refactor: migrate Compose navigation to type-safe args 2024-11-10 07:45:25 -03:00
andrekir
e72940245c feat: persist node filters to SharedPreferences
closes #1392
2024-11-10 06:18:21 -03:00
andrekir
adbe5952fc feat: position logs 2024-11-02 17:22:54 -03:00
andrekir
26f210047d refactor: split MetricsViewModel state updates
- Consolidates `MetricViewModel` back to a single state flow
- Introduces a `MutableStateFlow` for state updates, allowing more independent control
- Moves `Telemetry`, `MeshPacket`, and config updates into separate coroutines
2024-11-02 09:46:15 -03:00
andrekir
dcd5ca1c8e fix: add missing PortNum for traceroute results 2024-11-02 06:21:32 -03:00
andrekir
74ae3fd594 refactor(config): move connectionState to RadioConfigState 2024-10-31 19:45:27 -03:00
andrekir
6526c91f3a fix: contact placeholder date when time is zero 2024-10-29 08:15:50 -03:00
andrekir
8af31bb0d0 fix(traceroute): route lists cleared before use are always empty
fixes #1355
2024-10-27 10:16:17 -03:00
andrekir
cfb38e9951 feat: add option to delete traceroute log 2024-10-26 05:57:18 -03:00
andrekir
26ca4af568 refactor: move Message date formatting to ViewModel 2024-10-26 05:44:59 -03:00
James Rich
6447485199 fix: set user.id in NodeDb getUser
This commit updates the `getUser` function in `NodeDB` to set the ID of the user when creating a new `User` object, ensuring that the user ID is always populated.

Additionally, it refactors the `Message` class to use the proto `User` object instead of the `MeshUser` class. This change simplifies the code and improves consistency by utilizing the proto definition for user information.
2024-10-26 05:32:30 -03:00
Andre K
a557bff3d7
feat: traceroute log (#1348) 2024-10-25 08:14:32 -03:00
andrekir
5cf9741b13 refactor: unified getUser repository call for convention 2024-10-25 07:50:34 -03:00
andrekir
199b9a29d5 refactor: extract traceroute text from MeshService 2024-10-23 19:05:43 -03:00
andrekir
fa24dd43b8 refactor: update signalMetrics filter for 0 hop packets 2024-10-23 17:49:47 -03:00
Robert-0410
bb345e7437
feat: Signal Metrics (#1340) 2024-10-23 17:31:31 -03:00
andrekir
8af78bc2eb fix(config): show error when radio disconnects before receiving confirmation 2024-10-19 13:29:39 -03:00
andrekir
1b1f454b72 feat: add RegionCode for Philippines
https://github.com/meshtastic/firmware/pull/4951
2024-10-19 05:03:43 -03:00
andrekir
6be44675e2 feat: add NodeDetailsScreen with metrics and remote admin navigation 2024-10-18 20:09:37 -03:00
andrekir
85b0cda109 refactor(config): move DeviceProfile data to local variable 2024-10-18 12:39:23 -03:00
andrekir
42f9ef24fd refactor(config): move destination node logic to ViewModel 2024-10-18 12:39:23 -03:00
andrekir
2fab9d83f8 refactor(config): move navigation route logic to ViewModel 2024-10-18 12:39:23 -03:00
andrekir
fe56d257f5 chore: add detekt formatting rule set
https://detekt.dev/docs/next/rules/formatting/
2024-10-14 07:56:29 -03:00
andrekir
b503c10789 refactor: finish transition from NodeInfo to NodeEntity 2024-10-12 07:14:59 -03:00
andrekir
45730838e5 feat: adjust map MaxClusteringZoomLevel and zoomOnCluster scale 2024-10-10 11:01:43 -03:00
andrekir
aa84d47375 feat: add fixed_position to config import/export 2024-10-10 10:54:14 -03:00
andrekir
9cce785556 feat: add RegionCode descriptions to region selection
closes #987
2024-10-09 16:43:05 -03:00
andrekir
8af225b998 feat: add new remote admin routing errors 2024-10-06 08:36:22 -03:00
danwelch3
48365218e2
feat(map): implement marker clustering (#1287) 2024-10-05 08:59:35 -03:00
James Rich
f944a236ac
feat: Adds Request user info (#1279)
* Request user info

* safe calls

* Fix: Ensure NodeInfo is sent when requesting user info

The `requestUserInfo` function now correctly sends `NodeInfo` when requesting user info by using the `
toNodeInfo()` method on `ourNodeInfo`. This ensures the recipient receives the necessary information.

* fix: remove unused parameters, use service's node db for our node entity

---------

Co-authored-by: musznik <bymucha@gmail.com>
2024-10-03 05:02:13 -03:00
andrekir
ffb402acde feat: add demo mode for testing and review purposes
- Activates by tapping "None (disable)" 7 times.
- Displays a confirmation message when `Demo Mode` is enabled.
- Simulates a connection to a Meshtastic device and allows the app to function without requiring real hardware.
2024-10-02 19:58:11 -03:00
Andre K
c30ee2f55f
refactor: replace MyNodeInfo with MyNodeEntity (#1277) 2024-10-02 06:18:30 -03:00
andrekir
3bd4132089 feat: preserve map center and zoom state in ViewModel
closes #1150
2024-09-30 19:14:22 -03:00
andrekir
96a69b7398 fix: position handling when fixed_position is enabled
closes #1265
2024-09-28 08:19:09 -03:00
andrekir
a075dfbd3a feat: add dialog for message status information 2024-09-24 22:06:15 -03:00
andrekir
e5b229e6ff fix: handle RemoteException in setConfig and setChannel 2024-09-24 07:44:25 -03:00
andrekir
83dc389d6d refactor(NodeItem): replace NodeInfo with NodeEntity 2024-09-21 16:47:20 -03:00
andrekir
89a3171b58 fix(config): admin requests confirmation handling 2024-09-21 08:35:21 -03:00
Andre K
36a13d7687
fix(conifg): implement sessionPasskey handling for admin requests (#1263) 2024-09-20 06:07:35 -03:00
andrekir
852c6e1bc2 refactor: enable remote admin to set/remove fixed_position 2024-09-18 19:50:33 -03:00
andrekir
21c1c1cbd6 refactor(LoRaConfig): add hasPaFan validation 2024-09-18 19:45:09 -03:00
James Rich
98d11115c6
feat: Add ability to display environment metrics in Fahrenheit (#1253)
* feat: Add ability to display environment metrics in Fahrenheit

The temperature values in the environment metrics charts and cards are now displayed in Fahrenheit or Celsius based on the user's preference. Celsius is still used as the base unit for calculations and storage.

* Refactor: Rename environmentDisplayTempInFahrenheit to environmentDisplayFahrenheit

Renamed the variable environmentDisplayTempInFahrenheit to environmentDisplayFahrenheit for better clarity and consistency.

* Refactor: Remove unused ENVIRONMENT_METRICS_COLORS

Removed the unused `ENVIRONMENT_METRICS_COLORS` variable from the `EnvironmentMetrics` component.

* Update: Add support for plotting iaq

Added green to the list of colors used for plotting environment metrics to support the newly added iaq readings.
2024-09-18 19:37:55 -03:00
andrekir
24886994a6 feat: show lock icon for nodes with public keys 🔒 2024-09-16 18:44:18 -03:00
andrekir
fcdf74ed94 fix: divide-by-zero in channelNum calculation 2024-09-16 18:19:42 -03:00