Skip to content
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(dashboard,medusa): Promotion Campaign fixes #7337

Merged
merged 47 commits into from
May 23, 2024

Conversation

riqwan
Copy link
Contributor

@riqwan riqwan commented May 15, 2024

what:

  • introduces currency code to promotions
  • adds validations based on currency
  • scope currencies by store currencies
  • scope promotion add to campaign with currency
  • scope campaigns with correct currency
  • promotion currency carried over to campaign create
  • use select instead of combobox for equals operator
  • resolve type issues
  • a whole load of fixes

riqwan and others added 13 commits May 10, 2024 15:23
* feat: Add support for sendgrid and logger notification providers

* fix: changes based on PR review
* chore: add action to automatically label docs

* removes the paths param
* configured base paths + added development banner

* fix typelist site url

* added navbar and sidebar badges

* configure algolia filters

* remove AI assistant

* remove unused imports

* change navbar text and badge

* lint fixes

* fix build error

* add to api reference rewrites

* fix build error

* fix build errors in user-guide

* fix feedback component

* add parent title to pagination

* added breadcrumbs component

* remove user-guide links

* resolve todos

* fix details about authentication

* change documentation title

* lint content
Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medusa-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 1:12pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) May 23, 2024 1:12pm
docs-ui ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 1:12pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 1:12pm

Copy link

changeset-bot bot commented May 15, 2024

⚠️ No Changeset found

Latest commit: 92cd41d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Base automatically changed from feat/campaign-create to develop May 15, 2024 08:43
@riqwan riqwan changed the title Feat/promotion campaigns feat(dashboard,medusa): Promotion Campaign fixes May 15, 2024
Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

I think this is a bit too hard to review as it is composed of many small changes. Therefore, I would rather just have this merged and then review the promotions module all together in the next couple of months.

What do you think?

That said, I left a few comments on things that would be good to have documented for understanding.

)
}}
/>
<div></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

rm?

Suggested change
<div></div>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually needed to keep the grid spot the same size :D

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh I see :smile

@@ -4,6 +4,7 @@ export type AdminGetPromotionRulesRes = {
attribute_label: string
field_type?: string
operator: string
hydrate: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: Could I get you to write a brief doc on how all of these properties tie together and their function, specifically hydrate and disguised? I lost track of that over the past months 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes will do, I think most of these can now be removed as we don't use them anymore. Will do a cleanup after all the kinks are sorted. 🤞🏻

Copy link
Contributor

Choose a reason for hiding this comment

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

Great 💪

@@ -1,6 +1,7 @@
export enum DisguisedRule {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same for this. Please include this attributes map in the doc 🙏

@@ -4,9 +4,9 @@ export const ruleQueryConfigurations = {
labelAttr: "name",
Copy link
Contributor

Choose a reason for hiding this comment

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

And this :D

Copy link
Contributor

kodiakhq bot commented May 23, 2024

This PR currently has a merge conflict. Please resolve this and then re-add the automerge label.

… for UI extensions (#7383)

* intial work

* update lock

* add routes and fix HMR of configs

* cleanup

* rm imports

* rm debug from plugin

* address feedback

* address feedback
@riqwan riqwan requested a review from a team as a code owner May 23, 2024 12:56
@riqwan riqwan merged commit d1d23f1 into develop May 23, 2024
17 checks passed
@riqwan riqwan deleted the feat/promotion-campaigns branch May 23, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants