Skip to content

feat: tutorial 추가 외 1건#199

Merged
surfwithus merged 2 commits intomainfrom
feat/tutorial
Aug 27, 2025
Merged

feat: tutorial 추가 외 1건#199
surfwithus merged 2 commits intomainfrom
feat/tutorial

Conversation

@surfwithus
Copy link
Collaborator

@surfwithus surfwithus commented Aug 27, 2025

Important

Adds a tutorial screen to LoginReadyScreen and ReadyScreen, implemented in tutorial_screen.dart, with image assets listed in pubspec.yaml.

  • Behavior:
    • Adds tutorial screen display in LoginReadyScreen and ReadyScreen before navigating to BottomNavScreen.
    • Tutorial screen shows 10 images from assets/images/tutorial/.
  • New Feature:
    • Implements TutorialScreen in tutorial_screen.dart with page navigation and skip functionality.
    • Uses SharedPreferences to track if the tutorial has been seen.
  • Assets:
    • Adds assets/images/tutorial/ to pubspec.yaml.

This description was created by Ellipsis for 87cc522. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • 신기능
    • 로그인/회원가입 완료 후 전체 화면 튜토리얼을 표시합니다.
    • 여러 장의 안내 이미지를 좌우 스와이프로 확인할 수 있으며, 확대/이동이 가능합니다.
    • 상단 우측에서 건너뛰기, 하단 점 표시로 현재 페이지 확인, 하단 버튼으로 다음/시작하기 진행을 지원합니다.
    • 진행 완료 시 메인 화면으로 이동합니다.
    • 앱에 튜토리얼 이미지 리소스가 추가되었습니다.

@coderabbitai
Copy link

coderabbitai bot commented Aug 27, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

로그인/회원가입 준비 화면의 내비게이션 흐름에 튜토리얼 화면을 삽입했습니다. 새 TutorialScreen 위젯을 추가하고, 로그인/회원가입 완료 시 해당 화면을 풀스크린 다이얼로그로 표시한 뒤 메인(BottomNavScreen)으로 이동합니다. 튜토리얼용 이미지 에셋 경로가 pubspec.yaml에 등록되었습니다.

Changes

Cohort / File(s) Summary
Ready screens flow update
frontend/ongi/lib/screens/login/login_ready_screen.dart, frontend/ongi/lib/screens/signup/ready_screen.dart
로그인/회원가입 완료 후 즉시 메인으로 가던 흐름을 변경하여 TutorialScreenawait로 표시한 뒤 pushAndRemoveUntilBottomNavScreen으로 이동. 타이머 콜백을 async로 변경, mounted/context.mounted 가드 추가.
New tutorial feature
frontend/ongi/lib/screens/tutorial_screen.dart
새로운 공개 위젯 TutorialScreen 추가. imageAssets 리스트를 받아 PageView로 이미지 튜토리얼 표시, 스킵/다음/시작하기 UI, 점 인디케이터, 이미지 프리로딩, SharedPreferences로 노출 여부 플래그 저장. showIfNeeded 정적 메서드 제공.
Assets configuration
frontend/ongi/pubspec.yaml
튜토리얼 이미지 에셋 디렉터리 assets/images/tutorial/ 등록.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant ReadyScreen as Login/Signup ReadyScreen
  participant Tutorial as TutorialScreen
  participant SP as SharedPreferences
  participant Main as BottomNavScreen

  User->>ReadyScreen: 완료(로그인/회원가입)
  Note right of ReadyScreen: async 내비게이션 흐름
  ReadyScreen->>Tutorial: showIfNeeded(imageAssets)
  Tutorial->>SP: 체크: 튜토리얼 노출 여부 키(_TutorialFlagKey)
  alt 최초 노출 아님
    SP-->>Tutorial: seen = true
    Tutorial-->>ReadyScreen: false (표시 안 함)
  else 최초 노출
    SP-->>Tutorial: seen = false
    Tutorial-->>ReadyScreen: push fullscreenDialog
    rect rgba(200, 230, 255, 0.3)
      Tutorial->>Tutorial: PageView 표시, 프리로딩, 스킵/다음/시작하기
    end
    Tutorial->>SP: seen = true 저장
    Tutorial-->>ReadyScreen: true (표시 완료)
  end
  ReadyScreen->>Main: pushAndRemoveUntil (스택 정리)
Loading
sequenceDiagram
  participant Widget as ReadyScreen State
  Note right of Widget: mounted 체크
  Widget->>Widget: if (!mounted) return
  Widget->>Widget: await Navigator.push(...TutorialScreen)
  Widget->>Widget: if (!mounted) return
  Widget->>Navigator: pushAndRemoveUntil(BottomNavScreen)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

새벽 코드에 점프하는 토깽이 🐇
페이지 넘기며 별빛을 모으네
스킵이냐 다음이냐, 귀가 살짝 떨리고—
마지막엔 시작하기! 툭, 문이 열리면
튜토리얼 뒤엔 메인으로 폴짝! 🌙✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c032e7e and 87cc522.

⛔ Files ignored due to path filters (10)
  • frontend/ongi/assets/images/tutorial/tutorial1.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial10.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial2.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial3.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial4.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial5.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial6.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial7.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial8.png is excluded by !**/*.png
  • frontend/ongi/assets/images/tutorial/tutorial9.png is excluded by !**/*.png
📒 Files selected for processing (4)
  • frontend/ongi/lib/screens/login/login_ready_screen.dart (2 hunks)
  • frontend/ongi/lib/screens/signup/ready_screen.dart (2 hunks)
  • frontend/ongi/lib/screens/tutorial_screen.dart (1 hunks)
  • frontend/ongi/pubspec.yaml (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/tutorial

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
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

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

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@surfwithus surfwithus merged commit 8bde461 into main Aug 27, 2025
2 of 4 checks passed
@surfwithus surfwithus deleted the feat/tutorial branch August 27, 2025 18:43
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 87cc522 in 53 seconds. Click for details.
  • Reviewed 283 lines of code in 4 files
  • Skipped 10 files when reviewing.
  • Skipped posting 6 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/ongi/lib/screens/login/login_ready_screen.dart:23
  • Draft comment:
    Timer async callback: Using an async callback with Timer works, but consider using Future.delayed for improved clarity in asynchronous delays.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. frontend/ongi/lib/screens/signup/ready_screen.dart:50
  • Draft comment:
    Navigation logic duplication: Both login and signup screens use nearly identical logic to show the tutorial. Consider refactoring this code into a common method if the behavior is intended to be consistent.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. frontend/ongi/lib/screens/tutorial_screen.dart:45
  • Draft comment:
    Image preloading: The loop preloading images runs sequentially. Consider using Future.wait to load images concurrently for improved performance.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
4. frontend/ongi/lib/screens/tutorial_screen.dart:85
  • Draft comment:
    Skip button rendering: Using 'isLast ? null : Icons.skip_next_rounded' results in a null icon on the last page. Consider conditionally rendering the entire skip widget for clarity and accessibility.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
5. frontend/ongi/lib/screens/tutorial_screen.dart:14
  • Draft comment:
    Unused static method: The static method showIfNeeded (and the associated Tutorial flag) isn’t used in the current flow. If the tutorial is meant to be shown every time (as the comments indicate), consider removing or repurposing this method to avoid confusion.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
6. frontend/ongi/pubspec.yaml:76
  • Draft comment:
    Asset configuration: The tutorial asset folder is added. Ensure that the 'assets/images/tutorial/' folder exists and contains the expected images to avoid runtime asset loading issues.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_ftc2NTlTJaWXcP6V

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@coderabbitai coderabbitai bot mentioned this pull request Aug 28, 2025
Neibce pushed a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 28, 2025
* feat: tutorial 추가

* fix: 버튼 비활성화 해결
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