Commit graph

2372 commits

Author SHA1 Message Date
andrekir
b321e5393d refactor(contacts): move padding to contentPadding in LazyColumn 2024-11-02 06:18:40 -03:00
andrekir
f2511f814c fix: getNumber exception for unrecognized RegionCode entries
Fatal Exception: java.lang.IllegalArgumentException: Can't get the number of an unknown enum value.
2024-11-02 06:16:33 -03:00
andrekir
605ef120c9 fix: remove build timestamp (breaking reproducible builds)
reverts 9f099f3edf
2024-11-02 06:13:36 -03:00
andrekir
1aa0b138fc refactor(config): extract components from NavGraph to screens 2024-10-31 19:45:27 -03:00
andrekir
74ae3fd594 refactor(config): move connectionState to RadioConfigState 2024-10-31 19:45:27 -03:00
andrekir
b668a21b68 refactor: move node detail logs to shared ViewModel 2024-10-30 18:53:44 -03:00
andrekir
6526c91f3a fix: contact placeholder date when time is zero 2024-10-29 08:15:50 -03:00
andrekir
1e081b4b30 refactor: improve handling for old firmware 2024-10-29 07:41:39 -03:00
andrekir
b91a6d8388 refactor(traceroute): unified route methods for consistency 2024-10-27 10:31:58 -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
L. Pereira
abb4db8faf
feat: Short duration for the "notification permissions denied" snackbar (#1346) 2024-10-26 05:55:21 -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
a3b4b70db9 fix(metrics): replace telemetry times with receive time 2024-10-25 07:55:47 -03:00
andrekir
5cf9741b13 refactor: unified getUser repository call for convention 2024-10-25 07:50:34 -03:00
andrekir
9f099f3edf feat: replace invalid MeshPacket times (earlier than build time) 2024-10-23 19:20:28 -03:00
andrekir
199b9a29d5 refactor: extract traceroute text from MeshService 2024-10-23 19:05:43 -03:00
andrekir
eb80d419eb refactor(logs): add optional portNum parameter to getMeshPacketsFrom 2024-10-23 18:10:08 -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
551f5c9fc5 refactor: replace InfoCard Painter with ImageVector icons 2024-10-22 12:14:02 -03:00
andrekir
7289896956 refactor: remove largeIcon from notifications 2024-10-22 12:13:34 -03:00
andrekir
3ac0e8c28e refactor: extract NavGraph from RadioConfig 2024-10-21 06:07:28 -03:00
andrekir
8df1634fd6 fix: metrics field validation and current unit (mA) 2024-10-20 06:39:27 -03:00
andrekir
8af78bc2eb fix(config): show error when radio disconnects before receiving confirmation 2024-10-19 13:29:39 -03:00
andrekir
abcc2e89ec fix(config): move confirmation dialog back to NavHost 2024-10-19 13:29:09 -03:00
andrekir
c98a5c7caf feat: add info cards for environment and power metrics 2024-10-19 13:28:16 -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
d19ddc2d94 feat: add icons to config navigation cards 2024-10-19 05:02:37 -03:00
andrekir
6be44675e2 feat: add NodeDetailsScreen with metrics and remote admin navigation 2024-10-18 20:09:37 -03:00
James Rich
b73c53bc11
feat: Add Chronometer and Timestamp to Service Notification (#1327)
Adds a chronometer to the service notification, counting down to the next stats update.
Also adds timestamps to the service notification, message notification, and new node seen notification.
2024-10-18 12:46:56 -03:00
andrekir
85b0cda109 refactor(config): move DeviceProfile data to local variable 2024-10-18 12:39:23 -03:00
andrekir
d10b58073c refactor(config): extract screen logic from NavHost 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
cd5481b549 refactor: remove Scaffold from ChannelFragment 2024-10-15 06:12:35 -03:00
James Rich
f6ec3e8bab
feat: Add notification for new node seen (#1316)
* Add notification for new node seen

This change adds a new notification that is displayed when a new node is seen.
The notification includes the node's
 name.
It also updates the message notification to include the node name.

* Show individual notification for each new node

* Add new nodes notifications

Adds a new notification channel for new nodes seen.
This channel is set to high importance with sound and light.
2024-10-15 06:07:22 -03:00
andrekir
af56fff216 fix: position packet want_response handling
Process valid position broadcasts with `want_response` true except from position requests with an empty payload (latitude and longitude are zeroes).
2024-10-14 18:26:59 -03:00
andrekir
eacf3a87a0 feat: create NodeEntity.isUnknownUser property 2024-10-14 17:20:06 -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
Matthew Bogner
df7ce09fdb
feat: sort device list while keeping None (Disabled) at the top of the list (#1309)
Signed-off-by: Matthew Bogner <matt@ibogner.net>
2024-10-13 08:23:55 -03:00
James Rich
86dc8f2b1c
Replace "unknown" with "?" for unknown hop count (#1308)
This commit replaces the string "unknown" with a question mark ("?") when displaying the hop count for a
 node if the hop count is unknown (-1). This provides a more concise and visually clear indication of an unknown hop count.
2024-10-13 08:17:21 -03:00
James Rich
38942ec557
Add local device stats to the service notification (#1307)
This commit adds the local device stats to the service notification. This information includes the number of online and total nodes, as well as other local stats. It also updates the notification summary and adds local stats telemetry handling.
2024-10-13 08:10:28 -03:00
andrekir
b503c10789 refactor: finish transition from NodeInfo to NodeEntity 2024-10-12 07:14:59 -03:00
James Rich
ed2703c77a fix: Correctly compare hopStart and hopLimit for received packets
fixes: #1304

The calculation of `hopsAway` was using an incorrect comparison between `hopStart` and `hopLimit`. This commit fixes the logic to correctly determine the number of hops a packet has traveled.
2024-10-12 06:20:46 -03:00
James Rich
cf2315cb66
Sort nodes with unknown hops last (#1302)
Nodes with -1 hops (unknown) are now sorted last when sorting by hops_away. This ensures a more intuitive ordering
 in the UI.
2024-10-11 07:54:06 -03:00
James Rich
9bd84d3fc0
refactor: Improve IAQ display to add ranges, update colors (#1300)
* Refactor: Improve IAQ display and add ranges

Adds IAQ ranges to the `Iaq` enum and updates the display to show the ranges alongside the
 descriptions, improving clarity for users.

This change enhances the indoor air quality information by providing context for the different IAQ levels.

* Refactor: Improve IAQ color scheme and add range to description

This commit refactors the Indoor Air Quality (IAQ) component by:

- Updating the color scheme to better reflect air quality levels, using a more standardized and recognizable color palette.
- Adding the IAQ range to the description, providing more context and clarity to the user.
- Adding a preview for the IAQ scale.
- Minor code cleanup and improvements.
2024-10-11 07:46:54 -03:00
andrekir
45730838e5 feat: adjust map MaxClusteringZoomLevel and zoomOnCluster scale 2024-10-10 11:01:43 -03:00