Conversation
…cing/FinishLine into 3776-maintenence---description-field-for-rr
cielbellerose
left a comment
There was a problem hiding this comment.
a few updates but this looks so good, great work!!
| fontWeight: 'bold' | ||
| }} | ||
| > | ||
| Input Description |
There was a problem hiding this comment.
could we update this to just 'Description'?
| {/* Right Column */} | ||
| <Grid item xs={12} md={6}> | ||
| <Stack spacing={3}> | ||
| {/* Description */} |
There was a problem hiding this comment.
could we move this to the bottom of the right column? I'm thinking since the Account Code field is required and Upload Receipts is potentially required, it might be more intuitive to have those first
src/backend/src/prisma/schema.prisma
Outdated
| dateCreated DateTime @default(now()) | ||
| dateDeleted DateTime? | ||
| dateOfExpense DateTime? | ||
| description String |
There was a problem hiding this comment.
we should make this nullable to work with the existing reimbursement requests
|
|
||
| */ | ||
| -- AlterTable | ||
| ALTER TABLE "Reimbursement_Request" ALTER COLUMN "description" SET NOT NULL; |
There was a problem hiding this comment.
could we merge these two files into one migration? should work by deleting them and running yarn prisma:migrate again
|
Other than the changes Kinsey said, the rest looks good me! |
chpy04
left a comment
There was a problem hiding this comment.
Couple changes, also can you make sure that if you upload files the preview doesn't force the description field too far down
| dateCreated DateTime @default(now()) | ||
| dateDeleted DateTime? | ||
| dateOfExpense DateTime? | ||
| description String? |
| identifier: numReimbursementRequests + 1, | ||
| organization: { connect: { organizationId: organization.organizationId } } | ||
| organization: { connect: { organizationId: organization.organizationId } }, | ||
| description: description ?? '' |
There was a problem hiding this comment.
add default and then you don't need to check here
| where: { reimbursementRequestId: oldReimbursementRequest.reimbursementRequestId }, | ||
| data: { | ||
| dateOfExpense: dateOfExpense ?? null, | ||
| description: description ?? '', |
| saboId: reimbursementRequest.saboId ?? undefined, | ||
| dateCreated: reimbursementRequest.dateCreated, | ||
| dateOfExpense: reimbursementRequest.dateOfExpense ?? undefined, | ||
| description: reimbursementRequest.description ?? '', |
| vendorId: reimbursementRequest.vendor.vendorId, | ||
| indexCodeId: reimbursementRequest.indexCode.indexCodeId, | ||
| dateOfExpense: reimbursementRequest.dateOfExpense ? new Date(reimbursementRequest.dateOfExpense) : undefined, | ||
| description: reimbursementRequest.description ?? '', |
Changes
Backend:
Frontend:
Screenshots
Before:
RR table


RR view modal


RR edit


RR create


After:
RR table


RR view modal


RR edit


RR create


Checklist
It can be helpful to check the
ChecksandFiles changedtabs.Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
yarn.lockchanges (unless dependencies have changed)Closes #3776