Shahed Nasser
1d54e8fdc1
docs: add new API route guides + fixes and improvements to existing ones ( #8987 )
...
- Add new documentation pages for API route intro, responses, errors, and validation
- General fixes and improvements across existing API route guides
> Note: I didn't work on the guide for additional data validation. Will work on this as part of my next focus on workflows.
2024-09-04 18:23:55 +00:00
Shahed Nasser
ee3580efdb
fix(core-flows, types, medusa): fix batch delete types in workflows and routes ( #8974 )
...
- Fix the returned data of batch delete steps / workflows for deleted records to just be the array of IDs.
- Add a new type `BatchResponse` for API routes to have a different shape for deleted records
- Update batch delete helpers to return the expected shape for API routes
2024-09-04 18:22:48 +00:00
Oli Juhl
f063a69632
chore(core-flows): Add invite resent event ( #8986 )
2024-09-04 19:53:29 +02:00
Shahed Nasser
4b1827ed48
fix(types,medusa): fix query types for some store routes ( #8994 )
2024-09-04 19:36:55 +03:00
Shahed Nasser
c424d397f6
oas: [14/14] improve admin oas ( #8989 )
2024-09-04 19:36:27 +03:00
Shahed Nasser
090cb36543
docs-utils: fix auth detection + added query params ( #8997 )
2024-09-04 19:36:10 +03:00
Frane Polić
13e4f4aeb5
fix(dashboard): import products labels ( #9001 )
...
FIXES CC-337
2024-09-04 16:24:41 +00:00
Stevche Radevski
b9ea116697
fix: Remove deprecated method, generalize typings in auth ( #8998 )
2024-09-04 16:05:56 +00:00
Stevche Radevski
ed26fb4d19
fix: Check actor type on account creation, fix github entity id ( #8996 )
2024-09-04 17:23:31 +02:00
Riqwan Thamir
de6f61b05f
feat: added totals tests for end 2 end RMA flow ( #8906 )
...
what:
I've added some specs and comments in the specs for where I think totals are incorrect.
Lets get this test merged in as the status quo and proceed to fix these issues one by one.
Additionally, this also removes the temporary_difference as its not something we use.
RESOLVES CC-346
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-04 13:11:04 +00:00
matteoxplo
91f17fb176
fix: Workflow always print "error:" even if there are none ( #8978 )
...
Fix issue [https://github.com/medusajs/medusa/issues/8976 ](https://github.com/medusajs/medusa/issues/8976 )
2024-09-04 12:17:25 +00:00
Stevche Radevski
af4f8811bd
feat: Add github authentication provider ( #8980 )
...
* feat: Add github authentication provider
* feat: Change callback to always return a token, expect callbackUrl to point to FE
* fix: Return login redirect URLas a 200 response
2024-09-04 13:14:00 +02:00
Carlos R. L. Rodrigues
fb832072a4
fix(utils): graphql enum options ( #8985 )
2024-09-04 10:40:31 +00:00
Kasper Fabricius Kristensen
c3561fae3a
fix(dashboard): Display breadcrumbs for variant route ( #8983 )
...
Resolves CC-63
2024-09-04 10:12:10 +00:00
Carlos R. L. Rodrigues
5a097d8954
feat(utils): dml to graphql ( #8951 )
2024-09-04 06:15:07 -03:00
Kasper Fabricius Kristensen
419cf1b7d7
fix(dashboard): Align product organization badges with design ( #8975 )
...
**What**
- Aligns implementation with design, all badges in the Organization card should be grey.
2024-09-04 06:49:49 +00:00
github-actions[bot]
91d0bb0260
chore(docs): Generated References ( #8979 )
...
Generated the following references:
- `core_flows`
- `fulfillment`
- `modules`
- `order`
- `promotion`
- `types`
2024-09-04 06:38:54 +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:

After:

2024-09-04 06:17:38 +00:00
Kasper Fabricius Kristensen
58c78a7f62
fix(dashboard): Tab behaviour in DataGrid ( #8973 )
...
* fix focus in datagrid
* cleanup
* fix keyboard commands
* cleanup
* cleanup
* always allow handler for special focus to fire
* cleanup
2024-09-03 20:54:47 +02:00
Shahed Nasser
f47f1aff49
oas: [13/n] improve admin oas ( #8971 )
...
Improve the OAS of admin API routes [13/n]
2024-09-03 16:59:37 +00:00
Riqwan Thamir
ff623f8b00
fix(order,utils): fix outstanding amount stuck on long orders ( #8968 )
2024-09-03 18:48:47 +02:00
Shahed Nasser
423583e06c
fix(medusa): fix update promotion's request type ( #8966 )
...
Fix the validator of the update promotion API route to match the update workflow input's type.
2024-09-03 15:08:22 +00:00
Shahed Nasser
58f297cc75
docs: added documentation on testing tools ( #8939 )
...
- Added documentation on how to use Medusa's tools from the `medusa-test-utils` package to create integration and unit tests.
- Added a manual reference on the `medusaIntegrationTestRunner` and `moduleIntegrationTestRunner` functions. Since the typings in the source code aren't very informative, I opted for a manual reference shedding light on the important bits.
Closes DOCS-852
2024-09-03 14:50:45 +00:00
Shahed Nasser
e9fce4c5c2
docs: improvements to intro and basics chapters ( #8956 )
2024-09-03 17:34:07 +03:00
Shahed Nasser
7e278bef76
oas: [11/n] improve admin OAS ( #8963 )
2024-09-03 17:33:45 +03:00
Shahed Nasser
ee2c297caa
oas: [12/n] improve admin oas ( #8967 )
2024-09-03 17:32:58 +03:00
Shahed Nasser
46a70eaf5b
docs: added a section on middlewares and trailing backslashes ( #8942 )
2024-09-03 17:32:36 +03:00
Shahed Nasser
c42d66f239
fix(medusa): change the request type of removing products from price list ( #8964 )
...
* fix(medusa): change the request type of removing products from price list
* fix build error
2024-09-03 16:57:10 +03: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
Riqwan Thamir
e49d004fef
chore: remove promotions in campaign validators + move tests to http ( #8965 )
2024-09-03 14:19:42 +02:00
Riqwan Thamir
230acb700b
feat(core-flows,types): Refunds can only be performed when order is imbalanced ( #8944 )
...
* feat(core-flows,types): Refunds can only be performed when order is imbalanced
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* chore: fix tests
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-09-03 13:53:20 +02:00
Shahed Nasser
9a34e03ae1
fix(medusa): fix complete order API route to remove duplicate params ( #8961 )
...
Remove the `order_id` request body param from the complete order API route and use the `id` path parameter instead.
2024-09-03 10:46:00 +00:00
Shahed Nasser
123118ac8e
fix(js-sdk): fix invite resend request being sent as GET instead of POST ( #8960 )
...
`/admin/invites/:id/resend` is a POST API route, but the JS SDK's `resend` method was sending a GET request.
2024-09-03 10:36:11 +00:00
Shahed Nasser
f9b0605d67
docs: generate sitemaps + change search filters ( #8957 )
...
- Generate sitemaps for `book` and `resources` projects (in attempt to resolve some pages not being picked up by the crawler)
- Change the v2 search filters
> Note: will require changes to algolia's crawler + a recrawl once merged
2024-09-03 10:33:08 +00:00
Shahed Nasser
8e177538c1
oas: [10/n] improve admin oas ( #8959 )
2024-09-03 13:29:58 +03:00
Frane Polić
c9e0ba72da
fix(dashboard): receive return form ( #8955 )
2024-09-03 09:22:51 +02:00
github-actions[bot]
508d5d720c
chore(docs): Generated References ( #8953 )
...
Generated the following references:
- `cart`
- `core_flows`
- `customer`
- `medusa_config`
- `modules`
- `types`
2024-09-03 07:20:00 +00:00
github-actions[bot]
edc19e748b
chore(docs): Updated API Reference (v2) ( #8954 )
...
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request ) GitHub action
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2024-09-03 07:18:42 +00: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
Shahed Nasser
1a63209290
oas: [8/n] improve admin OAS ( #8945 )
...
Improve the OAS of admin API routes [8/n]
2024-09-03 06:45:11 +00:00
Kasper Fabricius Kristensen
c6ff9efdea
fix(dashboard,admin-shared): Fixes to inventory page ( #8941 )
...
**What**
- Adds qty column to reservations table.
- Adds missing injections zones
- Fixes layout on long description field.
Resolves CC-121
2024-09-02 17:38:56 +00:00
Shahed Nasser
29555ae518
fix(types, medusa): fixes to draft order request types ( #8949 )
...
- remove the `name` filter for orders (couldn't find any `name` property in the order data model).
- Remove the `order_id` property of a shipping method in the request body type for creating a draft order
- Update the types of `fulfillment_status` and `payment_status` in the order filters to showcase the possible status values.
2024-09-02 17:09:41 +00:00
Kasper Fabricius Kristensen
d88e6474e9
fix(dashboard): Product create price columns race condition ( #8943 )
2024-09-02 18:56:05 +02:00
Adrien de Peretti
479e712c17
fix(core-flows): Handle variant creation duplicate inventory item ids ( #8937 )
...
* fix(core-flows): Handle variant creation duplicate inventory item ids
* disabled already selected options
* address feedback
* fix tests
2024-09-02 18:36:42 +02:00
Kasper Fabricius Kristensen
ddcb030ac7
fix(medusa): Allow filtering customers by has_account ( #8947 )
...
* add has account filter param
* add has account filter param
2024-09-02 18:19:50 +02:00
Harminder Virk
3bb6ef3735
fix: move get-port to main dependencies list ( #8938 )
2024-09-02 18:37:54 +05:30
Shahed Nasser
f98bb7e2b4
docs: small fixes to marketplace recipe ( #8932 )
2024-09-02 15:39:58 +03: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
Harminder Virk
0ce584029c
fix: handle case where product to be updated does not exist ( #8897 )
2024-09-02 16:23:31 +05:30