microsoft/hve-core
Publicmirrored fromhttps://github.com/microsoft/hve-coreAvailable
docs/docusaurus/src/data/collectionCards.ts
108lines · modecode
| 1 | export interface CollectionCardData { |
| 2 | name: string; |
| 3 | description: string; |
| 4 | artifacts: number; |
| 5 | maturity: 'Stable' | 'Preview' | 'Experimental'; |
| 6 | href: string; |
| 7 | } |
| 8 | |
| 9 | export interface CollectionCardDefinition { |
| 10 | name: string; |
| 11 | description: string; |
| 12 | maturity: CollectionCardData['maturity']; |
| 13 | href: string; |
| 14 | } |
| 15 | |
| 16 | export const collectionCardDefinitions: CollectionCardDefinition[] = [ |
| 17 | { |
| 18 | name: 'ado', |
| 19 | description: 'Azure DevOps work items, builds, and pull requests', |
| 20 | maturity: 'Stable', |
| 21 | href: '/docs/getting-started/collections', |
| 22 | }, |
| 23 | { |
| 24 | name: 'coding-standards', |
| 25 | description: 'Language-specific coding conventions', |
| 26 | maturity: 'Stable', |
| 27 | href: '/docs/getting-started/collections', |
| 28 | }, |
| 29 | { |
| 30 | name: 'data-science', |
| 31 | description: 'Data specs, notebooks, and dashboards', |
| 32 | maturity: 'Stable', |
| 33 | href: '/docs/getting-started/collections', |
| 34 | }, |
| 35 | { |
| 36 | name: 'design-thinking', |
| 37 | description: 'AI-enhanced Design Thinking coaching', |
| 38 | maturity: 'Preview', |
| 39 | href: '/docs/getting-started/collections', |
| 40 | }, |
| 41 | { |
| 42 | name: 'experimental', |
| 43 | description: 'Preview artifacts under active development', |
| 44 | maturity: 'Experimental', |
| 45 | href: '/docs/getting-started/collections', |
| 46 | }, |
| 47 | { |
| 48 | name: 'github', |
| 49 | description: 'GitHub issue backlogs and triage workflows', |
| 50 | maturity: 'Stable', |
| 51 | href: '/docs/getting-started/collections', |
| 52 | }, |
| 53 | { |
| 54 | name: 'gitlab', |
| 55 | description: 'GitLab merge requests and pipeline workflows', |
| 56 | maturity: 'Experimental', |
| 57 | href: '/docs/getting-started/collections', |
| 58 | }, |
| 59 | { |
| 60 | name: 'hve-core', |
| 61 | description: 'RPI workflow, planning, and implementation', |
| 62 | maturity: 'Stable', |
| 63 | href: '/docs/getting-started/collections', |
| 64 | }, |
| 65 | { |
| 66 | name: 'jira', |
| 67 | description: 'Jira backlogs, triage, and PRD-driven planning', |
| 68 | maturity: 'Experimental', |
| 69 | href: '/docs/getting-started/collections', |
| 70 | }, |
| 71 | { |
| 72 | name: 'project-planning', |
| 73 | description: 'ADRs, requirements, and architecture diagrams', |
| 74 | maturity: 'Stable', |
| 75 | href: '/docs/getting-started/collections', |
| 76 | }, |
| 77 | { |
| 78 | name: 'rai-planning', |
| 79 | description: 'Responsible AI assessment, impact analysis, and risk review', |
| 80 | maturity: 'Experimental', |
| 81 | href: '/docs/getting-started/collections', |
| 82 | }, |
| 83 | { |
| 84 | name: 'security', |
| 85 | description: 'Security review, planning, incident response, and risk assessment', |
| 86 | maturity: 'Experimental', |
| 87 | href: '/docs/getting-started/collections', |
| 88 | }, |
| 89 | ]; |
| 90 | |
| 91 | export interface MetaCollections { |
| 92 | 'hve-core-all': number; |
| 93 | } |
| 94 | |
| 95 | export function resolveCollectionCards( |
| 96 | counts: Record<string, number>, |
| 97 | ): CollectionCardData[] { |
| 98 | return collectionCardDefinitions.map((def) => ({ |
| 99 | ...def, |
| 100 | artifacts: counts[def.name] ?? 0, |
| 101 | })); |
| 102 | } |
| 103 | |
| 104 | export function resolveMetaCollections( |
| 105 | counts: Record<string, number>, |
| 106 | ): MetaCollections { |
| 107 | return { 'hve-core-all': counts['hve-core-all'] ?? 0 }; |
| 108 | } |
| 109 | |