Skip to content

Commit

Permalink
Task stories finalized and UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Dec 22, 2023
1 parent efe1ea4 commit 6a337af
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Task.jsx
Expand Up @@ -50,7 +50,7 @@ export default function Task({
aria-label={state === "TASK_PINNED" ? "unpin" : "pin"}
key={`pinTask-${id}`}
>
<span className={`icon-bell`} />
<span className={`icon-star`} />
</button>
)}
</div>
Expand Down
32 changes: 32 additions & 0 deletions src/components/Task.stories.jsx
Expand Up @@ -19,3 +19,35 @@ export const Default = {
},
},
};

export const Pinned = {
args: {
task: {
id: "2",
title: "QA dropdown",
state: "TASK_PINNED",
},
},
};

export const Archived = {
args: {
task: {
id: "3",
title: "Write schema for account menu",
state: "TASK_ARCHIVED",
},
},
};

const longTitleString = `This task's name is absurdly large. In fact, I think if I keep going I might end up with content overflow. What will happen? The star that represents a pinned task could have text overlapping. The text could cut-off abruptly when it reaches the star. I hope not!`;

export const LongTitle = {
args: {
task: {
id: "4",
title: longTitleString,
state: "TASK_INBOX",
},
},
};

0 comments on commit 6a337af

Please sign in to comment.