Library: recents and favourites show the item's name; card text stays inside the card #167

Manually merged
github merged 1 commit from gh-pr/167/head into gh-pr/167/base 2026-11-26 20:14:49 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 15:07 UTC · original
holdmysocks:claude/library-recent-names → master · +99 −43 · 3 files · 1 commits · merged 2026-11-24 15:31 UTC

Problem

In the library's "Recently opened" row some cards showed a raw query such as Data.rpf@12fd1010#finish=963ad5a5:9b638b47,… instead of the item's name, and long titles and subtitles ran over the next card.

Cause

  • A recents entry is the query a model was opened with. After a finish (or a look) is chosen, that query carries #finish=… (or #look=…) after the entry id. The library looked the whole string up as an entry id, found nothing, and showed it raw (with its first letter capitalised).
  • Card text was drawn without a width limit.

Fix

  • The entry id is taken from the query before the lookup, for the library's recents and favourites rows, the item page (item, parts, thumbnail and breadcrumb), the model picker's "Recent" list and the search palette. A choice on top shows as a word in brackets: "Pi duke 01 (finish)".
  • Reopening such a card from its item page still opens the model with the finish.
  • An entry that is not in the index keeps its id as the title, with "not in the index" below it.
  • Card titles and subtitles, and the grid tiles' two text lines, are cut to the card width with an ellipsis; the full text shows on hover.

Checked

  • Screenshot of the library page (Windows, Radeon) with the reported recents list: the three pistol entries with finishes read "Pi duke 01 (finish)", the outfit item's long name ends in an ellipsis inside its card, the favourites row uses the same path.
  • New unit test for the query split and the label. cargo test -p sixng-gui: passes.

Not changed

  • Recents entries that point at an entry id that is not in the index (one came from a mistyped id in a test run) stay in the list, now shown as such, with no thumbnail.
  • Two recents entries for the same model with different finishes look the same in the row; only the hover text and the thumbnail (none per finish) could tell them apart.
  • Not checked on macOS or Linux.
**@⁠holdmysocks** on GitHub · 2026-11-24 15:07 UTC · [original](https://github.com/holdmysocks/SixNG/pull/167) `holdmysocks:claude/library-recent-names` → `master` · +99 −43 · 3 files · 1 commits · merged 2026-11-24 15:31 UTC ## Problem In the library's "Recently opened" row some cards showed a raw query such as `Data.rpf@12fd1010#finish=963ad5a5:9b638b47,…` instead of the item's name, and long titles and subtitles ran over the next card. ## Cause - A recents entry is the query a model was opened with. After a finish (or a look) is chosen, that query carries `#finish=…` (or `#look=…`) after the entry id. The library looked the whole string up as an entry id, found nothing, and showed it raw (with its first letter capitalised). - Card text was drawn without a width limit. ## Fix - The entry id is taken from the query before the lookup, for the library's recents and favourites rows, the item page (item, parts, thumbnail and breadcrumb), the model picker's "Recent" list and the search palette. A choice on top shows as a word in brackets: "Pi duke 01 (finish)". - Reopening such a card from its item page still opens the model with the finish. - An entry that is not in the index keeps its id as the title, with "not in the index" below it. - Card titles and subtitles, and the grid tiles' two text lines, are cut to the card width with an ellipsis; the full text shows on hover. ## Checked - Screenshot of the library page (Windows, Radeon) with the reported recents list: the three pistol entries with finishes read "Pi duke 01 (finish)", the outfit item's long name ends in an ellipsis inside its card, the favourites row uses the same path. - New unit test for the query split and the label. `cargo test -p sixng-gui`: passes. ## Not changed - Recents entries that point at an entry id that is not in the index (one came from a mistyped id in a test run) stay in the list, now shown as such, with no thumbnail. - Two recents entries for the same model with different finishes look the same in the row; only the hover text and the thumbnail (none per finish) could tell them apart. - Not checked on macOS or Linux.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:14:49 +00:00
github manually merged commit 0df73a6888 into gh-pr/167/base 2026-11-26 20:14:49 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.