Skip to content

refactor: token storage 이름 변경#43

Merged
Neibce merged 1 commit intomainfrom
fe/refactor/prefs-manager
Jul 19, 2025
Merged

refactor: token storage 이름 변경#43
Neibce merged 1 commit intomainfrom
fe/refactor/prefs-manager

Conversation

@Neibce
Copy link
Owner

@Neibce Neibce commented Jul 19, 2025

Summary by CodeRabbit

  • 신규 기능

    • 사용자 이름을 저장하고 불러오는 기능이 추가되었습니다.
  • 리팩터링

    • 토큰 및 사용자 정보 저장 유틸리티가 개선되어, 기존의 TokenStorage가 PrefsManager로 변경되었습니다.
    • 토큰 및 사용자 정보 저장/조회 방식이 일관되게 PrefsManager를 사용하도록 통일되었습니다.

@Neibce Neibce merged commit 4b0c39c into main Jul 19, 2025
2 of 4 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Jul 19, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

토큰 저장 및 관리 유틸리티가 기존의 TokenStorage에서 PrefsManager로 대체되었습니다. 이에 따라 서비스 전반에서 토큰 관련 메서드 호출 및 import가 변경되었습니다. 또한 PrefsManager에는 사용자 이름을 저장하고 불러오는 기능이 추가되었습니다.

Changes

파일(들) 변경 요약
.../lib/services/code_service.dart
.../lib/services/family_join_service.dart
.../lib/services/user_service.dart
토큰 유틸리티 import를 TokenStorage에서 PrefsManager로 변경, 관련 메서드 호출도 일치시킴
.../lib/services/login_service.dart 토큰 저장 시 PrefsManager 사용으로 변경, 로그인 시 사용자 이름도 저장하도록 추가
.../lib/utils/prefs_manager.dart 클래스명 TokenStoragePrefsManager로 변경, 사용자 이름 저장/조회 메서드 추가

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant LoginService
    participant PrefsManager

    User->>LoginService: 로그인 요청
    LoginService->>LoginService: 로그인 처리 및 응답 파싱
    LoginService->>PrefsManager: saveAccessToken(token)
    LoginService->>PrefsManager: saveUserName(name)
    PrefsManager-->>LoginService: 저장 완료
    LoginService-->>User: 로그인 결과 반환
Loading

Poem

🐰
새로운 이름, 새로운 길,
PrefsManager가 토큰을 지킬!
이름도 저장, 마음도 든든,
로그인할 때마다 기분이 훈훈.
깡총깡총 뛰며 코드를 다듬네,
오늘도 안정, 내일도 만점!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e683f74 and df51274.

📒 Files selected for processing (5)
  • frontend/ongi/lib/services/code_service.dart (1 hunks)
  • frontend/ongi/lib/services/family_join_service.dart (1 hunks)
  • frontend/ongi/lib/services/login_service.dart (2 hunks)
  • frontend/ongi/lib/services/user_service.dart (1 hunks)
  • frontend/ongi/lib/utils/prefs_manager.dart (2 hunks)

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Neibce Neibce deleted the fe/refactor/prefs-manager branch July 19, 2025 16:24
Neibce added a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 25, 2025
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