project_search: Fix project search status text and refactor search state (#54753)

This change fixes a small bug where we were showing "Loading project..."
even when in fact we had already started the search.

It also refactors three booleans in the `SearchState` enum, so that it's
harder to make similar mistakes in the future.


Release Notes:

- N/A
250e697ff7Oleksiy Syvokon committed on 4/24/2026, 10:45:16 AM· committed by GitHubparent93e9bef
8 files changedLine totals unavailable