-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/create-user-account
- Loading branch information
Showing
128 changed files
with
4,164 additions
and
1,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@medusajs/medusa": patch | ||
--- | ||
|
||
feat(medusa): migrate medusa unit tests to run with swc jest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@medusajs/ui-preset": patch | ||
"@medusajs/ui": patch | ||
"@medusajs/medusa": patch | ||
"@medusajs/client-types": patch | ||
--- | ||
|
||
feat(ui-preset): Pull latest styles from Figma. | ||
fix(ui): Fix invalid state styling of Select, so it correctly shows when aria-invalid is true. | ||
fix(medusa): Align query params between `/admin/products/:id/variants` and `/admin/variants`. | ||
chore(client-types): Update `medusa` client types to reflect changes to the API. |
31 changes: 0 additions & 31 deletions
31
integration-tests/api/__tests__/admin/__snapshots__/auth.js.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,7 @@ describe("/store/carts", () => { | |
}) | ||
|
||
const customer = await simpleCustomerFactory(dbConnection, {}, 100) | ||
|
||
const items = [] | ||
const cart = await simpleCartFactory(dbConnection, { | ||
email: "[email protected]", | ||
region: regionId, | ||
|
@@ -194,7 +194,6 @@ describe("/store/carts", () => { | |
], | ||
}) | ||
|
||
const items = [] | ||
for (let i = 0; i < 13; i++) { | ||
const product = await simpleProductFactory(dbConnection, {}) | ||
await prodVarInventoryService.attachInventoryItem( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...es/admin-next/dashboard/src/components/common/conditional-tooltip/conditional-tooltip.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Tooltip } from "@medusajs/ui" | ||
import { PropsWithChildren, ReactNode } from "react" | ||
|
||
type ConditionalTooltipProps = PropsWithChildren<{ | ||
content: ReactNode | ||
showTooltip?: boolean | ||
}> | ||
|
||
export const ConditionalTooltip = ({ | ||
children, | ||
content, | ||
showTooltip = false, | ||
}: ConditionalTooltipProps) => { | ||
if (showTooltip) { | ||
return <Tooltip content={content}>{children}</Tooltip> | ||
} | ||
|
||
return children | ||
} |
1 change: 1 addition & 0 deletions
1
packages/admin-next/dashboard/src/components/common/conditional-tooltip/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./conditional-tooltip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/admin-next/dashboard/src/components/common/divider/divider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { clx } from "@medusajs/ui" | ||
import { ComponentPropsWithoutRef } from "react" | ||
|
||
interface DividerProps | ||
extends Omit<ComponentPropsWithoutRef<"div">, "children"> { | ||
orientation?: "horizontal" | "vertical" | ||
variant?: "dashed" | "solid" | ||
} | ||
|
||
export const Divider = ({ | ||
orientation = "horizontal", | ||
variant = "solid", | ||
className, | ||
...props | ||
}: DividerProps) => { | ||
return ( | ||
<div | ||
aria-orientation={orientation} | ||
role="separator" | ||
className={clx( | ||
{ | ||
"w-full border-t": orientation === "horizontal", | ||
"h-full border-l": orientation === "vertical", | ||
"border-dashed": variant === "dashed", | ||
}, | ||
className | ||
)} | ||
{...props} | ||
/> | ||
) | ||
} |
1 change: 1 addition & 0 deletions
1
packages/admin-next/dashboard/src/components/common/divider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./divider" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.