Skip to content

Add helper for truncating long creator handles in list view with ellipsis #422

Description

@Chucks1093

Summary

Creator handles that are very long overflow their container in the list view. A shared truncation helper with a configurable max character count should be used wherever handles are displayed in compact contexts.

Scope

  • Add truncateHandle(handle: string, maxLength?: number): string utility (default max: 20 chars)
  • Append ellipsis only when truncation occurs
  • Add unit tests for: short handle unchanged, exact max unchanged, one over max truncated

Acceptance Criteria

  • Handles under max length are returned unchanged
  • Handles over max are truncated with ellipsis
  • Default max is 20 characters

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions