feat(users): profile search by username and display name #48

Merged
nrupard merged 1 commit from feat/profile-search into main 2026-05-06 18:01:39 +02:00
Owner

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>
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>
nrupard deleted branch feat/profile-search 2026-05-06 18:01:39 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
psa-systems/lets-chat!48
No description provided.