Repository navigation
Commit ee9df07
fix(ui): prefer human-readable server title in registry cards (#1573)
## Summary
- prefer the optional `server.title` as the primary heading in Registry
cards
- keep `server.name` visible as a smaller secondary identity when the
values differ
- preserve the existing `server.name` heading when `title` is absent or
identical
- apply the same compact layout to normal results and Recently Updated
cards
## Why
The Registry schema defines `title` as a human-readable display name,
but collapsed cards currently headline only the reverse-DNS `name`. That
makes browsing harder for users who do not recognize programmatic MCP
identifiers.
Generic example:
```text
Before
io.example/weather-server
After
Weather Planner
io.example/weather-server
```
The technical identity remains visible for namespace verification. All
user-provided values continue to pass through the existing
`escapeHtml(...)` helper, and long values use the existing Tailwind
wrapping utilities.
## Scope
This is presentation-only and backward-compatible. It does not change
schemas, API responses, search behavior, publishing, authentication, or
protocol behavior.
The API `search` parameter currently matches only `server_name`; title
and description search are not included here. Icon rendering is also
intentionally out of scope and is already tracked by #784.
## Testing
- `git diff --check`
- real-browser Playwright smoke coverage with controlled fixtures:
- title different from name
- no title
- title equal to name, without duplicate identity text
- very long title and technical name, with no card overflow
- Recently Updated card
- normal result cards
- expanded details still open and display the title
Local `make check` was unavailable because this Windows environment does
not have Go, Make, Docker, or a WSL distribution installed. The upstream
PR CI is configured to run lint, schema validation, build, vulnerability
scanning, and all tests.
Co-authored-by: Taher <[email protected]>1 parent 6f44157 commit ee9df07
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
324 | 328 | | |
325 | 329 | | |
326 | 330 | | |
| |||
336 | 340 | | |
337 | 341 | | |
338 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
339 | 353 | | |
340 | 354 | | |
341 | 355 | | |
| |||
397 | 411 | | |
398 | 412 | | |
399 | 413 | | |
| 414 | + | |
400 | 415 | | |
401 | 416 | | |
402 | 417 | | |
| |||
407 | 422 | | |
408 | 423 | | |
409 | 424 | | |
410 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
411 | 429 | | |
412 | 430 | | |
413 | 431 | | |
| |||
0 commit comments