UI: Show "No results found" for empty searches #116201

Merged
Harley Acheson merged 5 commits from Harley/blender:EmptySearch into main 2023-12-20 20:53:57 +01:00
Member

For menu and operator searches, and for File and Asset Browser
filtering, show "No Results Found" when there is nothing to show.


We currently just show empty result lists when nothing matches a search or filter. But this could be confused by users as a result still in progress. This PR just displays "No Results Found" in this case.

For menu and operator searches it looks like this:

image

Here is an empty Asset list:

image

Different (and brighter) text when the filtering gives no results

image

For menu and operator searches, and for File and Asset Browser filtering, show "No Results Found" when there is nothing to show. --- We currently just show empty result lists when nothing matches a search or filter. But this could be confused by users as a result still in progress. This PR just displays "No Results Found" in this case. For menu and operator searches it looks like this: ![image](/attachments/4832077d-9376-4aed-8113-1ab614abc7ae) Here is an empty Asset list: ![image](/attachments/fcb5de61-bf1b-4d23-bf01-d9335d17d693) Different (and brighter) text when the filtering gives no results ![image](/attachments/c45dcef5-e8af-4cb8-82ef-9cd9791a11e3)
Harley Acheson added 1 commit 2023-12-14 18:36:08 +01:00
dc31184592 UI: Show "No results found" for empty searches
For menu and operator searches, and for File and Asset Browser
filtering, show "No Results Found" when there is nothing to show.
Harley Acheson added this to the User Interface project 2023-12-14 18:36:24 +01:00

I think the text should be different depending if anything was searched for, or if there's just nothing there.

I think the text should be different depending if anything was searched for, or if there's just nothing there.
Author
Member

I think the text should be different depending if anything was searched for, or if there's just nothing there.

Yes, me too.

"No results found" for searches or filtering. Or perhaps just "No results". I think I prefer "No results found"

Otherwise could be "Empty", "None", "No Items", "Nothing", "Blank", "No data". Yuck.

> I think the text should be different depending if anything was searched for, or if there's just nothing there. Yes, me too. "No results found" for searches or filtering. Or perhaps just "No results". I think I prefer "No results found" Otherwise could be "Empty", "None", "No Items", "Nothing", "Blank", "No data". Yuck.
Harley Acheson added 1 commit 2023-12-14 20:24:42 +01:00
Harley Acheson changed title from WIP: UI: Show "No results found" for empty searches to UI: Show "No results found" for empty searches 2023-12-15 04:23:16 +01:00
Harley Acheson requested review from Julian Eisel 2023-12-15 04:23:25 +01:00
Harley Acheson added 1 commit 2023-12-20 01:23:52 +01:00
Brecht Van Lommel reviewed 2023-12-20 13:24:43 +01:00
@ -1169,0 +1180,4 @@
}
const char *message = is_filtered ? IFACE_("No results match your search filter") :
IFACE_("No Items");

Nitpicky, but seems inconsistent to capitalize Items.

Nitpicky, but seems inconsistent to capitalize `Items`.
Harley marked this conversation as resolved
Harley Acheson added 2 commits 2023-12-20 17:14:10 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
5ea22edbf0
Changes to status text
Brecht Van Lommel approved these changes 2023-12-20 17:28:38 +01:00
Author
Member

@blender-bot build

@blender-bot build
Harley Acheson merged commit 13208038da into main 2023-12-20 20:53:57 +01:00
Harley Acheson deleted branch EmptySearch 2023-12-20 20:53:59 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#116201
No description provided.