feat(users): profile search by username and display name #48
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/profile-search"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds GET /users/search?q=... that returns an HTML fragment of matching profiles linking to each user's DM page. The sidebar now exposes a second search input ("Search people...") next to the existing message search; both swap into #main with the same htmx pattern. Search uses a case-insensitive substring match against username and display_name on the auth.db users table, escapes SQL LIKE wildcards in the user input, excludes banned accounts, and caps results at 50. Lays the groundwork for the upcoming profile-privacy work, which will gate visibility on top of this lookup.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Adds GET /users/search?q=... that returns an HTML fragment of matching profiles linking to each user's DM page. The sidebar now exposes a second search input ("Search people...") next to the existing message search; both swap into #main with the same htmx pattern. Search uses a case-insensitive substring match against username and display_name on the auth.db users table, escapes SQL LIKE wildcards in the user input, excludes banned accounts, and caps results at 50. Lays the groundwork for the upcoming profile-privacy work, which will gate visibility on top of this lookup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>