Commit Graph

92 Commits

Author SHA1 Message Date
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
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
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
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
Kasper Fabricius Kristensen
ea2ee343f0 fix(admin-ui): PriceList bulk editor fixes (#5456)
* fix: rounding on decimal numbers, wrap in form

* add changeset

* fix: decimal numbers in product details

* fix: resolve an issue where double clicking an already selected cell would freeze it
2023-10-26 09:56:36 +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
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
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
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
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
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
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
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
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
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
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
Philip Korsholm
0bfdc33a0b fix(admin-ui): Inventory nitpicking (#4316)
* minor fixes

* add changeset

* add search by sku placeholder
2023-06-16 08:28:07 +02:00
Philip Korsholm
79cca2ab80 feat(admin-ui): Filter reservations (#4115)
* initial filter

* clenaup

* reser filters correctly

* filter reservations

* ensure reset works

* update types

* add adjustment icon

* pr prep

* update filtering with proper description handling

* location filter updates and search removal

* removed greyed out dates + add created_by filtering

* update filtering with proper ordering

* filter out selected users

* fix array issues

* update spacing for searchable queries

* fix deselection bug for inventory item search

* update date filter;

* rename const a to initialFilters

* fix re-render issue

* ui updates

* update inventory filter to remove selected items

* fix width

* fix truncation for button text if desired

* add span classes

* add "go to reservations" popover

* add tooltip if location text is truncated

* fix long items

* typing

* minor fix for select value

* fix reservation quantity field updates

* add pb

* Update packages/admin-ui/ui/src/components/templates/reservations-table/index.tsx

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

* feedback

* add changeset

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-06-08 17:57:39 +02:00
Frane Polić
1bd2e7a5be fix(admin-ui): flickering Timeline (#4231)
* fix(admin-ui): prevent Timeline flickering while loading

* chore: changesets

---------

Co-authored-by: fPolic <frane@medusajs.com>
2023-06-07 10:58:30 +02:00
Philip Korsholm
869628bf4c feat(admin-ui): Rename allocation to reservation (#4133)
* rename allocation -> reservation

* add changeset

* edit-reservation modal

* rename
2023-06-05 16:28:29 +02:00
Oliver Windall Juhl
5988fa8f4c fix(admin-ui): Omit purchasable variant prop on duplicate (#4180)
* fix(admin-ui): Omit purchasable variant prop on duplicate

* Create tall-cougars-juggle.md
2023-05-28 15:54:02 +02:00
Oliver Windall Juhl
f47b11293e fix(admin-ui): Delete variant (#4163)
* fix(admin-ui): Delete variant

* Create slimy-houses-battle.md
2023-05-25 20:38:57 +02:00
Kasper Fabricius Kristensen
063d9b6d55 fix(admin-ui): Ensure order of variant options matches order of product options (#4178) 2023-05-25 20:36:27 +02:00
Kasper Fabricius Kristensen
9a46c11f2a fix(admin-ui): Ensure that default invite link uses __BASE__ if set (#4173)
* ensure default invite link uses __BASE__ if it exists

* add changeset
2023-05-25 20:27:18 +02:00
Philip Korsholm
4f3c8f5d70 feat(admin-ui,medusa): Reservations management (#4081)
* add location filtering to list-location levels

* cleanup

* add location filtering to list-location levels

* cleanup

* Initial work on route,table,new reservation form

* generated types

* add block

* udpate clients

* initial create reservation

* update actionables for reservation table

* update edit-allocation modal

* misc naming updates

* update reservations table

* add expand capabilities for list-reservations

* expand fields and show columns

* update oas

* make remove item work in focus modal

* add yarn lock

* add integration test

* Fix display when label doesn't match search term

* remove unused file

* Update packages/admin-ui/ui/src/components/templates/reservations-table/components/reservation-form/index.tsx

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

* Update packages/admin-ui/ui/src/domain/orders/details/allocations/edit-allocation-modal.tsx

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

* Update packages/admin-ui/ui/src/components/templates/reservations-table/new/index.tsx

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

* initial changes

* add changeset

* update font size

* cleanup reservations table + select

* add decorated inventory item type

* use type

* feedback changes

* Update packages/admin-ui/ui/src/components/molecules/item-search/index.tsx

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

* decorate response for list inventory item to include total quantities

* update decorated properties

* decorate type

* adrien feedback

* Update packages/generated/client-types/src/lib/models/DecoratedInventoryItemDTO.ts

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

* update join-utils

* fix caching

---------

Co-authored-by: Rares Capilnar <rares.capilnar@gmail.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-05-23 05:24:28 +02:00
Philip Korsholm
0476f52519 Feat(medusa, admin-ui): Update edit allocation modal (#4071)
* update edit-allocation modal

* add changeset

* update edit-allocation modal

* update allocation modal
2023-05-22 15:58:51 +02:00
Philip Korsholm
2945769497 fix(admin-ui): Allow backorder update on variants (#4051) 2023-05-16 17:28:45 +02:00
Riqwan Thamir
aa74ebb181 fix(admin-ui): ensure that sales channel names are always an array (#4049) 2023-05-09 12:25:43 +02:00
Kasper Fabricius Kristensen
2829537592 fix(admin-ui): Template download path (#4050)
* pin react-router-dom

* fix template download path

* add changeset
2023-05-09 12:13:54 +02:00
Philip Korsholm
353fc94e4f feat(admin-ui): Manage inventory toggle (#4041) 2023-05-08 18:44:27 +02:00
Kasper Fabricius Kristensen
596566a510 fix(admin-ui): Navigating to tax settings should not break URL (#3989)
* fix navigation to taxes page, and switch out react-helmet with react-helemt-async

* add changeset

* pinpoint react-hot-toast
2023-05-03 13:40:04 +02:00
Oliver Windall Juhl
0be6816578 feat(admin-ui): Add Sales Channel filter (#3897)
* feat(admin-ui): Add Sales Channel filter

* Create silver-wombats-camp.md

* filter out null children
2023-04-23 13:26:42 +02:00
Philip Korsholm
d302db2397 fix(admin-ui): Add guard for null product_id (#3894)
* handle null variants differently

* add changeset
2023-04-21 18:00:51 +02:00
Oliver Windall Juhl
966ddd2f16 fix(inventory): Minor fixes to upserting inventory items (#3883)
* fix(inventory): Minor fixes to upserting inventory item levels

* Create sour-jobs-decide.md

* fix(inventory): Minor fixes to upserting inventory item levels
2023-04-19 22:43:09 +02:00
Oliver Windall Juhl
5fdccf5e32 fix(admin-ui): Check for undefined categories (#3886)
* fix(admin-ui): Check for undefined categories

* Create silent-garlics-kiss.md
2023-04-19 22:33:08 +02:00