More descriptive counters

This commit is contained in:
Vitor Pamplona
2026-03-27 21:42:35 -04:00
parent 391a0bfab2
commit 007a0b0d43
5 changed files with 9 additions and 5 deletions
@@ -46,7 +46,7 @@ class IndexerRelayListViewModel : BasicRelaySetupInfoModel() {
filter = Filter(kinds = listOf(MetadataEvent.KIND)),
),
CountFilter(
label = R.string.relay_settings_lower,
label = R.string.relay_settings_lower2,
filter = Filter(kinds = listOf(AdvertisedRelayListEvent.KIND)),
),
)
@@ -40,7 +40,7 @@ class PrivateOutboxRelayListViewModel : BasicRelaySetupInfoModel() {
override fun countFilters(relayUrl: NormalizedRelayUrl): List<CountFilter> =
listOf(
CountFilter(
label = R.string.events,
label = R.string.events_from_you,
filter = Filter(authors = listOf(account.pubKey)),
),
)
@@ -137,7 +137,7 @@ class Nip65RelayListViewModel : ViewModel() {
RelayCountResult(
listOf(
RelayCountResult.CountEntry(
label = R.string.events,
label = R.string.events_from_you,
count = result.count,
approximate = result.approximate,
),
@@ -156,7 +156,7 @@ class Nip65RelayListViewModel : ViewModel() {
RelayCountResult(
listOf(
RelayCountResult.CountEntry(
label = R.string.events,
label = R.string.events_to_you,
count = result.count,
approximate = result.approximate,
),
@@ -40,7 +40,7 @@ class SearchRelayListViewModel : BasicRelaySetupInfoModel() {
override fun countFilters(relayUrl: NormalizedRelayUrl): List<CountFilter> =
listOf(
CountFilter(
label = R.string.events,
label = R.string.searchable_events,
filter = Filter(),
),
)
+4
View File
@@ -1917,8 +1917,12 @@
<string name="event_sync_no_events">no events</string>
<string name="ots_explorer_settings">Bitcoin Explorer (OTS)</string>
<string name="events">events</string>
<string name="events_from_you">events from you</string>
<string name="events_to_you">events to you</string>
<string name="searchable_events">searchable events</string>
<string name="dms">DMs</string>
<string name="profiles">profiles</string>
<string name="relay_settings_lower2">outbox lists</string>
<string name="relay_settings_lower">relay settings</string>
<string name="last_seen">Last seen %1$s ago</string>