refactor: improve code readability in RunningAgentsView component

- Reformatted JSX for better clarity and consistency.
- Enhanced the layout of the feature description prop for improved maintainability.
This commit is contained in:
Shirone
2025-12-29 16:10:33 +01:00
parent 0317dadcaf
commit 67a6c10edc

View File

@@ -174,7 +174,10 @@ export function RunningAgentsView() {
)} )}
</div> </div>
{agent.description && ( {agent.description && (
<p className="text-sm text-muted-foreground truncate max-w-md" title={agent.description}> <p
className="text-sm text-muted-foreground truncate max-w-md"
title={agent.description}
>
{agent.description} {agent.description}
</p> </p>
)} )}
@@ -228,7 +231,9 @@ export function RunningAgentsView() {
open={true} open={true}
onClose={() => setSelectedAgent(null)} onClose={() => setSelectedAgent(null)}
projectPath={selectedAgent.projectPath} projectPath={selectedAgent.projectPath}
featureDescription={selectedAgent.description || selectedAgent.title || selectedAgent.featureId} featureDescription={
selectedAgent.description || selectedAgent.title || selectedAgent.featureId
}
featureId={selectedAgent.featureId} featureId={selectedAgent.featureId}
featureStatus="running" featureStatus="running"
/> />