Skip to content

Feature/finish profile - #85

Merged
M7mednsr merged 12 commits into
mainfrom
feature/finish-profile
Jul 12, 2026
Merged

Feature/finish profile#85
M7mednsr merged 12 commits into
mainfrom
feature/finish-profile

Conversation

@M7mednsr

@M7mednsr M7mednsr commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added profile photo upload/removal and account deletion options.
    • Redesigned order confirmation receipts with tracking, printing, rewards, and detailed summaries.
    • Added selectable dashboard time periods for revenue and order charts.
    • Added loyalty points synchronization and improved rewards handling.
    • Expanded role-based navigation for administrators, staff, and kitchen users.
  • Bug Fixes

    • Improved kitchen ticket synchronization, status updates, order tracking, and timestamp formatting.
    • Improved profile, health-form, allergy, login, and signup validation.
    • Added more reliable fallbacks for customer data, avatars, and order formats.
  • Style

    • Refreshed dashboard metric cards, charts, cart controls, and navigation layouts.

@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for revive-front-end ready!

Name Link
🔨 Latest commit ff1c256
🔍 Latest deploy log https://app.netlify.com/projects/revive-front-end/deploys/6a5419d60ca0de00087ac61e
😎 Deploy Preview https://deploy-preview-85--revive-front-end.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
revive-front-end Ready Ready Preview, Comment Jul 12, 2026 10:49pm

@M7mednsr
M7mednsr merged commit 295ae86 into main Jul 12, 2026
5 of 6 checks passed
@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 31f51a9c-618f-4778-ba75-5f4e1067614d

📥 Commits

Reviewing files that changed from the base of the PR and between 3d93e9c and ff1c256.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json, !package-lock.json
  • public/images/custom-bowl.png is excluded by !**/*.png
📒 Files selected for processing (43)
  • src/Layout/AppLayout.jsx
  • src/components/Dashboard/DashboardSidebar.jsx
  • src/components/Dashboard/DashboardView.jsx
  • src/components/Dashboard/LiveKitchen/KitchenTicketsTable.jsx
  • src/components/Dashboard/LiveKitchenView.jsx
  • src/components/Dashboard/MetricCards.jsx
  • src/components/Dashboard/OrdersView.jsx
  • src/components/Dashboard/RevenueChart.jsx
  • src/components/Dashboard/StaffManagementView.jsx
  • src/components/Dashboard/shared/OrderDetailsModal.jsx
  • src/components/Dashboard/shared/OrdersOverviewChart.jsx
  • src/components/auth/StepTwo.jsx
  • src/components/layout/Navbar.jsx
  • src/components/ui/AllergiesDropdown.jsx
  • src/components/ui/Cart.jsx
  • src/constants.js
  • src/hooks/dashboard/useDashboard.js
  • src/hooks/dashboard/useKitchenOrders.js
  • src/pages/OrderFlow/Thanks.jsx
  • src/pages/Profile/Profile.jsx
  • src/pages/Profile/Profile.test.jsx
  • src/pages/Profile/ProfileLayout.jsx
  • src/pages/Profile/ProfileOrders.jsx
  • src/pages/Profile/Rewards.jsx
  • src/pages/Profile/components/HealthForm.jsx
  • src/pages/Profile/components/InfoGrid.jsx
  • src/pages/Profile/components/OrderCard.jsx
  • src/pages/Profile/components/OrderTracking.jsx
  • src/pages/Profile/components/Sidebar.jsx
  • src/pages/auth/Login.jsx
  • src/pages/auth/Signup.jsx
  • src/pages/customization/Sections/MealSummaryCard.jsx
  • src/services/auth.service.js
  • src/services/clientProfileService.js
  • src/services/dashboardService.js
  • src/services/mappers/dashboardMappers.js
  • src/services/order.service.js
  • src/store/__tests__/profileStore.test.js
  • src/store/authStore.js
  • src/store/loyaltyStore.js
  • src/store/orderStore.js
  • src/store/profileStore.js
  • src/utils/orderHelpers.js

📝 Walkthrough

Walkthrough

The PR expands role-based routing and navigation, adds period-aware dashboard analytics, consolidates kitchen ticket updates, introduces profile and account-management APIs, integrates loyalty rewards into order flows, and refreshes order tracking, confirmation, and receipt interfaces.

Changes

Application flows

Layer / File(s) Summary
Role-aware access and input normalization
src/Layout/AppLayout.jsx, src/components/layout/Navbar.jsx, src/components/auth/*, src/components/ui/*, src/constants.js, src/pages/auth/*, src/store/authStore.js
Role predicates now control destinations and navigation visibility; authentication, health conditions, goals, and signup values are normalized.
Period-aware dashboard analytics
src/components/Dashboard/DashboardView.jsx, src/components/Dashboard/OrdersView.jsx, src/components/Dashboard/RevenueChart.jsx, src/components/Dashboard/shared/OrdersOverviewChart.jsx, src/components/Dashboard/MetricCards.jsx, src/hooks/dashboard/useDashboard.js, src/services/dashboardService.js, src/services/mappers/dashboardMappers.js
Dashboard charts accept selectable periods, services return period-specific aggregates, and recent-activity panels are removed.
Kitchen ticket synchronization and staff management
src/components/Dashboard/LiveKitchen/*, src/components/Dashboard/LiveKitchenView.jsx, src/components/Dashboard/StaffManagementView.jsx, src/components/Dashboard/shared/OrderDetailsModal.jsx, src/hooks/dashboard/useKitchenOrders.js, src/services/dashboardService.js, src/services/mappers/dashboardMappers.js
Kitchen actions use shared order identifiers and status updates, merged board/API tickets are rendered, status mappings are expanded, and chef management is wired into staff administration.
Profile management and account lifecycle
src/pages/Profile/*, src/pages/Profile/components/*, src/services/clientProfileService.js, src/services/auth.service.js, src/store/profileStore.js, src/store/__tests__/profileStore.test.js, src/store/orderStore.js
Profile editing, picture upload/removal, account deletion, profile fallbacks, order loading, loyalty display, and related service/store tests are added or updated.
Order payloads, loyalty, and confirmation receipt
src/pages/OrderFlow/Thanks.jsx, src/pages/customization/Sections/MealSummaryCard.jsx, src/store/orderStore.js, src/store/loyaltyStore.js
Custom cart payloads and loyalty redemption/earning are integrated, while the confirmation page renders formatted order details and a print receipt.
Order tracking and timestamp normalization
src/utils/orderHelpers.js, src/pages/Profile/components/OrderTracking.jsx, src/pages/Profile/components/OrderCard.jsx, src/services/order.service.js
Tracking selection and time formatting use shared timestamp parsing, and cancellation endpoint documentation is updated.

Estimated code review effort: 5 (Critical) | ~120 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Profile
  participant ProfileStore
  participant ProfileAPI
  participant AuthAPI
  Profile->>ProfileStore: Confirm account deletion
  ProfileStore->>ProfileAPI: Delete client profile
  ProfileStore->>AuthAPI: Delete auth user
  ProfileStore-->>Profile: Clear state and navigate to login
Loading

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/finish-profile

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.

M7mednsr added a commit that referenced this pull request Jul 12, 2026
…/finish-profile"

This reverts commit 295ae86, reversing
changes made to 3d93e9c.
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