Commit graph

15 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
a8f4cf9631
feat: improve routing performance with split state, fetch batching, node cache, and debounce
- Split Router's single @Published navigationState into per-tab properties
  to reduce spurious re-renders across unrelated views
- Add fetchBatchSize=50 and relationshipKeyPathsForPrefetching to node list
- Optimize in-body array re-sort from 2 filter passes to single pass
- Add in-memory node object ID cache on Router for O(1) lookups
- Add fetchLimit=1 to getNodeInfo for early termination
- Debounce rapid node selection changes with 100ms Task delay

Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/9bfe91f2-8ed7-4d2c-bb2e-4ed3dfd3a16c

Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com>
2026-04-01 23:52:56 +00:00
Garth Vander Houwen
33978592d3 Remove lightly used receivedTimestamp 2024-07-31 20:56:09 -07:00
Blake McAnally
a58c5d894b Refactor fetch requests to use the EntityName.fetchRequest() API to prevent unnecessary branching 2024-06-28 09:04:24 -05:00
Blake McAnally
4d547e48db This change fixes several lint errors throughout the project, and moves the SwiftLint build phase to before compilation.
After this change, a developer can now clone the project and run without the build failing due to lint errors! 😃

* I ran `swiftlint --fix` to resolve many auto-correctable issues (mostly whitespace)
* Excluded the `Meshtastic/Protobufs` directory from lint, since that code is automatically generated.
* Converted some single letter method parameters to lowercase.
* Converted several instances `force_cast` to instead use `guard` or `if let` to unwrap optional values. During this change, some of the SwiftUI views became "too complex to be solved in a reasonable time", so I broke up the views into distinct sub-expressions.

I was able to build and run the app on an iOS simulator.
2024-05-31 21:48:50 -05:00
Garth Vander Houwen
bd5191ccd2 Initial trace route log 2023-12-08 11:41:29 -08:00
Garth Vander Houwen
9c57bdd4c4 Update detection sensor log query to update in real time 2023-11-29 23:01:51 -08:00
Garth Vander Houwen
385fc6ac73 Lets try and store and forward 2023-10-01 12:25:38 -07:00
Garth Vander Houwen
a990d7f2bd Lint 2023-08-26 23:17:30 -07:00
Ben Meadors
3275bbf348 Added initial detection sensor log 2023-08-23 07:03:05 -05:00
Garth Vander Houwen
b7a68ddbc7 Linting 2023-03-06 15:30:10 -08:00
Garth Vander Houwen
fdade220de SwiftLint Whitespace fixes 2023-03-06 10:33:18 -08:00
Garth Vander Houwen
af90966900 Fix getNodeInfo method that was the source of nil nodes 2023-02-06 18:45:03 -08:00
Garth Vander Houwen
921f95cc63 Assorted updates 2023-01-31 10:50:17 -08:00
Garth Vander Houwen
33d843937e Edit waypoint round 2 2023-01-16 23:16:57 -08:00
Garth Vander Houwen
b00f8c2daa Janky waypoint edit 2023-01-16 17:40:28 -08:00