Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: reduce storybook flakes#17427

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 7 commits intomainfrombq/storybook-fixes
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -39,6 +39,11 @@ const meta: Meta<typeof OverviewPageView> = {
invalidExperiments: [],
safeExperiments: [],
},
parameters: {
chromatic: {
diffThreshold: 0.5,
},
},
};

export default meta;
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -156,6 +156,7 @@ export const UserEngagementChart: FC<UserEngagementChartProps> = ({ data }) => {
</defs>

<Area
isAnimationActive={false}
dataKey="users"
type="linear"
fill="url(#fillUsers)"
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,6 +6,13 @@ import { PermissionPillsList } from "./PermissionPillsList";
const meta: Meta<typeof PermissionPillsList> = {
title: "pages/OrganizationCustomRolesPage/PermissionPillsList",
component: PermissionPillsList,
decorators: [
(Story) => (
<div style={{ width: "800px" }}>
<Story />
</div>
),
],
};

export default meta;
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -121,7 +121,7 @@ export const JobRow: FC<JobRowProps> = ({ job }) => {
<dd>{job.metadata.workspace_name ?? "null"}</dd>

<dt>Creation time:</dt>
<dd>{job.created_at}</dd>
<dd data-chromatic="ignore">{job.created_at}</dd>

<dt>Queue:</dt>
<dd>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -111,10 +111,10 @@ export const ProvisionerRow: FC<ProvisionerRowProps> = ({
])}
>
<dt>Last seen:</dt>
<dd>{provisioner.last_seen_at}</dd>
<dd data-chromatic="ignore">{provisioner.last_seen_at}</dd>

<dt>Creation time:</dt>
<dd>{provisioner.created_at}</dd>
<dd data-chromatic="ignore">{provisioner.created_at}</dd>

<dt>Version:</dt>
<dd>
Expand Down
19 changes: 17 additions & 2 deletionssite/src/pages/TerminalPage/TerminalPage.stories.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,6 +14,7 @@ import {
MockAuthMethodsAll,
MockBuildInfo,
MockDefaultOrganization,
MockDeploymentConfig,
MockEntitlements,
MockExperiments,
MockUser,
Expand DownExpand Up@@ -78,13 +79,27 @@ const meta = {
data: { editWorkspaceProxies: true },
},
{ key: ["me", "appearance"], data: MockUserAppearanceSettings },
{
key: ["deployment", "config"],
data: {
...MockDeploymentConfig,
config: {
...MockDeploymentConfig.config,
web_terminal_renderer: "canvas",
},
},
},
],
chromatic: { delay: 300 },
chromatic: {
diffThreshold: 0.3,
},
},
decorators: [
(Story) => (
<AuthProvider>
<Story />
<div style={{ width: 1170, height: 880 }}>
<Story />
</div>
</AuthProvider>
),
],
Expand Down
5 changes: 5 additions & 0 deletionssite/src/pages/WorkspacePage/WorkspaceTopbar.stories.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -316,6 +316,11 @@ export const TemplateInfoPopover: Story = {
);
});
},
parameters: {
chromatic: {
diffThreshold: 0.3,
},
},
};

export const TemplateInfoPopoverWithoutDisplayName: Story = {
Expand Down
8 changes: 4 additions & 4 deletionssite/src/utils/schedule.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -148,26 +148,26 @@ export const autostopDisplay = (
if (template.autostop_requirement && template.allow_user_autostop) {
title = <HelpTooltipTitle>Autostop schedule</HelpTooltipTitle>;
reason = (
<>
<span data-chromatic="ignore">
{" "}
because this workspace has enabled autostop. You can disable autostop
from this workspace&apos;s{" "}
<Link component={RouterLink} to="settings/schedule">
schedule settings
</Link>
.
</>
</span>
);
}
return {
message: `Stop ${deadline.fromNow()}`,
tooltip: (
<>
<span data-chromatic="ignore">
{title}
This workspace will be stopped on{" "}
{deadline.format("MMMM D [at] h:mm A")}
{reason}
</>
</span>
),
danger: isShutdownSoon(workspace),
};
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp