feat(chat): chatSessionStore 구현 및 mapStore 채팅 로직 이관 - #89
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughChat sessions now live in a dedicated Pinia store with persisted restore, request-ordered message sending, and session title updates. Chatbot reads from that store, mapStore no longer owns chat state or actions, and app startup restores saved sessions. ChangesChat session migration
Sequence Diagram(s)Startup session restoresequenceDiagram
participant MainJS as "frontend/src/main.js"
participant ChatSessionStore as "useChatSessionStore()"
participant LocalStorage as "localStorage"
MainJS->>ChatSessionStore: restoreSessions()
ChatSessionStore->>LocalStorage: load STORAGE_KEY
LocalStorage-->>ChatSessionStore: persisted sessions
ChatSessionStore-->>MainJS: sessions and currentSessionId
Chat send flowsequenceDiagram
participant ChatbotVue as "Chatbot.vue"
participant MapStore as "useMapStore()"
participant ChatSessionStore as "useChatSessionStore()"
participant SendChatMessage as "sendChatMessage"
ChatbotVue->>MapStore: read selectedPropertyId
ChatbotVue->>ChatSessionStore: sendChat(message, selectedPropertyId)
ChatSessionStore->>SendChatMessage: request chat response
SendChatMessage-->>ChatSessionStore: response or error
ChatSessionStore-->>ChatbotVue: updated chatMessages and isChatLoading
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chatSessionStore.js신규 생성 — 다중 세션 관리, localStorage 영속화mapStore.js에서 채팅 관련 state/action 제거 (chatSessionStore로 이관)Chatbot.vue스크립트를 chatSessionStore 기반으로 교체main.js에서 앱 시작 시restoreSessions()호출Test plan
/chat진입 시 빌드 에러 없이 기존 챗봇 UI 정상 동작 확인🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes