feat: add --accessible flag for screen-reader-friendly output#47
Merged
scottlovegrove merged 1 commit intomainfrom Feb 21, 2026
Merged
feat: add --accessible flag for screen-reader-friendly output#47scottlovegrove merged 1 commit intomainfrom
scottlovegrove merged 1 commit intomainfrom
Conversation
Adds an accessibility mode (--accessible flag or TW_ACCESSIBLE=1 env var) that annotates color-only indicators with text labels. Also fixes a bug where conversation unread status was fetched but never displayed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
This PR introduces an --accessible flag and environment variable to improve screen reader compatibility by adding text labels to color-only indicators, while also fixing a bug with unread conversation statuses. This is a wonderful addition that makes the CLI more inclusive and ensures information is properly conveyed to all users. No issues were flagged during the review.
|
🎉 This PR is included in version 2.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--accessibleglobal flag (andTW_ACCESSIBLE=1env var) that annotates color-only indicators with text labels for screen readers: unread badges in inbox and conversation lists show(unread)instead of*, and thread separators use ASCII-instead of box-drawing─_unreadInfodiscarded)─separators with ASCII-in accessible mode for better screen reader compatibilityTest plan
npm run type-check— cleannpm test— 217 tests passnpm run format:check— cleantw inbox --accessible— verify(unread)text labels appeartw conversation unread --accessible— verify unread indicator showsTW_ACCESSIBLE=1 tw inbox— verify env var mode worksInspired by Doist/todoist-cli#95.
🤖 Generated with Claude Code