Skip to content

Commit 9b101bf

Browse files
committed
fix: embed account count in community description text
1 parent 65d03bb commit 9b101bf

3 files changed

Lines changed: 8 additions & 19 deletions

File tree

app/pages/pds.vue

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,9 @@ const totalAccounts = computed(() => pdsUsers.value.length)
136136
<h2 id="community-heading" class="text-lg text-fg uppercase tracking-wider mb-4">
137137
{{ $t('pds.community.title') }}
138138
</h2>
139-
<p class="text-fg-muted leading-relaxed mb-2">
140-
{{ $t('pds.community.description') }}
139+
<p class="text-fg-muted leading-relaxed mb-6">
140+
{{ $t('pds.community.description', { count: totalAccounts }) }}
141141
</p>
142-
<p v-if="pdsStatus === 'success' && totalAccounts > 0" class="text-fg font-medium mb-6">
143-
{{ $t('pds.community.account_count', { count: totalAccounts }) }}
144-
</p>
145-
<div v-else class="mb-6" />
146142

147143
<div v-if="pdsStatus === 'pending'" class="text-fg-subtle text-sm" role="status">
148144
{{ $t('pds.community.loading') }}
@@ -184,15 +180,12 @@ const totalAccounts = computed(() => pdsUsers.value.length)
184180
</a>
185181
</li>
186182
</ul>
187-
<div
183+
<p
188184
v-if="usersWithoutAvatars.length"
189-
class="flex items-center justify-center gap-2 mt-4 text-fg-muted text-sm"
185+
class="text-center mt-4 text-fg-muted text-sm"
190186
>
191-
<AppMark class="w-5 h-auto" />
192-
<span>{{
193-
$t('pds.community.new_accounts', { count: usersWithoutAvatars.length })
194-
}}</span>
195-
</div>
187+
{{ $t('pds.community.new_accounts', { count: usersWithoutAvatars.length }) }}
188+
</p>
196189
</div>
197190
</div>
198191
</section>

i18n/locales/en.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,13 +1183,12 @@
11831183
},
11841184
"community": {
11851185
"title": "Who is here",
1186-
"description": "They are already calling npmx.social home.",
1187-
"account_count": "Home to {count} accounts",
1186+
"description": "Some of the {count} accounts that are already calling npmx.social home:",
11881187
"loading": "Loading PDS community...",
11891188
"error": "Failed to load PDS community.",
11901189
"empty": "No community members to display.",
11911190
"view_profile": "View {handle}'s profile",
1192-
"new_accounts": "+{count} new to the atmosphere"
1191+
"new_accounts": "...plus {count} more that are new to the atmosphere"
11931192
}
11941193
},
11951194
"privacy_policy": {

i18n/schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,9 +3556,6 @@
35563556
"description": {
35573557
"type": "string"
35583558
},
3559-
"account_count": {
3560-
"type": "string"
3561-
},
35623559
"loading": {
35633560
"type": "string"
35643561
},

0 commit comments

Comments
 (0)