Skip to content

Conversation

@SatanshuMishra
Copy link
Member

See specific commits for a detailed list of changes. Here is a summary of the changes made:

  1. Fixed pagination on the preview and revert command.
  2. Fixed minor bugs with the init and preview commands.
  3. Removed testing scripts from being published. These scripts now ONLY run when used within the testing repository.
  4. Documentation Updates

• Add table of contents for better navigation
• Document all implemented commands (commit, init, config)
• Include installation, quick start, and configuration sections
• Add examples and usage patterns for each command
• Mark planned features section for future commands
• Add preview command for browsing commit history
• Add revert command with commit workflow integration
• Implement commit history pagination (50 commits per batch, max 100)
• Add merge commit handling with parent selection
• Add commit message parsing for revert templates
• Integrate revert with existing commit workflow
• Add conflict resolution support (--continue, --abort)
• Register preview and revert commands in main program
• Add lab test command with scenario management
• Implement 5 test scenarios (existing-project, with-changes, with-history, with-merge, with-conflicts)
• Add scenario generators for automated test environment setup
• Add state management for test environment tracking
• Implement test shell command for interactive testing
• Add test reset, clean, status, and list-scenarios commands
• Replace bash-based sandbox scripts with TypeScript implementation
• Support automated commit history generation for preview/revert testing
• Remove labcommitr-sandbox.sh bash script
• Remove reset-sandbox.sh helper script
• Remove legacy npm test scripts (test:sandbox, test:sandbox:bare, etc.)
• Clean up scripts directory (now empty, removed)
• Testing now handled by lab test command
• Create docs/ directory for architecture and development documentation
• Move ARCHITECTURE_DECISIONS.md to docs/
• Move CONFIG_SCHEMA.md to docs/
• Move DEVELOPMENT_GUIDELINES.md to docs/
• Move DEVELOPMENT_PROGRESS.md to docs/
• Move REQUIREMENTS.md to docs/
• Move COMMIT_COMMAND_SPECIFICATION.md to docs/
• Keep TESTING.md in root as user-facing documentation
• Update .gitignore to allow docs/*.md and TESTING.md
• Update README.md references to use docs/ paths
• Keep project root clean with only user-facing docs
• Add docs/ to .gitignore
• Remove docs/ from git tracking
• Update .gitignore documentation section
• Architecture and development docs remain local-only
• Fix fetchCommits to support pagination with excludeHash parameter
• Fix currentPage increment when pressing n for next batch
• Ensure hasMorePages correctly indicates available pages
• Fix pagination to fetch commits starting from last seen commit
• Add p key for navigating to previous batch
• Update displayCommitList to show previous/next hints conditionally
• Fix navigation hints to only appear when actions are available
• Remove arrow key navigation (↑/↓) and help text
• Use hasMorePages instead of hasMore for navigation hints
• Add p key for previous batch navigation
• Fix pagination to properly increment currentPage
• Update navigation hints to only show when actions available
• Use hasMorePages for accurate navigation hint display
• Fix fetchCommits pagination with excludeHash parameter
• Add explicit lib directory check before creating files to rename
• Add error handling for file operations in rename logic
• Verify file is actually a file before reading during rename
• Fix ENOENT error when generating scenarios with renamed files
• Split commit message by first blank line to separate subject and body
• Only return content after blank line as body
• Prevents subject line from appearing in body section
• Add showBody and showFiles toggle state variables
• Update displayCommitDetails to accept visibility parameters
• Implement b key to toggle body visibility
• Implement f key to toggle files visibility
• Reset toggles when viewing new commit or returning to list
• Update prompt text to indicate toggle behavior
• Fixes issue where pressing b/f caused repeated rendering
• Perform early validation before any UI/animation
• Check for existing config immediately after project root detection
• Only show Clef intro if initialization will proceed
• Provides better UX by failing fast with clear error message
• Create separate dev entrypoint (program-dev.ts, index-dev.ts)
• Remove test command from production program.ts
• Add files field to package.json to exclude test commands
• Create .npmignore to exclude dev-only files from published package
• Update test command error messages to reference dev CLI
• Add dev:cli script for running development CLI
• Test commands only available when running from source repository
• Update README.md to show dev CLI usage for test commands
• Update TESTING.md with all examples using pnpm run dev:cli
• Add clear notes that test commands are development-only
• Include alternative usage with node dist/index-dev.js
• Update all workflow examples and troubleshooting sections
• Document fix for excluding subject line from commit body
• Patch version bump for bug fix
• Document new toggle feature for body and files in preview
• Minor version bump for new feature
• Includes b and f key toggles for visibility control
• Document fix for config check before Clef animation
• Patch version bump for UX improvement
• Prevents unnecessary animation when config exists
@SatanshuMishra SatanshuMishra self-assigned this Nov 30, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2025

🦋 Changeset detected

Latest commit: 32a7e66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@labcatr/labcommitr Minor

Not sure what this means? Click here to learn what changesets are.

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

@github-actions github-actions bot added ci Documents a change to our CI pipeline pr labels Nov 30, 2025
• Add 'i' alias for init command for faster access
• Update help examples to use 'lab' instead of 'labcommitr' consistently
• Add concise examples showing both full commands and aliases
• Add note clarifying both 'lab' and 'labcommitr' can be used
• Update README to document init|i alias
• Remove duplicate pagination text from preview and revert commands
• Improve help text clarity and consistency across all commands
• Update examples to use 'lab' instead of 'labcommitr' consistently
• Add concise examples showing both full commands and aliases
• Add note clarifying both 'lab' and 'labcommitr' can be used
• Remove unnecessary examples to keep help text focused
• Add 'i' alias to init command for faster access
• Update README to document init|i alias usage
• Maintains consistency with existing commit|c alias
• Remove redundant pagination hints from preview command commit list
• Remove redundant pagination hints from revert command commit list
• Navigation hints are already displayed separately below the list
• Prevents duplicate information and improves readability
• Add comprehensive documentation for preview command
• Add comprehensive documentation for revert command
• Update table of contents to include new commands
• Document interactive features and keyboard shortcuts
• Include usage examples and options for both commands
@SatanshuMishra SatanshuMishra merged commit f75b388 into dev Nov 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Documents a change to our CI pipeline pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants