Skip to content

refactor(admin): redesign restaurant detail page to spec, retire dupl… - #28

Merged
laithanhhung merged 1 commit into
devfrom
feat/admin-console-enhancements
Jul 28, 2026
Merged

refactor(admin): redesign restaurant detail page to spec, retire dupl…#28
laithanhhung merged 1 commit into
devfrom
feat/admin-console-enhancements

Conversation

@laithanhhung

Copy link
Copy Markdown
Member

…icate list actions

  • Rework restaurant-detail per specs/ux/SCREEN_RULES.md + specs/design/DESIGN.md: one filled primary action (settle credit) with approve/suspend/reactivate moved into an overflow menu, flatten the boxed credit-snapshot card into the same divider-row pattern used by the profile section, add data-testid hooks.
  • Remove the now-redundant inline approve/settle/expand-panel from the restaurants list — that functionality lives solely on the routed detail page now, so the list keeps just search/filter/detail-link.
  • Add the "more actions" i18n key used by the new overflow menu.

…icate list actions

- Rework restaurant-detail per specs/ux/SCREEN_RULES.md + specs/design/DESIGN.md:
  one filled primary action (settle credit) with approve/suspend/reactivate moved
  into an overflow menu, flatten the boxed credit-snapshot card into the same
  divider-row pattern used by the profile section, add data-testid hooks.
- Remove the now-redundant inline approve/settle/expand-panel from the
  restaurants list — that functionality lives solely on the routed detail
  page now, so the list keeps just search/filter/detail-link.
- Add the "more actions" i18n key used by the new overflow menu.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kody-ai

kody-ai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Code Review Could Not Complete ⚠️

The review failed before suggestions could be generated.

Reason: The configured API key (google_gemini) is out of credits or has hit its billing limit. Top up the account or adjust the plan.

After fixing the issue, comment @kody review on this PR to re-run the review.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

@laithanhhung
laithanhhung merged commit 2bc2f07 into dev Jul 28, 2026
1 of 2 checks passed
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@laithanhhung, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 45 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 026e5937-1698-4650-81d2-157ef9f3d036

📥 Commits

Reviewing files that changed from the base of the PR and between 005b939 and 27b6c5c.

📒 Files selected for processing (6)
  • public/i18n/en.json
  • public/i18n/vi.json
  • src/app/modules/admin/restaurants/restaurant-detail.component.html
  • src/app/modules/admin/restaurants/restaurant-detail.component.ts
  • src/app/modules/admin/restaurants/restaurants-admin.component.html
  • src/app/modules/admin/restaurants/restaurants-admin.component.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/admin-console-enhancements

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

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

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