feat: Allow sorting by favorite nodes (#1700)

This commit is contained in:
todd2982 2025-03-21 16:16:54 -05:00 committed by GitHub
parent 8a8ee27ad9
commit 0a7d0ff4be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -92,6 +92,7 @@ interface NodeInfoDao {
END
WHEN :sort = 'channel' THEN channel
WHEN :sort = 'via_mqtt' THEN via_mqtt
WHEN :sort = 'via_favorite' THEN is_favorite * -1
ELSE 0
END ASC,
last_heard DESC

View file

@ -27,4 +27,5 @@ enum class NodeSortOption(val sqlValue: String, @StringRes val stringRes: Int) {
HOPS_AWAY("hops_away", R.string.node_sort_hops_away),
CHANNEL("channel", R.string.node_sort_channel),
VIA_MQTT("via_mqtt", R.string.node_sort_via_mqtt),
VIA_FAVORITE("via_favorite", R.string.node_sort_via_favorite),
}

View file

@ -30,6 +30,7 @@
<string name="node_sort_hops_away">Hops away</string>
<string name="node_sort_last_heard">Last heard</string>
<string name="node_sort_via_mqtt">via MQTT</string>
<string name="node_sort_via_favorite">via Favorite</string>
<string name="unrecognized">Unrecognized</string>
<string name="message_status_enroute">Waiting to be acknowledged</string>