Skip to content

0.2.x#11

Merged
yinxulai merged 52 commits into
mainfrom
0.2.x
May 25, 2026
Merged

0.2.x#11
yinxulai merged 52 commits into
mainfrom
0.2.x

Conversation

@yinxulai
Copy link
Copy Markdown
Owner

No description provided.

yinxulai added 30 commits May 16, 2026 01:06
- Implemented TUI styles for better UI presentation in `internal/tui/styles.go`.
- Added Turbo engine functionality in `internal/turbo/engine.go` to manage concurrent task execution with success rate and latency checks.
- Created test cases for Turbo engine in `internal/turbo/engine_test.go` to ensure correct behavior under various conditions.
- Introduced task definition structure in `internal/types/types.go` to encapsulate task-related data.
- Added input normalization and endpoint resolution functions to improve protocol handling in `internal/types/types.go`.
- Developed unit tests for task definition building in `internal/tui/model_test.go` to validate input processing.
…efinitions

- Introduced a new color palette inspired by the Lip Gloss demo aesthetic.
- Expanded the styles struct to include additional styles for headers, footers, table rows, badges, and more.
- Updated the newStyles function to initialize the new styles with appropriate colors and formatting.
- Improved visual hierarchy and consistency across the TUI components.
…d editing

- Implemented task detail page to display task configurations and run history.
- Created task list page to manage tasks with options for creating, editing, copying, and deleting tasks.
- Developed a wizard interface for creating and editing tasks, including input validation and dynamic field handling.
- Enhanced user experience with contextual navigation and feedback on task operations.
…ly interface

- Implemented a multi-step wizard for task creation and editing in the TUI.
- Introduced fields for basic information, testing parameters, and confirmation.
- Added functionality to handle user input and navigation through the wizard.
- Removed old styles file as styles are now integrated within the wizard implementation.
- Deleted the entire display package, including the main display logic and test cases.
- Removed dependencies on tablewriter and progressbar libraries.
- Updated the TUI model and pages to ensure proper rendering and layout adjustments.
- Introduced a new wrapPanel function to handle panel rendering with borders.
- Adjusted various TUI pages to utilize the new panel wrapping for consistent styling.
- Updated request detail page to simplify footer and header information.
- Changed color palette for header background and text for better visibility.
- Enhanced task detail page with improved navigation and selection handling.
- Implemented dual-column layout for task details and history for better information display.
- Refined task list rendering with improved selection indicators and result display.
- Simplified turbo dashboard metrics display and improved level selection visibility.
- General code cleanup and optimization for better readability and maintainability.
- Added RequestBody and ResponseBody fields to ResponseMetrics for detailed logging.
- Updated AnthropicClient and OpenAIClient to populate new fields with raw request and response data.
- Modified server event handling to include request and response details in metrics.
- Implemented tests for event bus and request metrics mapping.
- Improved UI to display request and response data in task and request detail views.
- Refactored key bindings in task detail and dashboard pages for better user experience.
feat: 更新仪表板任务参数面板标题为“运行进度”
feat: 优化报告生成逻辑,支持从磁盘快照加载历史运行状态
- Changed TaskStore to manage tasks in a directory instead of a single JSON file.
- Implemented loading and saving of tasks as individual JSON files.
- Removed the history management code and tests, as they are no longer needed.
- Updated task-related types and methods to reflect the new structure.
- Adjusted TUI components to work with the new task overview structure.
- Added tests for task detail history entries to ensure correct behavior.
- Introduced ProxyURL field in Input struct to allow configuration of proxy settings.
- Implemented newMeasuredTransport function to create HTTP transport with proxy support.
- Updated OpenAIClient and other clients to utilize the new transport with proxy settings.
- Modified tests to validate proxy functionality and ensure correct behavior with various configurations.
- Enhanced TUI components to display proxy information and maintain navigation state.
- Refactored dashboard and task detail pages to improve layout and user experience.
- Adjusted wizard state to include proxy configuration and ensure proper defaults.
…yling

- Introduced new test cases for page layouts in layout_test.go and reqdetail_test.go to ensure proper rendering and height consistency for success and failure scenarios.
- Refactored reqdetail.go to streamline rendering logic and improve layout handling, including dynamic height calculations for panels.
- Updated styles in styles.go to enhance visual consistency across the TUI, including new styles for hotkeys and panel headers.
- Modified taskdetail.go and tasklist.go to utilize the new layout structure, ensuring proper rendering of task details and lists.
- Enhanced turbodash.go and wizard.go to adopt the new layout framework, improving readability and maintainability of the code.
yinxulai added 22 commits May 23, 2026 00:09
- Updated import paths from "github.com/charmbracelet/lipgloss" to "charm.land/lipgloss/v2" across multiple files.
- Refactored progress line and request list rendering to use lipgloss.JoinHorizontal for better layout management.
- Introduced tableCol helper function for consistent table cell rendering with automatic width handling.
- Adjusted panel and field rendering to account for new width calculations in lipgloss v2.
- Enhanced height calculations in layout functions to ensure correct rendering of components.
- Added tests for height correctness in various components, including ReqDetail, Dashboard, and TaskList.
- Update `mapRequestMetrics` to set CacheHitRate to 1 when CachedInputTokens > 0.
- Modify unit tests for `mapRequestMetrics` to reflect new CacheHitRate logic.
- Refactor TUI dashboard and task detail pages to utilize `lgtable` for rendering tables, improving layout and readability.
- Consolidate table rendering logic in task list and turbo request list, enhancing maintainability.
- Remove redundant functions related to table rendering and selection markers.
- Ensure consistent styling and formatting across various TUI components.
…or dynamic language switching

- Introduced a new package `i18n` for managing translations.
- Added support for Chinese (default) and English languages.
- Implemented a translation key system for UI elements and messages.
- Created a function `T` to retrieve translations based on the active language.
- Included helper functions for display width calculations to accommodate CJK characters.
fix: 修复错误信息格式化,确保错误信息输出一致性
fix: 修正缓存命中率计算逻辑,避免除以零错误
feat: 添加 MockClient 的 RawRequest 方法,支持原始 JSON 请求体
test: 更新布局测试,增强对输出内容的验证
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 37.93691% with 2912 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.18%. Comparing base (845e3fa) to head (06ae14f).

Files with missing lines Patch % Lines
internal/tui/model.go 3.77% 405 Missing and 3 partials ⚠️
internal/tui/pages/taskdetail.go 3.96% 385 Missing and 3 partials ⚠️
internal/tui/pages/turbodash.go 0.00% 261 Missing ⚠️
internal/tui/pages/helpers.go 53.33% 180 Missing and 23 partials ⚠️
internal/tui/pages/tasklist.go 30.90% 177 Missing and 13 partials ⚠️
internal/tui/pages/dashboard.go 27.16% 175 Missing and 10 partials ⚠️
internal/tui/pages/help.go 0.00% 165 Missing ⚠️
internal/tui/pages/proxy.go 0.00% 161 Missing ⚠️
internal/server/run.go 61.27% 136 Missing and 22 partials ⚠️
internal/store/run.go 39.74% 121 Missing and 20 partials ⚠️
... and 17 more
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #11       +/-   ##
===========================================
- Coverage   61.59%   41.18%   -20.42%     
===========================================
  Files          15       40       +25     
  Lines        2130     7025     +4895     
===========================================
+ Hits         1312     2893     +1581     
- Misses        753     3851     +3098     
- Partials       65      281      +216     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yinxulai yinxulai merged commit 5214255 into main May 25, 2026
3 checks passed
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.

2 participants