Commit Graph

5386 Commits

Author SHA1 Message Date
Carlos R. L. Rodrigues
8a5d9d04a3 chore(payment): provider call outside db transaction (#7536) 2024-05-30 07:24:06 -03:00
Carlos R. L. Rodrigues
096372463e chore(promotion): big number calc (#7537) 2024-05-30 07:23:57 -03:00
Adrien de Peretti
61977bd392 chore: Allow modules to discover resources from ts/js and local directories (#7520)
**What**
Update the module resources discovery to account to the source directory to look into.

example:
```ts
user: { resolve: 'user' }
```
The above config will load the resources from the resolved path looking from the node modules
```ts
user: { resolve: './modules/user' }
```
The above config will load the resources from the local directory under dist if not run with ts node and under src otherwise
2024-05-30 09:14:55 +00:00
Stevche Radevski
6698f3ab7b feat: Add http integration tests and enable them in pipeline (#7532) 2024-05-30 10:51:31 +02:00
Stevche Radevski
5ad6864b82 feat: Improve zod error messages (#7535) 2024-05-30 09:52:47 +02:00
Shahed Nasser
11e3b9a456 chore: remove babel from eslint config (#7531) 2024-05-30 10:04:16 +03:00
Shahed Nasser
27b64c23f0 feat(create-medusa-app): support more environment variables + fixes (#7533) 2024-05-29 21:25:31 +02:00
Shahed Nasser
65ee18c5bc chore(modules-sdk): Small fix to error wording (#7526)
* chore(modules-sdk): Small fix to error wording

* rename variables

* fix tests

* rename plugins to providers in tests
2024-05-29 21:17:35 +02:00
Kasper Fabricius Kristensen
e73b6ce691 fix(ui,ui-preset,icons): Fix styling of Select, DropdownMenu, and Checkbox (#7525)
* progress

* progress

* fix: checkbox styling

* fix(ui,ui-preset): Fix the styling of Select, DropdownMenu, and Checkbox

* update ellipse-solid-mini icon

* cleanup
2024-05-29 21:16:54 +02:00
Stevche Radevski
89b0876abc fix: Build auth-google as commonjs module (#7528) 2024-05-29 17:17:25 +02:00
Stevche Radevski
aeda24265d feat: Remove returning token from customer and user endpoints (#7523)
* chore: Move generateJwtToken to utils

* feat: Stop returning token on user and customer endpoints
2024-05-29 17:13:01 +02:00
Kasper Fabricius Kristensen
e5e5eb6e18 fix(dashboard): Clean Edit Variant form payload of empty strings (#7512)
* fix(dashboard): Clean Edit Variant form paylod of empty strings

* fix(dashboard,medusa): Allow passing null to update variant to unset fields

* fix product edit form

* cleanup

* cleanup

* pass prop
2024-05-29 17:09:40 +02:00
Kasper Fabricius Kristensen
4483b7980d fix(dashboard): Fix the color of general fields (#7519) 2024-05-29 17:09:13 +02:00
Shahed Nasser
c46c643fda chore: fix generate resources reference action (#7503) 2024-05-29 17:30:12 +03:00
Riqwan Thamir
f0b9d5534e chore: query inventory items by location id (#7524)
what:

- allows querying inventory items by the correct location_id
2024-05-29 14:14:10 +00:00
Harminder Virk
a40b6aef6d Add defineConfig helper (#7517) 2024-05-29 17:10:15 +05:30
Carlos R. L. Rodrigues
f1ced57d5f chore: payment auto capture + remove enum from utils (#7513)
What:

- handles payments session that are auto captured
- removes all the enums from `@medusajs/types`
- move all `@medusajs/types` to devDependencies
2024-05-29 11:12:59 +00:00
Shahed Nasser
2c5ba408d4 docs: edits and fixes to commerce module docs (#7468)
Apply edits and fixes to the commerce modules docs
2024-05-29 11:08:06 +00:00
Shahed Nasser
130de74d6d docs: updates to admin customization docs (#7493)
* updated admin docs

* re-add navigation and parameters sections

* update injection zones

* update cli scripts docs

* added list of injection zones

* add details about widget props

* restructure admin injection zones
2024-05-29 13:50:19 +03:00
Shahed Nasser
72b57e2ae4 docs: rename auth user to auth identity (#7400)
* docs: rename auth user to auth identity

* updated protected routes guide

* Update www/apps/resources/app/commerce-modules/auth/examples/page.mdx

Co-authored-by: Stevche Radevski <sradevski@live.com>

* store/me -> store/customers/me

* change scope to type

* remove soon notes

---------

Co-authored-by: Stevche Radevski <sradevski@live.com>
2024-05-29 13:47:11 +03:00
Carlos R. L. Rodrigues
bbca54efa7 chore(order): aggregate statuses (#7497) 2024-05-29 07:05:42 -03:00
Stevche Radevski
8e66e10995 fix: Use correct config for auth methods per actor (#7515) 2024-05-29 10:42:53 +02:00
Harminder Virk
51ea166df2 chore: use yarn@3.2.1 in all the packages (#7514) 2024-05-29 09:00:40 +02:00
Frane Polić
7d6a87241d fix(dashboard): display location details address (#7491)
**What**
- display the address of the location on the details page
- use address formatting utils
- fix caching keys for shipping options

---

CLOSES CORE-2127
2024-05-29 06:49:30 +00:00
Kasper Fabricius Kristensen
01703c155f feat(admin-sdk): Merge users Vite config (#7509)
**What**
- Allows users to customize the Vite config from `admin.vite` in `medusa-config.js`

**How**
```
/** @type {import('@medusajs/types').ConfigModule} */
module.exports = {
  projectConfig,
  admin: {
    backendUrl: "http://localhost:9000",
    // the config param is our default config
    vite: (config) => {
      return {
        define: {
          __TEST__: JSON.stringify("test"), // this will now be defined as a const that can be accessed in widgets
        },
      };
    },
  },
 // ...
};
```

The `vite` param is a callback that takes our default config as a param. If the user does not need to access our config they don't have to use it, as we merge their config with our own, but accessing the default config can be useful in some cases.
2024-05-28 19:16:03 +00:00
Kasper Fabricius Kristensen
5a9922916a feat(dashboard,types,js-sdk): Cleanup collection domain (#7502)
**What**
- Adds missing collection HttpTypes
- Adds missing sdk functions
- Adds usage of sdk to collection domain.
2024-05-28 18:53:55 +00:00
Kasper Fabricius Kristensen
75791f2cbd chore(icons,toolbox): Update icons (#7505) 2024-05-28 19:54:31 +02:00
Kasper Fabricius Kristensen
ee0b93078f chore(ui-preset): Update styles (#7507) 2024-05-28 18:49:35 +02:00
Stevche Radevski
af7a885b5b fix: Ensure sales channel updates don't remove sales channel on other products (#7510)
* fix: Make all product tests pass

* fix: Ensure product update doesnt remove sales channels on other products
2024-05-28 18:24:27 +02:00
Oli Juhl
dbb23d20be chore: Remove currency + country logs (#7508) 2024-05-28 16:42:32 +02:00
olivermrbl
361474ad99 chore: Add google auth package to changeset 2024-05-28 15:42:09 +02:00
Frane Polić
32576a1512 fix(dashboard): reservation creation form (#7489)
**What**
- refresh reservation creation flow, show available items without required search input
- fix location details divider

---

CLOSES CORE-2053
2024-05-28 13:37:14 +00:00
Oli Juhl
e020b49493 chore: Add missing types deps (#7504) 2024-05-28 15:20:29 +02:00
Shahed Nasser
8f97af0d91 docs: update config to be camel case (#7501) 2024-05-28 15:52:03 +03:00
Harminder Virk
82be054a1a chore: Rename config properties to camelCase (#7498)
* refactor: rename config types to camelCase

* refactor: update config references to use renamed options

* refactor: update more references

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-05-28 14:49:29 +02:00
Stevche Radevski
e60b4bafe1 feat: Add google authentication package, cleanup old code (#7496) 2024-05-28 14:25:40 +02:00
Frane Polić
6117af2704 feat(dashboard): restructure create product flow (#7374) 2024-05-28 13:59:02 +02:00
Kasper Fabricius Kristensen
76ec10f375 feat(dashboard): Add campaign InjectionZones (#7494) 2024-05-28 11:40:53 +00:00
Harminder Virk
6fa364d728 ci: remove unsupported scripts-prepend-node-path command (#7499) 2024-05-28 13:36:49 +02:00
Shahed Nasser
65be42c818 docs: add integrations page (#7421)
* add integrations page

* update payment provider docs

* use stripe icon
2024-05-28 13:25:03 +03:00
Oli Juhl
c9de1d28a4 feat: Assign store default sales channel in cart creation (#7495) 2024-05-28 12:12:01 +02:00
Harminder Virk
ef6d748784 feat: add Filesystem util and load env util (#7487) 2024-05-28 15:31:13 +05:30
Kasper Fabricius Kristensen
164bb988e7 fix(dashboard): Make Region header h1 (#7485)
Closes CORE-2113
2024-05-28 08:56:08 +00:00
Stevche Radevski
fb16ef485c fix: Use the correct header for publishable key (#7492) 2024-05-28 08:32:42 +00:00
Shahed Nasser
f8252b3d27 chore(medusa): pin @swc/core version to 1.5.7 (#7490) 2024-05-28 09:35:32 +02:00
Shahed Nasser
223b3978b2 docs: fix data payload of events in subscribers (#7406) 2024-05-28 09:24:40 +02:00
Kasper Fabricius Kristensen
9d3c7829bc fix(dashboard): Styling of dashed divider (#7483) 2024-05-28 08:48:26 +02:00
Riqwan Thamir
916f0cb6d0 fix(dashboard): Set default tax region as parent if no province is chosen (#7484)
* chore: allow tax region to be optional if no province is chosen

* chore: fallback region
2024-05-28 08:48:00 +02:00
Frane Polić
582c9c9acf fix: api key details section (#7488) 2024-05-28 08:45:34 +02:00
Oli Juhl
ad21bd30b1 fix: errors thrown in transformer (#7480)
* chore: wup

* throw on error

* add back test

---------

Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com>
2024-05-28 08:44:33 +02:00