Skip to content

Conversation

@tomaszburas
Copy link
Collaborator

@tomaszburas tomaszburas commented Nov 30, 2025

This PR is related to backend PR -> mercurjs/mercur#532

@tomaszburas tomaszburas self-assigned this Nov 30, 2025
@vercel
Copy link

vercel bot commented Nov 30, 2025

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

Project Deployment Preview Comments Updated (UTC)
mercurvendor-development Ready Ready Preview Comment Dec 11, 2025 0:41am
mercurvendor-testing Ready Ready Preview Comment Dec 11, 2025 0:41am
vendor-panel Ready Ready Preview Comment Dec 11, 2025 0:41am
vendor-sandbox Ready Ready Preview Comment Dec 11, 2025 0:41am

...buildFilters(attribute?.id, store),
promotion_type: promotionType,
application_method_type: applicationMethodType,
} as VendorPromotionRuleValueParams,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we set VendorPromotionRuleValueParams as the type of the query param in usePromotionRuleValues instead of type-casting it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you are right


const PROMOTIONS_QUERY_KEY = 'promotions' as const;

export type VendorPromotionRuleValueParams = HttpTypes.AdminGetPromotionsRuleValueParams & {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be here? don't we have a separate file for types? vendor-panel/src/types

@kacpergumieniuk kacpergumieniuk changed the base branch from test to development December 11, 2025 22:59
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