diff --git a/src/renderer/components/ProjectSettingsPanel.tsx b/src/renderer/components/ProjectSettingsPanel.tsx index d162a15..6d5fea2 100644 --- a/src/renderer/components/ProjectSettingsPanel.tsx +++ b/src/renderer/components/ProjectSettingsPanel.tsx @@ -5,7 +5,7 @@ import { ToggleSwitch } from '@renderer/components/ui'; import type { ProjectRecord, ProjectGitContext } from '@shared/domain/project'; import type { DiscoveredMcpServer } from '@shared/domain/discoveredTooling'; import { listAcceptedDiscoveredMcpServers, listPendingDiscoveredMcpServers } from '@shared/domain/discoveredTooling'; -import type { ProjectAgentProfile, ProjectInstructionFile, ProjectPromptFile } from '@shared/domain/projectCustomization'; +import type { ProjectAgentProfile, ProjectInstructionApplicationMode, ProjectInstructionFile, ProjectPromptFile } from '@shared/domain/projectCustomization'; /* ── Types ────────────────────────────────────────────────── */ @@ -335,7 +335,7 @@ function InstructionsContent({ return (
.github/copilot-instructions.md or AGENTS.md file to your project root.
+ No instruction files found. Add .github/copilot-instructions.md, AGENTS.md, CLAUDE.md, or *.instructions.md files under .github/instructions/.
{instruction.description}
+ )} + {instruction.name && ( +{instruction.sourcePath}
+ )}
{instruction.content}
@@ -382,6 +400,9 @@ function InstructionCard({ instruction }: { instruction: ProjectInstructionFile
)}
{!expanded && (
{instruction.description}
+ )}{instruction.content}
@@ -391,6 +412,38 @@ function InstructionCard({ instruction }: { instruction: ProjectInstructionFile ); } +function InstructionModeBadge({ mode }: { mode: ProjectInstructionApplicationMode }) { + switch (mode) { + case 'always': + return ( + + always + + ); + case 'file': + return ( + + file + + ); + case 'task': + return ( + + task + + ); + case 'manual': + return ( + + manual + + ); + } +} + /* ── Custom Agents ────────────────────────────────────────── */ function AgentsContent({ @@ -407,7 +460,7 @@ function AgentsContent({ return (.agent.md files to .github/agents/ in your project.
+ No custom agents found. Add .agent.md files under .github/agents/ in your project.
.prompt.md files to .github/prompts/ in your project.
+ No prompt files found. Add .prompt.md files under .github/prompts/ in your project.