Commit Graph

233 Commits

Author SHA1 Message Date
Kasper Fabricius Kristensen
4bc3f5b845 feat(medusa,framework,cli,admin-bundler): Integrate admin extensions into medusa build:plugin (#10941)
**What**
Calls the `plugin` script from `@medusajs/admin-bundler` as part of `medusa plugin:build`.
2025-01-13 20:48:55 +00:00
Riqwan Thamir
1758bfb8d0 fix(dashboard, core-flows): improvements to order page on canceled orders (#10888)
what:

- Remove pending payment for canceled orders
- Hide unfulfilled items for canceled orders
- Disable non refundable payments from being refunded
- Populate refund created_by
- Disable order edit when canceled
- Fix bug https://github.com/medusajs/medusa/issues/10852

RESOLVES CMRC-842
2025-01-13 16:51:38 +00:00
Kasper Fabricius Kristensen
1ba2fadf22 feat(admin-bundler,admin-vite-plugin,medusa): Add support for loading Admin Extensions from plugins (#10869)
Should not be merged before https://github.com/medusajs/medusa/pull/10895

**What**
- Introduces a new `plugin` command to `admin-bundler`, currently not used anywhere but will be called from `medusa build:plugin`
- Discovers plugins with extensions and add passes the to `admin-vite-plugin`.
- Updates `admin-vite-plugin` so its able to read built admin extensions.

Resolves CMRC-830, CMRC-839
2025-01-13 10:45:33 +00:00
Kasper Fabricius Kristensen
bc22b81cdf feat(inventory,dashboard,types,core-flows,js-sdk,medusa): Improve inventory UX (#10630)
* feat(dashboard): Add UI for bulk editing inventory stock (#10556)

* progress

* cleanup types

* add changeset

* fix 0 values

* format schema

* add delete event and allow copy/pasting enabled for some fields

* add response types

* add tests

* work on fixing setValue behaviour

* cleanup toggle logic

* add loading state

* format schema

* add support for bidirectional actions in DataGrid and update Checkbox and RadioGroup

* update lock

* lint

* fix 404

* address feedback

* update cursor on bidirectional select
2025-01-12 19:07:14 -05:00
olivermrbl
3919b26eb6 chore: Version packages 2025-01-07 13:31:40 +01:00
Frane Polić
37aa804620 fix(dashboard): cancel order notifications (#10858)
* fix: cancel order notifications

* fix: label
2025-01-07 13:01:41 +01:00
Riqwan Thamir
47594192b7 feat(dashboard,core-flows,types,utils,medusa): Order cancelations will refund payments (#10667)
* feat(order, types): Add Credit Line to order module

* chore: add action to inject credit lines

* WIP

* chore: add fixes + observe

* chore: fix balances

* chore: add canceled badge

* chore: fix i18n schema

* chore: remove redunddant query

* chore: add changeset

* chore: add credit lines for all cancel cases

* chore: add accounting total

* chore: address review & cleanup
2025-01-07 07:56:28 +01:00
olivermrbl
348f866ffe chore: Version packages 2024-12-20 11:25:36 +01:00
Eugene Pro
3efd25d06d feat(dashboard): ability to locate new admin route under existing route (#10587)
This PR add ability to locate new admin route under existing route in sidebar.

For example, new route Brands
![image](https://github.com/user-attachments/assets/1b297fb0-296c-4e94-a4cb-f84f4c676c53)
![image](https://github.com/user-attachments/assets/80336909-1c0a-49c9-b8e1-3b1137ae2e48)

https://github.com/user-attachments/assets/b46b1813-e92e-4b67-84a1-84660023ac7c
2024-12-19 12:23:21 +00:00
Frane Polić
c7008bb569 fix: order details status (#10650) 2024-12-18 12:56:18 +01:00
Frane Polić
bde4b82194 feat(core-flows,dashboard,js-sdk,medusa,types): support Fulfillment Options (#10622)
**What**
- add a list point for fetching fulfillment options for a provider
- add FO support on SO create & update on dashboard
- pass `cart` and `stockLocation` to `validateFufillmentData` context

---

CLOSES CMRC-789
CLOSES CMRC-790
2024-12-18 09:16:26 +00:00
olivermrbl
a391a29aa8 chore: Version packages 2024-12-17 14:41:05 +01:00
Riqwan Thamir
6367bccde8 feat(medusa,pricing): Cart pricing context with customer group (#10579)
* fix(carts): Fixes cart modifications not accounting for certain price lists (#10493)

*What*

* Fixes #10490
* Expands any available customer_id into its customer_group_ids for cart
  updates that add line items.

*Why*

* Cart updates from the storefront were overriding any valid price lists
  that were correctly being shown in the storefront's product pages.

*How*

* Adds a new workflow step that expands an optional customer_id into the
  customer_group_ids it belongs to.
* Uses this step in the addToCartWorkflow and
  updateLineItemInCartWorkflow workflows.

*Testing*
* Using medusa-dev to test on a local backend.
* Adds integration tests for the addToCart and updateLineItemInCart
  workflows.

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>

* chore: update cart workflows to accept new pricing context

* chore: add transfer specs

* chore: fix specs

* chore: modify types + specs

* chore: add data migration + dashboard changes

* chore: fix update line item workflow

* chore: add changeset + unskip spec

---------

Co-authored-by: Sergio Campamá <sergiocampama@gmail.com>
2024-12-17 11:10:30 +01:00
Kasper Fabricius Kristensen
dc5e73af4d fix(dashboard): Prevent fulfillment provider modal from re-rendering before form submission is complete (#10547)
Resolves CMRC-782
2024-12-11 13:10:58 +00:00
Frane Polić
d8a92dbb2d feat(core-flows, dashboard, fulfillment, fulfillment-manual, utils, types): create shipping options with calculated prices (#10495)
**What**
- support creating SO with calculated price
- support updating SO for both types of pricing
- update `validateShippingOptionPricesStep` to handle both SO price_types
- add the `validateShippingOptionsForPriceCalculation` method to `FulfillementModule`
- add `canCalculate` and `calculatePrice` to fulfillment provider service service / interface / manual provider
- disable SO pricing edit on Admin if SO price type is calculated

---

CLOSES CMRC-776
2024-12-11 08:38:44 +00:00
Avia-Code
777582ac43 feat: added Ukrainian translations (#10536)
This pull request adds support for the Ukraine language in the MedusaJS Admin Dashboard.
Full translation, and json schema tests passed successfully
2024-12-10 22:17:00 +00:00
olivermrbl
0e342b491d chore: Version packages 2024-12-10 14:01:50 +01:00
Kasper Fabricius Kristensen
de81187929 fix(dashboard): Add FE validation for conditional prices (#10523)
* fix(dashboard): Add FE validation for conditional prices

* fix(dashboard): Add FE validation for conditional prices

* lint

* only set error on one field

* fix which field shows error
2024-12-10 11:57:10 +01:00
Kasper Fabricius Kristensen
c9a66b19af fix(dashboard,ui): ConditionBlock styling (#10481)
**What**
- Resolves CMRC-58
- Also fixes some other issues, TS errors, Eslint warnings etc. in the Promotion domain. There are still several TS errors as the return types from `@medusajs/types` don't seem to match how they are used here, but I have left that as is, as I am not super familiar with the Promotion module.
2024-12-09 17:42:19 +00:00
Kasper Fabricius Kristensen
a1a1e0e789 feat(dashboard): SO cart item total rules UI (#10386) 2024-12-09 09:44:11 +01:00
Kasper Fabricius Kristensen
864f53011b fix(dashboard,types): Fix TS errors (#10457)
**What**
- Fixes TS erros in dashboard project
- Updates incorrect HTTP Invite types
- Fixes incorrectly formatted dates in dashboard
2024-12-08 11:51:13 +00:00
Hirotaka Mizutani
55f5ce4690 feat: added Japanese translation (#10379)
* feat: add Japanese language support

* feat: add missing required keys for Japanese translation
2024-12-07 21:52:15 +08:00
Kasper Fabricius Kristensen
7e04091b49 fix(dashboard): Prevent sending off empty string as handle for product category (#10473) 2024-12-06 12:33:18 +01:00
Adrien de Peretti
559fc6587a fix(): Deleted default sales channel should be prevented (#10193)
FIXES CMRC-722

**What**
- It should not be allowed to delete a default sales channel
- The admin does not allow to delete a sales channel use as the default for the store
2024-12-05 16:19:45 +00:00
Kasper Fabricius Kristensen
2b455b15a6 fix(dashboard): Cleanup unsafe accesses to possibly undefined values in order timeline (#10454)
**What**
- Fixes an unsafe access to a field that may be undefined if an order was created through a custom workflow.
2024-12-05 15:51:35 +00:00
Kasper Fabricius Kristensen
16663ec813 fix(dashboard,types): Add missing Metadata form for Region domain and fix payload types (#10449) 2024-12-05 14:03:29 +00:00
olivermrbl
4723acd949 chore: Version packages 2024-12-04 18:36:57 +01:00
Kasper Fabricius Kristensen
3d5ca155e3 fix(dashboard): Prevent order details page from crashing on no region (#10431)
Resolves SUP-356
2024-12-04 16:18:54 +00:00
Kasper Fabricius Kristensen
c6f955f0b5 fix(dashboard): Add Shipping Profile metadata route (#10430) 2024-12-04 17:09:44 +01:00
Frane Polić
340769595a feat(admin, js-sdk, types): update order forms (#10418)
* feat: edit shipping, billing and email forms

* feat: timeline history, update change model, update tests

* fix: address comments

* fix: invalidation, translation schema, update label

* fix: old/new
2024-12-04 14:56:40 +01:00
Kasper Fabricius Kristensen
a5c8cc992c fix(dashboard): Prevent language ptBR from breaking dashboard (#10422) 2024-12-04 10:44:04 +01:00
Kasper Fabricius Kristensen
e8f4f7ea2b fix(dashboard): Add default value to inventory item combobox (#10412)
**What**
- Resolves CMRC-761
- Fixes TS errors in the same file.

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-12-03 18:03:54 +00:00
Kasper Fabricius Kristensen
18583ed567 fix(dashboard): Fix broken number input in adjust inventory form (#10416) 2024-12-03 18:36:20 +01:00
Lucien Blunk-Lallet
56ae076fd2 Fix French translation typos (#10348)
Hello,

This is just a small PR to fix a few typos with the French translation, especially with the template strings.

Best regards.
2024-12-03 11:35:37 +00:00
Marco Sannino
56e9acbed8 feat: added Italian translations (#10362) 2024-12-02 19:34:27 +01:00
Karl Hofmann
12884966e3 German language corrections (#10394) 2024-12-02 17:57:30 +01:00
olivermrbl
e9c1b1127e chore: Version packages 2024-11-27 15:40:07 +01:00
anthid
e04c9cfb04 fix(dashboard): Correct Spain provinces in country-states.ts (#10264)
Issues Addressed:

- Missing provinces (e.g., Ceuta, Melilla).
- Incorrect inclusion of states as provinces (e.g., Andalucía).
- Inclusion of a province from another country (e.g., Nouvelle-Calédonie).

Solution:

This update provides an accurate list of Spain's provinces based on the ISO 3166-2 standard.   Reference: [ISO 3166-2:ES - Provincias](https://es.wikipedia.org/wiki/ISO_3166-2:ES#Provincias).
2024-11-27 13:31:47 +00:00
Kasper Fabricius Kristensen
0be25a7b69 chore(dashboard): Add missing keys to i18n translation files (#10260)
**What**
- Updates existing translation files with missing keys. Done using AI, so quality is debatable. Will depend on community to provide better translations if needed.
2024-11-27 13:24:59 +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
Vincent Cottalorda
1b55f477a6 French translation V2 (#10301)
This PR improves the French translations already submitted.
- Corrected missing translations.
- Ensured the JSON structure matches the English version.
- Verified consistency across all keys.

The file is very large and it's hard to make sure everything is right.

The previous Similar PR is [Add french trad in i18n translations #9885](https://github.com/medusajs/medusa/pull/9885)

Let me know if additional changes are needed! Happy to help :)

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-11-27 12:47:28 +00:00
Frane Polić
2ed63b1534 fix(dashboard): adjust transfer SVG for theme (#10307)
**What**
- make order transfer SVG header work on light and dark theme
2024-11-27 12:07:07 +00:00
Kasper Fabricius Kristensen
da536aba24 fix(dashboard): Truncate long product organization tags (#10261)
Resolves CMRC-736
2024-11-26 12:00:25 +00:00
Frane Polić
1bf60c7a7d feat(dashboard, js-sdk): customer page transfer order + cancel request in timeline (#10250)
**What**
- request order transfer from admin customers details page
- cancel transfer request from order timeline

---

CLOSES CMRC-730
2024-11-26 11:42:47 +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
Dos
1bd82a9b13 feat: add Thai language support (#10249) 2024-11-25 12:59: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