We need to explore how long `Collection` names can be displayed well in different views; based on the example below of [[ https://meta.wikimedia.org/wiki/Wikiproject_Women%27s_Health/Vital_articles | Wikiproject Women's Health/Vital articles.
]]
a) Suggestions view
{F57744922}
b) Adjust the Suggestions view
{F57744921}
====UX improvements for collection label formatting
**Scenario 1: Simple collection labels **
|{F57755591, size=full}|
Examples:
- Vital articles
- Art+Feminism
- WikiProject Women's Health
**Rule:**
- Truncate when exceeds container width
Example: "WikiProject Women's Health" → "WikiProject Wom..."
**Scenario 2: Collection labels with path**
|{F57755641, size=full}|
Examples:
- WikiProject Women's Health/Vital Articles
- Art+Feminism/2024 Campaign
- CEE Spring 2024/Structure/Russian Federation
Progressive truncation suggestion:
- Split at last "/"
- When exceeds container width:
- Left part gets ellipsis: "CEE Spring.../Russian Federation"
- In space-constrained UIs (like suggestions view): Ultra-short version → "Wiki.../Russian..."
**Derived Requirement**
Ensure that collection names are displayed appropriately across different views. Collection names should be truncated when they exceed the container width, following these rules:
1. For simple collection labels (e.g., "Vital articles"), truncate at the container width (e.g., "WikiProject Women's Health" → "WikiProject Wom...").
2. For collection labels with paths (e.g., "WikiProject Women's Health/Vital Articles"), split at the last "/" and apply progressive truncation. In space-constrained UIs, ultra-short versions should be displayed (e.g., "Wiki.../Russian...").
====Test Steps
__Test Case 1: Ensure Proper Truncation of Collection Labels in Different Views__
1. Navigate to the Suggestions view and identify collection labels.
2. Verify that simple collection labels are truncated when they exceed the container width (e.g., "WikiProject Women's Health" → "WikiProject Wom...").
3. Check collection labels with paths and ensure truncation follows the progressive approach. For example, "CEE Spring 2024/Structure/Russian Federation" should appear as "CEE Spring.../Russian Federation."
4. In space-constrained areas, confirm that ultra-short versions are displayed (e.g., "Wiki.../Russian...").
5. ✅❓❌⬜ **AC1:** Confirm that collection names are truncated or split according to the specified rules based on container width and view type.
== QA Results - Test Wiki
| **AC** | **Status** | **Details** |
| ----- | ----- | ----- |
| 1 | ✅ |T380702#10542207
| 2 | ✅ |T380702#10619930