feat: add live preview mode with interactive config editor#19
Merged
feat: add live preview mode with interactive config editor#19
Conversation
- Add --live flag to start interactive development environment - Express server with WebSocket support for real-time updates - Live UI with sidebar editor and preview iframe - Theme selection, profile editing, links management - Avatar upload, drag & drop link ordering - Auto-save with 500ms debounce - Config file watcher with chokidar - File watcher triggers auto rebuild on config changes - WebSocket broadcasts: reload, config-update, theme-change - API endpoints: /api/config, /api/themes, /api/avatar, /api/validate - Fix CLI argument parsing for --port/-p option - Add comprehensive unit tests for new features - Update documentation with live mode architecture Breaking: Requires Node.js v14+ (already enforced)
- Update showHelp.js to include -p 9000 example - Remove duplicate tests in parseArgs.test.js - Fix port validation error message assertions to match CONSTANTS.MESSAGES.ERROR_PREFIX - Use toHaveBeenNthCalledWith to check first error call - Fix index.js to export main() function and only call it when run directly - Fix parseArgs.js to properly skip port value and --port flag using i += 2
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.
Breaking: Requires Node.js v14+ (already enforced)
What does this PR do?
What changed?
Related issues
Testing
Screenshots
Type of change
Showcase Submission (if applicable)
Website URL:
Theme Used:
Brief Description: