Commit Graph

191 Commits

Author SHA1 Message Date
Frane Polić
3ecbec9685 feat(dashboard): inventory details variants section (#7705) 2024-06-14 11:18:23 +02:00
Oli Juhl
f138339cbc fix: Sort orders by created_at desc (#7706) 2024-06-13 21:31:59 +02:00
Riqwan Thamir
41528ddecf fix: ability to update price list status on admin (#7699) 2024-06-13 21:29:02 +02:00
Oli Juhl
6ee0a2c1b5 feat: Variant inventory quantity in GET requests (#7701)
* feat: Variant inventory quantity in GET requests

* clean up

* fix link name
2024-06-13 13:41:54 +02:00
Riqwan Thamir
c57223a3a2 chore: price list prices of a product can be deleted (#7700) 2024-06-13 12:19:09 +02:00
Frane Polić
3693f61dc3 feat(dashboard): finalise inventory kit creation (#7692)
* feat: finalize inventory kit creation

* fix: placeholder
2024-06-12 16:35:54 +02:00
Kasper Fabricius Kristensen
2f76fbc6ed feat(dashboard,types,sdk,medusa,ui): ProductCategory domain (#7675)
**What**
- Add missing features to ProductCategory domain in admin
- Add types
- Add SDK

**UI**
- Moves the TooltipProvider from the component to an export. Users should now wrap their entire application in a TooltipProvider. This change was made to take advantage of the built-in features of Radix Tooltip, and allows us to skip the delayDuration when moving the cursor from one tooltip to another within 500ms.
- Fixes the layout of the Hint component, as the create form revealed that it was off.
- Fixes an issue where focus styles were missing from the dropdown menu.

**Note**
- ~~We currently don't have an endpoint for deleting categories, so I have disabled the button in the admin. See CORE--2286~~ PR has been opened to add delete endpoint, so I have re-enabled the delete button.
- The update category workflow seems to be broken, it's possible for the `mpath` of a category to reach an invalid state, that breaks `include_descendants_tree` from working. See CORE-2287.
- The ProductCategory model is incorrect. All fields are optional and it's not possible to set the description to null, which means the only way of unsetting it is to set it to `""`. See CORE-2276.
- The design for the Organize drag-n-drop form is not final. Ludvig will create a final design, and we can then update the form.
- Currently, all things related to Metadata is left out, as we need to update the flow for metadata according to the latest designs.

RESOLVES CORE-1960, CORE-2230
*except for the above mentioned issues.
2024-06-12 11:15:12 +00:00
Frane Polić
48d8b2c623 fix(core-flows): variant pricing batch update (#7677)
* fix: variant pricing batch update

* fix: batch endpoint throwing when `create` array isn't passed

* fix: batch variants workflow
2024-06-11 19:45:43 +02:00
Stevche Radevski
8e2a42b786 Clean up product typings (#7663)
There are a lot of issues in the admin after applying the correct typings, but fixing those should be done gradually, it's better to keep it out of this PR
2024-06-11 09:28:40 +00:00
Frane Polić
3b8160b564 chore: remove pricing conversions on admin (#7665) 2024-06-10 17:38:35 +02:00
Frane Polić
f08f0d6cc9 feat(dashboard): inventory create flow (#7650) 2024-06-10 17:37:36 +02:00
Frane Polić
987141ab2d fix(dashboard) editor columns (#7534)
* fix: reorg variant editor columns, auto select default sales channel when creating products

* fix: remove return

* fix: add placeholders on options create inputs, add placeholder for chip input

* fix: gaps on details pages

* fix: address feedback
2024-06-07 10:59:19 +02:00
Riqwan Thamir
1f1b996f63 chore: buyget templates add default target + buy rules (#7500)
* chore: buyget templates add default target + buy rules

* chore: reposition

* chore: address comments

* chore: added fixes

* chore: fix typo

* chore: fix strictness checks
2024-06-07 09:47:31 +02:00
Oli Juhl
f0e78d062e feat: Add tax region + rates to SDK and types (#7635)
* feat: Add tax region + rates to SDK and types

* replace client with sdk in loaders

* Address PR feedback
2024-06-06 18:31:39 +02:00
Frane Polić
c3b6fc1d8e fix: the rest of sdk rename issues (#7631) 2024-06-06 12:13:58 +02:00
Frane Polić
e8df2431f8 fix(dashboard): stale params (#7630)
**What**
- fix places where we send wrong params (strict validation is now returning 400s for these)
- use SDK instead client for order details loader
2024-06-06 09:23:34 +00:00
Kasper Fabricius Kristensen
50ce223e4b feat(types,js-sdk,medusa,fulfillment): Types and SDK methods related to Stock Locations (#7625) 2024-06-06 11:04:42 +02:00
Frane Polić
9677daa568 fix(dashboard): import in client (#7628)
**What**
- fix import of deleted file
2024-06-06 08:49:21 +00:00
Kasper Fabricius Kristensen
1f203774cb feat(dashboard): SwitchBox component (#7607)
**What**
- In the latest design changes, the Switch component needs to be wrapped in a container with a label and description. It doesn't make sense to add this "variant" to `@medusajs/ui`, so I have created a local component that we can use every time the design calls for this setup, to avoid re-implementing it multiple times, and the design being inconsistent across usages. 
- Updates the Product domain forms to use the component. There are other places that needs to be updated to use it, but we can tackle those in our clean up tasks. I have checked with Ludvig and this design should be used everywhere we previously had the design shown in the first image.

 
<img width="604" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/053e40c4-fa8f-4cac-96b3-659deeb6d760">

<img width="745" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/890eb28f-83ac-4fa6-968f-cc204f1acd1e">
2024-06-06 08:09:38 +00:00
Frane Polić
cc0452d29e fix(dashboard): sdk domains (#7627)
**What**
- fix invite and collections flows that were failing due to the wrong domain name in the SDK class
2024-06-06 07:08:29 +00:00
Frane Polić
d285e60961 feat(dashboard,core-flows,medusa): update fulfillment flows (#7589)
* fix: fulfillment ops

* fix: cancel fulfillment route

* fix: adjustInventoryLevelsStep throwing

* feat: cancel order and fix endpoint

* fix: type

* feat: order domain sdk

* feat: delete unused file

* fix: import
2024-06-06 08:58:21 +02:00
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