Add username search and improve chat creation UX
All checks were successful
CI / test (push) Successful in 23s

Backend user search:

- Added users search endpoint for @username lookup.

- Implemented repository/service/router support with bounded result limits.

Web chat creation:

- Added API client for /users/search.

- Added NewChatPanel for creating private chats via @username search.

- Added group/channel creation flow from sidebar.

UX refinement:

- Hide message composer when no chat is selected.

- Show explicit placeholder: 'Выберите чат, чтобы начать переписку'.

- Added tsbuildinfo ignore rule.
This commit is contained in:
2026-03-07 22:34:53 +03:00
parent ab65a8b768
commit 9ef9366aca
11 changed files with 225 additions and 8 deletions

View File

@@ -33,3 +33,9 @@ export interface TokenPair {
refresh_token: string;
token_type: string;
}
export interface UserSearchItem {
id: number;
username: string;
avatar_url: string | null;
}