feat: Add insight command for personalized programming insights#1593
Merged
Conversation
Contributor
📋 Review SummaryThis PR introduces a new 🔍 General Feedback
🎯 Specific Feedback🟡 High
🟢 Medium
🔵 Low
✅ Highlights
|
Contributor
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
9dc96df to
20e3850
Compare
Mingholy
previously requested changes
Jan 26, 2026
4d1e86a to
ba578f6
Compare
- Add HTML template for insights display. - Create JavaScript application logic for rendering insights. - Introduce CSS styles for layout and design. - Develop a test generator for validating the static insight generator. - Define TypeScript interfaces for structured insight data. - Refactor insight command to generate insights and open in browser. - Remove the need for a server process by generating static files directly.
- Refine DataProcessor and StaticInsightGenerator logic - Update StaticInsightTypes definitions - Enhance insight command implementation - Update package dependencies
…nce user experience
Removes Token Usage metrics and Achievements section from the generated insight report. - Removes calculation logic in DataProcessor - Removes types in StaticInsightTypes - Removes UI sections in insight-app.js
2f3c610 to
e66c203
Compare
Added logic to merge two function calls where the first has a name but no arguments, and the second has arguments but no name. This ensures that function calls are correctly represented when they are split across two parts.
Add Twitter/X-optimized share card component for exporting insights as an image. Include Vite dev setup for local development with hot reload. Increase DataProcessor timeout and concurrency for better reliability with large datasets. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Filter sessions to only include those with both user and assistant records when generating facets. This prevents system-only logs from being analyzed, ensuring more accurate session insights. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Update totalMessages to count only user messages and slash commands - Update heatmap to reflect only user interactions - Update activeHours to reflect only user interactions - Update tests to verify slash commands are counted correctly This ensures the insight report accurately reflects actual user engagement rather than including internal tool calls and system events. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add share card theme selection (light/dark) with contextual export controls - Update heatmap colors to GitHub green palette and fix time ranges - Limit bar charts to 10 items, use full Qwen Code name Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Generate date-stamped filenames (insight-YYYY-MM-DD.html) - Append timestamp for multiple runs same day (insight-YYYY-MM-DD-HHMMSS.html) - Create insight.html alias pointing to latest report - Use symlink when possible, fallback to copy for cross-platform compatibility Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Single-line layout with muted bar, accent stage text - Inline Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>... in stage messages for cleaner code - Simplify command intro text
Moves export-html and insight templates from cli/assets to a new dedicated web-templates package. Updates Dockerfile and build scripts to use consolidated bundle/prepare:package/pack workflow. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Remove unused npmCommand variable from build.mjs - Add no-undef and .mjs file support to web-templates eslint config Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
xaelistic
pushed a commit
to xaelistic/qwen-code
that referenced
this pull request
Jun 7, 2026
feat: Add insight command for personalized programming insights
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.
TLDR
This PR introduces a new
insightcommand that provides personalized programming insights and analytics for developers. The feature includes static insight generation, data visualization, and a web-based dashboard to help users understand their coding patterns and productivity metrics.Dive Deeper
The insight feature consists of several key components:
The implementation follows a modular architecture with separate generators, processors, and renderers to ensure maintainability and extensibility.
Reviewer Test Plan
To test this feature:
Basic Command Test:
And input /insight command
Data Processing Validation:
Testing Matrix
Linked issues / bugs
This PR implements the insight functionality discussed in planning sessions. No specific issue linked yet, but addresses the need for better user analytics and programming insights within the CLI tool.