Commit Graph

149 Commits

Author SHA1 Message Date
Samir Alibabic
3aba6269ed feat(admin-ui): add Bosnian translation (#5395)
- Bosnian translation for Admin UI

Resolves: https://github.com/medusajs/medusa/issues/5346

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-19 09:00:59 +00:00
Anamarija Papić
d30f4477d9 feat(admin-ui): Add Croatian translation (#5377)
* feat(admin-ui): Add Croatian translation

* feat(admin-ui): Apply suggestions from code review

Minor fixes in Croatian translation

Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>

* Create old-laws-clap.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
2023-10-19 10:23:15 +02:00
Oli Juhl
a0963f0edf fix(admin-ui): Remove t() on product.status update (#5394)
* fix(admin-ui): Remove t() on product.status update

* Create tidy-games-drum.md
2023-10-18 13:50:47 +02:00
Oli Juhl
3b45fdf135 fix(admin-ui): Create analytics if FF is enabled (#5367)
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
2023-10-16 08:01:39 +02:00
Kasper Fabricius Kristensen
e04927a3cb fix(admin-ui): Price list domain fixes (#5339)
**Fixes**
- Fixes an issue where click the Delete button on a table item in the Price List overview would also navigate to the Price Lists page
- Fixes an issue where Region prices were not showing which region they belong to in the Bulk Editor
- Fixes an issue where the wrong widgets were being injected into the Price List domain

**Improvements**
- Align label for Expiry date field
- Add form validation to require setting the prices of at least one product variant when creating or adding prices to a Price List.
- Show a prompt warning if prices have not been set for all selected products in the create and add product flows.
2023-10-12 08:34:46 +00:00
Kasper Fabricius Kristensen
0f34e0f381 feat(admin-ui, medusa, medusa-react, medusa-js): Price List UI revamp (#5233)
* progress on cleanup

* rm forceMount

* close modal on succesful submit

* fix: invalidate price list query on useAdminCreatePriceListPrices

* sync translation keys

* add last translations

* sync translation keys

* improve tabbing between cells

* add comment

* fix: remove double variant, set collision boundary on column dropdown

* add widgets

* update lock file

* decrease details info size, and add missing status update function

* sync translation keys

* add snapshots and remove min/max

* add missing filter menu for customer groups table

* add translation keys for filter menu

* rm unused code

* Create tall-apricots-run.md

* Update tall-apricots-run.md

* fix: discard invalid paste values

* add translation keys

* bump snapshots + minor fixes

* rm console.log

* bump snapshots

* bump ui packages, and add missing tax inclusive display in New form

* update lock file

* fix filter menu

* update snapshot

* update ui package and fix sub menu position

---------

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-06 08:22:25 -07:00
springstan
a9703bd370 feat(admin-ui): Add German translation (#5267)
* Add German Translation for Admin UI

* Update packages/admin-ui/ui/src/i18n/index.ts

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-10-04 15:13:18 -07:00
Alessio
c73dbdd5bc feat(admin-ui): Add Italian translation (#5282)
Added Italian translation
Any suggestion or improvement is more than welcome.

Thanks
2023-10-04 20:12:51 +00:00
Christian Gil
51bd39db66 feat(admin-ui): Add Spanish translations (#5264)
Added Spanish translations to the Admin UI
2023-10-04 19:04:56 +00:00
Peter Abdalla
f88e3865a0 feat(admin-ui): Add Arabic translations (#5140) 2023-09-27 16:46:21 -04:00
Geoffroy Empain
a560e5da29 fix(admin-ui): typos in text (#5032)
Fixes some typos found while reviewing translations.

Potential improvements in the future: fragmented translations may need merging with `<Trans>`. For example:

```
"analytics-preferences-disclaimer": "Pour créer la meilleure expérience de commerce électronique possible, nous aimerions obtenir des informations sur la manière dont vous utilisez Medusa. Les informations sur les utilisateurs nous permettent de construire des produits meilleurs, plus attrayants et plus utilisables. Nous ne collectons des données que pour améliorer le produit. Lisez quelles données nous recueillons dans notre",
"analytics-preferences-documentation": "documentation",
```

```
"help-dialog-feel-free-to-join-our-community-of": "Feel free to join our community of",
"help-dialog-merchants-and-e-commerce-developers": "merchants and e-commerce developers",
```

```
"upload-modal-drop-your-file-here-or": "Drop your file here, or",
"upload-modal-click-to-browse": "click to browse.",
```

Example from my previous PR with `sales-channels-display-available-count`:

```
<Trans
  i18nKey="sales-channels-display-available-count"
  availableChannelsCount={availableChannelsCount}
  totalChannelsCount={totalChannelsCount}
>
  Available in{" "}
  <span className="inter-base-semibold text-grey-90">
    {{ availableChannelsCount }}
  </span>{" "}
  out of{" "}
  <span className="inter-base-semibold text-grey-90">
    {{ totalChannelsCount }}
  </span>{" "}
  Sales Channels
</Trans>
```
2023-09-22 11:56:14 +00:00
Oli Juhl
adb6fb3f7d fix(admin-ui): Allow nullish values in update variant (#5173)
* fix(admin-ui): Allow nullish values in update variant

* Create moody-poems-carry.md
2023-09-22 11:34:54 +02:00
Oli Juhl
78b50ac0c4 fix(admin-ui): Add hook to customer group table (#5163)
* fix(admin-ui): Add hook to customer group table

* Create many-trains-sort.md
2023-09-20 18:40:51 +02:00
Oli Juhl
ef2a12e451 fix(admin-ui): Undefined vars in admin (#5162)
* fix(admin-ui): Undefined vars in admin

* Create short-hairs-fold.md
2023-09-20 17:03:47 +02:00
Oli Juhl
54531e38bc fix(admin-ui): Patch admin path issue (#5154) 2023-09-20 16:31:15 +02:00
Adrien de Peretti
8b189d2b90 feat(admin-ui): Add missing attributes translations (#5155)
* feat(admin-ui): Add missing attributes translations

* Add attributes title

* Create weak-carpets-carry.md
2023-09-20 12:37:12 +02:00
chemicalkosek
15a1c55def feat(admin-ui): Add Polish translation (#5101)
* Add Polish translation

* Create real-carrots-hug.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-09-20 12:36:21 +02:00
Oli Juhl
299b98c401 fix(admin-ui): Wraps invite route correctly with analytics (#5118) 2023-09-18 18:07:54 +02:00
Oli Juhl
8772a0722e fix(admin-ui): Wrap invite route in AnalyticsProvider (#5111)
* fix(admin-ui): Wrap invite route in AnalyticsProvider

* Create nervous-keys-impress.md
2023-09-18 15:25:12 +02:00
Didier Guyon
254ae8d07f fix(admin-ui): Typo in Return Reasons subtitle (#5027) 2023-09-18 11:41:54 +02:00
Frane Polić
4710520c35 fix(admin-ui): fix template expression (#5103)
**What**
- use template instead of object in render
2023-09-17 20:08:14 +00:00
Oli Juhl
2a2108fe56 fix(admin-ui): Case sensitive locale detection in prod (#5082)
* fix(admin-ui): Admin path in i18n

* lowercase locale
2023-09-15 17:08:01 +02:00
Oli Juhl
a7459029fe chore(admin-ui): Add pt-BR to supported languages (#5080) 2023-09-15 15:23:17 +02:00
Oli Juhl
c722440c30 fix(admin-ui): Load translations from path (#5064)
* fix(admin-ui): Load translations from path

* Create big-oranges-battle.md

* fix: resolve public folder path in dev

---------

Co-authored-by: Kasper <kasper@medusajs.com>
2023-09-15 13:19:24 +02:00
Geoffroy Empain
ab754a4cc2 feat(admin-ui): Add French translations (#5031)
* feat(admin-ui): add fr translations

* chore: register french in available languages

* chore: apply suggestions

---------

Co-authored-by: Geoffroy Empain <geoffroy@charlie-bravo.be>
2023-09-14 14:19:11 +02:00
Oli Juhl
d4432dd183 feat(admin-ui): Add display name + pull supported languages from config (#5028) 2023-09-13 09:45:26 +02:00
Geoffroy Empain
afd4e72cdf feat(admin-ui): Multi-language support (#4962) 2023-09-12 14:53:48 +02:00
Juan Pablo Orsay
87e3a7d06a fix(admin-ui): disabling analytics when opted out (#4939)
* fixes #4423 by either using the `useAnalytics` hook or using an ErrorBoundary specific instance

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-09-11 12:40:15 +02:00
mortenengel
11fb523051 feat(medusa, admin-ui): Improve gift card application (#4944)
Fix for the problems identified in issue #4892 

Bugfix: admin-ui order summary no longer uses gift card total from order when displaying how much has been withdrawn from each giftcard.

Bugfix(?): no longer keep applying gift cards (at 0 value) when sufficient balance has been reached

Feature: multiple giftcards are now applied in ordered fashion. First by end_date (supports null), then by remaining balance. In order to ensure that customers ends up with as long lasting and few remaining gift cards as possible after the transaction.
2023-09-07 16:56:36 +00:00
Andreas Deininger
a0bbc1893b chore: fix typos (#4877)
* Chore: Fix typos

* Add generated resources

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-08-30 13:27:46 +03:00
Rares Stefan
470379e631 fix(medusa, admin-ui): Add deleted_at to Return Reason unique constraint (#4834)
* Update return reason create to upsert

* Create strange-wombats-invite.md

* Revert upsert, make value index only apply on non-deleted entities
2023-08-29 19:26:58 +02:00
Frane Polić
b7de679e9b feat(admin-ui): batch job completed notification (#4886) 2023-08-28 20:21:42 +02:00
Frane Polić
758f035c2f fix(admin-ui): delete customer group (#4893) 2023-08-28 19:05:31 +02:00
Frane Polić
50798d1189 fix(admin-ui): currency input exception (#4888)
* fix: infer cell formatting

* chore: changeset

* Update friendly-months-attack.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-28 16:58:34 +02:00
Victor Frunza
9766758e19 Fixed: Typo for should in the "Create Region" form (#4854)
closes #4853
2023-08-25 08:41:54 +00:00
Frane Polić
0c7c2eeeab feat(admin-ui): refresh products when a BatchJob is completed (#4840) 2023-08-25 07:34:48 +00:00
Rares Stefan
f4bf9ee169 fix(admin-ui): Fix variant creation when no stock locations provided (#4843)
* Update check on variant creation, whether to create stock locations

* Create spicy-shoes-type.md
2023-08-24 08:51:12 +02:00
Rares Stefan
57e199ef52 fix(admin-ui): Fix sign out in admin panel not redirecting correctly (#4837) 2023-08-23 21:54:45 +02:00
Kasper Fabricius Kristensen
f1a05f4725 feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions (#4761)
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-17 12:14:45 +00:00
Frane Polić
4a448b68fd feat(admin-ui): bulk advanced selections + copy/paste (#4568)
* wip: bulk editor copy/paste

* feat: exit edit mode with "enter" press

* wip: arrow navigation + onEnter

* wip: 2D select + arrow navigation

* feat: arrow navigation and multiselect, tabs navigation and multiselect

* fix: region cols offset

* feat: 2d copy

* feat: 2d paste

* fix: trailing tab

* fix: borders

* feat: ensure consistent copy order

* fix: off by one col, pass `cmd` keypress

* feat: `cmd` select

* refactor: cleanup 1

* refactor: cleanup 2, utils

* fix: copy paste

* fix: copy paste indicator

* fix: reduce dashed border size

* fix: issue with leading empty cell

* feat: cp support 2 formats of content, notification on copy, remove dashed box

* fix: last empty cell case

* feat: buffer content edge cases

* refactor: remove log

* feat: past fill selected area

* feat: simplify copy-paste

* fix: throw error if textual cell is in the buffer

* Create eighty-zebras-grow.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-14 21:37:12 +02:00
Oli Juhl
bb534e0453 fix(admin-ui): Customer Groups in Pricing + TIP (#4670)
* Use NextSelect

* Ensure boolean value of includes taxa

* Create thin-kings-grab.md
2023-08-02 13:45:27 +02:00
Oli Juhl
f561601bf6 fix(admin): Exclude prices from PriceLists overview (#4536)
* fix(admin): Exclude Prices from PriceLists overiew

* Create polite-vans-hide.md
2023-07-27 08:45:54 +02:00
Oliver Windall Juhl
aab890174d fix(admin-ui): Add missing SO relation (#4594)
* fix(admin-ui): Add missing SO relation

* Create hungry-carrots-bathe.md
2023-07-25 17:28:21 +02:00
Adrien de Peretti
d2a8cf0378 feat(medusa): Continue create product workflow changes (#4473) 2023-07-24 13:30:24 +02:00
Frane Polić
bfc0ea5695 feat(admin-ui): Bulk Editor (#4516)
* wip: initial commit

* wip: modal layout

* wip: regions

* refactor: restructure, drag to fill logic wip

* fix: currency input, optimise table rendering on input change

* fix: pass edited amount to local cell state

* wip: cell based algo

* wip: row based algo

* feat: convert prices to human format initially

* feat: column fill

* fix: decimal formating

* feat: currency symbol, tax incl. indicator, formatting dropdown, drag indicator positioning

* fix: load all currencies

* wip: highlighting range selection

* feat: more optimal highlighting algo

* fix: coordinate click handlers, selection reset

* fix: resetting pointers on close

* feat: prefill regional prices

* feat: keypress features, persisting price change between edits

* fix: undo feature, add saving waring

* feat: update prices

* feat: notifications and prompts

* feat: use only store currencies

* feat: tax. incl tooltip

* fix: decimal formatting

* fix: correct decimal formatting when multiedit

* feat: save prompt with hidden columns check

* chore: changesets

* fix: push icon

* fix: feedback changes v1

* fix: remove span placeholder

* fix: simplify and optimise selection algo

* fix: scroll z index

* fix: truncate region headers

* feat: calculate first col width

* fix: don't show delete notification

* fix: utils check conditions

* fix: typo

* feat: new selection behaviour

* refactor: currency cell

* refactor: save prompt

* chore: changesets

* chore: cleanup

* chore: Update changeset

* fix: don't calculate first col with but rather cut product title to the longest variant if needed

* feat: add loader on save

* fix: very last cell setting undefined on first render

* fix: show confirmation exit prompt on "x" click

* Update packages/admin-ui/ui/src/components/organisms/product-variants-section/edit-prices-modal/utils.ts

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-07-19 15:38:04 +02:00
Oliver Windall Juhl
221f62dc4c fix(admin-ui): Omit PriceList prices from variant update (#4552)
* fix(admin-ui): Omit PriceList prices from variant update

* Create poor-insects-complain.md
2023-07-19 13:44:15 +02:00
Philip Korsholm
aae4b3ad37 feat(admin-ui): Always show currencies overview (#4541)
* move around featureflags

* add changeset
2023-07-18 17:05:10 +02:00
Philip Korsholm
55db914151 fix(admin): Price input (#4530)
* initial fix for number inputs

* add changeset
2023-07-14 10:45:23 +02:00
Oliver Windall Juhl
78a1f3943b chore(admin-ui): Remove new badges from inventory + categories (#4444)
* chore(admin-ui): Remove new badges from inventory + categories

* Create early-poets-drum.md
2023-07-10 12:23:27 +02:00
Adrien de Peretti
9dcdc0041a fix(medusa, utils): fix the way selects are consumed alongside the relations (#4389)
**What**
There is actually an issue with using the `fields` query params with the way the repositories are using our custom query strategy. This pr aims to fix this issue by reworking the strategy.

What we had to do was to rework the way the selects are built for each subquery in order to follow the aliasing convention and to be taken into consideration. Alongside these changes, the join used to always select everything, this needed to be changed so that if there are any selects provided for a join, the join should not select everything and let the query select the fields that are requested.

Another notable change is that all the repositories are now using the repository util in order to centralize the customization and to have a single place to update when this kind of issue arises. This means that the eager relations when using the query builder are not necessarily taken into account. For that reason, I have removed the `shipping_option` eager option in favor of explicitly asking for the relations like we started to do it in some places.

FIXES CORE-1413
2023-06-29 13:26:41 +00:00