Skip to content

Conversation

@hwangdae
Copy link
Collaborator

@hwangdae hwangdae commented Sep 2, 2025

작업 내용

문제점 및 어려움

해결 방안

공유 사항

Summary by CodeRabbit

  • New Features

    • Booth Map: Added panning/centering for easier navigation and improved booth selection behavior.
  • Bug Fixes

    • Store page navigation now triggers only after items are added.
    • Remittance options render only when account info is non-empty.
  • Performance

    • Optimized order total button rendering to reduce unnecessary re-renders.
  • Style

    • Updated small action button icon sizing and text color for clearer visuals.
    • Enlarged Not Found image and removed subtitle for a cleaner layout.
  • Accessibility

    • Updated button aria label from “메뉴 추가” to “주문하기” for clearer screen reader guidance.

@coderabbitai
Copy link

coderabbitai bot commented Sep 2, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Updates span UI text/styling tweaks, conditional rendering adjustments, a memoized export, a NotFound markup simplification, a StorePage effect scoping fix, and a substantial MapPage enhancement adding draggable panning and dynamic centering. Minor whitespace and asset usage changes are included. No public API changes except making one prop optional and memoizing one default export.

Changes

Cohort / File(s) Summary of Changes
Action Button & Empty Page UI
apps/nowait-user/src/components/EmptyPage.tsx, apps/nowait-user/src/components/SmallActionButton.tsx
EmptyPage: ariaLabel text updated; icon container and sizing adjusted. SmallActionButton: moved text color logic to inner div, removed outer text color classes, minor prop formatting; no behavior change.
Order Total Memoization
apps/nowait-user/src/components/order/TotalButton.tsx
Removed console logs; default export now React.memo(TotalButton); component logic unchanged.
StorePage effect scoping
apps/nowait-user/src/pages/order/home/StorePage.tsx
Wrapped navigate(...) with the added condition in useEffect; prevents unconditional navigation. Formatting-only JSX adjustments.
Remittance options handling
.../remittance/RemittancePage.tsx, .../remittance/components/remitOptions/DirectRemitOption.tsx, .../remittance/components/remitOptions/RemitOptions.tsx
RemittancePage: whitespace only. DirectRemitOption: account prop made optional; switched image to imported asset; safe parsing of optional account. RemitOptions: render condition tightened to account?.trim() !== "".
NotFound content trim
apps/nowait-user/src/pages/NotFound/NotFound.tsx
Increased image width; removed subtitle h2; rest unchanged.
Booth map panning & centering
apps/nowait-user/src/pages/waiting/boothMap/MapPage.tsx, .../boothMap/constants/boothPosition.ts
MapPage: added draggable panning, dynamic centering based on booth positions, viewport-based constraints, asset swap, selection handling improvements, and guard on pointer up. Constants: whitespace-only tidy.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User
  participant SP as StorePage
  participant Nav as Router

  Note over SP: useEffect dependency triggers
  SP->>SP: Check added
  alt added is truthy
    SP->>SP: showToast("...")
    SP->>Nav: navigate(pathname, { replace: true })
  else added is falsy
    Note over SP: No navigation or toast
  end
Loading
sequenceDiagram
  autonumber
  actor U as User
  participant MP as MapPage
  participant VP as Viewport
  participant BM as Booths Data

  MP->>BM: Compute booth bounds
  MP->>VP: Measure viewport (width/height)
  MP->>MP: Set initial positionX/positionY to center booths
  U->>MP: Drag on map
  MP->>MP: Update position with constraints (viewport-based)
  U->>MP: Tap booth
  alt Tap on booth (not a button)
    MP->>MP: Set selectedBooth
    MP->>U: Show details panel
  else Tap on a button
    Note over MP: Ignore close action
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Suggested reviewers

  • oriNuguri25
  • dgKim1

Poem

A hop, a bop, I pan the map,
Center booths with a gentle tap.
A button whispers, “Order now,”
Totals memoized—take a bow.
If accounts are shy, we still proceed,
Trim the noise, keep only need.
🐇 Commit complete—onward, speed!


📜 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 ea84d9e and e181955.

⛔ Files ignored due to path filters (19)
  • .yarn/cache/@esbuild-win32-x64-npm-0.25.8-c2c2332051-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@parcel-watcher-darwin-arm64-npm-2.5.1-12be747bca-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@parcel-watcher-win32-x64-npm-2.5.1-6e3012ad80-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@rollup-rollup-darwin-arm64-npm-4.46.2-78a61e53eb-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@rollup-rollup-win32-x64-msvc-npm-4.46.2-66021925a7-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@sentry-cli-darwin-npm-2.53.0-c906d44a58-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@sentry-cli-win32-x64-npm-2.53.0-e37569fa05-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@tailwindcss-oxide-darwin-arm64-npm-4.1.11-9385878a36-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@tailwindcss-oxide-win32-x64-msvc-npm-4.1.11-3a4bbe0b3d-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/fsevents-patch-6b67494872-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/lightningcss-darwin-arm64-npm-1.30.1-4f54e7a15b-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/lightningcss-win32-x64-msvc-npm-1.30.1-2e0d6b2fcc-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/turbo-windows-64-npm-2.5.6-b19e284eea-10c0.zip is excluded by !**/.yarn/**, !**/*.zip
  • apps/nowait-user/public/beef.png is excluded by !**/*.png
  • apps/nowait-user/public/bookmarkStoreImage.png is excluded by !**/*.png
  • apps/nowait-user/public/test-map.png is excluded by !**/*.png
  • apps/nowait-user/src/assets/bankImage.png is excluded by !**/*.png
  • apps/nowait-user/src/assets/boothMap.png is excluded by !**/*.png
  • apps/nowait-user/src/assets/notFound.png is excluded by !**/*.png
📒 Files selected for processing (10)
  • apps/nowait-user/src/components/EmptyPage.tsx (1 hunks)
  • apps/nowait-user/src/components/SmallActionButton.tsx (2 hunks)
  • apps/nowait-user/src/components/order/TotalButton.tsx (3 hunks)
  • apps/nowait-user/src/pages/NotFound/NotFound.tsx (1 hunks)
  • apps/nowait-user/src/pages/order/home/StorePage.tsx (2 hunks)
  • apps/nowait-user/src/pages/order/remittance/RemittancePage.tsx (1 hunks)
  • apps/nowait-user/src/pages/order/remittance/components/remitOptions/DirectRemitOption.tsx (2 hunks)
  • apps/nowait-user/src/pages/order/remittance/components/remitOptions/RemitOptions.tsx (2 hunks)
  • apps/nowait-user/src/pages/waiting/boothMap/MapPage.tsx (5 hunks)
  • apps/nowait-user/src/pages/waiting/boothMap/constants/boothPosition.ts (0 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.

@hwangdae hwangdae merged commit 33db7a8 into main Sep 2, 2025
2 of 3 checks passed
@github-actions github-actions bot requested a review from dgKim1 September 2, 2025 06:00
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.

2 participants