BUG: language used to describe email entities and email addresses is ambiguous
Rosencrantz opened this issue · comments
Describe the bug
On the dataset homepage there is some confusion between email addresses found and emails indexed. Both use the same text 'emails' but it should be made clear that one is the number of email entities whereas the other is the number of unique email addressed found in the data.
Screenshots
If applicable, add screenshots to help explain your problem.
![Screenshot 2024-04-02 at 5 02 59 pm](https://private-user-images.githubusercontent.com/340405/318839105-cb10eebc-0222-4c92-b7ac-8be5fc547e1f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyMTUzMTEsIm5iZiI6MTcyMjIxNTAxMSwicGF0aCI6Ii8zNDA0MDUvMzE4ODM5MTA1LWNiMTBlZWJjLTAyMjItNGM5Mi1iN2FjLThiZTVmYzU0N2UxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOVQwMTAzMzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zOGE4MGQzMzMzMTcwNDFmZGQxNDJlYWQzZDkzNDAyNGRiZjIzNTEyM2Y5OTcyMjFkYzcyNGY5YWEwYzg0YTMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mapbQdYnxHnqCj-VIe7TgJecMC_287Vo8eIdEfSK49I)
For future reference:
I think this is the file that we’d need to update: https://github.com/alephdata/aleph/blob/develop/ui/src/components/SearchField/util.js#L38
This will likely also update the title of the emails search facets, but that’s not a problem. Search facets also filter for email addresses (not emails), although arguably the UI is less ambiguous there.