Commit graph

971 commits

Author SHA1 Message Date
andrekir
7da2dd8bb7 fix: lock icon colors for better visibility in light theme 2024-10-03 18:30:00 -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
andrekir
0a1f129403 refactor: add parameter for customizable text link styles 2024-10-02 17:01:11 -03:00
andrekir
d89d4b7baa refactor: replace AutoLinkText in MessageItem 2024-10-01 20:02:06 -03:00
andrekir
ad55d6a18e refactor: replace AutoLinkText library with component
- replaces deprecated `ClickableText` with `LinkAnnotation`.
- uses LinkifyCompat for URL, email, and phone number detection.

closes #1267
2024-10-01 19:51:48 -03:00
andrekir
3bd4132089 feat: preserve map center and zoom state in ViewModel
closes #1150
2024-09-30 19:14:22 -03:00
andrekir
cec234b58a refactor: RegularPreference using adaptive layout 2024-09-29 22:24:53 -03:00
andrekir
2897058697 feat: remove deprecated protobufs from DropDownPreference 2024-09-29 19:32:09 -03:00
andrekir
2370e8b596 feat: add DeviceConfig Role descriptions
closes #848
2024-09-28 09:00:25 -03:00
andrekir
96a69b7398 fix: position handling when fixed_position is enabled
closes #1265
2024-09-28 08:19:09 -03:00
andrekir
3c22272d23 refactor: add option for custom ByteString key generation 2024-09-28 08:19:08 -03:00
andrekir
3c0fd03555 refactor: base preference with horizontal layout and summary 2024-09-27 22:23:53 -03:00
andrekir
a075dfbd3a feat: add dialog for message status information 2024-09-24 22:06:15 -03:00
andrekir
056f6b28cf fix: set opaque background for SimpleAlertDialog 2024-09-24 09:33:53 -03:00
andrekir
22b1cf0f16 feat: add encryption status icon and dialog to node list items 2024-09-23 10:13:27 -03:00
andrekir
587c6c91f4 refactor: ensure backward compatibility for PKC encryption 2024-09-22 23:01:33 -03:00
andrekir
83dc389d6d refactor(NodeItem): replace NodeInfo with NodeEntity 2024-09-21 16:47:20 -03:00
Andre K
36a13d7687
fix(conifg): implement sessionPasskey handling for admin requests (#1263) 2024-09-20 06:07:35 -03:00
andrekir
e5d60003fc fix(PositionConfig): clear changes on cancel button click 2024-09-19 18:17:28 -03:00
DJ Holt
dc9e780663
Fix lat/lng/alt config validation errors when position is null (#1260) 2024-09-19 07:06:31 -03:00
andrekir
4d03bc0ecb fix: detekt errors 2024-09-18 20:09:27 -03:00
andrekir
852c6e1bc2 refactor: enable remote admin to set/remove fixed_position 2024-09-18 19:50:33 -03:00
andrekir
f8898def89 chore: remove unused resources 2024-09-18 19:48:04 -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
James Rich
9b90c128fb
feat: Add IAQ to environment metrics (#1258)
Adds Indoor Air Quality (IAQ) to the environment metrics chart and card.

The IAQ is displayed as a green line on the chart and as a dot with a numerical value on the card.
The IAQ scale is available as a legend in the IAQ component.
2024-09-18 18:42:58 -03:00
Robert-0410
843e423648
Device metric lines and info dialog (#1252)
* Removed constants from CommonCharts only used in specific charts.

* Altered CommonCharts.ChartOverlay to take a list of colors for the lines. Adjusted the device metrics line colors for channel utilization.

* Started an info dialog in the device metric chart to help users better understand Meshtastic.
2024-09-18 06:57:01 -03:00
andrekir
b50e982049 chore: rename Node component to NodeItem for convention 2024-09-16 20:27:13 -03:00
James Rich
858544b0f4
feat: adds UI for unknown node details (#1219) 2024-09-16 20:20:20 -03:00
andrekir
24886994a6 feat: show lock icon for nodes with public keys 🔒 2024-09-16 18:44:18 -03:00
andrekir
092ed32c23 fix(LoraConfig): ensure primaryChannel updates on loraInput changes 2024-09-16 18:20:54 -03:00
Andre K
396195a1b8
refactor: introduce NodeEntity protobuf-based database entity (#1250) 2024-09-16 17:57:30 -03:00
andrekir
2433cbc00a feat: show names with a lock for DMs using PKC 2024-09-16 10:30:15 -03:00
Robert-0410
0c52bef43b
Mesh Packet Limit (#1245)
* Separated the device and environment metrics into their own files.

* Place a limit to the amount of MeshPackets we retrieve from the logs table.

* Making detekt happy with the naming.
2024-09-14 18:48:05 -03:00
andrekir
f0f9235223 refactor(NodeMenu): always show remote admin menu item 2024-09-13 19:19:12 -03:00
andrekir
84939a74d2 refactor: replace nodeDBbyID with getUser() function 2024-09-11 20:01:16 -03:00
andrekir
41fc43b215 refactor: move ContactsFragment to main activity ViewModel 2024-09-09 20:02:34 -03:00
andrekir
fbebb52060 feat: add ok_to_mqtt config 2024-09-09 18:53:38 -03:00
andrekir
44e0f453a6 fix(SecurityConfig): update admin_key to repeated field 2024-09-09 06:43:26 -03:00
Andre K
9d5cf47762
refactor: migrate MessagesFragment RecyclerView to Compose (#1133) 2024-09-09 06:15:27 -03:00
andrekir
128ced64db chore(LazyColumnDragAndDropDemo): update to Compose 1.7 APIs 2024-09-08 08:43:52 -03:00
andrekir
8be6d74ed8 refactor: consolidate sort button into NodeFilterTextField component 2024-09-08 08:32:00 -03:00
andrekir
e89f59745d fix(nodes): force clear TextField focus on chip button click
closes #1228
2024-09-08 08:27:38 -03:00
Robert-0410
2c426d470c
Refactor NodeDetails to Metrics (#1222)
* Synced the string used for ChUtil and AirUtilTX in the NodeInfo and Device Metrics.

* Refactored NodeDetails to Metrics.

* Added string resources for "Hops Away".
2024-09-08 07:36:44 -03:00
andrekir
c37afe5849 refactor: extract utility functions from Map screen 2024-09-01 12:30:57 -03:00
andrekir
95f2e09217 refactor: update component to use FlowRow for RTL support 2024-09-01 12:21:55 -03:00
andrekir
3e8449ec05 refactor: rename map component to MapButton 2024-09-01 12:17:55 -03:00
andrekir
b17bdd4fb8 feat(NodeDetails): add loading state indicator and pager tabs 2024-09-01 12:03:32 -03:00
andrekir
df2847dd6f fix(MqttConfig): position precision padding 2024-08-31 09:13:54 -03:00