Commit Graph

101 Commits

Author SHA1 Message Date
Frane Polić
0a2ecdc889 feat(dashboard, js-sdk): reset password UI (#9451)
**What**
- add password reset flow on Admin

---

https://github.com/user-attachments/assets/3438ace2-c661-4121-a580-794a69ad4518

---

CLOSES CC-568


Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-10-04 09:10:26 +00:00
Frane Polić
b2a8c897f7 fix(dashboard): allow to unset PL rule (#9276)
**What**
- unset customer groups rule if no groups are selected
- preserve other rules when updating a PL

---

CLOSES https://github.com/medusajs/medusa/issues/9376
2024-10-04 09:09:27 +00:00
Frane Polić
e73e95f5e9 fix(dashboard): location details loader (#9412)
**What**
- fix location loader returning stale data if SL details are fetched with another field params

**Why**
- if we visit the order details page and visit location details afterwards, delivery and pickup will appear disabled because a new query with `fulfillment_sets` is not fetched
2024-10-02 14:50:19 +00:00
Frane Polić
ab7e71a055 fix(dashboard, fulfilment): fulfilment providers enabled check (#9415)
**What**
- hide disabled fulfilment providers on the admin
- check if the fulfilment provider has an identifier when loading providers

---

FIXES CC-549
2024-10-02 14:48:40 +00:00
Frane Polić
b39ba45b81 fix(dashboard): allocation label condition (#9398)
**What**
- show "not allocated" label only if there are unfulfilled items
- small refactor and general improvement of reservations in order summary

---

FIXES CC-539
2024-10-02 14:47:40 +00:00
Frane Polić
4587a69f3f fix(dashboard): allow to unset currency cell value (#9312)
**What**
- unset datagrid currency cell on delete press instead of setting it to 0
- consolidate pricing editors validations
- fix PL edit pricing schema

---

FIXES CC-529
2024-10-01 09:03:51 +00:00
Frane Polić
0e35e312e5 fix(dashboard): use svg component instead of static png for logo (#9281) 2024-10-01 08:34:50 +00:00
Frane Polić
7a08224b0c fix(dashboard): categories add products (#9380)
**What**
- fix listing/adding products in the add category products flow

---

FIXES CC-523
2024-10-01 07:09:51 +00:00
Frane Polić
cab629556f fix(dashboard): reservations quantity validations (#9393)
**What**
- validate quantity range when creating validation and handle form errors nicely

---

CLOSES CC-470
2024-10-01 07:01:44 +00:00
Frane Polić
570c1803f2 fix(dashboard): don't prefil invite email while onboarding (#9392) 2024-09-30 19:19:10 +02:00
Sebastian Rindom
852df3f764 fix(medusa,dashboard): don't send price updates for deleted regions/currencies (#9361)
**What**
- Fixes an issue where the admin dashboard would send region prices for deleted regions.
- Also, includes the implementation for `GET /admin/shipping-options/:id` and its corresponding SDK function.

**Why**
- When a region price for a deleted region was sent to the backend it would result in the insert hitting a not null constraint on the currency_code for prices. To avoid this the dashboard should not send region prices for deleted regions. 

**Additional context**
- Prices for deleted regions should ideally not be returned when fetching shipping option prices. However, we don't yet have a mechanism for cleaning up region prices after a region is deleted.

Fixes CC-540
2024-09-30 11:51:55 +00:00
Frane Polić
046e6e5533 fix(dashboard): product table colum widths (#9329)
**What**
- set product title and sales channels column widths to a reasonable value so the scroll is visible on mobile resolutions only

---

FIXES CC-527
2024-09-30 07:57:24 +00:00
J Kendal
6fbfbfab19 fix: invalid mutation (#9371) 2024-09-30 09:38:43 +02:00
Harminder Virk
a578313db9 feature: bundle all modules (#9324) 2024-09-30 09:04:03 +02:00
Oli Juhl
1b4372ae71 fix: Tax region + rates clean up (#9279)
What
- Require `code` on Tax Rates
- Update dashboard to account for non-nullable code on Tax Rates

- Include `automatic_taxes` in API Route response

Closes CC-524 CC-525
2024-09-29 10:25:33 +00:00
Frane Polić
474ba92d48 fix(dashboard): variant update success toast (#9325)
FIXES CC-509
2024-09-26 12:59:59 +00:00
Frane Polić
f294c99c92 fix(dashboard): set/unset automatic taxes on a region (#9315)
* fix: region automatic taxes

* fix: query keys and cache issues
2024-09-26 09:55:45 +02:00
Frane Polić
6d16b3294e fix(dashboard): login alert background (#9305)
**What**
- fix login error alert bg in dark mode
2024-09-25 11:35:47 +00:00
Riqwan Thamir
69f6645716 feat(core-flows,dashboard,types,fulfillment,medusa): uses requires shipping throughout lifecycle (#9170)
what:

- uses requires shipping throughout lifecycle

https://github.com/user-attachments/assets/d5ba89d3-5ea0-49c4-b2d5-490c4764933e
2024-09-24 08:26:22 +00:00
Frane Polić
eb7899d05c fix(dashboard): pagination in invite table (#9259)
**What**
- fix pagination in user invites table wasn't working because prefix was passed in a wrong place

---

FIXES CC-512
2024-09-23 16:01:10 +00:00
Frane Polić
981745e98b fix(dashboard): customer groups fixes (#9258)
**What**
- fix add customer to customer group toast
- move modal actions to footer

---

FIXES CC-514
2024-09-23 15:59:37 +00:00
Frane Polić
d238dd0099 fix(dashboard): customer groups table fileds (#9262)
**What**
- a fix pushed this morning results in customer groups also having just id returned and other fields are omitted
2024-09-23 15:58:32 +00:00
Frane Polić
ab9051d3f5 fix(dashboard): minor collection bugs (#9255)
**What**
- toast on create
- fix delete prompt message
- fix 404 on delete

---

FIXES CC-508
2024-09-23 15:57:26 +00:00
Frane Polić
d0f1028820 fix(dashboard): prices validation in PL bulk editor (#9245)
**What**
- fix validation errors in bulk editor on Price List create flow

---

FIXES CC-511
2024-09-23 09:07:51 +00:00
Frane Polić
5d16133a93 fix(dashboard): PL creation - customers table customers count (#9237)
**What**
- display the number of customers in a group in the price list create flow

---

CLOSES https://github.com/medusajs/medusa/issues/9210
FIXES CC-517
2024-09-23 08:55:37 +00:00
Frane Polić
89bf88ee23 feat(dashboard): login and invite redesign (#9214)
**What**
- new UI for login and invite pages

---

![Screenshot 2024-09-20 at 15 24 31](https://github.com/user-attachments/assets/abaea120-6e93-4962-9865-bd52c0f67fb9)

![Screenshot 2024-09-20 at 15 24 40](https://github.com/user-attachments/assets/037fa81c-66a5-4764-aff1-5b5f9ac102d2)

---

CLOSES CC-131
2024-09-23 07:12:20 +00:00
Frane Polić
07f25de153 fix(dashboard): open edit variant modal in current context (#9203) 2024-09-19 18:33:55 +02:00
Frane Polić
61fd4832d1 feat(dashboard): manage inventory placeholder (#9190)
**What**
- add placeholder on variant details when inventor is not managed

---
![Screenshot 2024-09-19 at 10 35 55](https://github.com/user-attachments/assets/c731565d-5525-4537-b9a8-8bd6b74ca3bd)
---

CLOSES CC-127
2024-09-19 10:59:04 +00:00
Frane Polić
26700821a2 feat(dashboard): rework create variant flow (#9132)
**What**
- new Create variant flow which allows for pricing and inventory creation as well

---

https://github.com/user-attachments/assets/75ddcf5a-0f73-40ca-b474-2189c5e2e297

---

CLOSES CC-345
2024-09-17 17:46:23 +00:00
Riqwan Thamir
aa0928d437 feat(dashboard,types): added inbound shipping placeholder + shipping summary details (#9150)
what:

- shipping summary

<img width="1018" alt="Screenshot 2024-09-16 at 18 05 37" src="https://github.com/user-attachments/assets/d7e3d73c-bf11-42e5-90fb-03069437e96c">

- No Shipping options placeholder

<img width="781" alt="Screenshot 2024-09-16 at 18 06 11" src="https://github.com/user-attachments/assets/05ed682a-97cd-4e66-9af1-f1e77d3d47cb">
2024-09-16 20:50:41 +00:00
Riqwan Thamir
3e97a64b21 feat(core-flows,medusa,utils,types): adds delivered_quantity to order (#9130)
what:

- adds delivered_quantity to order


https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
2024-09-16 09:59:01 +00:00
Kasper Fabricius Kristensen
a2545df823 fix(dashboard): max call error onKeyDown handler (#9141)
* fix(dashboard): max call error onKeyDown handler

* cleanup

* fix linting
2024-09-16 11:01:47 +02:00
Riqwan Thamir
64d5b74c12 feat(api-key,js-sdk,dashboard): allow deleting api keys only once its revoked (#9118)
what:

- module only deletes api keys once its revoked
- disables ui elements


https://github.com/user-attachments/assets/437821ae-497e-4b59-b02c-4a6ff36e6a30

RESOLVES CC-106
RESOLVES CC-105
RESOLVES CC-104
2024-09-12 10:16:15 +00:00
Frane Polić
42cedd073b fix(dashboard): product create - ignored variants in datagrid (#9087)
* wip: fix mismatch in indexes

* fix: refactor
2024-09-12 08:47:04 +02:00
Riqwan Thamir
24704f420a feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted (#9106)
* feat(core-flows,dashboard,types,medusa): delete shipping methods when all inbound/outbound items are deleted

* chore: fix specs
2024-09-11 21:24:01 +02:00
Frane Polić
28dc8d4d17 feat(dashboard) modal search autofocus (#9038)
**What**
- autofocus search input on route modal that have tables

---

CLOSES CC-132
2024-09-11 08:12:34 +00:00
Riqwan Thamir
c097931469 feat(core-flows,types,medusa): validate deleting location level when quantities exist (#9086)
what:

- adds validation in workflow to prevent deleting a location level when reserved or stocked quantity exists
- disabled delete button when quantities exist
- consolidate delete workflows

<img width="1079" alt="Screenshot 2024-09-10 at 16 39 02" src="https://github.com/user-attachments/assets/cf1f4b2e-75ea-4f7c-9b97-24622396c632">

RESOLVES CC-120
2024-09-10 17:59:03 +00:00
Riqwan Thamir
e9e0267aa8 fix: broken order page due to missing inventory (#9083) 2024-09-10 13:24:13 +00:00
Frane Polić
3e7d4ddcd5 fix(dashboard): campaign fixes (#9082)
**What**
- fix campaign dropdown placeholder
- fix create campaign broken modal

---

![Screenshot 2024-09-10 at 14 23 55](https://github.com/user-attachments/assets/279451ec-72f4-49be-8d70-d18bc87e7fc3)

---

FIXES CC-112
2024-09-10 13:21:06 +00:00
Frane Polić
36f30b4833 fix(dashboard): refresh order list when fulfilment status changes (#9076)
**What**
- update order list when fulfillment/shipment status changes

---

RESOLVES TRI-224
CLOSES [9052](https://github.com/medusajs/medusa/issues/9052)
2024-09-10 12:21:04 +00:00
Frane Polić
0714315792 fix(dashboard): rq cache and pending flag (#9063)
**What**
- fix issues from stale data on modal pages

---

FIXES CC-137
2024-09-09 19:06:10 +00:00
Kasper Fabricius Kristensen
e5b90b2d97 fix(dashboard): Fixes to campaign and promotions domains (#9022) 2024-09-05 22:18:38 +02:00
Frane Polić
c27aa46939 feat(dashboard): add inventory kit info in order summary (#8990)
**What**
- display inventory kit if the items' variant has one

---

![Screenshot 2024-09-04 at 14 12 07](https://github.com/user-attachments/assets/79053e4f-6100-4ab6-a72a-45fabcaa49bf)
2024-09-05 13:46:48 +00:00
Frane Polić
440f598de8 feat(dashboard, user): prefill invite email (#9016)
**What**
- store invite email on the JWT invite token
- prefill email in the invite form

---

RESOLVES CC-125
2024-09-05 13:39:48 +00:00
Carlos R. L. Rodrigues
2a055b71ef feat(core-flows): custom price flag for order line items and shipping methods (#8969)
CLOSES: CC-402
2024-09-04 20:30:59 +00:00
Kasper Fabricius Kristensen
0fe1201435 feat(admin-sdk,admin-bundler,admin-shared,medusa): Restructure admin packages (#8988)
**What**
- Renames /admin-next -> /admin
- Renames @medusajs/admin-sdk -> @medusajs/admin-bundler
- Creates a new package called @medusajs/admin-sdk that will hold all tooling relevant to creating admin extensions. This is currently `defineRouteConfig` and `defineWidgetConfig`, but will eventually also export methods for adding custom fields, register translation, etc. 
  - cc: @shahednasser we should update the examples in the docs so these functions are imported from `@medusajs/admin-sdk`. People will also need to install the package in their project, as it's no longer a transient dependency.
  - cc: @olivermrbl we might want to publish a changelog when this is merged, as it is a breaking change, and will require people to import the `defineXConfig` from the new package instead of `@medusajs/admin-shared`.
- Updates CODEOWNERS so /admin packages does not require a review from the UI team.
2024-09-04 19:00:25 +00:00
Oli Juhl
c41e90fa36 chore: Remove Admin v1 (#7214)
* chore: Remove v1 admin

* update eslint
2024-05-03 10:56:38 +02:00
github-actions[bot]
2c807df99d chore: Version Packages (#6839)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-01 09:48:24 +02:00
github-actions[bot]
74e17ee6f9 chore: Version Packages (#6757)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 18:04:04 +01:00
Kasper Fabricius Kristensen
ee4ea796f6 chore: align version of dotenv (#6657) 2024-03-11 12:34:17 +01:00