Shahed Nasser
2838100efc
fix(product): change export name of ProductImage ( #10326 )
...
Change export of `Image` to `ProductImage` to match the data model's name.
2024-11-27 17:35:06 +00:00
Shahed Nasser
ef046844cc
fix(medusa): remove request body type argument from cancel order transfer routes ( #10327 )
...
Remove the request body type passed as a type argument for admin and store routes for order transfer cancelation. Since the type is empty, it leads to a generated empty request body schema in the API reference.
2024-11-27 17:07:20 +00:00
olivermrbl
e9c1b1127e
chore: Version packages
2024-11-27 15:40:07 +01:00
Carlos R. L. Rodrigues
e9003c3124
fix(utils): read dir recursive ( #10318 )
...
What:
- Using `Object.defineProperty) to avoid issues on Node versions that set this property as readonly.
2024-11-27 14:37:07 +00:00
Kasper Fabricius Kristensen
2edc2fe19b
fix(dashboard): Prevent product metadata form from throwing error ( #10312 )
...
Resolves CMRC-755
2024-11-27 13:20:12 +00:00
Kasper Fabricius Kristensen
030ee87150
fix(dashboard): Align casing of fields in reset password event ( #10313 )
...
* fix(dashboard): Align casing of fields in reset password event
* update changeset
2024-11-27 13:06:04 +01:00
Kasper Fabricius Kristensen
da536aba24
fix(dashboard): Truncate long product organization tags ( #10261 )
...
Resolves CMRC-736
2024-11-26 12:00:25 +00:00
Kasper Fabricius Kristensen
344a6c9ea0
fix(dashboard): Add Metadata form to variant page ( #10285 )
...
Adds Metadata form to the Product Variant details page.
2024-11-26 11:40:07 +00:00
Kasper Fabricius Kristensen
3ab056e572
feat(dashboard): Allow setting a tooltip for disabled action items ( #10234 )
...
**What**
- Allow passing a `disabledTooltip` for actions in a `ActionMenu`. Useful for providing context for the user why a option is disabled. E.g. `{ disabled: sales_channel.is_default, disabledTooltip: "Deleting the default Sales Channel is not allowed. Please assign a different default Sales Channel for your store". }`
2024-11-25 13:01:26 +00:00
Danilo Silva
ade1545207
feat: add ptBR (Brazilian Portuguese) in translations ( #10188 )
...
**Changelog**
- Add translation in Portuguese (Brazil)
- Updates test suites that validate translations (*.json) and corresponding $schema.json.
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2024-11-25 12:27:23 +00:00
olivermrbl
ccf4e801f3
chore: Version packages
2024-11-25 12:14:36 +01:00
Kasper Fabricius Kristensen
c28d0db164
fix(product, dashboard): manual cleanup of uploaded images ( #10254 )
...
* manual cleanup
* add changeset
* remove thumbnail on deletion
2024-11-25 11:44:22 +01:00
olivermrbl
4245312d8d
chore: Version packages
2024-11-25 09:57:00 +01:00
Kasper Fabricius Kristensen
1659c9be5d
feat(product,dashboard): Allow re-ordering images ( #10187 )
...
* migration
* fix snapshot
* primarykey
* init work on dnd
* progress
* dnd
* undo changes
* undo changes
* undo changes
* undo changes
* fix firefox issue
* lint
* lint
* lint
* add changeset
* undo changes to product module
* set activator node
* init work on service layer
* alternative
* switch to OneToMany
* add tests
* progress
* update migration
* update approach and remove all references to images in product.ts tests
* handle delete images on empty array
* fix config and order type
* update changeset
* rm flag
* export type and fix type in test
* fix type
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-11-25 09:03:10 +01:00
Kasper Fabricius Kristensen
96b8963a6c
fix(admin-vite-plugin): Move @babel/types to dependencies from devDependencies to make it compatible with Yarn PnP ( #10236 )
2024-11-22 20:49:35 +00:00
Kasper Fabricius Kristensen
d6ff8d7aa1
fix(js-sdk): Preserve path in baseUrl ( #10222 )
...
**What**
- Currently the `js-sdk` will discard the path in the `baseUrl` and only use the `origin`. As an example passing a `baseUrl` of `"http://localhost:9000/custom/path "`, will result in only `"http://localhost:9000 "` being used.
- This PR preserves the path, so using `sdk.admin.products()` will make a request to `"http://localhost:9000/custom/path/admin/products `. For an explanation of when this might be useful see this issue: https://github.com/medusajs/medusa/issues/10190#issuecomment-2492974845
Resolves CMRC-740
2024-11-22 14:52:54 +00:00
Alan Martinez
60b13c191e
Support spanish translation ( #10213 )
...
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2024-11-22 13:18:45 +00:00
Riqwan Thamir
6486f2bcce
feat(core-flows,medusa): remove cart customer validation + rename workflow ( #10207 )
...
what:
- removes cart customer takeover validation
- change workflow from update to transfer
2024-11-21 16:57:03 +00:00
Carlos R. L. Rodrigues
aeb5b43692
feat(workflows-sdk): add response to permanent failure ( #10177 )
2024-11-20 17:29:37 -03:00
Carlos R. L. Rodrigues
42c08fa8e0
fix(framework): handle deprecated Dirent path ( #10179 )
...
What:
- `Dirent` class from `NodeJS` has different properties in different versions, causing issues in our loaders.
- Util `readDirRecursive` was introduced, avoiding old node versions to break
FIXES: https://github.com/medusajs/medusa/issues/8419
2024-11-20 20:25:48 +00:00
Riqwan Thamir
6680f69588
fix: move transfer cart under cart ( #10175 )
...
made a whoopsie!
2024-11-20 11:12:49 +00:00
Riqwan Thamir
1185be31c4
fix: incorrect changeset breaks preview builds ( #10173 )
2024-11-20 09:41:40 +00:00
Shahed Nasser
3fee17747f
fix(types): fix AdminBatchProductRequest to have product ID ( #10168 )
2024-11-20 11:10:26 +02:00
Harminder Virk
7390c14c20
feat: add support for making relationships searchable ( #10172 )
...
Closes: FRMW-2784
2024-11-20 08:39:44 +00:00
Harminder Virk
9dff05cdde
Revert "feat: add optional fields" ( #10159 )
...
Reverts medusajs/medusa#10150
2024-11-19 13:28:02 +00:00
Adrien de Peretti
1f44281ed6
fix(product): Update full descendant tree mpath when updating parent category id ( #10144 )
...
FIXES FRMW-2774
**What**
When updating the parent category id, all descendant mpath should be re computed
2024-11-19 12:51:34 +00:00
Adrien de Peretti
7aa990795c
chore(): Update module provider retrieval error message and type ( #10138 )
...
Partially RESOLVES FRMW-2802
**What**
Improve error message and change the error type when retrieving a provider from a local container fail
2024-11-19 11:19:19 +00:00
Harminder Virk
661ea7865c
feat: add optional fields ( #10150 )
2024-11-19 16:28:33 +05:30
Adrien de Peretti
b1b7a4abf1
fix(payment): Idempotent cancellation and proper creationg fail handling ( #10135 )
...
RESOLVES SUP-188
**What**
Two changes are happening here
- In the stripe payment provider, idempotent cancellation action, if not id is provided then return the existing data unchanged
- Payment module should not try to cancel a session that have failed to be created in the first place
2024-11-18 17:45:13 +00:00
Carlos R. L. Rodrigues
47ca1d4b54
fix(inventory): update reservation quantity ( #10139 )
2024-11-18 11:55:22 -03:00
Harminder Virk
d933b3f1e4
Refactor/finish rename order ( #10136 )
2024-11-18 15:31:29 +05:30
Adrien de Peretti
2822972e04
fix(product): wrong snapshot name and inexistent script ( #10119 )
...
* chore(product): Rename wrong snapshot name and add missing elements
* rm non existing command
* Create proud-pigs-deny.md
2024-11-15 15:53:41 +01:00
Kasper Fabricius Kristensen
493d242c12
fix(dashboard): Add Breadcrumb components ( #10079 )
...
**What**
- Adds Breadcrumb component to all routes that needs breadcrumbs.
- The Breadcrumb components use a combination of loader data and useQuery to ensure that the displayed value is kept up to date if the underlying data is changed via a mutation.
- Also fixes a couple of places where the breadcrumb was not setup correctly.
Resolves CMRC-688
2024-11-15 13:13:03 +00:00
Kasper Fabricius Kristensen
8ed3d87c23
fix(dashboard): Add missing inventory list zones ( #10117 )
...
Resolves CMRC-710
2024-11-15 13:09:26 +00:00
Kasper Fabricius Kristensen
dea86d8c87
fix(dashboard): Fix active nav link styling for built-in routes ( #10082 )
...
**What**
- Ensures that NavLinks are correctly styled for both built-in and extension routes.
2024-11-14 18:32:52 +00:00
Kasper Fabricius Kristensen
a153bc477c
fix(admin-shared,dashboard): Add missing injection zones ( #10098 )
...
**What**
- Adds missing InjectionZones for ProductVariant details page.
- Removes v1 related zones, such as GiftCard and DraftOrder.
2024-11-14 18:32:36 +00:00
Carlos R. L. Rodrigues
06ce16c90b
chore(local-file): throw error if file exist ( #10087 )
2024-11-14 12:11:37 -03:00
Furman
4c983557f9
feature: Add email to google provider-identity metadata ( #10081 )
...
* feature: Add email to google provider-identity metadata
* Include changeset.
---------
Co-authored-by: Stevche Radevski <sradevski@live.com >
2024-11-14 15:01:53 +01:00
Carlos R. L. Rodrigues
3e265229f2
chore(event-bus): event bus error handling ( #10085 )
2024-11-13 18:03:29 -03:00
Harminder Virk
d9d4e575f6
fix: do not update the .env.template file with the database name ( #10073 )
...
Fixes FRMW-2775
2024-11-13 12:28:13 +00:00
Carlos R. L. Rodrigues
fc5d2b5fca
feat(core-flows): order add quantity diff ( #10065 )
2024-11-12 16:49:58 -03:00
Carlos R. L. Rodrigues
2344012d1c
fix(core-flows): capture before order created ( #9980 )
...
What:
When `autocapture` is enabled, the webhook is processed before the order was created.
The payment processing workflows were merged into a single one
FIXES: SUP-118, SUP-9
https://github.com/medusajs/medusa/issues/9998
2024-11-12 13:43:48 +00:00
Carlos R. L. Rodrigues
1eef324af3
fix(orchestration): fix set step failure ( #10031 )
...
What:
- copy data before saving checkpoint
- removed unused data format function
- properly handle registerStepFailure to not throw
- emit onFinish event even when execution failed
2024-11-12 10:06:36 +00:00
olivermrbl
d5605656ae
chore: Version packages
2024-11-12 10:10:07 +01:00
Kasper Fabricius Kristensen
904f0926f1
fix(dashboard): Load product variant edit page and fix product detail query key ( #10029 )
...
**What**
- Fixes Edit Variant form so it properly loads the product variant
- Fixes the query key for product details to prevent the cache from being shared between queries for the same ID but with different params.
Resolves CMRC-685
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com >
2024-11-12 08:40:08 +00:00
Kasper Fabricius Kristensen
34f4f695c0
fix(types): Add AdminBatchUpdateProductVariant type ( #10009 )
2024-11-11 19:30:44 +01:00
Shahed Nasser
0ef92cce28
chore(medusa): show success message after user is created ( #10027 )
2024-11-11 20:16:14 +02:00
Harminder Virk
bc2d556c2c
docs: add changeset for #10011 ( #10018 )
...
Missed changeset in this PR https://github.com/medusajs/medusa/pull/10011 .
Trying to get into the habit of creating one 🙏
2024-11-11 12:15:48 +00:00
Paweł Romanowski
5c22c57cb8
feat: add Polish language support ( #9770 )
...
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2024-11-11 10:07:28 +00:00
olivermrbl
ecece05b72
chore: Version packages
2024-11-11 10:58:20 +01:00