Commit Graph

248 Commits

Author SHA1 Message Date
Kasper Fabricius Kristensen
40686ba980 fix(medusa,admin-ui): Remove forced backendUrl in development, and allow alternative host value. (#7128) 2024-04-24 09:50:59 +02:00
Shahed Nasser
0bf0bf819b fix(admin-ui): Resolve node-gyp error during installation with npm (#6952)
Fix `node-gyp` error that occurs during installation when using NPM and 20+ versions of Node.js. The error results from the package `@stdlib/number-float64-base-normalize` which is a dependency of `@segment/analytics-next`. Installing v0.0.8 resolves the error.

More details in PR #6485

## Testing

To test out the fix:

1. In a Medusa backend, remove the installation of `@stdlib/number-float64-base-normalize` (if available) and add instead the following override:

```json
  "overrides": {
    "@medusajs/admin": {
      "@medusajs/admin-ui": "2.1.14-snapshot-20240405070935"
    }
  }
```

2. Remove node_modules + any previous package-lock.json
3. Change to node v20+ and use npm to install dependencies -> no error occurs during installation.
2024-04-05 07:56:39 +00:00
Adrien de Peretti
d4d1f9b2f2 fix: integration tests modules expectations (#6848)
**What**
- fix tests
- cleanup deprecated jest conf
2024-03-27 15:39:20 +00:00
github-actions[bot]
74e17ee6f9 chore: Version Packages (#6757)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 18:04:04 +01:00
Oli Juhl
ef58826dd2 fix(admin-ui, admin): Add missing regions relation (#6824) 2024-03-26 11:37:21 +01:00
Frane Polić
2ae8eaa779 feat(dashboard) admin 3.0 return creation (#6713)
**What**
- request return flow

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-03-22 16:57:18 +00:00
Mohammed Faiyyaz Khatri
76ff9e87b6 fix(utils): Symbol for Indian Currency (#6453) 2024-02-20 15:45:01 +01:00
github-actions[bot]
16851c557d chore: Version Packages (#6241)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-08 16:23:19 +01:00
Erik Engervall
58baead34e fix(admin-ui) Refactor use-copy-promotion to map product IDs (#6306) 2024-02-04 14:18:54 +01:00
invalid w
3f41d818b6 chore(admin-ui): add key for gift-cards table cells map fn (#6154)
![image](https://github.com/medusajs/medusa/assets/24707417/e13ff43b-770e-4698-bb9a-e22b866069f6)
2024-01-22 09:43:23 +00:00
invalid w
2cca3627c3 fix(admin-ui->Collections): add key for map fn. resolve #6106 (#6107)
resolve #6106.


just add key for map fn.
2024-01-18 14:32:45 +00:00
github-actions[bot]
47272bf2b9 chore: Version Packages (#5880) 2024-01-09 18:41:35 +01:00
Mohamed Abusaid
46d610bc55 feat(admin): Add Libya admin region and set Libya to formal name (#6001) 2024-01-07 14:33:40 +01:00
hmmhmmhm
a3460e5a1a feat(admin): Add Japanese language support (#5795) 2023-12-19 15:06:37 +00:00
Petr Kolonicz
7ecea34487 feat(admin): Add Czech language support (#5822)
- add Czech messages
- add Czech to supported languages
- add Czech to the docs

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2023-12-19 14:35:00 +00:00
Bogdan Ošep
e513cbae6b Slovenian(sl) translation (#5828)
Admin UI  - Translation into slovenian language(sl - slovenščina)
2023-12-18 11:15:57 +00:00
Edi
9c71c1d864 Bulgarian language support (#5786)
Bulgarian language support for the Admin dashboard
2023-12-18 10:49:04 +00:00
Chris
c444b036f7 feat(admin): Added Simplified Chinese support (#5798)
* feat(admin): Added Simplified Chinese support

* feat(admin): Update zh translation.json

* docs: Add Simplified Chinese to Admin language support list

* Revert "docs: Add Simplified Chinese to Admin language support list"

This reverts commit 51cca40211ac7e01ac7f78429107ace44785878a.
2023-12-18 11:23:26 +01:00
github-actions[bot]
7f5e638f61 chore: Version Packages (#5754)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 15:27:39 +01:00
Kasper Fabricius Kristensen
8ab5baf78a fix(admin-ui): Bulk editor default fields (#5829)
* fix(ui): Bump cva and minor type fixes

* fix version of cva

* fix default fields
2023-12-10 19:36:08 +01:00
LULU
1c90610617 feat(admin-ui): metadata for categories in admin ui and refactor to react-hook-form (#5697)
* WIP

* add metadata to category add and edit ui

* remove console.log

* lint

* remove console.log

* requested changes getDefaultCategoryValues util

* change placeholder and wrap handleSubmit

* Update edit-product-category.tsx

---------

Co-authored-by: lulu <lucjan.grzesik@gmail.com>
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-12-07 10:51:21 +01:00
Adrien de Peretti
6975eacb33 feat(medusa): Improve add line item to cart perf and transaction management + clustering start command (#5701) 2023-12-06 08:53:35 +01:00
iweurman
f20d484b23 feat(admin): Add Korean language support (#5769)
* Add Korean language support

* Add to docs

* Create angry-eels-guess.md

---------

Co-authored-by: olivermrbl <oliver@mrbltech.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-12-03 14:40:15 +01:00
github-actions[bot]
935e9f0561 chore: Version Packages (#5673)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-27 16:43:51 +00:00
Kasper Fabricius Kristensen
d5526736ec fix(admin-ui): fix height of Bulk Editor cells to always be 40px (#5737) 2023-11-27 16:34:53 +00:00
Philip Korsholm
3bcf08c0cb fix(admin-ui): inventory item deletion when removing product (#5727) 2023-11-27 13:42:55 +00:00
Kasper Fabricius Kristensen
5f6751a61f fix(admin-ui): Fix Y-axis scroll in bulk editor (#5726) 2023-11-27 11:13:11 +00:00
Kasper Fabricius Kristensen
07934cdaac fix(admin-ui): Edit prices requires at least one product (#5710) 2023-11-24 13:54:07 +00:00
Kasper Fabricius Kristensen
f4c489fb85 fix(admin-ui): Fix issue with null product categories (#5707)
* fix(admin-ui): If categories is null on a product the details page should not crash

* cleanup variant warning to reflect pricing changes
2023-11-24 12:51:32 +00:00
Philip Korsholm
02ea9ac3ac feat(admin-ui): Delete pricing forms from edit + create variant modals (#5676) 2023-11-23 15:31:32 +00:00
github-actions[bot]
f4085dbede chore: Version Packages (#5622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-21 08:46:09 +00:00
Kasper Fabricius Kristensen
c08240df3f fix(admin-ui): Preserve decimal numbers when locale uses commas (#5641)
**What**
- Ensure that we format numbers with `.` as the decimal separator, even when the users locale uses `,`. This changes still allows users to use comma as the decimal separator, but the transformation we use before writing to state converts the number to use a dot instead.
2023-11-15 17:18:26 +00:00
Victor Gerbrands
3f016d871a fix(admin-ui): sort supported languages alphabetically (#5479)
## What?
Added sorting to the `supportedLanguages` array in `packages/admin-ui/ui/src/i18n/index.ts`. This makes sure the languages in the dropdown are sorted alphabetically.

![image](https://github.com/medusajs/medusa/assets/42065266/aca6e5ab-f200-45bf-afb4-22d9bc1c9a66)

## Why?
As we're supporting more languages in the admin UI, this list was getting messy.  

## How?
By using `sort()` and `localeCompare()` on array declaration.

## Testing
Go to Medusa Admin locally, login and navigate to Settings > Personal information to test the language dropdown.
2023-11-14 15:09:57 +00:00
olivermrbl
03e56aed74 chore: Release 2023-11-10 10:38:47 +01:00
github-actions[bot]
71d59d2c81 chore: Version Packages (#5527)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 10:28:21 +01:00
Kasper Fabricius Kristensen
e3f1da92db fix(admin-ui, ui): Align @types/react versions across UI packages (#5596)
* fix: Align @types/react versions across UI packages

* update codeowners
2023-11-10 08:31:30 +01:00
Rick Lam
b4e8adfcf9 fix(admin-ui): Admin UI: Invalid Request Header (#5548)
**What**
Fix of https://github.com/medusajs/medusa/issues/4904

**Fixes**
Admin run development server with hostname shown Invalid Request Header

**How**
Added webpack-dev-server config [allowedHosts](https://webpack.js.org/configuration/dev-server/#devserverallowedhosts) and [webSocketUrl](https://webpack.js.org/configuration/dev-server/#websocketurl) in admin develop options to change allowlist services hostname and Web Socket Url

**Testing**
Edit medusa-config.js with hostname in admin plugin develop options
```
const plugins = [
  // ...
  {
    resolve: "@medusajs/admin",
    /** @type {import('@medusajs/admin').PluginOptions} */
    options: {
      develop: {
        allowedHosts: [
          'host.com',
          'subdomain.host.com',
          'subdomain2.host.com',
          'host2.com',
        ],
        webSocketURL: 'wss://host.com/ws'
      },
    },
  },
]
```


Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-11-09 12:32:27 +00:00
Kasper Fabricius Kristensen
e4ce2f4e07 chore(ui,icons,ui-preset,toolbox): Move design system packages to monorepo (#5470) 2023-11-07 22:17:44 +01:00
Kasper Fabricius Kristensen
d7e1887221 fix(admin-ui): Prevent comma decimal separator from converting inputs to NaN (#5566)
**What**
- Using the Price List bulk editor with a locale that uses comma as the decimal separator would convert decimal numbers to NaN. This PR fixes that by replacing commas with dots, before passing the values on to the state manager.

Closes #5565
2023-11-06 13:26:35 +00:00
Kasper Fabricius Kristensen
f7e9829881 fix(admin-ui): Prevent oversized product request in Price List domain (#5535)
* fix(admin-ui): Prevent oversized product request in Price List domain

* add changeset
2023-11-02 17:05:08 +01:00
Kasper Fabricius Kristensen
8e48be58ef fix(admin-ui): Make regions in tax setting scrollable (#5530)
* fix overflow

* intersection observer and changeset
2023-11-02 13:03:45 +01:00
github-actions[bot]
309c82e175 chore: Version Packages (#5454)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-01 08:19:58 +01:00
Kunal Agrawal
201b35cd31 feat(admin-ui): add Hindi Translation (#5452) 2023-10-31 16:53:52 +01:00
Ramzi Youssef
4ce8279d25 fix(admin-ui): Enhanced 'activity-drawer' visibility with z-index adjustment (#5315) 2023-10-31 14:39:13 +01:00
pepijn-vanvlaanderen
2057d3b247 fix(admin-ui) Custom batch job activity card (#5288) 2023-10-31 11:22:28 +01:00
huuduc2312
ca05436fc1 feat(admin-ui): add Vietnamese translation (#5442) 2023-10-31 10:36:05 +01:00
Oli Juhl
397da6c2ba fix(admin-ui): TIP in shipping option creation (#5356)
* fix(admin-ui): TIP in shipping option creation

* Create six-pigs-return.md
2023-10-30 15:17:34 +01:00
Yersultan
3e5c6f5d8c feat(admin-ui): Add Russian translation (#5142) 2023-10-30 15:12:49 +01:00
Kasper Fabricius Kristensen
b69f182571 fix(admin-ui): modify webpack config to prevent throwing sourcemap errors (#5484) 2023-10-30 12:06:58 +01:00
Andrii Nutskovskyi
725ba9bb9b feat(admin-ui): Added Ukrainian translations (#5084)
Co-authored-by: Victor Gerbrands <42065266+VariableVic@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-26 20:23:02 +02:00