Commit Graph

170 Commits

Author SHA1 Message Date
Kasper Fabricius Kristensen
8387c72e96 fix(dashboard): Add empty state for media section (#7614) 2024-06-05 19:57:16 +02:00
Kasper Fabricius Kristensen
d104d1a256 fix(dashboard): Fix styling of ChipGroup (#7608) 2024-06-04 18:19:31 +02:00
Kasper Fabricius Kristensen
9c44f08e0e fix(dashboard): Paginate Comboboxes in create and edit organization forms (#7602)
**What**
- Paginates comboboxes
- Loads categories relation on details page.
- Fix the endpoint used by client to fetch product tags (temp until we add sdk methods)

Resolves CORE-2073
2024-06-04 15:30:48 +00:00
Kasper Fabricius Kristensen
3f75e207ce fix(dashboard): Use ChipInput for option forms (#7603)
Resolves CORE-2069, CORE-2068
2024-06-04 14:48:04 +00:00
Kasper Fabricius Kristensen
67c88dfc96 fix(dashboard): styling of shipping profiles domain (#7600)
**What**
- Fixes h2 -> h1 in list view.
- Increases spacing between containers based on new design.

Resolves CORE-2121
2024-06-04 11:26:48 +00:00
Kasper Fabricius Kristensen
b299aec620 fix(dashboard): Fix the color of name field (#7518)
RESOLVES CORE-2111
2024-06-03 11:15:50 +00:00
Adrien de Peretti
9608bf06ef feat: Event emitting part 1/N (Fulfillment) (#7391)
**What**
Add support for event emitting in the fulfillment module

**NOTE**
It does not include the review of the events for the abstract module factory if the method is not implemented in the module itself and rely on the default implementation
2024-06-03 08:29:35 +00:00
Stevche Radevski
97327670a5 feat: Add support for uploading media when creating a product (#7567) 2024-05-31 15:34:16 +00:00
Stevche Radevski
cec9af1b80 feat: Add support for uploading media in admin (#7564) 2024-05-31 13:11:34 +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
Carlos R. L. Rodrigues
bbca54efa7 chore(order): aggregate statuses (#7497) 2024-05-29 07:05:42 -03: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
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
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
Kasper Fabricius Kristensen
164bb988e7 fix(dashboard): Make Region header h1 (#7485)
Closes CORE-2113
2024-05-28 08:56:08 +00: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
Kasper Fabricius Kristensen
2f20dbd50d fix(ui): Add checked style to RadioGroup.ChoiceBox (#7479)
<img width="362" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/441ffdb3-557e-4eea-9fc0-b09a7a9e9d4a">

**What**
- Adds checked active shadow to component
- Cleans up usage of component in promotion domain

CLOSES CORE-2101, CORE-2075
2024-05-27 21:00:24 +00:00
Kasper Fabricius Kristensen
729c34b016 fix(dashboard): Users list styling (#7482)
CLOSES CORE-2109
2024-05-27 20:28:24 +00:00
Kasper Fabricius Kristensen
e7091cfbb7 fix(dashboard): Profile styling (#7481) 2024-05-27 22:11:54 +02:00
Kasper Fabricius Kristensen
2efa016c6e feat(dashboard,admin-shared): Last injection zones (#7478)
* add reservations

* add final injection zones
2024-05-27 19:38:26 +02:00
Kasper Fabricius Kristensen
81c27e3524 feat(dashboard,admin-shared): InjectionZones for Profile, Store, Users and Login (#7471) 2024-05-27 15:45:51 +00:00
Kasper Fabricius Kristensen
ab2e8fcd45 feat(dashboard,ui,types,admin-shared): Add more extension zones + pass data to widgets (#7465) 2024-05-27 12:47:12 +02:00
Kasper Fabricius Kristensen
0b0e210f67 feat(dashboard,admin-shared): Add injection zones to regions, shipping profiles, and locations (#7467) 2024-05-27 12:46:58 +02:00
Kasper Fabricius Kristensen
b4a02413e2 feat(dashboard,admin-shared): Add more injection zones (orders, collections, categories) (#7447)
* add more injection zones

* fix position
2024-05-26 20:30:20 +02:00
Kasper Fabricius Kristensen
066fd3c3d2 feat(dashboard): Add more injection zones (customer, customer groups) (#7448) 2024-05-24 14:19:33 +00:00
Stevche Radevski
296473d994 feat: Update customer related typings and sdk methods (#7440) 2024-05-24 13:25:10 +02:00
Kasper Fabricius Kristensen
253bec655c fix(admin-sdk): Remove polyfills and unused dependencies (#7434) 2024-05-23 22:02:40 +02:00
Kasper Fabricius Kristensen
6ec6e2c7b6 feat(dashboard,admin-vite-plugin): Add product zones and fix zone change effect (#7427)
**What**
- Adds injection zones to the product domain.
- Fixes an issue where changing the `zone` in a widget config to another valid widget would not trigger a HMR event.
- Fixes an issue where UI Routes would not work in production.
2024-05-23 19:13:42 +00:00
Stevche Radevski
8a070d5d85 Revamp the authentication setup (#7419)
* feat: Add email pass authentication provider package

* feat: Revamp auth module and remove concept of scope

* feat: Revamp the auth module to be more standardized in how providers are loaded

* feat: Switch from scope to actor type for authentication

* feat: Add support for per-actor auth methods

* feat: Add emailpass auth provider by default

* fix: Add back app_metadata in auth module
2024-05-23 20:56:40 +02:00
Riqwan Thamir
d1d23f1e8d feat(dashboard,medusa): Promotion Campaign fixes (#7337)
* chore(medusa): strict zod versions in workspace

* feat(dashboard): add campaign create to promotion UI

* wip

* fix(medusa): Missing middlewares export (#7289)

* fix(docblock-generator): fix how type names created from Zod objects are inferred (#7292)

* feat(api-ref): show schema of a tag (#7297)

* feat: Add support for sendgrid and logger notification providers (#7290)

* feat: Add support for sendgrid and logger notification providers

* fix: changes based on PR review

* chore: add action to automatically label docs (#7284)

* chore: add action to automatically label docs

* removes the paths param

* docs: preparations for preview (#7267)

* configured base paths + added development banner

* fix typelist site url

* added navbar and sidebar badges

* configure algolia filters

* remove AI assistant

* remove unused imports

* change navbar text and badge

* lint fixes

* fix build error

* add to api reference rewrites

* fix build error

* fix build errors in user-guide

* fix feedback component

* add parent title to pagination

* added breadcrumbs component

* remove user-guide links

* resolve todos

* fix details about authentication

* change documentation title

* lint content

* chore: fix bug with form reset

* chore: address reviews

* chore: fix specs

* chore: loads of FE fixes + BE adds

* chore: add more polishes + reorg files

* chore: fixes to promotions modal

* chore: cleanup

* chore: cleanup

* chore: fix build

* chore: fkix cart spec

* chore: fix module tests

* chore: fix moar tests

* wip

* chore: templates + fixes + migrate currency

* chore: fix build, add validation for max_quantity

* chore: allow removing campaigns

* chore: fix specs

* chore: scope campaigns based on currency

* remove console logs

* chore: add translations + update keys

* chore: move over filesfrom v2 to routes

* chore(dashboard): Delete old translation files (#7423)

* feat(dashboard,admin-sdk,admin-shared,admin-vite-plugin): Add support for UI extensions (#7383)

* intial work

* update lock

* add routes and fix HMR of configs

* cleanup

* rm imports

* rm debug from plugin

* address feedback

* address feedback

* temp skip specs

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
Co-authored-by: Stevche Radevski <sradevski@live.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-05-23 15:28:00 +02:00
Kasper Fabricius Kristensen
f1176a0673 feat(dashboard,admin-sdk,admin-shared,admin-vite-plugin): Add support for UI extensions (#7383)
* intial work

* update lock

* add routes and fix HMR of configs

* cleanup

* rm imports

* rm debug from plugin

* address feedback

* address feedback
2024-05-23 14:02:19 +02:00
Kasper Fabricius Kristensen
521c252dee chore(dashboard): Delete old translation files (#7423) 2024-05-23 14:00:39 +02:00
Oli Juhl
05077bab32 feat: Add copy invite action (#7413)
https://github.com/medusajs/medusa/assets/59018053/2a2d0d39-e020-4146-8679-cbc99d75c98e
2024-05-23 10:58:59 +00:00
Adrien de Peretti
37ae87fe9b fix(admin-next, utils, medusa): Handle db errors properly and fix form (#7416)
* fix(admin-next, utils, medusa): Handle db errors properly and fix form

* fix(admin-next, utils, medusa): Handle db errors properly and fix form

* fix(admin-next, utils, medusa): Handle db errors properly and fix form

* fix(admin-next, utils, medusa): Handle db errors properly and fix form
2024-05-23 12:36:45 +02:00
Kasper Fabricius Kristensen
e01472aae6 chore(dashboard): Remove v1 code and medusa-react (#7420) 2024-05-23 09:40:30 +00:00
Oli Juhl
b0209e1114 fix: Navigate to orders on signin (#7415) 2024-05-23 10:11:25 +02:00
Kasper Fabricius Kristensen
ccf335fcf4 fix(dashboard): settings navigation loop (#7412)
* fix: settings navigation loop

* fix comment
2024-05-23 10:07:10 +02:00
Shahed Nasser
6f1b90f207 fix(dashboard): fixes to strings (#7411)
* fix(dashboard): fix the text of manage areas

* add missing string

* add missing react import
2024-05-23 11:07:01 +03:00
Oli Juhl
4ee47cf9b1 fix: Accept invite in admin (#7393)
* fix: Accept invite in admin

* fix: Accept invite in admin

* minor fix
2024-05-22 21:40:38 +02:00
Shahed Nasser
bb5872de48 fix(dashboard): fix reservation's button text + documentation links (#7405)
* fix(dashboard): fix reservation's button text

* change documentation links
2024-05-22 18:39:19 +03:00
Shahed Nasser
5e0f98f578 fix(admin-sdk): error when admin needs build (#7401)
Fix the error shown when admin is not built instructing the user to run the `build` command.
2024-05-22 13:02:24 +00:00
Stevche Radevski
025536e2a5 feat(sdk): Replace region calls with the SDK in admin, apply typings … (#7371) 2024-05-20 14:47:31 +00:00