Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dashboard): Cleanup Pricing domain #7035

Merged
merged 6 commits into from
Apr 9, 2024
Merged

Conversation

kasperkristensen
Copy link
Contributor

@kasperkristensen kasperkristensen commented Apr 9, 2024

What

  • Adds missing translations
  • Minor cleanup

Note

  • The domain is still missing features that are supported in V1, but are currently not available in V2. The types are also all wrong, so will need to revisit after the pricing domain is revisited, types have been added, and missing features implemented.

CLOSES CORE-1901

Copy link

changeset-bot bot commented Apr 9, 2024

⚠️ No Changeset found

Latest commit: 322a342

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Apr 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medusa-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 2:39pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Apr 9, 2024 2:39pm
docs-ui ⬜️ Ignored (Inspect) Visit Preview Apr 9, 2024 2:39pm
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Apr 9, 2024 2:39pm

if (isError) {
throw error
}

return (
<div className="flex flex-col gap-y-2">
<ApiKeyGeneralSection apiKey={api_key} />
<ApiKeySalesChannelSection apiKey={api_key} />
{isPublishable && <ApiKeySalesChannelSection apiKey={api_key} />}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very NIT, but it might be good to rename ApiKeySalesChannelSection to PublishableApiKeySection, since we can add more than sales channel to publishable keys

<Link
to="/settings/api-key-management"
data-state={keyType === ApiKeyType.PUBLISHABLE ? "active" : ""}
className="txt-compact-small-plus transition-fg text-ui-fg-subtle hover:text-ui-fg-base focus-visible:border-ui-border-interactive focus-visible:!shadow-borders-focus focus-visible:bg-ui-bg-base data-[state=active]:text-ui-fg-base data-[state=active]:bg-ui-bg-base data-[state=active]:shadow-elevation-card-rest inline-flex items-center justify-center rounded-full border border-transparent bg-transparent px-2.5 py-1 outline-none"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot of styling 😄 Do we need to create some component for it instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's temporary, its the style from our Tabs component, but we don't actually want to use it here, so will have Ludvig come up with a new design after Recap 👍

@kodiakhq kodiakhq bot merged commit 596faf2 into develop Apr 9, 2024
24 checks passed
@kodiakhq kodiakhq bot deleted the feat/v2-pricing-cleanup branch April 9, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants