Skip to content

Conversation

@stephsprinkle
Copy link
Contributor

Summary

IYKYK

@stephsprinkle stephsprinkle requested review from a team, ByronDWall, Copilot, ddouglasz, jaikamat, misama-ct, tylermorrisford and valoriecarli and removed request for a team December 18, 2025 20:49
@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

⚠️ No Changeset found

Latest commit: eae0d65

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nimbus-documentation Ready Ready Preview, Comment Dec 18, 2025 9:34pm
nimbus-storybook Ready Ready Preview, Comment Dec 18, 2025 9:34pm

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive engineering guidelines and documentation for the Avatar component, including test specifications and developer implementation documentation.

Key Changes

  • Adds test specification file with structured test cases covering basic rendering, size variants, disabled state, and accessibility
  • Adds developer documentation with usage examples, accessibility guidelines, common patterns, and testing guidance

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
packages/nimbus/src/components/avatar/avatar.docs.spec.tsx New test specification file with comprehensive test coverage for Avatar component functionality, organized into four sections with @docs annotations
packages/nimbus/src/components/avatar/avatar.dev.mdx New developer documentation file covering import, basic usage, size options, color palettes, image handling, disabled state, accessibility requirements, API reference, common patterns, and testing examples

### Import

```tsx
import { Avatar, type AvatarProps } from "@commercetools/nimbus";
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import statement should use single quotes for consistency with other components in the codebase. Change the double quotes to single quotes.

Suggested change
import { Avatar, type AvatarProps } from "@commercetools/nimbus";
import { Avatar, type AvatarProps } from '@commercetools/nimbus';

Copilot uses AI. Check for mistakes.
Comment on lines +109 to +125
### Disabled state

The `isDisabled` prop visually indicates that the avatar is in a disabled state:

```jsx-live-dev
const App = () => (
<Stack direction="row" gap="400" alignItems="center">
<Avatar firstName="John" lastName="Doe" isDisabled />
<Avatar
firstName="Jane"
lastName="Smith"
src="https://i.pravatar.cc/150?img=1"
isDisabled
/>
</Stack>
)
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that we do have disabled styling for this component, but i am not seeing the visual changes applied. wont hold the pr up for this, but we can throw up a ticket to investigate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree. I'll make a ticket

@valoriecarli valoriecarli added the documentation Improvements or additions to documentation label Dec 18, 2025
Copy link
Collaborator

@valoriecarli valoriecarli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants