Skip to content

giao dien chao mung - #6

Merged
Hieukobtcode merged 1 commit into
mainfrom
chat
Aug 7, 2026
Merged

giao dien chao mung#6
Hieukobtcode merged 1 commit into
mainfrom
chat

Conversation

@Hieukobtcode

@Hieukobtcode Hieukobtcode commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added a Vietnamese welcome screen for chats with guidance and visual styling.
    • Added chat loading placeholders and a structured chat window layout.
    • Added paginated message loading for conversations.
    • Selecting a conversation now loads messages when needed.
  • Bug Fixes

    • Improved loading spinner sizing and dark-mode visibility.
    • Separated conversation and message loading states for more accurate feedback.
  • Style

    • Updated the API documentation title to “Chatify.”

@Hieukobtcode
Hieukobtcode merged commit 5c16e1e into main Aug 7, 2026
1 check was pending
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0283f260-fda5-41d0-b06c-c80132a0f6e7

📥 Commits

Reviewing files that changed from the base of the PR and between df1d1cc and c427fc0.

📒 Files selected for processing (14)
  • backend/src/swagger.json
  • frontend/src/components/auth/ProtectedRoute.tsx
  • frontend/src/components/chat/layout/ChatWelcomeScreeen.tsx
  • frontend/src/components/chat/layout/ChatWindowLayout.tsx
  • frontend/src/components/chat/layout/ChatWindowSkeleton.tsx
  • frontend/src/components/chat/layout/component/ChatWindowBody.tsx
  • frontend/src/components/chat/layout/component/ChatWindowHeader.tsx
  • frontend/src/components/chat/layout/component/MessageInput.tsx
  • frontend/src/components/chat/sidebar/DirectMessageCard.tsx
  • frontend/src/components/chat/sidebar/GropuMessageCard.tsx
  • frontend/src/pages/ChatAppPage.tsx
  • frontend/src/services/chatService.ts
  • frontend/src/stores/useChatStore.tsx
  • frontend/src/types/store.ts

📝 Walkthrough

Walkthrough

The PR updates the OpenAPI title, refines protected-route loading styles, adds chat window states and placeholder components, and implements cursor-based message fetching through the chat store and service.

Changes

Chat message flow

Layer / File(s) Summary
Paginated message fetching
frontend/src/services/chatService.ts, frontend/src/stores/useChatStore.tsx, frontend/src/types/store.ts
The chat service and store now support 50-message cursor pagination, ownership mapping, prepended messages, and separate conversation and message loading flags.
Conversation selection wiring
frontend/src/components/chat/sidebar/*, frontend/src/pages/ChatAppPage.tsx
Conversation cards fetch uncached messages. The sidebar and chat layout now render as siblings within SidebarProvider.
Chat window states and composition
frontend/src/components/chat/layout/*
The chat window renders welcome, loading, and active conversation states with header, body, input, and skeleton components.

Authentication loading UI

Layer / File(s) Summary
Protected-route loader styling
frontend/src/components/auth/ProtectedRoute.tsx
The loader uses direct fixed-size styling with dark-mode text color and no unused cn import.

API branding

Layer / File(s) Summary
OpenAPI title
backend/src/swagger.json
The OpenAPI title changes from Moji to Chatify.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant DirectMessageCard
  participant useChatStore
  participant chatService
  DirectMessageCard->>useChatStore: select conversation and call fetchMessage
  useChatStore->>chatService: request messages with limit and cursor
  chatService-->>useChatStore: return messages and next cursor
  useChatStore-->>DirectMessageCard: update conversation messages
Loading

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chat

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant