mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
feat(discovery): add FindingDrawer component and restructure i18n keys
- Add FindingDrawer component for displaying finding details when no associated issue exists - Refactor i18n keys for better organization: - status.* → session.status.* (session-related) - severity.* → findings.severity.* (finding-related) - Update DiscoveryDetail to show FindingDrawer for orphan findings - Add severity/priority mapping in discovery-routes for compatibility
This commit is contained in:
@@ -262,7 +262,13 @@ function flattenFindings(perspectiveResults: any[]): any[] {
|
||||
const allFindings: any[] = [];
|
||||
for (const result of perspectiveResults) {
|
||||
if (result.findings) {
|
||||
allFindings.push(...result.findings);
|
||||
// Map backend 'priority' to frontend 'severity' for compatibility
|
||||
const mappedFindings = result.findings.map((f: any) => ({
|
||||
...f,
|
||||
severity: f.severity || f.priority || 'medium',
|
||||
sessionId: f.discovery_id || result.discovery_id
|
||||
}));
|
||||
allFindings.push(...mappedFindings);
|
||||
}
|
||||
}
|
||||
return allFindings;
|
||||
|
||||
@@ -105,8 +105,8 @@ export const schema: ToolSchema = {
|
||||
name: 'write_file',
|
||||
description: `Write content to file. Auto-creates parent directories.
|
||||
|
||||
Usage: write_file(path="file.js", content="code here")
|
||||
Options: backup=true (backup before overwrite), createDirectories=false (disable auto-creation), encoding="utf8"`,
|
||||
Required: path (string), content (string)
|
||||
Options: backup=true, createDirectories=false, encoding="utf8"`,
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user