feat(report): add user instruction input and UI improvements (#612)#613
Merged
feat(report): add user instruction input and UI improvements (#612)#613
Conversation
- Add userInstruction textarea to ReportTab for customizing AI summary generation - Propagate userInstruction through API -> generator -> prompt builder pipeline - Add prompt injection isolation rules in system prompt for <user_instruction> - Apply sanitizeMessage to userInstruction in buildSummaryPrompt (DR1-005) - Add body shape validation and userInstruction validation to daily-summary API - Change nav label from 'Review' to 'Review/Report' (Header + GlobalMobileNav) - Change Sessions default sort to repositoryName(asc) with branchName second sort - Add second sort key for status sort (repositoryName) - Add MAX_USER_INSTRUCTION_LENGTH=1000 constant to review-config - All 6037 unit tests pass, 0 ESLint errors, 0 TypeScript errors Resolves #612 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Extract serializeReport() in daily-summary route to eliminate 3x duplicated report-to-JSON serialization (DRY) - Extract STATUS_LABELS record and STATUS_BADGE_CLASSES in Sessions page to replace switch statement and nested ternary chain (readability) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Closes #612
Test plan
🤖 Generated with Claude Code