Skip to content

Commit 3cdbd78

Browse files
committed
feat: add Angular-specific combinations for Copilot instructions and agents guide templates
1 parent eccac4e commit 3cdbd78

File tree

4 files changed

+483
-3
lines changed

4 files changed

+483
-3
lines changed

components/instructions-wizard.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ const iconSlugOverrides: Record<string, string> = {
3131
visualstudiocode: "microsoft",
3232
}
3333

34+
const iconColorOverrides: Record<string, string> = {
35+
nextdotjs: "#0070F3",
36+
angular: "#DD0031",
37+
}
38+
3439
const simpleIconBySlug = (() => {
3540
const map = new Map<string, SimpleIcon>()
3641
const isSimpleIcon = (icon: unknown): icon is SimpleIcon =>
@@ -658,6 +663,8 @@ export function InstructionsWizard({ onClose, selectedFileId }: InstructionsWiza
658663
const simpleIconData = normalizedIconSlug
659664
? simpleIconBySlug.get(normalizedIconSlug) ?? null
660665
: null
666+
const iconColor = (normalizedIconSlug && iconColorOverrides[normalizedIconSlug])
667+
?? (simpleIconData ? getAccessibleIconColor(simpleIconData.hex) : undefined)
661668
const fallbackInitials = answer.label
662669
.split(" ")
663670
.map((part) => part.charAt(0))
@@ -671,8 +678,8 @@ export function InstructionsWizard({ onClose, selectedFileId }: InstructionsWiza
671678
className="flex h-10 w-10 items-center justify-center rounded-xl bg-secondary/40 text-muted-foreground ring-1 ring-border/40"
672679
>
673680
<span
674-
className="inline-flex h-6 w-6 items-center justify-center text-current [&>svg]:h-full [&>svg]:w-full"
675-
style={{ color: getAccessibleIconColor(simpleIconData.hex) }}
681+
className="inline-flex h-6 w-6 items-center justify-center text-current [&>svg]:h-full [&>svg]:w-full"
682+
style={{ color: iconColor }}
676683
dangerouslySetInnerHTML={{ __html: getSimpleIconMarkup(simpleIconData) }}
677684
/>
678685
</span>

data/frameworks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"id": "angular",
2020
"label": "Angular",
2121
"icon": "angular",
22-
"enabled": false,
22+
"enabled": true,
2323
"docs": "https://angular.io/docs",
2424
"skippable": false
2525
}

0 commit comments

Comments
 (0)