Skip to content

feat: dev mode#892

Draft
Soner (shyim) wants to merge 31 commits intomainfrom
feat/dev-mode
Draft

feat: dev mode#892
Soner (shyim) wants to merge 31 commits intomainfrom
feat/dev-mode

Conversation

@shyim
Copy link
Copy Markdown
Member

No description provided.

@shyim Soner (shyim) changed the title Feat/dev mode feat: dev mode Mar 3, 2026
@shyim Soner (shyim) self-assigned this Mar 10, 2026
- Calculate max overlay lines based on terminal height instead of fixed 10
- Change overlay sizing from percentage (80%) to absolute dimensions
- Add overlayMaxLines() function for responsive log buffer
# Conflicts:
#	cmd/project/project_create.go
#	go.mod
- Updated the GeneralModel View method to use a strings.Builder for efficient string concatenation.
- Replaced lipgloss styles with centralized TUI styles in various components.
- Introduced new TUI utility functions for rendering badges, headers, and labels.
- Simplified the rendering logic in the LogsModel and other TUI components.
- Added new files for TUI elements such as badges, headers, labels, and panels.
- Enhanced the SelectList and ShortcutBar for better user interaction.
- Improved the overall structure and organization of the TUI package.
Split the 1130-line model.go into focused files:
- model.go: types, constants, New(), Init(), Update() dispatch
- model_update.go: lifecycle, key press, install prompt handlers
- model_view.go: all rendering methods
- model_commands.go: async commands, streaming helpers

Additional cleanups:
- Extract streamCmdOutput() and readFromChan() helpers
- Extract renderConfirmButtons() for yes/no dialogs
- Extract phaseHeaderFooter() shared by overlay renderers
- Deduplicate command palette item rendering
- Extract streamCommand() in LogsModel for container/file streaming
- Remove unused key constants
- Added commands to start and stop admin and storefront watchers in the command palette.
- Refactored project storefront watch command to utilize new watcher preparation functions.
- Introduced PrepareAdminWatcher and PrepareStorefrontWatcher functions to handle setup for respective watchers.
- Enhanced GeneralModel to manage watcher states and integrate with the command palette.
- Updated logs model to support process sources for better log management.
- Implemented task management for building administration and storefront assets.
- Merged environment variables in executor to ensure proper context handling.
- Added tests for new functionality and ensured existing tests are updated for changes in model constructors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant