archrip 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates/slash-commands/claude/archrip-scan.md +53 -5
- package/dist/templates/slash-commands/codex/archrip-scan.md +53 -5
- package/dist/templates/slash-commands/gemini/archrip-scan.md +53 -5
- package/dist/utils/layout.js +3 -2
- package/dist/utils/layout.js.map +1 -1
- package/dist/viewer-template/src/App.tsx +93 -5
- package/dist/viewer-template/src/components/CommandPalette.tsx +174 -0
- package/dist/viewer-template/src/components/Legend.tsx +35 -5
- package/dist/viewer-template/src/components/UseCaseFilter.tsx +62 -3
- package/dist/viewer-template/src/hooks/useCategoryFilter.ts +36 -0
- package/dist/viewer-template/src/hooks/useCommandPalette.ts +91 -0
- package/dist/viewer-template/src/hooks/useFlowAnimation.ts +82 -0
- package/dist/viewer-template/src/hooks/useKeyboardShortcuts.ts +39 -0
- package/dist/viewer-template/src/hooks/useUseCaseFilter.ts +166 -21
- package/dist/viewer-template/src/index.css +19 -0
- package/dist/viewer-template/src/types.ts +3 -2
- package/dist/viewer-template/src/utils/layout.ts +3 -2
- package/package.json +1 -1
|
@@ -62,7 +62,8 @@ const CATEGORY_META = {
|
|
|
62
62
|
service: { label: 'Service', icon: '\u{2699}\u{FE0F}', color: { bg: '#dcfce7', border: '#22c55e', text: '#166534' } },
|
|
63
63
|
port: { label: 'Port', icon: '\u{1F50C}', color: { bg: '#ede9fe', border: '#8b5cf6', text: '#5b21b6' } },
|
|
64
64
|
adapter: { label: 'Adapter', icon: '\u{1F527}', color: { bg: '#ffedd5', border: '#f97316', text: '#9a3412' } },
|
|
65
|
-
model: { label: '
|
|
65
|
+
model: { label: 'Entity', icon: '\u{1F4BE}', color: { bg: '#fee2e2', border: '#ef4444', text: '#991b1b' } },
|
|
66
|
+
database: { label: 'DB / Infra', icon: '\u{1F5C4}\u{FE0F}', color: { bg: '#fef3c7', border: '#d97706', text: '#92400e' } },
|
|
66
67
|
external: { label: 'External', icon: '\u{2601}\u{FE0F}', color: { bg: '#f3f4f6', border: '#6b7280', text: '#374151' } },
|
|
67
68
|
job: { label: 'Job', icon: '\u{23F0}', color: { bg: '#fef9c3', border: '#eab308', text: '#854d0e' } },
|
|
68
69
|
dto: { label: 'DTO', icon: '\u{1F4E6}', color: { bg: '#cffafe', border: '#06b6d4', text: '#155e75' } },
|
|
@@ -76,7 +77,7 @@ function getMeta(category: string): CategoryMeta {
|
|
|
76
77
|
return CATEGORY_META[category as StandardCategory] ?? FALLBACK_META;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
const STANDARD_CATEGORIES = ['controller', 'service', 'port', 'adapter', 'model', 'external', 'job', 'dto'] as const;
|
|
80
|
+
const STANDARD_CATEGORIES = ['controller', 'service', 'port', 'adapter', 'model', 'database', 'external', 'job', 'dto'] as const;
|
|
80
81
|
|
|
81
82
|
export function getCategoryColors(category: string): CategoryStyle {
|
|
82
83
|
const key = (STANDARD_CATEGORIES as readonly string[]).includes(category) ? category : 'fallback';
|