fix: resolve merge conflicts and clean up expand project feature

Post-merge fixes for PR #36 (expand-project-with-ai):

- Fix syntax error in App.tsx Escape handler (missing `} else`)
- Fix missing closing brace in types.ts FeatureBulkCreateResponse
- Remove unused exception variables flagged by ruff (F841)
- Make nav buttons minimalist: remove text labels, keep icons + shortcuts
  - "Add Feature" → icon + N shortcut, tooltip "Add new feature"
  - "Expand" → icon + E shortcut, tooltip "Expand project with AI"

All checks pass: ruff, security tests, ESLint, TypeScript build.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Auto
2026-01-10 10:50:28 +02:00
parent 0e7f8c657a
commit 1998de7c50
5 changed files with 12 additions and 11 deletions

View File

@@ -238,7 +238,7 @@ async def expand_project_websocket(websocket: WebSocket, project_name: str):
except WebSocketDisconnect:
logger.info(f"Expand chat WebSocket disconnected for {project_name}")
except Exception as e:
except Exception:
logger.exception(f"Expand chat WebSocket error for {project_name}")
try:
await websocket.send_json({

View File

@@ -168,7 +168,7 @@ class ExpandChatSession:
)
await self.client.__aenter__()
self._client_entered = True
except Exception as e:
except Exception:
logger.exception("Failed to create Claude client")
yield {
"type": "error",
@@ -182,7 +182,7 @@ class ExpandChatSession:
async for chunk in self._query_claude("Begin the project expansion process."):
yield chunk
yield {"type": "response_done"}
except Exception as e:
except Exception:
logger.exception("Failed to start expand chat")
yield {
"type": "error",
@@ -229,7 +229,7 @@ class ExpandChatSession:
async for chunk in self._query_claude(user_message, attachments):
yield chunk
yield {"type": "response_done"}
except Exception as e:
except Exception:
logger.exception("Error during Claude query")
yield {
"type": "error",
@@ -332,7 +332,7 @@ class ExpandChatSession:
}
logger.info(f"Created {len(created)} features for {self.project_name}")
except Exception as e:
except Exception:
logger.exception("Failed to create features")
yield {
"type": "error",