Skip to content

Conversation

@oriNuguri25
Copy link
Collaborator

@oriNuguri25 oriNuguri25 commented Sep 2, 2025

작업 내용

문제점 및 어려움

해결 방안

공유 사항

Summary by CodeRabbit

  • New Features

    • Introduced user onboarding: phone number entry, animated terms consent modal, detailed terms views, and success screen.
    • Added reusable UI components: AnimatedModal, Checkbox, PhoneNumberInput, Terms modal/items/content, and ViewModal.
    • Added routes: /onboarding and /onboarding/success.
    • Admin: menu editing now supports image upload.
  • Refactor

    • Admin menu list separates edit and view modes with drag handle in edit and swipe-to-delete in view.
    • Price input shows raw value on focus and formatted currency when blurred.
  • Style

    • Added 13px terms typography utility classes.

@coderabbitai
Copy link

coderabbitai bot commented Sep 2, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Introduces onboarding flow and terms UI in nowait-user with new components, modals, and routes. Updates AdminBooth MenuSection to use a local drag lock, refactors edit/view row rendering, and adds optional image upload in menu edits. Adjusts price input display behavior in admin modal. Adds new Tailwind utility classes.

Changes

Cohort / File(s) Summary
AdminBooth menu editing and DnD
apps/nowait-admin/src/pages/AdminBooth/components/MenuSection.tsx, apps/nowait-admin/src/pages/AdminBooth/components/Modal/menuModal.tsx
MenuSection: replace hook with local lockVertical; add optional image upload in handleEditMenu; separate edit vs view rendering (drag handle vs SwipeableRow); minor sort cleanup; remove unused import. menuModal: improve PriceInput to show raw on focus and formatted with “ 원” when blurred.
User login UI components
apps/nowait-user/src/pages/login/components/AnimatedModal.tsx, .../Checkbox.tsx, .../PhoneNumberInput.tsx, .../Term.tsx, .../TermsContent.tsx, .../TermsItem.tsx, .../TermsModal.tsx, .../ViewModal.tsx
Add modal, checkbox, phone input (hyphen formatting/clear), static terms contents, switch-based TermsContent, terms item row, consent modal with master/individual toggles and navigation, and a simple view modal with header/back.
Onboarding pages and routing
apps/nowait-user/src/pages/login/onboarding/OnboardingPage.tsx, .../OnboardingSuccessPage.tsx, apps/nowait-user/src/routes/Router.tsx
Implement phone-first onboarding with validation, terms modal/view modal flow, success page; add routes /onboarding and /onboarding/success; minor quote normalization on NotFound route.
Shared styles
packages/tailwind-config/shared-styles.css
Add .term-text-13-(semibold

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant MS as MenuSection
  participant U as uploadMenuImage
  participant API as Menu API

  User->>MS: Edit menu (updated {..., image?})
  alt image is File
    MS->>U: uploadMenuImage(file)
    U-->>MS: { imageUrl }
    MS->>API: PATCH menu { name, desc, price, imageUrl, sortOrder }
    API-->>MS: 200 OK
  else no file or string URL
    MS->>API: PATCH menu { name, desc, price, imageUrl? , sortOrder }
    API-->>MS: 200 OK
  end
  MS-->>User: UI re-renders (edit/view modes, DnD locked vertically)
Loading
sequenceDiagram
  autonumber
  actor User
  participant R as Router
  participant OB as OnboardingPage
  participant TM as TermsModal
  participant VM as ViewModal

  User->>R: Navigate /onboarding
  R-->>User: Render OnboardingPage
  User->>OB: Enter phone number
  OB-->>User: Validate (11 digits, 010 prefix)
  User->>OB: Click Next
  OB->>TM: Open TermsModal
  User->>TM: Toggle agreements / View details
  TM->>VM: onOpenViewModal(termType)
  VM-->>User: Show selected terms content
  User->>TM: Confirm (required terms agreed)
  TM->>OB: Navigate /onboarding/success
  R-->>User: Render Success page
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • main to merge #321: Related DnD vertical lock handling in AdminBooth; this PR replaces the shared hook with a local helper.
  • Develop 반영 #316: Related to AdminBooth menu editing and image handling across MenuSection and menuModal.
  • Develop #416: Related to MenuSection row interaction patterns (SwipeableRow vs edit mode) and control flow.

Suggested reviewers

  • dgKim1
  • hwangdae

Poem

A rabbit taps the keys—hop, hop, hooray!
Menus now glide in a tidy array.
Phones get dashes, terms slide in view,
Checkboxes blink, “I agree!”—do you? 🐇
With a springy modal and success in sight,
We onboard swiftly—no wait tonight!


📜 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 cdded55 and c3985dd.

⛔ Files ignored due to path filters (4)
  • apps/nowait-user/src/assets/icon/arrow-right.svg is excluded by !**/*.svg
  • apps/nowait-user/src/assets/icon/check.svg is excluded by !**/*.svg
  • apps/nowait-user/src/assets/icon/signup.svg is excluded by !**/*.svg
  • apps/nowait-user/src/assets/icon/x-circle.svg is excluded by !**/*.svg
📒 Files selected for processing (14)
  • apps/nowait-admin/src/pages/AdminBooth/components/MenuSection.tsx (6 hunks)
  • apps/nowait-admin/src/pages/AdminBooth/components/Modal/menuModal.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/AnimatedModal.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/Checkbox.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/PhoneNumberInput.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/Term.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/TermsContent.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/TermsItem.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/TermsModal.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/components/ViewModal.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/onboarding/OnboardingPage.tsx (1 hunks)
  • apps/nowait-user/src/pages/login/onboarding/OnboardingSuccessPage.tsx (1 hunks)
  • apps/nowait-user/src/routes/Router.tsx (3 hunks)
  • packages/tailwind-config/shared-styles.css (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop

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 or @coderabbit 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.

@github-actions github-actions bot requested a review from hwangdae September 2, 2025 15:05
@oriNuguri25 oriNuguri25 merged commit 73277b4 into main Sep 2, 2025
2 of 3 checks passed
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.

3 participants