Skip to content

Conversation

@galligan
Copy link
Contributor

@galligan galligan commented Jan 23, 2026

Summary

Adds comprehensive documentation to @outfitter/ui package:

  • README.md — Installation, quick start, color tokens, output shapes, text formatting, terminal detection
  • CHANGELOG.md — Initial 0.1.0 release notes
  • TSDoc comments — All exported functions, types, and interfaces documented with @param, @returns, and @example

Highlights

  • Documents semantic color tokens (success, warning, error, info)
  • Shows NO_COLOR/FORCE_COLOR/TTY detection behavior
  • Covers all output shapes: tables, lists, trees, progress bars
  • Explains ANSI-aware text formatting (truncate, wrap, pad)

Test plan

  • bun run typecheck passes
  • bun run build succeeds

🤖 Generated with Claude Code

Copy link
Contributor Author

galligan commented Jan 23, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@galligan galligan marked this pull request as ready for review January 23, 2026 03:12
This was referenced Jan 23, 2026
@galligan galligan added the documentation Improvements or additions to documentation label Jan 23, 2026
@greptile-apps
Copy link

greptile-apps bot commented Jan 23, 2026

Greptile Summary

  • Adds comprehensive documentation to the @outfitter/ui package including README, CHANGELOG, and complete TSDoc comments for all exported functions and interfaces
  • Provides detailed API documentation covering color tokens, output shapes (tables, lists, trees), text formatting utilities, and terminal detection capabilities
  • Establishes proper documentation standards with usage examples and parameter descriptions following TypeScript documentation conventions

Important Files Changed

Filename Overview
packages/ui/src/index.ts Added comprehensive TSDoc documentation with @param, @returns, and @example annotations for all exported functions and interfaces

Confidence score: 5/5

  • This PR is extremely safe to merge with no risk of production issues as it only adds documentation
  • Score reflects that these are purely additive documentation changes with no behavioral modifications to the codebase
  • No files require special attention as all changes are documentation-only and well-structured

Sequence Diagram

sequenceDiagram
    participant User
    participant createTheme
    participant supportsColor
    participant renderTable
    participant colorFn
    participant Terminal

    User->>createTheme: "createTheme()"
    createTheme->>supportsColor: "supportsColor()"
    supportsColor->>supportsColor: "Check NO_COLOR env"
    supportsColor->>supportsColor: "Check FORCE_COLOR env"
    supportsColor->>supportsColor: "Check process.stdout.isTTY"
    supportsColor-->>createTheme: "colorEnabled: boolean"
    createTheme->>colorFn: "Create color functions"
    createTheme-->>User: "Theme object"
    User->>Theme: "theme.success('Done!')"
    Theme-->>User: "Colored/plain text"
    User->>renderTable: "renderTable(data, options)"
    renderTable->>renderTable: "Calculate column widths"
    renderTable->>renderTable: "Build header and data rows"
    renderTable-->>User: "ASCII table string"
    User->>Terminal: "console.log(output)"
Loading

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.

2 participants