-
Notifications
You must be signed in to change notification settings - Fork 1
feat(profile): implement comprehensive profile and order tracking fea… #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
af3a33d
dd29f13
af719a3
1aae6f6
082291f
40b621a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,4 @@ | |
| <div id="root"></div> | ||
| <script type="module" src="/src/main.jsx"></script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,3 +37,33 @@ export const CURRENCY_SYMBOL = "$"; | |||||||||||||||||||
| * @type {'PRE' | 'POST'} | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| export const CURRENCY_FORMAT = "POST"; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| // Allergy and health condition options for user profiles | ||||||||||||||||||||
| export const HEALTH_CONDITIONS = [ | ||||||||||||||||||||
| "Diabetes", | ||||||||||||||||||||
| "High blood pressure", | ||||||||||||||||||||
| "High cholesterol", | ||||||||||||||||||||
| "Kidney or liver condition", | ||||||||||||||||||||
| "Gluten intolerance / Celiac", | ||||||||||||||||||||
| "Lactose intolerance", | ||||||||||||||||||||
| ]; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| // --- Health Profile Options --- | ||||||||||||||||||||
| export const GENDER_OPTIONS = ["MALE", "FEMALE", "OTHER"]; | ||||||||||||||||||||
| export const GOAL_OPTIONS = ["LOSE_WEIGHT", "MAINTAIN", "GAIN_MUSCLE"]; | ||||||||||||||||||||
| export const HEIGHT_UNITS = ["m", "ft", "cm", "in"]; | ||||||||||||||||||||
| export const WEIGHT_UNITS = ["kg", "lb"]; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| // --- Order history (profile) --- | ||||||||||||||||||||
| export const NON_CANCELLABLE_ORDER_STATUSES = [ | ||||||||||||||||||||
| "PREPARING", | ||||||||||||||||||||
| "READY", | ||||||||||||||||||||
| "CANCELED", | ||||||||||||||||||||
| ]; | ||||||||||||||||||||
|
Comment on lines
+58
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
This array is the source powering 🐛 Proposed fix export const NON_CANCELLABLE_ORDER_STATUSES = [
"PREPARING",
"READY",
+ "CANCELED",
];📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
|
|
||||||||||||||||||||
| export const ACTIVE_TRACKING_ORDER_STATUSES = [ | ||||||||||||||||||||
| "PENDING", | ||||||||||||||||||||
| "CONFIRMED", | ||||||||||||||||||||
| "PREPARING", | ||||||||||||||||||||
| "READY", | ||||||||||||||||||||
| ]; | ||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Revive-Graduation-Project/Revive-Front-End
Length of output: 485
🏁 Script executed:
Repository: Revive-Graduation-Project/Revive-Front-End
Length of output: 220
🏁 Script executed:
Repository: Revive-Graduation-Project/Revive-Front-End
Length of output: 4321
Alias the profile
Ordersimportsrc/App.jsx:24,68,98importsOrderstwice in the same module (./pagesand./pages/Profile), which creates a duplicate binding and breaks compilation. Rename one import, e.g.Orders as ProfileOrders, and use that in the/profile/ordersroute.🤖 Prompt for AI Agents