-
Notifications
You must be signed in to change notification settings - Fork 0
Preview/Revert Commands, Bug Fixes, Testing Cleanup and More #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
• 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
🦋 Changeset detectedLatest commit: 32a7e66 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
• 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
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.
See specific commits for a detailed list of changes. Here is a summary of the changes made:
previewandrevertcommand.initandpreviewcommands.