Commit Graph

2195 Commits

Author SHA1 Message Date
olivermrbl
f0d37b4d2d chore(release): v1.8.0-rc.8 2023-04-04 17:37:13 +02:00
Adrien de Peretti
4488ec6852 fix(medusa): Ignore categories seeding for sqlite (#3713) 2023-04-04 17:33:49 +02:00
olivermrbl
7a3194c313 chore(release): v1.8.0-rc.7 2023-04-04 16:07:48 +02:00
Adrien de Peretti
dae8da1099 fix(admin): Duplicate product without prices (#3706)
* fix(admin): Duplicate product without prices

* Create honest-ways-eat.md
2023-04-04 16:04:31 +02:00
Adrien de Peretti
e5a2e9c8d2 fix(medusa): circular loading (#3705) 2023-04-04 16:02:35 +02:00
Philip Korsholm
748833383f hotfix(medusa): Temporary multi-warehouse support for draft orders (#3665)
* remove reservations from draft order creation and show correct inventory

* add changeset

* add integration tests

* adjust inventory on payment if no inventory service is installed
2023-04-04 11:36:51 +02:00
olivermrbl
bb9df09e37 chore(release): v1.8.0-rc.6 2023-04-03 18:05:12 +02:00
Patrick
d06ab92994 fix(medusa-react): export product-categories store hooks (#3689) 2023-04-03 17:32:02 +02:00
Philip Korsholm
7f87c4f2c8 fix(medusa-react): Query key invalidation (#3686) 2023-04-03 17:29:48 +02:00
Oliver Windall Juhl
a0c919a8d0 chore(medusa-cli): Add missing utils dep (#3688) 2023-04-03 17:18:38 +02:00
Shahed Nasser
c6bfad14d8 docs: add documentation for v1.8 (#3669) 2023-04-03 13:50:59 +02:00
Philip Korsholm
0cca13779d Fix(medusa): stocked quantity counting when listing products (#3684)
* count stocked quantity correctly when listing products

* add integration test

* add changeset
2023-04-03 11:07:56 +02:00
Kasper Fabricius Kristensen
788ddc0f43 fix(medusa, admin-ui, medusa-react): Gift Card update fixes and admin UI cleanup (#3676)
* fix gc domain issues

* add changeset

* update changeset

* more minor fixes, remove breadcrumb

* more cleanup

* address feedback
2023-04-02 19:04:32 +02:00
Philip Korsholm
a5ad6c0542 fix(admin-ui, medusa): Require name in create stock location (#3670)
* initial fix

* add changeset

* remove company from required fields
2023-04-02 11:57:41 +02:00
Philip Korsholm
eed784d7d0 fix(admin-ui, medusa): Allocations and fulfillments for variants without inventory items (#3660)
* fix fulfillment for order lines without inventory items

* fix summary card on order for variants without inventory items

* add changeset

* minor fixes

* remove variants without inventory items from allocate modal

* naming

* Update .changeset/kind-rings-wave.md

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

* remove line item indicator

* cleanup

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-03-31 15:53:56 +02:00
Rares Stefan
ca3b32d53c fix(admin-ui): Make copy on manage locations modal better when no locations (#3666) 2023-03-31 14:38:01 +02:00
Carlos R. L. Rodrigues
bd12a95083 chore: Initialize method for modules (#3649)
What:
- Export initialize methods for all modules to be used as a package.
- Export `runMigrations` and `revertMigration` on modules that DB migrations are available

```typescript
import {
  initialize as initializeInventory,
  InventoryServiceInitializeOptions,
  runMigrations as runMigrationsInventory,
} from "@medusajs/inventory";

import { initialize as eventBusInitialize } from "@medusajs/event-bus-redis";

import { initialize as cacheInitialize } from "@medusajs/cache-redis";

const eventBus = await eventBusInitialize({
  redisUrl: "localhost",
});

const cache = await cacheInitialize({
  redisUrl: "localhost",
});

const options: InventoryServiceInitializeOptions = {
  database: {
    type: "postgres",
    url: `postgres://postgres:@localhost/inventory`,
  },
};

await runMigrationsInventory({
  options,
});

const inventoryService = await initializeInventory(options, {
  eventBusService: eventBus,
});

const sku = "sku_123"
const item = await service.createInventoryItem({
  sku,
});

cache.set(sku, { item });

```
2023-03-31 12:09:04 +00:00
olivermrbl
6f85a3d366 chore(release): v1.8.0-rc.5 2023-03-31 13:27:14 +02:00
Oliver Windall Juhl
809ab2e0eb chore: Merge master to develop (#3653) 2023-03-31 13:09:57 +02:00
Rares Stefan
7e1d8ef599 feat(admin-ui): Add new feature badge for categories and inventory (#3657)
* Add new feature badge for categories and inventory

* Add changeset
2023-03-31 12:29:46 +02:00
Oliver Windall Juhl
45fd0fb639 fix(admin-ui): Always show categories in product page (#3655)
* fix(admin-ui): Always show categories in product page

* Create .changeset/tasty-timers-drive.md

* add disabled classes
2023-03-31 12:09:11 +02:00
Kasper Fabricius Kristensen
4342ac884b feat(admin-ui, medusa): admin UI metadata (#3644) 2023-03-31 12:07:24 +02:00
Oliver Windall Juhl
4f4ccee7fb fix(admin-ui): Collapse categories by default (#3637) 2023-03-31 10:43:03 +02:00
Rares Stefan
e6b5859af2 feat(admin-ui): Make number input increment/decrement buttons not tabbable-to (#3645)
* Make number input inc./dec. buttons not tabbable to

* Create changeset
2023-03-30 18:18:41 +02:00
olivermrbl
89d4d84666 chore(release): v1.8.0-rc.4 2023-03-30 17:12:37 +02:00
Oliver Windall Juhl
ebd6ab12c9 chore(admin-ui): Update favicon (#3640)
* fix(admin-ui): Eliminate purple from most-visible components

* chore(admin-ui): Update favicon
2023-03-30 12:53:00 +02:00
Oliver Windall Juhl
851a981880 fix(admin-ui): Eliminate purple from most-visible components (#3639) 2023-03-30 12:50:33 +02:00
Philip Korsholm
5e405be02c feat(medusa): Remove reservations for all line items when an order edit is accepted (#3544)
**What**
- Remove all allocations to line items once an order edit is confirmed

**Why**
- Since all line items of an order are discarded once an order edit is confirmed it will orphan the reservations causing inconsistencies with the stock
2023-03-30 09:56:10 +00:00
Philip Korsholm
999aeb116c fix(medusa): Fix hanging inventory item migration script (#3624) 2023-03-30 09:29:44 +02:00
Patrick
377b9ce8c2 fix(oas:test): Augment jest timeout from 30 to 60 sec (#3631)
* fix(oas:test): fix beforeAll timeout silent failure

* fix(test): fix ts-jest scaffolding in medusa-oas-cli

* chore(changeset): patch
2023-03-30 09:17:09 +02:00
Carlos R. L. Rodrigues
0e8b3c8efb fix stdio (#3633) 2023-03-29 19:19:18 +02:00
Philip Korsholm
5fd74b38ae feat(medusa): remove created reservations on subsequent failure for cart completion (#3554)
**What**
- If cart completion fails after creating reservations, remove those reservations

**Why**
- To avoid hanging reservations if something fails at a later point
2023-03-29 17:03:53 +00:00
Philip Korsholm
a7e3f2d343 feat(admin-ui): move inventory item fields into manage inventory modal (#3591) 2023-03-29 18:12:38 +02:00
Rares Stefan
7428ffa300 fix(admin-ui): Fix team table filter dropdown transparency (#3625)
* Add a z-index to the dropdown content

* Create yellow-trees-rest.md
2023-03-29 16:27:59 +02:00
Philip Korsholm
0d00903385 Fix(admin-ui): delete inventory item when variant is deleted (#3585) 2023-03-29 16:23:22 +02:00
olivermrbl
15a43c1cc0 chore(release): v1.8.0-rc.3 2023-03-29 13:42:11 +02:00
Oliver Windall Juhl
693015fde3 chore(medusa): EOL causing logging to hang (#3622)
* chore(medusa): EOL causing logging to hang

* Create .changeset/new-pans-explain.md
2023-03-29 13:34:09 +02:00
Adrien de Peretti
7f120e576b chore: Merge master to develop and manage conflict (#3570) 2023-03-29 10:11:32 +02:00
Philip Korsholm
0695ff642b fix(medusa, admin-ui): List all inventory levels (#3552)
* ensure that all levels are listed

* add changeset

* remove count from config

* update changeset version bump

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-03-29 08:54:49 +02:00
Kasper Fabricius Kristensen
cd54c7dca9 fix(medusa-cli): add semver dependency (#3603)
* add direct dependency on semver to CLI

* add changeset
2023-03-29 08:48:39 +02:00
Carlos R. L. Rodrigues
55e94d0b45 fix(modules-sdk): check if dependency is registered (#3620)
* fix: check if dependency is registered

* changeset
2023-03-29 08:47:12 +02:00
olivermrbl
8ddb3952c0 chore(release): v1.8.0-rc.2 2023-03-28 21:04:57 +02:00
olivermrbl
990c79d2d5 chore(release): v1.8.0-rc.1 2023-03-28 19:32:36 +02:00
Rares Stefan
345005573a fix(admin-ui): Update order edit variants table to fit longer content (#3608)
* Fix stock cell check, update table columns to fit longer content

* Create nine-planes-kneel.md

* Update check

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2023-03-28 19:21:40 +02:00
Adrien de Peretti
b9c6c3d059 fix(medusa-payment-paypal): Missing typescript dev dependency (#3609) 2023-03-28 19:20:39 +02:00
Philip Korsholm
d1a6aa5a90 fix(admin-ui): Create fulfillment (#3607)
* fix for create-fulfillment

* remove ff check

* add changeset

* Disable Create fulfillment button if no quantities fulfilled

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Rares Capilnar <rares.capilnar@gmail.com>
2023-03-28 19:04:35 +02:00
Carlos R. L. Rodrigues
bca1f80dd5 chore(medusa, modules-sdk): default module error message (#3605)
* default module error message

* changeset

* unit test
2023-03-28 17:43:20 +02:00
Frane Polić
91f0e01d0f fix(admin-ui): disallow creating OE if there is no changes (#3604)
* wip: fix modal

* refactor: revert log

---------

Co-authored-by: fPolic <frane@medusajs.com>
2023-03-28 14:56:07 +02:00
Adrien de Peretti
5307408894 feat(medusa-payment-paypal): Migrate to the new payment processor API (#3414)
* feat(medusa-payment-paypal): Migrate to the new payment processor API

* WIP

* WIP

* WIP unit tests

* WIP

* unit tests

* fix package.json

* yarn

* cleanup

* address feedback 1/2

* Start to implement a new Paypal SDK

* cleanup

* finalise sdk

* cleanup

* fix push missing file

* rename sdk methods

* unit test the http client

* WIP

* fix http client

* Create .changeset/empty-melons-eat.md

* refactor tests

* fix quote

* fix options

* cleanup

* do not retry auth

* WIP

* retry mechanism max attempts

* use both old and new options

* fix capture

* remove totals fields

* add missing method

* cleanup

* fix current tests

* authorize should update the data with the fresh order

* remove comments

* fix tests

* Update packages/medusa-payment-paypal/src/core/paypal-http-client.ts

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

* fix unit tests

* update changeset

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2023-03-28 13:49:09 +02:00
Riqwan Thamir
5f41cd9a67 feat(medusa): Categories - Adds indexes + remove soft delete (#3589)
* chore: added indexes for category properties

* chore: added changset

* chore: test changeset pre

* chore: undo pre release

* chore: remove soft delete from categories (#3590)

* chore: remove soft delete from categories

* chore: remove delete indexes and columns

* chore: drop safely + changeset

* chore: fix slipped deleted_at

* chore: removes extra changeset

* chore: redraw indexes

* chore: redraw indexes

* chore: drop records before dropping column for delete

---------

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-03-28 12:43:15 +02:00