-
+
{title}
-
-
{description}
+
+
+ {description}
+
@@ -278,6 +282,7 @@ const AssumptionCard = ({
const explanation = assumption.explanation;
const classification = assumptionClassificationTranslations[assumption.classification];
const label = assumptionLabelTranslations[assumption.label];
+ const isMajor = assumption.label === 'major';
return (
@@ -285,12 +290,14 @@ const AssumptionCard = ({
{title}
-
{explanation}
+
+ {explanation}
+
{classification}
-
{label}
+
{label}
);
diff --git a/apps/web/src/components/ui/pills/Pill.stories.tsx b/apps/web/src/components/ui/pills/Pill.stories.tsx
new file mode 100644
index 000000000..a36dabfac
--- /dev/null
+++ b/apps/web/src/components/ui/pills/Pill.stories.tsx
@@ -0,0 +1,50 @@
+import type { Meta, StoryObj } from '@storybook/react';
+import { Pill } from './Pill';
+
+const meta: Meta
= {
+ title: 'UI/pills/Pill',
+ component: Pill,
+ parameters: {
+ layout: 'centered'
+ },
+ tags: ['autodocs'],
+ argTypes: {
+ variant: {
+ control: { type: 'select' },
+ options: ['gray', 'danger', 'success'],
+ description: 'The visual variant of the pill'
+ },
+ children: {
+ control: { type: 'text' },
+ description: 'The content of the pill'
+ },
+ className: {
+ control: { type: 'text' },
+ description: 'Additional CSS classes'
+ }
+ }
+};
+
+export default meta;
+type Story = StoryObj;
+
+export const Gray: Story = {
+ args: {
+ variant: 'gray',
+ children: 'Gray Pill'
+ }
+};
+
+export const Danger: Story = {
+ args: {
+ variant: 'danger',
+ children: 'Danger Pill'
+ }
+};
+
+export const Success: Story = {
+ args: {
+ variant: 'success',
+ children: 'Success Pill'
+ }
+};
diff --git a/apps/web/src/components/ui/pills/Pill.tsx b/apps/web/src/components/ui/pills/Pill.tsx
index 737d757ee..f9bb59935 100644
--- a/apps/web/src/components/ui/pills/Pill.tsx
+++ b/apps/web/src/components/ui/pills/Pill.tsx
@@ -1,14 +1,25 @@
import React from 'react';
import { cn } from '@/lib/classMerge';
+import { cva, type VariantProps } from 'class-variance-authority';
-export const Pill: React.FC> = ({ children, className, ...props }) => {
+const pillVariants = cva('rounded-sm border px-1 py-0.5 text-xs', {
+ variants: {
+ variant: {
+ gray: 'bg-item-select text-gray-dark',
+ danger: 'bg-danger-background text-danger-foreground border-none',
+ success: 'bg-success-background text-success-foreground border-none'
+ }
+ },
+ defaultVariants: {
+ variant: 'gray'
+ }
+});
+
+export interface PillProps extends React.ComponentProps<'div'>, VariantProps {}
+
+export const Pill: React.FC = ({ children, className, variant, ...props }) => {
return (
-