Icon}
+ title="Test Title"
+ description="Test Description"
+ />,
+ );
+ const card = screen.getByRole("button");
+ expect(card).toHaveAttribute("aria-label", "Test Title: Test Description");
+ });
+});
From 4ab37afaf391f9d0a194921bb9f6fdf93bae31ef Mon Sep 17 00:00:00 2001
From: adilallo <39313955+adilallo@users.noreply.github.com>
Date: Mon, 2 Feb 2026 14:55:49 -0700
Subject: [PATCH 2/4] Fix icon card component and tests to pass
---
app/components-preview/page.tsx | 4 +++-
app/components/IconCard/IconCard.view.tsx | 8 ++++----
app/components/InputWithCounter/InputWithCounter.types.ts | 2 --
tests/components/IconCard.test.tsx | 3 ++-
4 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/app/components-preview/page.tsx b/app/components-preview/page.tsx
index 633710d..ac3f7ae 100644
--- a/app/components-preview/page.tsx
+++ b/app/components-preview/page.tsx
@@ -436,7 +436,9 @@ export default function ComponentsPreview() {
}
title="Worker's cooperatives"
description="Employee-owned businesses often need to clarify how power is shared, decisions are made, and how processes operate within their organizations."
- onClick={() => console.log("IconCard clicked")}
+ onClick={() => {
+ // IconCard clicked handler
+ }}
/>
diff --git a/app/components/IconCard/IconCard.view.tsx b/app/components/IconCard/IconCard.view.tsx
index d911e72..c4b462a 100644
--- a/app/components/IconCard/IconCard.view.tsx
+++ b/app/components/IconCard/IconCard.view.tsx
@@ -24,10 +24,10 @@ export function IconCardView({
{icon}
- {/* Title - Centered with auto space above and below */}
-
- {title}
-
+ {/* Title - Centered with auto space above and below */}
+
+ {title}
+
{/* Description */}
diff --git a/app/components/InputWithCounter/InputWithCounter.types.ts b/app/components/InputWithCounter/InputWithCounter.types.ts
index ec6d43c..c04ee47 100644
--- a/app/components/InputWithCounter/InputWithCounter.types.ts
+++ b/app/components/InputWithCounter/InputWithCounter.types.ts
@@ -1,4 +1,3 @@
-/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */
export interface InputWithCounterProps {
label?: string;
placeholder?: string;
@@ -9,4 +8,3 @@ export interface InputWithCounterProps {
className?: string;
inputClassName?: string;
}
-/* eslint-enable no-unused-vars, @typescript-eslint/no-unused-vars */
\ No newline at end of file
diff --git a/tests/components/IconCard.test.tsx b/tests/components/IconCard.test.tsx
index 18ff92f..5b050a8 100644
--- a/tests/components/IconCard.test.tsx
+++ b/tests/components/IconCard.test.tsx
@@ -13,7 +13,8 @@ type IconCardProps = React.ComponentProps;
const baseProps: IconCardProps = {
icon: Icon
,
title: "Worker's cooperatives",
- description: "Employee-owned businesses often need to clarify how power is shared",
+ description:
+ "Employee-owned businesses often need to clarify how power is shared",
};
const config: ComponentTestSuiteConfig = {
From 1ec9e9d63917d85a6281ebc3ac68213f259d820e Mon Sep 17 00:00:00 2001
From: adilallo <39313955+adilallo@users.noreply.github.com>
Date: Mon, 2 Feb 2026 15:51:52 -0700
Subject: [PATCH 3/4] Update Create.stories.js
---
stories/Create.stories.js | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/stories/Create.stories.js b/stories/Create.stories.js
index cea920c..61c58f8 100644
--- a/stories/Create.stories.js
+++ b/stories/Create.stories.js
@@ -1,4 +1,3 @@
-import React, { useState } from "react";
import Create from "../app/components/Create";
import Input from "../app/components/Input";
@@ -44,20 +43,10 @@ export default {
};
const Template = (args) => {
- const [isOpen, setIsOpen] = useState(args.isOpen || false);
-
return (
-
- setIsOpen(true)}
- className="px-4 py-2 bg-blue-500 text-white rounded"
- >
- Open Create Dialog
-
- setIsOpen(false)}>
- {args.children}
-
-
+ {}}>
+ {args.children}
+
);
};
From 9a42035b0ccc1abf56c7ebb68718f1ed92112f2a Mon Sep 17 00:00:00 2001
From: adilallo <39313955+adilallo@users.noreply.github.com>
Date: Mon, 2 Feb 2026 18:56:47 -0700
Subject: [PATCH 4/4] Update and resolve storybook issues
---
.storybook/preview.js | 10 +++++++---
stories/Progress.stories.js | 30 +++++++++++++++++-------------
2 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/.storybook/preview.js b/.storybook/preview.js
index aadfe40..333f813 100644
--- a/.storybook/preview.js
+++ b/.storybook/preview.js
@@ -1,5 +1,7 @@
import "../app/globals.css";
import "./fonts.css";
+import { MessagesProvider } from "../app/contexts/MessagesContext";
+import messages from "../messages/en/index";
/** @type { import('@storybook/react').Preview } */
const preview = {
@@ -13,9 +15,11 @@ const preview = {
},
decorators: [
(Story) => (
-
-
-
+
+
+
+
+
),
],
};
diff --git a/stories/Progress.stories.js b/stories/Progress.stories.js
index 2e3be3c..2e3ce5c 100644
--- a/stories/Progress.stories.js
+++ b/stories/Progress.stories.js
@@ -39,58 +39,62 @@ export const Default = {
args: {
progress: "3-2",
},
- render: (args) => ,
+ render: (args) => (
+
+ ),
};
export const AllStates = {
args: {},
render: (_args) => (