mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-29 16:11:13 -05:00
Inform user about filtered profiles
This commit is contained in:
@@ -48,7 +48,7 @@ export default function TooShortBio() {
|
||||
className="p-3 bg-canvas-50 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 z-50 transition-opacity w-72 max-w-[calc(100vw-1rem)] whitespace-normal break-words"
|
||||
>
|
||||
<p className="text-sm text-gray-800 dark:text-gray-100">
|
||||
{t('profile.bio.too_short_tooltip', "Since your bio is too short, Compass' algorithm filters out your profile from search results (unless \"Include short bios\" is selected). This ensures searches show meaningful profiles.")}
|
||||
{t('profile.bio.too_short_tooltip', "Since your bio is too short, Compass' algorithm filters out your profile from search results (unless \"Include Short Bios\" is selected). This ensures searches show meaningful profiles.")}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -20,6 +20,7 @@ import {DisplayUser} from "common/api/user-types";
|
||||
import {useChoices} from "web/hooks/use-choices";
|
||||
import {useT} from "web/lib/locale";
|
||||
import {isEqual} from "lodash";
|
||||
import {Tooltip} from "web/components/widgets/tooltip";
|
||||
|
||||
function isOrderBy(input: string): input is FilterFields['orderBy'] {
|
||||
return ['last_online_time', 'created_time', 'compatibility_score'].includes(
|
||||
@@ -309,9 +310,16 @@ export const Search = (props: {
|
||||
/>
|
||||
</Row>
|
||||
{(profileCount ?? 0) > 0 && (
|
||||
<Col className="text-sm text-ink-500">
|
||||
<p>{profileCount} {(profileCount ?? 0) > 1 ? t('common.people', 'people') : t('common.person', 'person')}</p>
|
||||
</Col>
|
||||
<Tooltip text={t('search.include_short_bios_tooltip', 'To list all the profiles, tick "Include Short Bios"')}
|
||||
noTap>
|
||||
<Row className="text-sm text-ink-500 gap-2">
|
||||
<p>{profileCount} {(profileCount ?? 0) > 1 ? t('common.people', 'people') : t('common.person', 'person')}</p>
|
||||
{!filters.shortBio && <span
|
||||
className="border rounded-full w-4 h-4 inline-flex items-center justify-center align-middle text-xs">
|
||||
?
|
||||
</span>}
|
||||
</Row>
|
||||
</Tooltip>
|
||||
)}
|
||||
</Row>
|
||||
</Col>
|
||||
|
||||
@@ -263,6 +263,7 @@
|
||||
"home.subtitle": "Finden Sie Menschen, die Ihre Werte, Ideen und Absichten teilen — nicht nur Ihre Fotos.",
|
||||
"home.title": "Schluss mit Swipen.",
|
||||
"home.typewriter": "Suchen.",
|
||||
"search.include_short_bios_tooltip": "Um alle Profile aufzulisten, aktivieren Sie \"Kurze Bios einbeziehen\"",
|
||||
"more_options_user.more_options": "Weitere Optionen",
|
||||
"more_options_user.banning": "Sperre...",
|
||||
"more_options_user.user_banned": "Benutzer gesperrt!",
|
||||
@@ -318,7 +319,7 @@
|
||||
"nav.contact": "Kontakt",
|
||||
"nav.faq": "FAQ",
|
||||
"nav.home": "Startseite",
|
||||
"nav.messages": "Nachrichten",
|
||||
"nav.messages": "Nachr.",
|
||||
"nav.more": "Mehr",
|
||||
"nav.news": "Neuigkeiten",
|
||||
"nav.notifs": "Benachr.",
|
||||
|
||||
@@ -263,6 +263,7 @@
|
||||
"home.subtitle": "Trouvez des personnes qui partagent vos valeurs, idées et intentions — pas seulement vos photos.",
|
||||
"home.title": "Fini les swipes.",
|
||||
"home.typewriter": "Cherche.",
|
||||
"search.include_short_bios_tooltip": "Pour lister tous les profils, cochez \"Inclure les bios courtes\"",
|
||||
"more_options_user.more_options": "Plus d'options",
|
||||
"more_options_user.banning": "Bannissement...",
|
||||
"more_options_user.user_banned": "Utilisateur banni !",
|
||||
@@ -321,7 +322,7 @@
|
||||
"nav.messages": "Messages",
|
||||
"nav.more": "Plus",
|
||||
"nav.news": "Quoi de neuf",
|
||||
"nav.notifs": "Notifications",
|
||||
"nav.notifs": "Notifs",
|
||||
"nav.organization": "Organisation",
|
||||
"nav.people": "Personnes",
|
||||
"nav.profile": "Profil",
|
||||
|
||||
Reference in New Issue
Block a user