Skip to content

Conversation

@sylwia-werner
Copy link
Collaborator

Link to ticket: MM2-1437

@sylwia-werner sylwia-werner requested a review from mikolvj October 29, 2025 14:04
@vercel
Copy link

vercel bot commented Oct 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
test-admin-panel Ready Ready Preview Comment Oct 29, 2025 2:04pm

Comment on lines +9 to +13
type ExtendedAdminOrderFilters = HttpTypes.AdminOrderFilters & {
fulfillment_status?: string[]
payment_status?: string[]
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about moving this definition to src/types?

Comment on lines +9 to +12
type ExtendedAdminProductListParams = HttpTypes.AdminProductListParams & {
tag_id?: string[]
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about moving this definition to src/types?


const handleSubmit = async (
params: { metadata?: Record<string, unknown> | null },
callbacks: { onSuccess: () => void; onError: (error: FetchError | string) => void }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO onSuccess and onError should be optional - what do you think? (applies to all occurrences of this typing)

Comment on lines +49 to +52
first_name: data.first_name || undefined,
last_name: data.last_name || undefined,
phone: data.phone || undefined,
company_name: data.company_name || undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... || undefined seems uncorrect because left value must be undefined to apply this condition


const onDuplicate = async () => {
if (!item.variant_id) {
toast.error("Cannot duplicate item: variant ID is missing")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i18n please

const inventoryItemId = params.get("item_id")

if (!inventoryItemId) {
throw new Error("Inventory item ID is required")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i18n please

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.

3 participants