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

Update UI snapshots #1257

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/keychain/.storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const config: TestRunnerConfig = {
// Get the story's container element - selecting the nested content div
const storyContainer = await page.$("#storybook-root > div > div");
if (!storyContainer) {
throw new Error("Could not find story content element");
console.warn("Could not find story content element");
return;
}

// Get browser name to handle different browsers if needed
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions packages/keychain/src/components/Funding/PurchaseCredits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ export function PurchaseCredits({ onBack }: PurchaseCreditsProps) {
<Content gap={6}>
<Balance showBalances={["credits"]} />
<ErrorAlert
variant="info"
variant=""
title="WHAT ARE CREDITS"
description="Credits can be debited from your account and used to pay for network activity. They are not tokens and cannot be transferred or refunded."
description="Credits can be used to play games. They are not tokens and cannot be transferred or refunded."
isExpanded
/>
</Content>
Expand Down Expand Up @@ -166,8 +166,7 @@ export function PurchaseCredits({ onBack }: PurchaseCreditsProps) {
<Separator className="bg-spacer m-1" />

<Button isLoading={isLoading} onClick={createPaymentIntent}>
<CoinsIcon variant="solid" size="sm" />
Stripe
Purchase
</Button>
</>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/connect/CreateSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function CreateSession({

{!policies?.verified && (
<div
className="flex items-center p-3 gap-5 border border-solid-primary rounded-md cursor-pointer border-error-icon text-error-icon"
className="flex items-center p-3 mb-3 gap-5 border border-solid-primary rounded-md cursor-pointer border-error-icon text-error-icon"
onClick={() => !isConnecting && setIsConsent(!isConsent)}
>
<Checkbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
import { SessionConsent } from "./SessionConsent";

const meta = {
tags: ["autodocs"],
// tags: ["autodocs"],
component: SessionConsent,
parameters: {
connection: {
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/connect/create/Legal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LockIcon } from "@cartridge/ui-next";
import { Link } from "react-router-dom";

export const Legal = () => (
<div className="flex items-center gap-1 text-muted-foreground">
<div className="flex items-center gap-1 text-muted-foreground mb-3">
<LockIcon />
<div className="text-xs">
By continuing you are agreeing to Cartridge&apos;s{" "}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function StatusTray({ username, validation, error }: StatusTrayProps) {
>
<div
className={cn(
"text-xs px-4 py-2",
"text-xs px-4 py-2 pt-3",
isError
? "text-[#2A2F2A] border-b border-[#161A17] border-opacity-10"
: "text-quaternary-foreground",
Expand Down
Loading