Commit Graph

5751 Commits

Author SHA1 Message Date
Frane Polić
4c2e9a3239 feat(dashboard): allocate items (#8021)
**What**
- add Allocate items flow

---


https://github.com/medusajs/medusa/assets/16856471/8485c8dc-b1f2-4239-bb22-996345d5d2ad
2024-07-12 07:57:00 +00:00
github-actions[bot]
ba06c9557c chore(docs): Generated References (automated) (#8099)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2024-07-12 09:32:00 +02:00
github-actions[bot]
3730b79472 chore(docs): Generated API Reference (v2) (#8100)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2024-07-12 09:25:00 +02:00
Riqwan Thamir
04819107dd feat(core-flows,types): add workflow to request item return (#8098) 2024-07-11 19:45:40 +02:00
Shahed Nasser
85c15dbb25 fix(utils): error message when isQueryable is possibly not enabled. (#8096) 2024-07-11 18:54:43 +02:00
Adrien de Peretti
79ec2bcfe2 fix: Migration generator and generated migrations (#8090) 2024-07-11 18:21:09 +02:00
Shahed Nasser
eebae37287 chore: add generated OAS and Typedoc output to automated PRs (#8054)
* chore: add generated OAS output to automated PR

* add typedoc json output
2024-07-11 18:17:37 +02:00
Shahed Nasser
d8f58774df docs: highlight fixes (#8094) 2024-07-11 18:15:50 +02:00
Frane Polić
ac416e99a1 fix(dashboard): product create input focus (#8095) 2024-07-11 18:09:49 +02:00
Shahed Nasser
78f49286d0 docs: updated marketplace recipe + added example (#8061)
- Moved recipes into its own section of the learning resources
- Updated the marketplace recipe overview
- Added an example implementation of the marketplace recipe

Closes DOCS-791
2024-07-11 15:56:41 +00:00
Kasper Fabricius Kristensen
b5a44ef6b1 feat(dashboard,medusa): Add updated Metadata Form (#8084)
**What**
- Adds new Metadata form component.
- Adds the Metadata section as an option to the Page layouts

<img width="576" alt="Skærmbillede 2024-07-11 kl  11 34 06" src="https://github.com/medusajs/medusa/assets/45367945/417810ee-26e2-4c8a-86e3-58ef327054af">
<img width="580" alt="Skærmbillede 2024-07-11 kl  11 34 33" src="https://github.com/medusajs/medusa/assets/45367945/437a5e01-01e2-4ff7-8c7e-42a86d1ce2b3">


**Note**
- When Metadata contains non-primitive data, we disable those rows, and show a placeholder value, a tooltip and an alert describing that the row can be edited through the API. I want to add a JSON editor to allow editing these things in admin, but awaiting approval on that.
- This PR only adds the new form to a couple of pages, to keep the PR light, especially since metadata is not implemented correctly in all validators so also needs some changes to the core. This still show some examples of how its used with the new Page layout components. Will follow up with more pages in future PRs. 
- We try to convert the inputs to the best fitting primitive, so if a user types "true" then we save the value as a boolean, "130" as number, "testing" as a string, etc.
2024-07-11 13:54:59 +00:00
Shahed Nasser
66acb3023e fix(migrations): small fix to the text (#8091)
Small fix to  the migrations text.
2024-07-11 13:16:11 +00:00
Carlos R. L. Rodrigues
b5c658f071 feat(core-flows): begin returns, claims and exchanges (#8088)
* chore(order): begin return

* claims and exchanges
2024-07-11 09:53:00 -03:00
Shahed Nasser
368715ae37 docs: document when-then + migrations revert change (#8089)
- Add documentation around when-then and workflow conditions
- Change the CLI reference based on change in revert migrations command.
2024-07-11 12:30:50 +00:00
Harminder Virk
e489b0c037 fix: gracefully handle migrations that cannot be reverted (#8087) 2024-07-11 17:40:34 +05:30
Harminder Virk
45c573b03a Feat: Improvements to the migrations CLI and workflow (#8060) 2024-07-11 16:52:34 +05:30
Shahed Nasser
bb0303cd6a docs: improvements to module and data model documentation (#8062)
* docs: improvements to module and data model documentation

* add note about data model name casing
2024-07-11 13:53:40 +03:00
Shahed Nasser
02add3f0f5 docs: change event payload handling in subscribers (#8078) 2024-07-11 13:34:24 +03:00
Adrien de Peretti
143847ace4 fix: Investigate geo zones with address checks (#8066)
* fix: Investigate geo zones with address checks

* rm debug

* fix constraint building checks

* add more explanation
2024-07-11 11:11:42 +02:00
Riqwan Thamir
8a548cbc2f feat(core-flows,types): add workflow to update order change actions (#8080) 2024-07-11 11:04:41 +02:00
Adrien de Peretti
1789b8e315 chore: properly infer return type from model config (#8079) 2024-07-11 10:36:07 +02:00
github-actions[bot]
adfa1d8574 chore(docs): Updated API Reference (v2) (#8073)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
2024-07-11 07:59:07 +00:00
Mostafa Al Mohammad
f441663224 docs: fix typo in curl command example (#8071)
## Documentation Typo Fix: curl Command for Testing Service

This pull request addresses a typo in the documentation for testing the service via curl command on the page: [https://docs.medusajs.com/v2/basics/modules-and-services](https://docs.medusajs.com/v2/basics/modules-and-services)

**Initial Command (incorrect):**

```
curl http://locahost:9000/store/custom
```

**Corrected Command:**

```
curl http://localhost:9000/store/custom
```

The typo involved a missing "l" in "localhost". This fix ensures users can successfully test the service by providing the correct curl command.
2024-07-11 07:53:09 +00:00
github-actions[bot]
86aeca0932 chore(docs): Generated References (#8072)
Generated the following references:
- `medusa`
- `modules`
- `order`
- `types`
2024-07-11 07:52:36 +00:00
Shahed Nasser
a8df528c65 docs: add a need help button (#8069)
* docs: add a need help button

* change github issue link

* responsive fixes
2024-07-11 10:29:13 +03:00
Carlos R. L. Rodrigues
f460348280 fix(utils): define link alias + pluralize (#8070)
What:
 * Fix alias of models that have "compound names": eg "related_product"
 * `deleteCascade` option
 * Package to pluralize english words correctly
2024-07-10 22:37:14 +00:00
Oli Juhl
256912f392 fix(tax): Add indexes to enforce unique constraint on tax region (#8067) 2024-07-10 20:09:19 +02:00
Frane Polić
74c19308a0 fix(dashboard): stock location hook cache invalidation (#8049) 2024-07-10 20:06:36 +02:00
Frane Polić
b289510b46 fix(dashboard, medusa): mark shipped flow (#8065)
* fix: mark shipped routing

* fix: naming
2024-07-10 19:37:12 +02:00
Adrien de Peretti
e778870c68 chore: Ensure the events are emitted with the same shape all accross (#8063)
* chore: Ensure the events are emitted with the same shape all accross

* fixes:

* rm unsues type

* types

* fix tests
2024-07-10 19:34:28 +02:00
Riqwan Thamir
95f29358d1 feat(core-flows, types): workflow to delete order change actions (#8064)
* chore: workflow to delete order change actions

* chore: fix soft delete signature
2024-07-10 18:31:12 +02:00
Shahed Nasser
d9b9a1df27 docs: add a section about constraints on step return value (#8036)
Rename the workflow constructor constraints document to include also step constraints and add a section about the allowed return value of a step.
2024-07-10 13:21:53 +00:00
Kasper Fabricius Kristensen
4cf4a36c9c fix(ui): Use correct text style for primary button (#8059)
* progress

* fix

* use correct style for primary button text
2024-07-10 15:07:04 +02:00
Carlos R. L. Rodrigues
de36e2b36e chore: rename return flow (#8050) 2024-07-10 08:09:10 -03:00
Riqwan Thamir
bec2dcd667 feat(core-flows, order): add workflow to create change order actions (#8056)
what:

- adds workflow to create change order actions
2024-07-10 10:35:03 +00:00
Kasper Fabricius Kristensen
04ec8e758f fix(dashboard): Add safe zone around link Table rows (#8058)
**What**
- After adding Table rows as links there was an issue where clicking close to a Checkbox in a row would click the link. This PR adds a safe zone around the Checkboxes, so you don't end up navigating when trying to select a row.

![image](https://github.com/medusajs/medusa/assets/45367945/7091d6d5-665d-41c7-8b2b-63244fef73b2)

RESOLVES CORE-2566
2024-07-10 10:34:11 +00:00
Kasper Fabricius Kristensen
046a34bdfc feat(dashboard,types,js-sdk,ui): Tax Regions UI (#7935) 2024-07-10 09:26:43 +00:00
github-actions[bot]
75e7047243 chore(docs): Generated References (automated) (#8052)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2024-07-10 09:36:11 +02:00
github-actions[bot]
7fa04aabce chore(docs): Generated API Reference (v2) (#8053)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2024-07-10 09:35:59 +02:00
github-actions[bot]
964f1f9dbe chore(docs): Generated References (automated) (#8026)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-07-09 19:03:13 +02:00
Carlos R. L. Rodrigues
90a34afe87 fix(core-flows): order partial fulfillment (#8047) 2024-07-09 13:46:45 -03:00
Kasper Fabricius Kristensen
6e613f4f50 feat: Update toast design (#8018)
**What**
- Updates the Toast component and `toast` util to match the latest design. 
- Updates every usage of `toast` as `dismissableLabel` is no longer a valid prop, as we now render a X mark instead of a text button.
2024-07-09 16:14:19 +00:00
Kasper Fabricius Kristensen
24fc6befd2 fix(dashboard): Allow cmd+click on table rows (#8045) 2024-07-09 17:57:09 +02:00
Shahed Nasser
5c44ce6640 docs: updates to local file module provider documentation (#8030)
Updates to the local file provider module's documentation based on latest changes
2024-07-09 15:25:05 +00:00
Shahed Nasser
3e4a96a31c docs: update order module's conceptual guides (#7893)
* fixes + add return document

* update order conceptual guides

* resolve todo

* re-generate files map
2024-07-09 18:14:30 +03:00
Kasper Fabricius Kristensen
d46f9fda21 fix(admin-vite-plugin): ensure forward slashes are used for paths (#8023) 2024-07-09 17:12:48 +02:00
Shahed Nasser
273529fde5 docs: added chapter on managing relationships (#8043) 2024-07-09 18:12:00 +03:00
Kasper Fabricius Kristensen
880a91d569 fix(dashboard): Shipping Type tooltip (#8042) 2024-07-09 17:08:38 +02:00
Carlos R. L. Rodrigues
2b2e2fbb3d chore(order): preview order change (#8025)
What:
 - new method `previewOrderChange`
   - Calculate all the actions related to an order change.
   - Return the preview of the final Order, with all the calculated values.
   - Associate actions with items and shipping_methods they modified.

FIXES: CORE-2509
2024-07-09 14:45:55 +00:00
Kasper Fabricius Kristensen
4736d9e2dd fix(dashboard): JSON view (#8038)
* updated json view

* cleanup

* cleanup
2024-07-09 16:45:22 +02:00