Commit Graph

275 Commits

Author SHA1 Message Date
Riqwan Thamir
ce8c90838d fix(core-flows,utils,medusa): fix bug where payment collection across orders were getting updated (#8401)
This took embarrassingly long to debug. :|

what:

- fixes a bug where the payment collection of other orders were getting updated
- adds order status to payments section

<img width="1069" alt="Screenshot 2024-08-02 at 08 37 38" src="https://github.com/user-attachments/assets/31776bd3-e6b9-4d23-8be6-f972f7316cf3">
<img width="1072" alt="Screenshot 2024-08-02 at 08 37 48" src="https://github.com/user-attachments/assets/38cdd8a1-9f31-4920-91bf-a3554e298960">
2024-08-02 08:34:42 +00:00
Stevche Radevski
3a068c6b27 feat: Use tag ids instead of values wherever possible (#8394) 2024-08-02 09:22:03 +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
Riqwan Thamir
7ae1d80380 feat(dashboard,types,js-sdk,payment): ability to refund payment in order page (#8385)
* feat(dashboard,types,js-sdk,payment): ability to refund payment in order page

* chore: use confirmation variant for capture payment

* chore: change refund design accords to figma

* chore: move to js-sdk + currency input
2024-08-01 19:13:41 +02:00
Stevche Radevski
d36d48df76 feat: Show notice on new notifications (#8390) 2024-08-01 17:10:34 +02:00
Stevche Radevski
7569fd1605 fix: Updating product prices removed existing prices (#8388)
RESOLVES #8376
CLOSES CC-288
2024-08-01 08:46:11 +00:00
Riqwan Thamir
3169543d56 feat(dashboard,js-sdk,types): add ability to capture payment from order page (#8368)
what:

- adds ability to capture payment from order page

bugs found:

- when capturing payment of one order, other orders statuses get affected from "captured" to "partially captured". Will investigate this separately. 

https://github.com/user-attachments/assets/0a1beac2-74fc-4803-8528-8de5913964d4
2024-08-01 06:46:03 +00:00
Frane Polić
7b86fc2176 feat(dashboard, types, js-sdk): Claims client, hooks and types (#8370) 2024-07-31 13:37:43 +00:00
Kasper Fabricius Kristensen
6629be92e1 feat(dashboard,medusa,types): Add Product Tag management (#8349)
Resolves CC-69
2024-07-31 07:21:09 +00:00
Kasper Fabricius Kristensen
4fda46d9b1 fix(dashboard): Fix spacing, media, and missing tip in product create form (#8338)
Resolves CC-146, CC-109
2024-07-31 07:06:42 +00:00
Kasper Fabricius Kristensen
2967221e73 fix(dashboard): Cell behaviour in DataGrid (#8183) 2024-07-30 18:18:07 +02:00
Stevche Radevski
1066499402 feat: Add support for product imports (#8298)
* feat: Add support for product imports

* fix: Add product import template to import UI
2024-07-30 16:46:08 +02:00
Riqwan Thamir
c976361f22 feat(dashboard,icons,types,js-sdk): add providers to location UI (#8328) 2024-07-30 08:47:01 +02:00
Stevche Radevski
b539c6d5bb feat: Add support for product export in UI (#8281)
* feat: Add support for product export in UI

* fix:Return the backend URL for private files of local file provider
2024-07-29 21:50:22 +02:00
Kasper Fabricius Kristensen
1d773c536f fix(dashboard,types,js-sdk): Cleanup settings/store (#8336)
**What**
- Cleans up Store domain of all TS errors
- Adds layout component to Store domain
- Adds currencies types and js-sdk methods
- Fixes a bug that caused Table rows to render incorrectly when takings up more then the viewport height.
2024-07-29 19:44:40 +00:00
Carlos R. L. Rodrigues
24c105f288 feat(orchestration,workflows-sdk): Skip step (#8334) 2024-07-29 14:26:47 -03:00
Kasper Fabricius Kristensen
56f634da4b fix(dashboard): Fix CountrySelect (#8301)
Resolves CC-214
2024-07-27 15:27:13 +00:00
Oli Juhl
feabe0e6c0 feat: update return request (#8302) 2024-07-26 19:41:21 +02:00
Stevche Radevski
47c132c70b feat: Add empty state to notifications and remove no more data (#8277)
CLOSES CC-242
CLOSES CC-243
CLOSES CC-245
2024-07-25 15:08:16 +00:00
Stevche Radevski
a26b7cf253 feat: Implement notifications feed (#8224)
Designs: https://www.figma.com/design/z3aUuOVWUKmdHH0ofmMpEV/Web-app-3.0?node-id=10-50&t=9k6K9k7oJh5tIi09-0

![Screenshot 2024-07-22 at 17 02 10](https://github.com/user-attachments/assets/bc7da39f-8ddb-4f93-bf4e-884f063bc1c6)


CLOSES CC-219
2024-07-25 07:37:01 +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
Kasper Fabricius Kristensen
e9f1aafbb1 add as const (#8219) 2024-07-22 14:35:10 +02:00
Shahed Nasser
4ef268d829 fix(dashboard): fix header in create tax region form (#8197)
Use correct text for the header of the create tax region form.

Closes TRI-40
2024-07-19 13:19:02 +00:00
Kasper Fabricius Kristensen
75c5d5ad9e feat(dashboard,js-sdk,types): Update app layout, and add user sdk methods (#8182)
**What**
- Updates app layout (sidebar and topbar)
- Adds "System" option to theme toggle (we now default to system)
- Adds sdk methods for user endpoints (RESOLVES CC-67)
2024-07-19 11:18:48 +00: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
Stevche Radevski
874d511e13 feat: Add tax inclusivity management to currenices (#8112) 2024-07-14 18:03:44 +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
Kasper Fabricius Kristensen
b5a44ef6b1 feat(dashboard,medusa): Add updated Metadata Form (#8084)
**What**
- Adds new Metadata form component.
- Adds the Metadata section as an option to the Page layouts

<img width="576" alt="Skærmbillede 2024-07-11 kl  11 34 06" src="https://github.com/medusajs/medusa/assets/45367945/417810ee-26e2-4c8a-86e3-58ef327054af">
<img width="580" alt="Skærmbillede 2024-07-11 kl  11 34 33" src="https://github.com/medusajs/medusa/assets/45367945/437a5e01-01e2-4ff7-8c7e-42a86d1ce2b3">


**Note**
- When Metadata contains non-primitive data, we disable those rows, and show a placeholder value, a tooltip and an alert describing that the row can be edited through the API. I want to add a JSON editor to allow editing these things in admin, but awaiting approval on that.
- This PR only adds the new form to a couple of pages, to keep the PR light, especially since metadata is not implemented correctly in all validators so also needs some changes to the core. This still show some examples of how its used with the new Page layout components. Will follow up with more pages in future PRs. 
- We try to convert the inputs to the best fitting primitive, so if a user types "true" then we save the value as a boolean, "130" as number, "testing" as a string, etc.
2024-07-11 13:54:59 +00: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
Carlos R. L. Rodrigues
de36e2b36e chore: rename return flow (#8050) 2024-07-10 08:09:10 -03:00
Kasper Fabricius Kristensen
04ec8e758f fix(dashboard): Add safe zone around link Table rows (#8058)
**What**
- After adding Table rows as links there was an issue where clicking close to a Checkbox in a row would click the link. This PR adds a safe zone around the Checkboxes, so you don't end up navigating when trying to select a row.

![image](https://github.com/medusajs/medusa/assets/45367945/7091d6d5-665d-41c7-8b2b-63244fef73b2)

RESOLVES CORE-2566
2024-07-10 10:34:11 +00:00
Kasper Fabricius Kristensen
046a34bdfc feat(dashboard,types,js-sdk,ui): Tax Regions UI (#7935) 2024-07-10 09:26:43 +00:00
Kasper Fabricius Kristensen
6e613f4f50 feat: Update toast design (#8018)
**What**
- Updates the Toast component and `toast` util to match the latest design. 
- Updates every usage of `toast` as `dismissableLabel` is no longer a valid prop, as we now render a X mark instead of a text button.
2024-07-09 16:14:19 +00:00
Kasper Fabricius Kristensen
24fc6befd2 fix(dashboard): Allow cmd+click on table rows (#8045) 2024-07-09 17:57:09 +02:00
Kasper Fabricius Kristensen
d46f9fda21 fix(admin-vite-plugin): ensure forward slashes are used for paths (#8023) 2024-07-09 17:12:48 +02:00
Kasper Fabricius Kristensen
880a91d569 fix(dashboard): Shipping Type tooltip (#8042) 2024-07-09 17:08:38 +02:00
Kasper Fabricius Kristensen
4736d9e2dd fix(dashboard): JSON view (#8038)
* updated json view

* cleanup

* cleanup
2024-07-09 16:45:22 +02:00
Stevche Radevski
101ebbe0f0 fix: Have shipping options open by default (#8040)
CLOSES CORE-2455
2024-07-09 13:59:45 +00:00
Stevche Radevski
00a6e512dc feat: Add support in BE for setting tax inclusivity on currency (#8037) 2024-07-09 15:22:24 +02:00
Stevche Radevski
cbf2fcd559 Feat: Add tax inclusivity to admin (#8003)
* feat: Add price preference to sdk

* feat: Plug tax inclusivity settings for region in UI

* feat: Add price inclusivity indicator to variant and shipping price table columns

* fix: Rename price title to correct variable name

* feat: Add support for tax inclusive crud on region

* fix: Use the region endpoint for updating tax inclusivity

* chore: Factor out price columns from hooks
2024-07-09 09:26:20 +02:00
Kasper Fabricius Kristensen
4d750c13d9 make whole card clickable (#7984) 2024-07-08 10:03:04 +02:00
Kasper Fabricius Kristensen
e11716fa1e fix(dashboard): Hide edit rank button when no categories exist (#7986)
RESOLVES CORE-2456
2024-07-05 17:42:02 +00:00
Kasper Fabricius Kristensen
50df3cea00 fix(vite-plugin-admin): Ensure UI Routes are HMR (#7982)
* fix(vite-plugin-admin): Ensure UI Routes are HMR

* cleanup
2024-07-05 19:30:06 +02:00
Shahed Nasser
eafa3560ae chore(dashboard): text changes and fixes (#7925)
- Improvements to existing texts
- Add subtitles to sections where useful.
- Added the ability to edit the message shown in a list when no records are found + change the message where necessary
- Change documentation link to `https://docs.medusajs.com/v2`.
2024-07-05 12:14:10 +00: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