Commit Graph

4421 Commits

Author SHA1 Message Date
Harminder Virk
9e711720dd chore: upgrade moduleResolution to Node16 (#9269) 2024-09-24 17:19:20 +05:30
Frane Polić
d721282600 fix(pricing): calculate pricing repository query (#9265)
**What**
- fix wrong parentheses nesting when generating calculate pricing query
- filter out deleted price lists
- use built in DB values for time comparison

---

![Screenshot 2024-09-23 at 22 18 25](https://github.com/user-attachments/assets/f2fa3891-9dab-4646-947a-50d9a8f937c6)
![Screenshot 2024-09-23 at 22 05 23](https://github.com/user-attachments/assets/7b58b671-6587-4882-800b-275cfcbf369e)

---

TODO:
- [x] check after price list start/end_date is modified, PL prices are not retrieved properly anymore

---

FIXES CC-518
2024-09-24 10:47:40 +00:00
Riqwan Thamir
69f6645716 feat(core-flows,dashboard,types,fulfillment,medusa): uses requires shipping throughout lifecycle (#9170)
what:

- uses requires shipping throughout lifecycle

https://github.com/user-attachments/assets/d5ba89d3-5ea0-49c4-b2d5-490c4764933e
2024-09-24 08:26:22 +00:00
Carlos R. L. Rodrigues
e54b339324 fix(core-flows): line item type collection (#9251) 2024-09-24 08:00:18 +00:00
Adrien de Peretti
e1fdc54a3f chore(medusa-test-utils): Add custom link loading before syncing (#9249)
**What**
Include custom links to be loaded from the medusa integration test runner
2024-09-23 19:54:04 +00:00
Frane Polić
eb7899d05c fix(dashboard): pagination in invite table (#9259)
**What**
- fix pagination in user invites table wasn't working because prefix was passed in a wrong place

---

FIXES CC-512
2024-09-23 16:01:10 +00:00
Frane Polić
981745e98b fix(dashboard): customer groups fixes (#9258)
**What**
- fix add customer to customer group toast
- move modal actions to footer

---

FIXES CC-514
2024-09-23 15:59:37 +00:00
Frane Polić
d238dd0099 fix(dashboard): customer groups table fileds (#9262)
**What**
- a fix pushed this morning results in customer groups also having just id returned and other fields are omitted
2024-09-23 15:58:32 +00:00
Frane Polić
ab9051d3f5 fix(dashboard): minor collection bugs (#9255)
**What**
- toast on create
- fix delete prompt message
- fix 404 on delete

---

FIXES CC-508
2024-09-23 15:57:26 +00:00
Adrien de Peretti
8ec323b1da refactor(types): Align configuration and fixes (#9240)
RESOLVES FRMW-2712

**What**
Refactor types packages to use the latest configuration of typescript and fixes issues
2024-09-23 12:13:02 +00:00
Adrien de Peretti
94e07c8da0 refactor(framework): Align configuration and fixes (#9246)
* refactor(framework): Align configuration and fixes

* refactor(framework): Align configuration and fixes

* move framework

* rm unnecessary script

* update jest config
2024-09-23 13:07:30 +02:00
Harminder Virk
9f72fb5902 Chore: cleanup workflows SDK (#9244)
Fixes: FRMW-2712
2024-09-23 11:04:38 +00:00
Harminder Virk
97e003ef4f chore: Cleanup utils package (#9238)
Fixes: FRMW-2712

Old PR: https://github.com/medusajs/medusa/pull/9234 Closed because of incorrect branch naming

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-09-23 10:37:58 +00:00
Adrien de Peretti
79e3578932 refactor(orchestration): Align configuration and fixes (#9242)
RESOLVES FRMW-2712

**What**
Refactor orchestration packages to use the latest configuration of typescript and fixes issues
2024-09-23 10:36:05 +00:00
Adrien de Peretti
919d19095a refactor(modules-sdk): Align configuration and fixes (#9239)
* refactor(modules-sdk): Align configuration and fixes

* typo

* fix configuration
2024-09-23 12:12:26 +02:00
Frane Polić
d0f1028820 fix(dashboard): prices validation in PL bulk editor (#9245)
**What**
- fix validation errors in bulk editor on Price List create flow

---

FIXES CC-511
2024-09-23 09:07:51 +00:00
Frane Polić
5d16133a93 fix(dashboard): PL creation - customers table customers count (#9237)
**What**
- display the number of customers in a group in the price list create flow

---

CLOSES https://github.com/medusajs/medusa/issues/9210
FIXES CC-517
2024-09-23 08:55:37 +00:00
Frane Polić
39034e2249 fix(user): check if user account with email already exist on invite create (#9243)
**What**
- when creating an invite, validate that provided email is not already used for existing user account

---

FIXES CC-513
2024-09-23 08:53:53 +00:00
Frane Polić
89bf88ee23 feat(dashboard): login and invite redesign (#9214)
**What**
- new UI for login and invite pages

---

![Screenshot 2024-09-20 at 15 24 31](https://github.com/user-attachments/assets/abaea120-6e93-4962-9865-bd52c0f67fb9)

![Screenshot 2024-09-20 at 15 24 40](https://github.com/user-attachments/assets/037fa81c-66a5-4764-aff1-5b5f9ac102d2)

---

CLOSES CC-131
2024-09-23 07:12:20 +00:00
Riqwan Thamir
0bce09f0a2 fix(framework): throw when middleware fails to register (#9211) 2024-09-22 14:46:52 +02:00
Shahed Nasser
ba14d4341f fix(oas): handle new keys in circular reference patch (#9218)
Handle new keys in the circular references patch leading to undefined not being iterable error.
2024-09-22 12:44:23 +00:00
Shahed Nasser
6a2a105cf8 fix(oas): support additional props, fix circular references patch, and other fixes (#9213)
* chore(oas): support additional props, fix circular references patch, and other fixes

* fix description

* description fixes
2024-09-20 17:22:19 +03:00
Adrien de Peretti
3084008fc9 feat(index): Provide a similar API to Query (#9193)
**What**
Align the index engine API to be similar to the Query API

## Example

```ts
        // Benefit from the same level of typing like the remote query

        const { data, metadata } = await indexEngine.query<'product'>({
          fields: [
            "product.*",
            "product.variants.*",
            "product.variants.prices.*",
          ],
          filters: {
            product: {
              variants: {
                prices: {
                  amount: { $gt: 50 },
                },
              },
            },
          },
          pagination: {
            order: {
              product: {
                variants: {
                  prices: {
                    amount: "DESC",
                  },
                },
              },
            },
          },
        })
```
2024-09-20 10:02:42 +00:00
Carlos R. L. Rodrigues
1215a7c094 chore(orchestrator): remote joiner using entitymap (#9205) 2024-09-20 05:30:08 -03:00
Shahed Nasser
230a16ac5c fix(types): fixes to HTTP types (#9189)
* fix(types): fixes to HTTP types

* more fixes

* remove incorrect fields for tax regions
2024-09-19 18:35:53 +02:00
Frane Polić
07f25de153 fix(dashboard): open edit variant modal in current context (#9203) 2024-09-19 18:33:55 +02:00
Adrien de Peretti
270a9a1770 fix(medusa-test-utils): get port should a deps for now (#9198) 2024-09-19 14:44:16 +02:00
Frane Polić
61fd4832d1 feat(dashboard): manage inventory placeholder (#9190)
**What**
- add placeholder on variant details when inventor is not managed

---
![Screenshot 2024-09-19 at 10 35 55](https://github.com/user-attachments/assets/c731565d-5525-4537-b9a8-8bd6b74ca3bd)
---

CLOSES CC-127
2024-09-19 10:59:04 +00:00
Adrien de Peretti
58167b5dfa feat(index): Index module foundation (#9095)
**What**
Index module foundation

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-09-18 19:04:04 +00:00
Carlos R. L. Rodrigues
3cfcd075ae chore(link-modules): fulfillment order fieldAlias (#9185) 2024-09-18 14:21:43 -03:00
Adrien de Peretti
a734184538 chore(): Handle medusa service base methods events (#9179)
* chore(): Handle medusa service base methods events

* cleanup

* cleanup

* fix import

* fix decorator order

* fixes

* apply default event emition

* fix binding

* fix binding

* align tests with new event emition
2024-09-18 17:57:00 +02:00
Adrien de Peretti
81d3ae01c7 chore: Cleanup manager decorator usage (#9181) 2024-09-18 14:16:20 +02:00
Carlos R. L. Rodrigues
adbeb9cc1d fix(workflow-engine-*): pass container to flow (#9180) 2024-09-18 08:44:11 -03:00
Adrien de Peretti
a227d73e4f fix(workflow-sdk): Use the correct event group ID from the flow metadata (#9177) 2024-09-18 12:52:21 +02:00
Frane Polić
26700821a2 feat(dashboard): rework create variant flow (#9132)
**What**
- new Create variant flow which allows for pricing and inventory creation as well

---

https://github.com/user-attachments/assets/75ddcf5a-0f73-40ca-b474-2189c5e2e297

---

CLOSES CC-345
2024-09-17 17:46:23 +00:00
Adrien de Peretti
c6795dfc47 feat(modules-sdk): Parse filters based on loaded modules graph (#9158) 2024-09-17 14:20:04 -03:00
Harminder Virk
812b80b6a3 fix: migrate old links tables before performing a sync (#9164) 2024-09-17 19:20:35 +05:30
Harminder Virk
261588f6b8 fix: import open telemetry dependencies lazily (#9161) 2024-09-17 16:28:28 +05:30
Harminder Virk
a872c76b85 refactor: rename remoteQuery to query and db instrumentation flag (#9159) 2024-09-17 14:09:02 +05:30
Riqwan Thamir
987d007ba8 fix(core-flows): fixes case where inventory attempts delete when input is empty (#9156)
what:

- when an empty array is passed to the workflow, it attempts to delete all inventory locations. This PR adds a conditional to prevent it from happening.

RESOLVES CC-477

Fixes https://github.com/medusajs/medusa/issues/9154
2024-09-17 08:04:48 +00:00
Harminder Virk
653a4bff71 feat: add tracing to workflow steps (#9140) 2024-09-17 11:35:38 +05:30
Riqwan Thamir
aa0928d437 feat(dashboard,types): added inbound shipping placeholder + shipping summary details (#9150)
what:

- shipping summary

<img width="1018" alt="Screenshot 2024-09-16 at 18 05 37" src="https://github.com/user-attachments/assets/d7e3d73c-bf11-42e5-90fb-03069437e96c">

- No Shipping options placeholder

<img width="781" alt="Screenshot 2024-09-16 at 18 06 11" src="https://github.com/user-attachments/assets/05ed682a-97cd-4e66-9af1-f1e77d3d47cb">
2024-09-16 20:50:41 +00:00
Carlos R. L. Rodrigues
d6ff526820 fix(link-modules): table name (#9151)
FIXES: FRMW-2706
2024-09-16 19:08:42 +00:00
Carlos R. L. Rodrigues
ef8dc4087e feat: run nested async workflows (#9119) 2024-09-16 13:06:45 +00:00
Carlos R. L. Rodrigues
8829f89402 chore: query graph api (#9125)
CLOSES: FRMW-2704

**What**
Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-09-16 11:32:44 +00:00
Riqwan Thamir
3e97a64b21 feat(core-flows,medusa,utils,types): adds delivered_quantity to order (#9130)
what:

- adds delivered_quantity to order


https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
2024-09-16 09:59:01 +00:00
Carlos R. L. Rodrigues
950cf9af79 chore: remove container registration name (#9137) 2024-09-16 06:22:24 -03:00
Kasper Fabricius Kristensen
a2545df823 fix(dashboard): max call error onKeyDown handler (#9141)
* fix(dashboard): max call error onKeyDown handler

* cleanup

* fix linting
2024-09-16 11:01:47 +02:00
Frane Polić
9db334554f fix(core-flows): item id in reservations (#9097)
**What**
- on cart completion, when creating reservations, use line item id instead of cart item id
- NOTE: inventory reservation is now done after we create the order

---

FIXES CC-448
2024-09-16 07:33:12 +00:00
Adrien de Peretti
03d6b64a20 fix(): Query Missing bindings (#9131) 2024-09-13 18:22:38 +02:00