Skip to content

Commit fcd3cf5

Browse files
committed
fix(home): fix category display order, add aria-label to template cards
1 parent 5ba6f9d commit fcd3cf5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/template-prompts/consts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ export type ModuleTag = keyof typeof MODULE_META
8282
export const CATEGORY_META = {
8383
popular: { label: 'Popular' },
8484
sales: { label: 'Sales & CRM' },
85-
productivity: { label: 'Productivity' },
86-
engineering: { label: 'Engineering' },
8785
support: { label: 'Support' },
86+
engineering: { label: 'Engineering' },
8887
marketing: { label: 'Marketing & Content' },
88+
productivity: { label: 'Productivity' },
8989
operations: { label: 'Operations' },
9090
} as const
9191

apps/sim/app/workspace/[workspaceId]/home/components/template-prompts/template-prompts.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function TemplateCard({ template, onSelect }: TemplateCardProps) {
120120
<button
121121
type='button'
122122
onClick={() => onSelect(template.prompt)}
123+
aria-label={`Select template: ${template.title}`}
123124
className='group flex cursor-pointer flex-col text-left'
124125
>
125126
<div className='overflow-hidden rounded-[10px] border border-[var(--border-1)]'>

0 commit comments

Comments
 (0)