Skip to content

Add PresenceIndicator component#82

Merged
jalexw merged 1 commit into
mainfrom
claude/determined-feynman-4bxj3t
Jun 18, 2026
Merged

Add PresenceIndicator component#82
jalexw merged 1 commit into
mainfrom
claude/determined-feynman-4bxj3t

Conversation

@jalexw

@jalexw jalexw commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Introduces a new PresenceIndicator component for displaying user presence status with visual indicators. This component supports multiple presence states, sizes, and optional labels with full accessibility support.

Changes

  • New component: PresenceIndicator with support for 7 presence statuses (online, idle, busy, away, dnd, offline, invisible)
  • Size variants: 5 size options (xs, sm, md, lg, xl) with responsive styling
  • Features:
    • Optional pulse animation for active statuses
    • Bordered ring option for overlaying on avatars or colored surfaces
    • Flexible labeling: default status labels, custom text, or label-less
    • Full accessibility with semantic role="status" and customizable aria-label
    • Decorative mode support (when aria-label={null})
  • Styling: Color-coded dots with status-specific visual treatments (e.g., diagonal bar for "do not disturb")
  • Storybook stories: Comprehensive examples including all statuses, sizes, labels, avatar overlays, and a team roster pattern
  • Exports: Component, types, and status/size ID constants via index.ts and main package exports

Implementation Details

  • Uses "use client" directive for client-side rendering
  • Leverages cn() utility for Tailwind class merging
  • Semantic HTML with proper ARIA attributes for status indication
  • Separate PresenceDot sub-component for reusability
  • Type-safe status and size definitions using as const satisfies
  • Version bumped to 0.77.0

https://claude.ai/code/session_01Dq6XGsYEBABHZj5pu8ATq9

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ui Ready Ready Preview, Comment Jun 18, 2026 12:52pm

Request Review

@jalexw jalexw self-assigned this Jun 18, 2026
@jalexw jalexw merged commit 66fc96d into main Jun 18, 2026
10 checks passed
@jalexw jalexw deleted the claude/determined-feynman-4bxj3t branch June 18, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants