Skip to content

feat: add messages tab#128

Merged
grillinr merged 9 commits intomainfrom
add-comments
Mar 7, 2026
Merged

feat: add messages tab#128
grillinr merged 9 commits intomainfrom
add-comments

Conversation

@grillinr
Copy link
Collaborator

@grillinr grillinr commented Mar 1, 2026

closes #78

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated “Messages” tab and conversation UI to improve discoverability/usability of direct messages (Issue #78), plus supporting backend APIs for user search/autocomplete and richer thread metadata.

Changes:

  • Adds a new Messages tab screen with thread list + “new conversation” modal (username autocomplete).
  • Adds a new conversation screen with message bubbles, a multi-line composer, and WebSocket-driven real-time updates.
  • Adds backend /users/search endpoint and extends DM thread payloads with peer_picture.

Reviewed changes

Copilot reviewed 14 out of 16 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
frontend/services/api.ts Extends ApiDirectMessageThread with peer_picture; adds searchUsers() API helper.
frontend/package-lock.json Lockfile updates from dependency install/metadata changes.
frontend/index.js Adds Expo Router entry point.
frontend/components/Post.tsx Removes unused import.
frontend/components/MessageThreadItem.tsx New thread list item UI (avatar/initials, unread badge) + navigation into conversation.
frontend/components/MessageComposer.tsx New multi-line message input with send button + loading state.
frontend/components/MessageBubble.tsx New chat bubble UI with timestamp + pending/error state.
frontend/app/conversation/[username].tsx New conversation screen: loads history, optimistic send, WebSocket receive.
frontend/app/(tabs)/message.tsx New “Messages” tab screen: threads list, refresh, new chat modal with autocomplete.
frontend/app/(tabs)/_layout.tsx Registers the new message tab.
backend/api/main.go Registers /users/search route.
backend/api/internal/handlers/user_routes.go Adds SearchUsers handler.
backend/api/internal/database/user_queries.go Adds DB query for username-prefix search.
backend/api/internal/database/direct_message_queries.go Adds peer_picture to DM thread query/struct.
backend/devbits.db Updated database artifact included in PR.
AGENTS.md Adds repository guidelines (build/test/lint, conventions).
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Mar 1, 2026

@grillinr I've opened a new pull request, #130, to work on those changes. Once the pull request is ready, I'll request review from you.

grillinr and others added 4 commits March 1, 2026 17:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
)

* Initial plan

* fix: use API_BASE_URL for WebSocket URL in conversation screen

Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>

* fix: merge reconnection logic from base branch while keeping API_BASE_URL approach

Co-authored-by: elifouts <116454864+elifouts@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>
Co-authored-by: elifouts <116454864+elifouts@users.noreply.github.com>
Co-authored-by: Eli Fouts <eligfouts@gmail.com>
- Added authorLabel prop to MessageBubble for displaying message authors.
- Improved styling in MessageBubble for better visual consistency.
- Updated MessageComposer to include layout animations for dynamic height adjustments.
- Refactored input handling in MessageComposer to optimize performance.
- Removed unused terminal animation code from MyHeader component.
- Added terminal icon mapping in IconSymbol for better icon management.
elifouts
elifouts previously approved these changes Mar 5, 2026
Copy link
Collaborator

@elifouts elifouts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked?!

@elifouts
Copy link
Collaborator

elifouts commented Mar 5, 2026

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Contributor

Copilot AI commented Mar 5, 2026

@elifouts I've opened a new pull request, #133, to work on those changes. Once the pull request is ready, I'll request review from you.

@grillinr
Copy link
Collaborator Author

grillinr commented Mar 6, 2026

@elifouts can you test this in the backend?

@grillinr
Copy link
Collaborator Author

grillinr commented Mar 6, 2026

@copilot address the failing tests on this or

Copy link
Contributor

Copilot AI commented Mar 6, 2026

@grillinr I've opened a new pull request, #136, to work on those changes. Once the pull request is ready, I'll request review from you.

… expectations (#136)

* Initial plan

* fix: exclude deleted_user sentinel from search results and update test expectations

Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grillinr <169214325+grillinr@users.noreply.github.com>
@grillinr
Copy link
Collaborator Author

grillinr commented Mar 6, 2026

Waiting on review from either @DerekCorniello or @elifouts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 24 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DerekCorniello
Copy link
Collaborator

once copilot changes are committed this lgtm and i trust between the two of you and copilot this is fine.

DerekCorniello
DerekCorniello previously approved these changes Mar 6, 2026
Copy link
Collaborator

@DerekCorniello DerekCorniello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see previous comment

@elifouts
Copy link
Collaborator

elifouts commented Mar 6, 2026

cant really check pr till i get environment set up but will get to this

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@grillinr grillinr merged commit a9da563 into main Mar 7, 2026
3 checks passed
@grillinr grillinr deleted the add-comments branch March 7, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Design] - Message Box / Message Screen

5 participants