Skip to content

Conversation

@oriNuguri25
Copy link
Collaborator

@oriNuguri25 oriNuguri25 commented Sep 3, 2025

작업 내용

문제점 및 어려움

해결 방안

공유 사항

Summary by CodeRabbit

  • New Features

    • Added persistent per-store countdown timers for calling status, continuing across app restarts.
  • Bug Fixes

    • Tapping “Cook Complete” no longer triggers parent card actions.
    • Order action modals now close properly after success and return to the detail list.
    • Tapping new-order notifications now navigates with the correct status filter and dismisses the notification.
  • Style

    • Improved store image handling in search results.
    • Better name truncation on small screens for store cards.

@oriNuguri25 oriNuguri25 merged commit aef7dc3 into main Sep 3, 2025
2 of 3 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Sep 3, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Updates span admin and user apps: admin toast navigation now sets status, uses two-arg navigate, and removes the toast on tap; admin orders consolidate modal success handling and stop event bubbling on a button. User app adds a persisted multi-timer store and integrates it into MyWaitingCard, adjusts Search types and image binding, and applies minor UI tweaks.

Changes

Cohort / File(s) Summary
Admin toast navigation
apps/nowait-admin/src/components/NewOrderToast.tsx
Adds status to URL query, switches to navigate({ pathname, search }, { replace: true }), and removes the toast on tap.
Admin orders modal flow
apps/nowait-admin/src/pages/AdminOrders/DetailCard.tsx, apps/nowait-admin/src/pages/AdminOrders/OrderCard.tsx
Centralizes modal success handler to close modal and detail view; updates cook-complete click handler to accept event and stopPropagation.
Admin menu comment cleanup
apps/nowait-admin/src/pages/AdminBooth/components/MenuSection.tsx
Deletes a non-functional comment in edit mode branch.
User search typings and usage
apps/nowait-user/src/types/search.ts, apps/nowait-user/src/components/common/modal/SearchModal.tsx
Refactors SearchStore: profileImage becomes object (ProfileImage) and adds openTime; updates image binding to profileImage?.imageUrl; removes unused fields.
User waiting timer feature
apps/nowait-user/src/stores/timerStore.ts, apps/nowait-user/src/pages/home/components/MyWaitingCard.tsx
Introduces persisted multi-timer Zustand store (set/update/reset/get/isActive/clear); integrates global per-store countdown in MyWaitingCard replacing local state/interval.
User UI minor tweak
apps/nowait-user/src/pages/home/components/MainCard.tsx
Adds max-sm:max-w-[200px] to name display; formatting on publicCode property.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant T as NewOrderToast
  participant R as Router
  participant S as ToastStore

  U->>T: Tap toast
  T->>R: navigate({ pathname, search:?status=... }, { replace: true })
  T->>S: removeToast(id)
Loading
sequenceDiagram
  autonumber
  participant U as User
  participant D as AdminOrders.DetailCard
  participant M as ModalComponent
  participant H as onSuccess (prop)

  U->>D: Open detail
  D->>M: Render with onClose(handleCloseModal), onSuccess(handleModalSuccess)
  U->>M: Confirm action
  M-->>D: onSuccess()
  D->>H: Invoke onSuccess?()
  D->>M: Close modal
  D->>U: Close detail (onClose)
Loading
sequenceDiagram
  autonumber
  participant V as MyWaitingCard
  participant TS as useTimerStore
  participant T as setInterval(1s)

  V->>TS: isTimerActive(storeId)?
  alt Not active and status=CALLING
    V->>TS: setTimer(storeId, 600)
  end
  T->>V: tick (if status=CALLING)
  V->>TS: updateTimer(storeId)
  V->>TS: getTimeLeft(storeId)
  TS-->>V: timeLeft
  V->>V: render formatTime(timeLeft)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

  • fix: 주점 publicCode로 연결 #405 — Refactors SearchStore and SearchModal; overlaps with this PR’s profileImage shape change and SearchModal src update.
  • Develop #428 — Adjusts NewOrderToast navigation/status handling; overlaps with this PR’s toast URL and removal changes.
  • Develop #392 — Modifies NewOrderToast and toast store behavior; overlaps with navigation and toast lifecycle adjustments.

Suggested reviewers

  • dgKim1
  • hwangdae

Poem

A hop, a tap—toast vanishes quick,
Modals now bow with a tidy click.
Timers tick-tock in a global burrow,
Stores show faces, sharper tomorrow.
Small-screen names snug as a glove—
Rabbit approves, with dev-ish love. 🐇✨


📜 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 73277b4 and 09b0909.

📒 Files selected for processing (9)
  • apps/nowait-admin/src/components/NewOrderToast.tsx (1 hunks)
  • apps/nowait-admin/src/pages/AdminBooth/components/MenuSection.tsx (0 hunks)
  • apps/nowait-admin/src/pages/AdminOrders/DetailCard.tsx (2 hunks)
  • apps/nowait-admin/src/pages/AdminOrders/OrderCard.tsx (1 hunks)
  • apps/nowait-user/src/components/common/modal/SearchModal.tsx (1 hunks)
  • apps/nowait-user/src/pages/home/components/MainCard.tsx (2 hunks)
  • apps/nowait-user/src/pages/home/components/MyWaitingCard.tsx (3 hunks)
  • apps/nowait-user/src/stores/timerStore.ts (1 hunks)
  • apps/nowait-user/src/types/search.ts (1 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 3, 2025 09:00
@coderabbitai coderabbitai bot mentioned this pull request Sep 12, 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.

3 participants