Fix: Route photo requests to design canvas instead of approval upload
When admin clicks 'Start a design for this' on a photo request, now routes
to the design canvas at /made-to-order/{productSlug} with the custom photo
passed as a query parameter. The DesignCanvas component now accepts and
displays the custom photo as the background for designing.
Changes:
- Updated photo request link to go to design canvas page
- Added customPhoto query parameter to pass custom image URL
- Updated DesignCanvas to accept and use customPhoto prop
- Modified renderPhoto() to display custom photo when provided
- Updated getPhotoInfo() to use custom photo for compositing
This commit is contained in:
@@ -79,7 +79,9 @@
|
||||
"Bash(git commit -m 'Feature: Add order tracking and shipping status updates *)",
|
||||
"Bash(git commit -m 'Feature: Royal Mail tracking integration \\(hybrid approach\\) *)",
|
||||
"Bash(git commit -m 'Fix: Refresh page after updating order tracking details *)",
|
||||
"Bash(git commit -m 'Fix: Remove function prop from client component *)"
|
||||
"Bash(git commit -m 'Fix: Remove function prop from client component *)",
|
||||
"Bash(git commit -m 'Fix: Import revalidatePath from correct module *)",
|
||||
"Bash(git commit -m 'Fix: Route photo requests to design canvas instead of approval upload *)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user