Skip to content

Conversation

@uxdesignerhector
Copy link
Contributor

If trying to identify an item and search doesn't return results, show the message

No results found. Try different parameters.

jellyfin-warning-mesagge-if-results-not-found

Issues
Fixes #7365

@uxdesignerhector uxdesignerhector requested a review from a team as a code owner December 12, 2025 21:16
@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Dec 12, 2025

Cloudflare Pages deployment

Latest commit 1dce71e
Status ✅ Deployed!
Preview URL https://b939e4d9.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

showIdentificationSearchResults(page, results);
if (results.length > 0) {
//Ensure we have results
loading.hide();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move loading.hide() to where it was.

showIdentificationSearchResults(page, results);
} else {
// Show not found message
loading.hide();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.

<div class="identifyProviderIds"></div>

<div>
<p style="display:flex; align-items:center" id="identifyNotFoundMessage" class="hide"><span class="material-icons warning" aria-hidden="true" style="margin-right:5px"></span>${IdentifyResultNotFound}</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract the inline style as #identifyNotFoundMessage (or add a new class for messages). I think we should create a new file (itemidentifier.scss) for this.

"LabelExtractTrickplayDuringLibraryScanHelp": "Generate trickplay images when videos are imported during the library scan. Otherwise, they will be extracted during the trickplay images scheduled task. If generation is set to non-blocking this will not affect the time a library scan takes to complete.",
"LogLoadFailure": "Failed to load the log file. It may still be actively written to."
"LogLoadFailure": "Failed to load the log file. It may still be actively written to.",
"IdentifyResultNotFound": "No results found. Try different parameters."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend adding new values in alphabetical order. In this case, there will be less chance of conflicts. Don't look that the file is currently unordered (at the end), just move the line up (starting from the beginning).

Also, maybe add a Message prefix to the string identifier?

… order.

Create a new .scss file for itemidentifier and extract inline clases.
Change id from identifyResultNotFound to messageIdentifyResultNotFound.
Move .hide() where it was before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] When no search results are found in "Identify", the page is blank

3 participants