Commit Graph
100 Commits
Author SHA1 Message Date
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
Frane Polić 9db334554f fix(core-flows): item id in reservations (#9097)
**What**
- on cart completion, when creating reservations, use line item id instead of cart item id
- NOTE: inventory reservation is now done after we create the order

---

FIXES CC-448
2024-09-16 07:33:12 +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
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
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
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
Frane Polić 13e4f4aeb5 fix(dashboard): import products labels (#9001)
FIXES CC-337
2024-09-04 16:24:41 +00:00
Frane Polić 2a6be52236 feat(dashboard): update create fulfillment UI part 1 (#8972)
**What**
- update Create fulfillment modal according to the design

**Note**
- in a followup I will add support for inventory kits

**Question**
- should we support overriding shipping method as per design?

---

Before:
![Screenshot 2024-09-03 at 17 57 18](https://github.com/user-attachments/assets/733799b6-4ba2-4841-9626-982e0c398694)

After:

![Screenshot 2024-09-03 at 17 51 26](https://github.com/user-attachments/assets/5caf4e3b-312a-40dd-b0ad-3eb4bbba0044)
2024-09-04 06:17:38 +00:00
Frane Polić 685779ec7d feat(dashboard): Cancel claims and exchanges (#8958)
**What**
- add "Cancel" functionality for claims and exchanges timeline events
2024-09-03 12:54:44 +00:00
Frane Polić c9e0ba72da fix(dashboard): receive return form (#8955) 2024-09-03 09:22:51 +02:00
Frane Polić 6652db45ef feat(dashboard): allow custom shopping prices for claims/exchanges (#8912)
**What**
- add editing custom shipping price for claims and exchanges

---

CLOSES CC-369
2024-09-03 07:17:24 +00:00
Frane Polić b5ec6c9003 fix(dashboard): format currency sign (#8936)
**What**
- change `formatCurrency` admin util to show sign only for negative numbers

---

FIXES CC-335
2024-09-02 11:57:45 +00:00
Frane Polić 56ceeeb4c7 fix(dashboard): product option delete message (#8934)
FIXES CC-408
2024-09-02 11:56:56 +00:00
Frane Polić dbb10ff051 feat(dashboard): order edits in timeline (#8899)
**What**
- add order edit confirmed/created events in the timeline
- add order change endpoint clients
- panel for active edit and pending edit
- few fixes around the edit domain
2024-09-01 07:49:14 +00:00
Frane Polić 48d4a97ad2 fix(dashboard): rma shipping floats (#8892) 2024-08-30 09:31:28 +00:00
Frane Polić f2496ef783 feat(dashboard): refactor dismissed quantity (#8842)
**What**
- refactor Receive return flow to use dismissed quantity instead of written off quantity 
- fix a few more edge cases

---

FIXES CC-392
2024-08-29 16:47:07 +00:00
Frane Polić e396c01260 fix(dashboard): RMAs shipping pricing (#8848)
* wip: allow unsetting price

* fix: use non return shipping for outbound

* fix: claims shipping

* fix: refactor

* fix: checks

* feat: polish
2024-08-29 11:54:29 +02:00
Frane Polić d8fdf4d0b2 fix(dashboard): active rma z-index (#8854) 2024-08-28 15:54:01 +00:00
Frane Polić 6ea5a15762 fix(dashboard): active RMA section border (#8849)
**What**
- fix border around active RMA section on larger screens

**Prev**
![Screenshot 2024-08-28 at 14 36 11](https://github.com/user-attachments/assets/89f2dba9-3d84-4b32-a44c-44b32fb605fb)

**Now**
![Screenshot 2024-08-28 at 14 35 23](https://github.com/user-attachments/assets/6e96acfd-8916-456a-bdeb-9485d491f22f)
2024-08-28 15:20:56 +00:00
Frane Polić e0a3b8fc2e feat(dashboard): summary shipping breakdown (#8779)
**What**
- display a shipping costs breakdown in the order summary
- allow to receive only non canceled returns
- show how many items is actually received with return in the timeline

**Question**
- should we display the shipping total somewhere as well

---

CLOSES CC-356
2024-08-28 06:44:22 +00:00
Frane Polić 9197bdd77b feat(dashboard): cancel return request (#8761)
* wip: cancel return request

* fix: refactor

* feat: correct endpoint, add hook, fix types

* feat: add prompt
2024-08-27 13:57:12 +02:00
Frane Polić 979f7704ee fix(dashboard): summary section return fixes (#8770)
**What**
- open receive Return if only one exists
- fix double dashed divider

---

FIXES CC-287 CC-361
2024-08-27 06:53:13 +00:00
Frane Polić 49353f8c3c feat(dashboard): order edit UI (#8700)
**What**
- order edit create flow
- active order edit panel

**Note**
- basic implementation of the flow, edge cases from the design such as fulfilled quantities validation will be added in a followup
2024-08-23 06:42:06 +00:00
Frane Polić d571d564c3 fix(dashboard): disable RMAs if there is no shipped items (#8652) 2024-08-19 12:30:56 +02:00
Frane Polić 2280d31396 feat(dashboard, js-sdk, types): receive return e2e (#8305)
**What**
- receive return flow
- order summary section adjustments
- fix received item in summary
- activity event

---

CLOSES TRI-79 CC-256
2024-08-01 18:29:11 +00:00
Frane Polić 7b86fc2176 feat(dashboard, types, js-sdk): Claims client, hooks and types (#8370) 2024-07-31 13:37:43 +00:00
Frane Polić f7d1cd259e feat(dashboard, order, medusa, types, js-sdk): Request return e2e flow (#7848) 2024-07-24 19:19:00 +02:00
Frane Polić 223325eb09 feat: allow filtering returns by order_id (#8225) 2024-07-22 21:09:14 +02:00
Frane Polić e5c66fa670 fix(dashboard): create SO modal (#8167) 2024-07-17 13:16:13 +01:00
Frane Polić 43eb38c8cb fix(dashboard): create variant remove inventory quantity (#8129) 2024-07-15 17:44:09 +02:00
Frane Polić ee826390ea fix(dashboard): reservation and price list fixes (#8110)
* wip: reservation fixes, PL fixes

* fix: delete message and cache invalidation

* fix: invalidate inventory item details when reservation is created/updated/deleted

* fix: align design

* fix: location levels cache
2024-07-14 18:00:16 +02:00
Frane Polić 82b620c488 fix(dashboard): promotions disable conditions (#8104) 2024-07-12 16:10:05 +02:00
Frane Polić 4c2e9a3239 feat(dashboard): allocate items (#8021)
**What**
- add Allocate items flow

---


https://github.com/medusajs/medusa/assets/16856471/8485c8dc-b1f2-4239-bb22-996345d5d2ad
2024-07-12 07:57:00 +00:00
Frane Polić ac416e99a1 fix(dashboard): product create input focus (#8095) 2024-07-11 18:09:49 +02:00
Frane Polić 74c19308a0 fix(dashboard): stock location hook cache invalidation (#8049) 2024-07-10 20:06:36 +02:00
Frane Polić b289510b46 fix(dashboard, medusa): mark shipped flow (#8065)
* fix: mark shipped routing

* fix: naming
2024-07-10 19:37:12 +02:00
Frane Polić 32982e708a fix(dashboard): order list statuses (#7948)
* fix: order list statuses

* refactor: remove todo
2024-07-04 16:17:53 +02:00
Frane Polić f4225c051f fix(dashboard): order item details alignment (#7942)
* fix: order item details alignment

* fix: use TW

* fix: use TW 2

* fix: smaller font for quantity
2024-07-04 12:59:36 +02:00
Frane Polić b3e55bfa48 feat(dashboard): activity section events (#7929)
* feat: activity section events

* fix: hide tax section

* fix: display shipping methods

* fix: reorg summary totals according to design
2024-07-03 20:48:53 +02:00
Frane Polić da645e4073 fix(dashboard): reset table scroll on page change (#7916) 2024-07-03 12:43:27 +02:00
Frane Polić 837ed093e3 fix(dashboard): few fixes (#7910)
* fix: fixes

* fix: inventory section row formatting with preline whitespace

* fix: manage zone areas
2024-07-03 09:34:03 +02:00
Frane Polić 87375db9ef feat(dashboard): create shipment flow (#7898)
**What**
- add "Mark shipped" to Fulfillment section

---

CLOSES CORE-2427
2024-07-02 14:50:15 +00:00
Frane PolićandSebastian Rindom 8703f453be feat(dashboard): manage inventory items for variants (#7800)
* feat: manage inventory items for variants

* fix: show action only when manage inventory

* fix: translation key

* fix: labels depending on number of items

* fix: address feedback

---------

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2024-06-26 11:53:16 +02:00
Frane Polić 62dacdda75 fix: refreshing inventory locations list (#7828) 2024-06-25 21:19:09 +02:00
Frane Polić 4a631e789d feat(dashboard): handle region pricing on create/edit (#7811)
**What**
- allow for region prices creation on product create flow
- editing of region prices in prices edit form
2024-06-25 15:15:08 +00:00
Frane Polić 11502ee2b5 fix(dashboard): create reservation prefill (#7820)
**What**
- when creating reservation from inventory details page, preselect that inventory item

FIXES CORE-2387
2024-06-25 06:48:52 +00:00
Frane Polić ed104d5aac fix(dashboard): manage locations for item location levels (#7794)
* fix: manage locations for item location levels

* fix: toast
2024-06-21 14:43:07 +02:00
Frane Polić 79a8f0ef2c feat(dashboard): move shipping profile to locations (#7777) 2024-06-20 06:47:40 +00:00
Frane Polić ef5719a3d8 feat(dashboard): variant details page (#7767)
* wip: setup

* feat: finish inventory, prices section

* feat: finish prices section pagination

* fix: move edit variants to variants details, fix loader

* fix: suggestion

* feat: price editor flow
2024-06-19 13:56:35 +02:00
Frane Polić 4e86caba30 feat(dashboard): display inventory levels in variants table (#7694)
* feat: display inventory levels in variants table

* fix: display conditions and translations

* fix: invalidate inventory lists when products are created

* fix: translation, fix link definition

* fix: revert link

* feat: navigation actions

* fix: action, refactor

* fix: refactor, add check for manage quantity flag

* fix: update label
2024-06-17 11:23:18 +02:00
Frane Polić 3ecbec9685 feat(dashboard): inventory details variants section (#7705) 2024-06-14 11:18:23 +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
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
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
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
Frane Polić 9677daa568 fix(dashboard): import in client (#7628)
**What**
- fix import of deleted file
2024-06-06 08:49:21 +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
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
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
Frane Polić 582c9c9acf fix: api key details section (#7488) 2024-05-28 08:45:34 +02:00
Frane Polić b7df447682 fix(core-flows): set SalesChannels on Product update (#7272) 2024-05-21 21:48:34 +02:00
Frane Polićandolivermrbl 521b4e7926 feat(dashboard): order fulfillment UI (#7262)
* feat: initial impl. of Unfulfilled section and create flow

* feat: create fulfillment

* feat: order <> fulfillment link, fulfillment section

* feat: accept order_id when creating fulfillment

* feat: finish create and cancel

* fix: integration test

* refactor: real Order<>Fulfillment link instead readonly, add link step to the workflow

* fix: revert `order_id` definitions

* chore: add changeset

* fix: build

* fix: address comments

* fix: fetch inventory and location levels for fulfilled variant

* fix: loading inventory details

* add isList to order fulfillment link

* fix: duplicate declaration

* fix: type

* refactor: link orders step, fix client

* fix: move translations to the new file

* fix: pass order id in test

---------

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2024-05-20 13:41:09 +02:00
Frane Polić ce75755ac6 feat(dashboard): manage groups from customer details (#7346) 2024-05-19 11:10:13 +02:00
Frane Polić df8f4169e5 fix(dashboard): variants list query key (#7354) 2024-05-17 10:18:36 +02:00
Frane Polić 694434d51a fix(dashboard): location UI fixes (#7288)
* fix: a few UI fixes

* fix: domain name

* feat: edit service zone areas

* feat: edit shipping option prices

* fix: sorting
2024-05-16 19:34:49 +02:00
Frane PolićandOli Juhl d5ac0633f5 feat(dashboard): collection product management (#7333)
* feat: implement collection management

* fix: toasts

* fix: use query keys from the lib

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-05-16 09:07:36 +02:00
Frane Polić 5952fddad5 fix: SC add products table full width (#7273) 2024-05-08 18:33:40 +02:00
Frane PolićandCarlos R. L. Rodrigues 39c3f6d92a feat(dashboard): basic Order UI (#7225)
**WHAT**
- rudimentary list and details pages
- fix Order<>Promotion link
- fix Order<>SalesChannel link

**NOTE**
- displaying basic info since we don't have Fulfillments & Payments linked ATM
- `disaply_id` needs to be added to order
- `tax_rate` needs to be added to order

---


https://github.com/medusajs/medusa/assets/16856471/cd4e98c7-345e-4193-8c1e-ad4ed1584993



Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-05-07 07:28:42 +00:00
Frane Polić e42308557e feat(dashboard): shipping & location (#7151) 2024-05-03 11:51:55 +02:00
Frane Polić 155e276b90 feat(dashboard): metadata component (#7117)
**What**
- add new metadata component

**Note**
- _example of usage on customer edit form_
- we are not handling update metadata case in the internal module service so for now delete case doesn't work properly

---


https://github.com/medusajs/medusa/assets/16856471/b588752d-9cf5-4d96-9cf8-760a764ab03e
2024-05-02 07:51:39 +00:00
Frane Polić fe68b5c0f2 refactor(dashboard): refresh domains (#7087) 2024-04-24 10:38:52 +02:00
Frane Polić f62de56b63 feat(dashboard): Region refactor (#7083)
* wip: regions refactor

* feat:  finalize region domain

* fix: cleanup error messages
2024-04-22 08:35:52 +02:00
Frane Polić 122b3ea76b refactor: users domain (#7070)
**What**
- refactor users domain to use `DataTable`
- add search params to `User` module models
2024-04-16 16:09:07 +00:00
Frane Polić 0a9b9b073d feat(dashboard): shipping management (#6995)
**What**
- shipping flow
- shipping profile pages
- delete fulfillment set endpoint
- delete shipping profile endpoint
2024-04-16 13:42:56 +00:00
Frane Polić 9b5e025863 fix: close create form on success (#7011) 2024-04-08 16:31:42 +02:00
Frane Polić 58c68f6715 feat(dashboard): Admin UI regions v2 (#6943) 2024-04-06 17:41:54 +02:00
Frane Polić 01759cae65 fix(region): update regions countries (#6970)
* fix: update regions countries

* fix: test case
2024-04-06 09:50:46 +02:00
Frane Polić e58e81fd25 feat(dashboard): admin 3.0 order refund form (#6850) 2024-04-01 10:55:42 +02:00
Frane Polić 9766266b97 fix(admin-next): admin v2 flag parsing and loading user data (#6843) 2024-03-27 18:18:48 +01:00
Frane PolićandKasper Fabricius Kristensen 2ae8eaa779 feat(dashboard) admin 3.0 return creation (#6713)
**What**
- request return flow

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-03-22 16:57:18 +00:00
Frane Polić 189b03c485 feat(dashboard) admin 3.0 order edit (#6665)
**What**
- added Order Edit creation flow

**NOTES**
- since the state is managed on the server upon changing input / adding items a request is fired to update the edit
- on save we only confirm the edit

---

**TODO**
- [x] item removal functionality

---

https://github.com/medusajs/medusa/assets/16856471/01aa85ea-1fb1-4dff-9cf4-d8d79029c2cc
2024-03-20 07:54:22 +00:00
Frane PolićandKasper Fabricius Kristensen a1b4aff127 feat(dashboard): manage discounts conditions (#6620)
**What**
- forms for managing discount conditions

---

https://github.com/medusajs/medusa/assets/16856471/bb0b3fe8-fa60-479b-bc42-6db9d422bcdf





Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2024-03-15 11:56:23 +00:00
Frane Polić 39e73b2d2f feat(dashboard) admin 3.0 create discounts form (#6590) 2024-03-11 08:06:27 +01:00
Frane Polić fcb03d60ea feat(dashboard): Discounts details + edits (#6547)
**What**
- Discounts details page
- Edit discount details
- Edit discount configurations
- `ListSummary` component

**NOTE**
- conditions edit form will be implemented in a separate PR
- edit details from is missing metadata component which will be added later

---


https://github.com/medusajs/medusa/assets/16856471/c878af4a-48c2-4c45-b824-662784c7a139
2024-03-06 14:08:15 +00:00
Frane Polić 608c10383a feat(admin-next) discounts list page (#6490) 2024-02-27 12:33:19 +01:00
Frane Polić 8ff838970e fix(medusa): register logger when running migrations (#6415) 2024-02-21 13:28:58 +01:00
Frane Polić a6a4b3f01a feat(payment): provider service (#6308) 2024-02-12 20:57:41 +01:00
Frane Polić 2104843826 feat(payment): payment and session methods (#6138) 2024-02-06 13:40:22 +01:00
Frane Polić 3db2f95e65 feat: sales channel module (#5923) 2024-01-29 09:47:28 +01:00
Frane Polić d47e946496 feat(payment): PaymentCollection CRUD (#6124) 2024-01-22 11:04:46 +01:00