stashapp/stash

[Feature] Add "disambiguating" select values to scene, gallery, and movie select dropdowns

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe.
Nothing precludes duplicate titles for scene, gallery, or movie objects. Therefore, dropdown select values of each may contain duplicate string values that are impossible to differentiate from one another.

Example of official duplicate gallery titles from ATK
image

This is more prevalent among particular studios that heavily recycle titles, but regardless, given enough content, just as with performer names, duplicates emerge.

Describe the solution you'd like
Display complimentary metadata to disambiguate each select title value in the drop down.

  • Date
  • Studio code
  • Cover image, just as implemented in #4227

A tiny thumbnail of a cover image may seem irrelevant due to its size, but consider small distinctions in colors and shapes would be enough to disambiguate it from other cover images all other values being equal.

image

Styling should consider the following:

  • Keep height of select consistent with the performer select (#4227)
  • Title select value should take precedence (ie. white color)
  • Complimentary select values are secondary, and can be conveniently presented below title value with a muted color

For example, something like:

.select-options {

     /* Set default styling for all span elements */
     span {
          color: white;
          display: block;
     }

     span.select-option-title {
     }

     /* Mute text of complimentary metadata span elements */
     span.select-option-date,
     span.select-option-studio_code {
          opacity: 0.7;
     }

}

Additional context
I should have included this broad request in my initial request #3076 (to add performer images to the performer select) implemented here #4227, since it falls under the same conceptual umbrella.

Side note: if studio objects ever have the ability to either use non-unique names or can have favicons, this concept should be applied to them as well since duplicate studio names do exist (outside of Stash).

<select-options>
  <div class="primary line">
        <img>$favicon</img> <span>$studio_name</span>
  </div>
  <div class="secondary line">
        <span>$parent_studios</span>
  </div>
</select-options>

Nothing precludes duplicate titles for scene, gallery, or movie objects.

Correct for scenes and galleries, but that's not true for movies... I get a "Unique constraint failed" SQL error when attempting to create a Movie with the same title as an existing one.

Correct for scenes and galleries, but that's not true for movies... I get a "Unique constraint failed" SQL error when attempting to create a Movie with the same title as an existing one.

Thanks for correcting this inaccuracy. I assumed it would allow unique movie titles too, given the volume of duplicate movie titles that exist out there. I suspect this might be addressed when/if movie objects get their eventual refactor.