-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat(admin-dashboard): created recent orders functionality #92
feat(admin-dashboard): created recent orders functionality #92
Conversation
@rohansen856 is attempting to deploy a commit to the Busify Team on Vercel. A member of the Team first needs to authorize it. |
@rohansen856 we will be having relationship between tickets and orders as well , it make it easier for the other issue for data fetching , please make changes according to this schema |
@RISHIKESHk07 i will fix the issue and update the schema with the correct relationships, and also check if there is any need to change the data fetching method using prisma with the updated relationship. |
@RISHIKESHk07 @Pratik2026 i have updated the model Schedule {
id String @id
busNumber String
bus Bus @relation(fields: [busNumber], references: [number])
checkpoints String[]
from String
to String
departureTime String
days String[]
ticketPrice Int
orders Order[]
}
model Ticket {
id Int @id @default(autoincrement())
orderId String @unique
passengerEmail String[]
order Order @relation(fields: [orderId], references: [id])
}
model Order {
id String @id
userId String
scheduleId String
status String @default("pending") // how to make this enum
amount Int
attempts Int @default(0)
receipt String @unique
createdAt DateTime @default(now())
user Users @relation(fields: [userId], references: [id])
ticket Ticket?
schedule Schedule @relation(fields: [scheduleId], references: [id])
} the relationship are:
thank you. |
@Pratik2026 LGTM codewise , any changes as per you ? |
@@ -0,0 +1,253 @@ | |||
import { Typography, styled, Box, useTheme } from '@mui/material'; | |||
import Clear from "@mui/icons-material/clear" |
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.
@rohansen856 double check this line @mui/icons-material/clear"
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.
@RISHIKESHk07 I will fix the issue with the formatting and add the semicolon(;
) in this line.
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.
@rohansen856 the probelm is the its "@mui/icons-material/Clear" , on my end i see it giving a error for ...../clear and it works for @mui/icons-material/Clear
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.
@rohansen856 did you verify if page works when we add a ticket through the razorpay UI (dummy order) instead of seeding the data ? i tried it here (Left: Busify & Right:Ptisma Studio) , there is a ticket created but does not appear in the admin page , maybe its a date issue , you can test razorpay UPI with success@razorpay
@RISHIKESHk07 i will double check the payments issue with razorpay, and also check any issues with the data. |
@RISHIKESHk07 i have solved the following issues in the latest pr:
part1.split-video.com.1.mp4part2.split-video.com.1.mp4thank you. |
Overview
Essential Checklist
Proof that changes are correct
responsiveness:
works done in this pr:
frontend
View Details
backend
orders.service.ts
file to add the logic to get the data in required formatorders.controller.ts
file to add the route handler to get the details.PR Pointers