@eventcatalog/core 3.0.0-beta.8 → 3.0.0
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/README.md +41 -98
- package/dist/__mocks__/astro-content.cjs +32 -0
- package/dist/__mocks__/astro-content.d.cts +13 -0
- package/dist/__mocks__/astro-content.d.ts +13 -0
- package/dist/__mocks__/astro-content.js +7 -0
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/catalog-to-astro-content-directory.cjs +2 -19
- package/dist/catalog-to-astro-content-directory.d.cts +1 -2
- package/dist/catalog-to-astro-content-directory.d.ts +1 -2
- package/dist/catalog-to-astro-content-directory.js +3 -5
- package/dist/{chunk-R2BJ7MJG.js → chunk-6Z6ARMQS.js} +1 -17
- package/dist/{chunk-LQUXA3NB.js → chunk-BYP43AAT.js} +1 -1
- package/dist/{chunk-UTHNQFM7.js → chunk-E5Q7TZYT.js} +1 -1
- package/dist/{chunk-KEYJ3FB3.js → chunk-EKGR533N.js} +1 -1
- package/dist/{chunk-7MCE4J6I.js → chunk-KF5PARQK.js} +1 -1
- package/dist/{chunk-I3QUYHIK.js → chunk-VO5WYA44.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +20 -64
- package/dist/eventcatalog.config.d.cts +4 -0
- package/dist/eventcatalog.config.d.ts +4 -0
- package/dist/eventcatalog.js +26 -52
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/astro.config.mjs +4 -1
- package/eventcatalog/integrations/eventcatalog-features.ts +69 -0
- package/eventcatalog/public/icons/asyncapi-black.svg +2 -0
- package/eventcatalog/public/icons/graphql-black.svg +1 -0
- package/eventcatalog/public/icons/openapi-black.svg +1 -0
- package/eventcatalog/src/components/ChatPanel/ChatPanel.tsx +994 -0
- package/eventcatalog/src/components/ChatPanel/ChatPanelButton.tsx +24 -0
- package/eventcatalog/src/components/Grids/DomainGrid.tsx +310 -173
- package/eventcatalog/src/components/Grids/MessageGrid.tsx +299 -180
- package/eventcatalog/src/components/Grids/specification-utils.ts +106 -0
- package/eventcatalog/src/components/Header.astro +25 -5
- package/eventcatalog/src/components/MDX/NodeGraph/NodeGraph.tsx +14 -3
- package/eventcatalog/src/components/SchemaExplorer/ApiAccessSection.tsx +95 -90
- package/eventcatalog/src/components/SchemaExplorer/ApiContentViewer.tsx +144 -0
- package/eventcatalog/src/components/SchemaExplorer/Pagination.tsx +34 -8
- package/eventcatalog/src/components/SchemaExplorer/SchemaContentViewer.tsx +2 -2
- package/eventcatalog/src/components/SchemaExplorer/SchemaDetailsHeader.tsx +140 -109
- package/eventcatalog/src/components/SchemaExplorer/SchemaDetailsPanel.tsx +5 -14
- package/eventcatalog/src/components/SchemaExplorer/SchemaExplorer.tsx +247 -59
- package/eventcatalog/src/components/SchemaExplorer/SchemaFilters.tsx +64 -126
- package/eventcatalog/src/components/SchemaExplorer/SchemaListItem.tsx +41 -43
- package/eventcatalog/src/components/Search/Search.astro +2 -2
- package/eventcatalog/src/components/Search/SearchDataLoader.astro +25 -0
- package/eventcatalog/src/components/SideNav/NestedSideBar/SearchBar.tsx +6 -3
- package/eventcatalog/src/components/SideNav/NestedSideBar/index.tsx +44 -16
- package/eventcatalog/src/components/SideNav/SideNav.astro +0 -15
- package/eventcatalog/src/components/Tables/Table.tsx +96 -77
- package/eventcatalog/src/components/Tables/columns/ContainersTableColumns.tsx +108 -74
- package/eventcatalog/src/components/Tables/columns/DomainTableColumns.tsx +74 -55
- package/eventcatalog/src/components/Tables/columns/FlowTableColumns.tsx +36 -36
- package/eventcatalog/src/components/Tables/columns/MessageTableColumns.tsx +110 -77
- package/eventcatalog/src/components/Tables/columns/ServiceTableColumns.tsx +105 -94
- package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +31 -26
- package/eventcatalog/src/components/Tables/columns/TeamsTableColumns.tsx +115 -215
- package/eventcatalog/src/components/Tables/columns/UserTableColumns.tsx +145 -243
- package/eventcatalog/src/content.config.ts +1 -13
- package/eventcatalog/src/enterprise/ai/chat-api.ts +360 -0
- package/eventcatalog/src/enterprise/auth/[...auth].ts +3 -0
- package/eventcatalog/src/enterprise/auth/login.astro +420 -0
- package/eventcatalog/src/enterprise/collections/index.ts +0 -1
- package/eventcatalog/src/layouts/Footer.astro +8 -5
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +133 -117
- package/eventcatalog/src/pages/_index.astro +243 -559
- package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/_index.data.ts +8 -2
- package/eventcatalog/src/pages/architecture/[type]/[id]/[version]/index.astro +9 -5
- package/eventcatalog/src/pages/directory/[type]/index.astro +6 -0
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/asyncapi/[filename].astro +19 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +7 -7
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +10 -7
- package/eventcatalog/src/pages/docs/[type]/[id]/language/index.astro +194 -121
- package/eventcatalog/src/pages/docs/teams/[id]/index.astro +94 -70
- package/eventcatalog/src/pages/docs/teams/[id].mdx.ts +36 -0
- package/eventcatalog/src/pages/docs/users/[id]/index.astro +56 -45
- package/eventcatalog/src/pages/docs/users/[id].mdx.ts +36 -0
- package/eventcatalog/src/pages/schemas/explorer/_index.data.ts +178 -0
- package/eventcatalog/src/pages/schemas/explorer/index.astro +7 -157
- package/eventcatalog/src/pages/studio.astro +124 -72
- package/eventcatalog/src/remark-plugins/directives.ts +30 -9
- package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/container.ts +10 -1
- package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/domain.ts +17 -7
- package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/message.ts +10 -1
- package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/service.ts +11 -4
- package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/shared.ts +14 -0
- package/eventcatalog/src/stores/{sidebar-store.ts → sidebar-store/index.ts} +1 -1
- package/eventcatalog/src/utils/collections/channels.ts +0 -2
- package/eventcatalog/src/utils/collections/commands.ts +0 -2
- package/eventcatalog/src/utils/collections/containers.ts +0 -2
- package/eventcatalog/src/utils/collections/domains.ts +0 -2
- package/eventcatalog/src/utils/collections/entities.ts +0 -2
- package/eventcatalog/src/utils/collections/events.ts +0 -2
- package/eventcatalog/src/utils/collections/flows.ts +0 -2
- package/eventcatalog/src/utils/collections/queries.ts +0 -2
- package/eventcatalog/src/utils/collections/schemas.ts +45 -7
- package/eventcatalog/src/utils/collections/services.ts +0 -2
- package/eventcatalog/src/utils/feature.ts +9 -5
- package/eventcatalog/src/utils/node-graphs/services-node-graph.ts +1 -1
- package/eventcatalog/src/utils/resource-files.ts +86 -0
- package/package.json +12 -15
- package/default-files-for-collections/changelogs.md +0 -5
- package/default-files-for-collections/channels.md +0 -8
- package/default-files-for-collections/commands.md +0 -8
- package/default-files-for-collections/domains.md +0 -8
- package/default-files-for-collections/events.md +0 -8
- package/default-files-for-collections/flows.md +0 -11
- package/default-files-for-collections/queries.md +0 -8
- package/default-files-for-collections/services.md +0 -8
- package/default-files-for-collections/ubiquitousLanguages.md +0 -7
- package/eventcatalog/src/enterprise/collections/chat-prompts.ts +0 -32
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/Chat.tsx +0 -60
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/ChatMessage.tsx +0 -414
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/ChatSidebar.tsx +0 -169
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/InputModal.tsx +0 -244
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/MentionInput.tsx +0 -211
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/WelcomePromptArea.tsx +0 -176
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/default-prompts.ts +0 -93
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/hooks/ChatProvider.tsx +0 -143
- package/eventcatalog/src/enterprise/eventcatalog-chat/components/windows/ChatWindow.server.tsx +0 -387
- package/eventcatalog/src/enterprise/eventcatalog-chat/pages/api/chat.ts +0 -59
- package/eventcatalog/src/enterprise/eventcatalog-chat/pages/chat/index.astro +0 -104
- package/eventcatalog/src/enterprise/eventcatalog-chat/providers/ai-provider.ts +0 -140
- package/eventcatalog/src/enterprise/eventcatalog-chat/providers/anthropic.ts +0 -28
- package/eventcatalog/src/enterprise/eventcatalog-chat/providers/google.ts +0 -41
- package/eventcatalog/src/enterprise/eventcatalog-chat/providers/index.ts +0 -26
- package/eventcatalog/src/enterprise/eventcatalog-chat/providers/openai.ts +0 -61
- package/eventcatalog/src/enterprise/eventcatalog-chat/utils/chat-prompts.ts +0 -50
- package/eventcatalog/src/pages/auth/login.astro +0 -280
- package/eventcatalog/src/pages/chat/feature.astro +0 -179
- package/eventcatalog/src/pages/chat/index.astro +0 -10
- package/eventcatalog/src/pages/docs/_default-docs.mdx +0 -25
- package/eventcatalog/src/pages/docs/index.astro +0 -33
- package/eventcatalog/src/pages/nav-index.json.ts +0 -30
- /package/eventcatalog/src/{pages → enterprise}/auth/error.astro +0 -0
- /package/eventcatalog/src/{middleware-auth.ts → enterprise/auth/middleware/middleware-auth.ts} +0 -0
- /package/eventcatalog/src/{middleware.ts → enterprise/auth/middleware/middleware.ts} +0 -0
- /package/eventcatalog/src/{pages/unauthorized/index.astro → enterprise/auth/unauthorized.astro} +0 -0
- /package/eventcatalog/src/{pages → enterprise}/plans/index.astro +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar → stores/sidebar-store}/builders/flow.ts +0 -0
- /package/eventcatalog/src/{components/SideNav/NestedSideBar/sidebar-builder.ts → stores/sidebar-store/state.ts} +0 -0
|
@@ -1,173 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
import VerticalSideBarLayout from '@layouts/VerticalSideBarLayout.astro';
|
|
3
|
-
import { getEvents } from '@utils/collections/events';
|
|
4
|
-
import { getCommands } from '@utils/collections/commands';
|
|
5
|
-
import { getQueries } from '@utils/collections/queries';
|
|
6
|
-
import { getServices, getSpecificationsForService } from '@utils/collections/services';
|
|
7
3
|
import SchemaExplorer from '@components/SchemaExplorer/SchemaExplorer';
|
|
8
4
|
import { isEventCatalogScaleEnabled } from '@utils/feature';
|
|
9
|
-
import {
|
|
10
|
-
import { buildUrl } from '@utils/url-builder';
|
|
11
|
-
import fs from 'fs';
|
|
12
|
-
import path from 'path';
|
|
5
|
+
import { Page } from './_index.data';
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
const commands = await getCommands({ getAllVersions: true });
|
|
17
|
-
const queries = await getQueries({ getAllVersions: true });
|
|
7
|
+
export const prerender = Page.prerender;
|
|
8
|
+
export const getStaticPaths = Page.getStaticPaths;
|
|
18
9
|
|
|
19
|
-
|
|
20
|
-
const services = await getServices({ getAllVersions: true });
|
|
21
|
-
|
|
22
|
-
// Combine all messages
|
|
23
|
-
const allMessages = [...events, ...commands, ...queries];
|
|
24
|
-
|
|
25
|
-
// Helper function to enrich owners with full details
|
|
26
|
-
async function enrichOwners(ownersRaw: any[]) {
|
|
27
|
-
if (!ownersRaw || ownersRaw.length === 0) return [];
|
|
28
|
-
|
|
29
|
-
const owners = await Promise.all(ownersRaw.map(getOwner));
|
|
30
|
-
const filteredOwners = owners.filter((o) => o !== undefined);
|
|
31
|
-
|
|
32
|
-
return filteredOwners.map((o) => ({
|
|
33
|
-
id: o.data.id,
|
|
34
|
-
name: o.data.name,
|
|
35
|
-
type: o.collection,
|
|
36
|
-
href: buildUrl(`/docs/${o.collection}/${o.data.id}`),
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Filter messages with schemas and read schema content - only keep essential data
|
|
41
|
-
const messagesWithSchemas = await Promise.all(
|
|
42
|
-
allMessages
|
|
43
|
-
.filter((message) => message.data.schemaPath)
|
|
44
|
-
// Make sure the file exists
|
|
45
|
-
.filter((message) => fs.existsSync(path.join(path.dirname(message.filePath ?? ''), message.data.schemaPath ?? '')))
|
|
46
|
-
.map(async (message) => {
|
|
47
|
-
try {
|
|
48
|
-
// Get the schema file path
|
|
49
|
-
const schemaPath = message.data.schemaPath;
|
|
50
|
-
const fullSchemaPath = path.join(path.dirname(message.filePath ?? ''), schemaPath ?? '');
|
|
51
|
-
|
|
52
|
-
// Read the schema content
|
|
53
|
-
let schemaContent = '';
|
|
54
|
-
if (fs.existsSync(fullSchemaPath)) {
|
|
55
|
-
schemaContent = fs.readFileSync(fullSchemaPath, 'utf-8');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Get schema file extension
|
|
59
|
-
const schemaExtension = path.extname(schemaPath ?? '').slice(1);
|
|
60
|
-
|
|
61
|
-
// Enrich owners with full details
|
|
62
|
-
const enrichedOwners = await enrichOwners(message.data.owners || []);
|
|
63
|
-
|
|
64
|
-
// Only return essential data - strip out markdown, full data objects, etc.
|
|
65
|
-
return {
|
|
66
|
-
collection: message.collection,
|
|
67
|
-
data: {
|
|
68
|
-
id: message.data.id,
|
|
69
|
-
name: message.data.name,
|
|
70
|
-
version: message.data.version,
|
|
71
|
-
summary: message.data.summary,
|
|
72
|
-
schemaPath: message.data.schemaPath,
|
|
73
|
-
producers: message.data.producers || [],
|
|
74
|
-
consumers: message.data.consumers || [],
|
|
75
|
-
owners: enrichedOwners,
|
|
76
|
-
},
|
|
77
|
-
schemaContent,
|
|
78
|
-
schemaExtension,
|
|
79
|
-
};
|
|
80
|
-
} catch (error) {
|
|
81
|
-
console.error(`Error reading schema for ${message.data.id}:`, error);
|
|
82
|
-
const enrichedOwners = await enrichOwners(message.data.owners || []);
|
|
83
|
-
return {
|
|
84
|
-
collection: message.collection,
|
|
85
|
-
data: {
|
|
86
|
-
id: message.data.id,
|
|
87
|
-
name: message.data.name,
|
|
88
|
-
version: message.data.version,
|
|
89
|
-
summary: message.data.summary,
|
|
90
|
-
schemaPath: message.data.schemaPath,
|
|
91
|
-
producers: message.data.producers || [],
|
|
92
|
-
consumers: message.data.consumers || [],
|
|
93
|
-
owners: enrichedOwners,
|
|
94
|
-
},
|
|
95
|
-
schemaContent: '',
|
|
96
|
-
schemaExtension: 'json',
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
// Filter services with specifications and read spec content - only keep essential data
|
|
103
|
-
const servicesWithSpecs = await Promise.all(
|
|
104
|
-
services.map(async (service) => {
|
|
105
|
-
try {
|
|
106
|
-
const specifications = getSpecificationsForService(service);
|
|
107
|
-
|
|
108
|
-
// Only include services that have specifications
|
|
109
|
-
if (specifications.length === 0) {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Process each specification file for this service
|
|
114
|
-
return await Promise.all(
|
|
115
|
-
specifications.map(async (spec) => {
|
|
116
|
-
const specPath = path.join(path.dirname(service.filePath ?? ''), spec.path);
|
|
117
|
-
|
|
118
|
-
// Only include if the spec file exists
|
|
119
|
-
if (!fs.existsSync(specPath)) {
|
|
120
|
-
return null;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const schemaContent = fs.readFileSync(specPath, 'utf-8');
|
|
124
|
-
// Use spec type (openapi, asyncapi) as the extension for proper labeling
|
|
125
|
-
const schemaExtension = spec.type;
|
|
126
|
-
|
|
127
|
-
// Enrich owners with full details
|
|
128
|
-
const enrichedOwners = await enrichOwners(service.data.owners || []);
|
|
129
|
-
|
|
130
|
-
// Only return essential data - strip out markdown, sends/receives, entities, etc.
|
|
131
|
-
return {
|
|
132
|
-
collection: 'services',
|
|
133
|
-
data: {
|
|
134
|
-
id: `${service.data.id}`,
|
|
135
|
-
name: `${service.data.name} - ${spec.name}`,
|
|
136
|
-
version: service.data.version,
|
|
137
|
-
summary: service.data.summary,
|
|
138
|
-
schemaPath: spec.path,
|
|
139
|
-
owners: enrichedOwners,
|
|
140
|
-
},
|
|
141
|
-
schemaContent,
|
|
142
|
-
schemaExtension,
|
|
143
|
-
specType: spec.type,
|
|
144
|
-
specName: spec.name,
|
|
145
|
-
specFilenameWithoutExtension: spec.filenameWithoutExtension,
|
|
146
|
-
};
|
|
147
|
-
})
|
|
148
|
-
);
|
|
149
|
-
} catch (error) {
|
|
150
|
-
console.error(`Error reading specifications for service ${service.data.id}:`, error);
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
})
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
// Flatten and filter out null values
|
|
157
|
-
const flatServicesWithSpecs = servicesWithSpecs.flat().filter((service) => service !== null);
|
|
158
|
-
|
|
159
|
-
// Combine messages and services
|
|
160
|
-
const allSchemas = [...messagesWithSchemas, ...flatServicesWithSpecs];
|
|
10
|
+
const { schemas } = await Page.getData(Astro);
|
|
161
11
|
|
|
162
12
|
const apiAccessEnabled = isEventCatalogScaleEnabled();
|
|
163
13
|
---
|
|
164
14
|
|
|
165
15
|
<VerticalSideBarLayout title="Schema Explorer - EventCatalog" showNestedSideBar={false}>
|
|
166
|
-
<main class="flex sm:
|
|
16
|
+
<main class="flex sm:pl-8 pr-4 docs-layout h-[calc(100vh-var(--header-height,0px)-64px)]">
|
|
167
17
|
<div class="flex docs-layout w-full h-full">
|
|
168
|
-
<div class="w-full lg:mr-2
|
|
18
|
+
<div class="w-full lg:mr-2 py-6 flex flex-col h-full">
|
|
169
19
|
<div class="w-full !max-w-none h-full flex flex-col overflow-hidden">
|
|
170
|
-
<SchemaExplorer client:load schemas={
|
|
20
|
+
<SchemaExplorer client:load schemas={schemas as any} apiAccessEnabled={apiAccessEnabled} />
|
|
171
21
|
</div>
|
|
172
22
|
</div>
|
|
173
23
|
</div>
|
|
@@ -3,8 +3,8 @@ import VerticalSideBarLayout from '@layouts/VerticalSideBarLayout.astro';
|
|
|
3
3
|
import { getEvents } from '@utils/collections/events';
|
|
4
4
|
import { getCommands } from '@utils/collections/commands';
|
|
5
5
|
import { getServices } from '@utils/collections/services';
|
|
6
|
-
import { BoltIcon, ServerIcon
|
|
7
|
-
import { SquareDashedMousePointerIcon, ArrowLeftRightIcon } from 'lucide-react';
|
|
6
|
+
import { BoltIcon, ServerIcon } from '@heroicons/react/24/outline';
|
|
7
|
+
import { SquareDashedMousePointerIcon, ArrowLeftRightIcon, ExternalLink } from 'lucide-react';
|
|
8
8
|
import StudioPageModal from '@components/Studio/StudioPageModal';
|
|
9
9
|
import { getChannels } from '@utils/collections/channels';
|
|
10
10
|
|
|
@@ -20,6 +20,7 @@ const eventCount = events.length;
|
|
|
20
20
|
const serviceCount = services.length;
|
|
21
21
|
const commandCount = commands.length;
|
|
22
22
|
const channelCount = channels.length;
|
|
23
|
+
const totalResources = eventCount + serviceCount + channelCount + commandCount;
|
|
23
24
|
|
|
24
25
|
// Get a few sample resources to display
|
|
25
26
|
const sampleEvents = events.slice(0, 2);
|
|
@@ -32,6 +33,8 @@ const resourcesToShow = [
|
|
|
32
33
|
...sampleServices.map((service, index) => ({ type: 'service', data: service, index: index + 2 })),
|
|
33
34
|
...sampleChannels.map((channel, index) => ({ type: 'channel', data: channel, index: index + 4 })),
|
|
34
35
|
].slice(0, 5); // Max 5 resources
|
|
36
|
+
|
|
37
|
+
const hasResources = resourcesToShow.length > 0;
|
|
35
38
|
---
|
|
36
39
|
|
|
37
40
|
<!doctype html>
|
|
@@ -50,131 +53,180 @@ const resourcesToShow = [
|
|
|
50
53
|
{/* Hero Section */}
|
|
51
54
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center mb-16">
|
|
52
55
|
<div>
|
|
53
|
-
<div class="inline-flex items-center px-
|
|
54
|
-
|
|
55
|
-
EventCatalog Studio
|
|
56
|
+
<div class="inline-flex items-center px-3 py-1.5 rounded-full bg-gray-100 text-gray-700 font-medium text-xs mb-6">
|
|
57
|
+
Visual Design Tool
|
|
56
58
|
</div>
|
|
57
59
|
<h1 class="text-4xl font-bold text-gray-900 tracking-tight mb-4">Turn your resources into designs</h1>
|
|
58
|
-
<p class="text-
|
|
60
|
+
<p class="text-lg text-gray-600 mb-8">
|
|
59
61
|
Transform your documented messages, services, and domains into architecture diagrams. Drag, drop, and design with
|
|
60
62
|
what you already have.
|
|
61
63
|
</p>
|
|
62
|
-
<div class="flex flex-col sm:flex-row gap-
|
|
64
|
+
<div class="flex flex-col sm:flex-row gap-3 mb-4">
|
|
63
65
|
<button
|
|
64
66
|
id="design-button"
|
|
65
67
|
class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-lg text-white bg-gray-900 hover:bg-gray-800 transition-colors duration-150"
|
|
66
68
|
>
|
|
67
69
|
<SquareDashedMousePointerIcon className="w-4 h-4 mr-2" />
|
|
68
|
-
Open
|
|
70
|
+
Open Studio
|
|
69
71
|
</button>
|
|
72
|
+
<a
|
|
73
|
+
href="https://www.eventcatalog.dev/docs/development/components/designs"
|
|
74
|
+
target="_blank"
|
|
75
|
+
rel="noopener noreferrer"
|
|
76
|
+
class="inline-flex items-center justify-center px-6 py-3 border border-gray-300 text-base font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 transition-colors duration-150"
|
|
77
|
+
>
|
|
78
|
+
Learn more
|
|
79
|
+
<ExternalLink className="w-4 h-4 ml-2" />
|
|
80
|
+
</a>
|
|
70
81
|
</div>
|
|
71
82
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
{
|
|
84
|
+
totalResources > 0 && (
|
|
85
|
+
<p class="text-sm text-gray-500">
|
|
86
|
+
<span class="font-medium text-gray-700">{totalResources}</span> resources available to design with
|
|
87
|
+
</p>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
75
90
|
</div>
|
|
76
91
|
|
|
77
|
-
<div class="relative">
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
resourcesToShow.map((resource) => {
|
|
92
|
+
<div class="relative hidden lg:block">
|
|
93
|
+
{/* Animation container */}
|
|
94
|
+
<div class="relative h-[350px] flex items-center justify-center">
|
|
95
|
+
{/* Resource cards that animate in */}
|
|
96
|
+
{
|
|
97
|
+
hasResources ? (
|
|
98
|
+
<div class="absolute left-0 top-1/2 -translate-y-1/2 space-y-2.5">
|
|
99
|
+
{resourcesToShow.map((resource) => {
|
|
85
100
|
if (resource.type === 'event') {
|
|
86
101
|
return (
|
|
87
102
|
<div
|
|
88
|
-
class="animate-float-in flex items-center gap-2 text-sm text-gray-700 px-4 py-
|
|
89
|
-
style={`animation-delay: ${resource.index * 0.
|
|
103
|
+
class="animate-float-in flex items-center gap-2 text-sm text-gray-700 px-4 py-2.5 bg-orange-50 rounded-lg border border-orange-200 shadow-sm"
|
|
104
|
+
style={`animation-delay: ${resource.index * 0.3}s;`}
|
|
90
105
|
>
|
|
91
|
-
<BoltIcon className="w-4 h-4 text-orange-
|
|
92
|
-
{resource.data.data.name}
|
|
106
|
+
<BoltIcon className="w-4 h-4 text-orange-500" />
|
|
107
|
+
<span class="truncate max-w-[140px]">{resource.data.data.name}</span>
|
|
93
108
|
</div>
|
|
94
109
|
);
|
|
95
110
|
} else if (resource.type === 'service') {
|
|
96
111
|
return (
|
|
97
112
|
<div
|
|
98
|
-
class="animate-float-in flex items-center gap-2 text-sm text-gray-700 px-4 py-
|
|
99
|
-
style={`animation-delay: ${resource.index * 0.
|
|
113
|
+
class="animate-float-in flex items-center gap-2 text-sm text-gray-700 px-4 py-2.5 bg-pink-50 rounded-lg border border-pink-200 shadow-sm"
|
|
114
|
+
style={`animation-delay: ${resource.index * 0.3}s;`}
|
|
100
115
|
>
|
|
101
|
-
<ServerIcon className="w-4 h-4 text-
|
|
102
|
-
{resource.data.data.name}
|
|
116
|
+
<ServerIcon className="w-4 h-4 text-pink-500" />
|
|
117
|
+
<span class="truncate max-w-[140px]">{resource.data.data.name}</span>
|
|
103
118
|
</div>
|
|
104
119
|
);
|
|
105
120
|
} else if (resource.type === 'channel') {
|
|
106
121
|
return (
|
|
107
122
|
<div
|
|
108
|
-
class="animate-float-in flex items-center gap-2 text-sm text-gray-700 px-4 py-
|
|
109
|
-
style={`animation-delay: ${resource.index * 0.
|
|
123
|
+
class="animate-float-in flex items-center gap-2 text-sm text-gray-700 px-4 py-2.5 bg-indigo-50 rounded-lg border border-indigo-200 shadow-sm"
|
|
124
|
+
style={`animation-delay: ${resource.index * 0.3}s;`}
|
|
110
125
|
>
|
|
111
|
-
<ArrowLeftRightIcon className="w-4 h-4 text-
|
|
112
|
-
{resource.data.data.name}
|
|
126
|
+
<ArrowLeftRightIcon className="w-4 h-4 text-indigo-500" />
|
|
127
|
+
<span class="truncate max-w-[140px]">{resource.data.data.name}</span>
|
|
113
128
|
</div>
|
|
114
129
|
);
|
|
115
130
|
}
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
})}
|
|
132
|
+
</div>
|
|
133
|
+
) : (
|
|
134
|
+
<div class="absolute left-0 top-1/2 -translate-y-1/2 space-y-2.5">
|
|
135
|
+
<div
|
|
136
|
+
class="animate-float-in flex items-center gap-2 text-sm text-gray-400 px-4 py-2.5 bg-gray-50 rounded-lg border border-gray-200 border-dashed"
|
|
137
|
+
style="animation-delay: 0s;"
|
|
138
|
+
>
|
|
139
|
+
<BoltIcon className="w-4 h-4" />
|
|
140
|
+
<span>Your events</span>
|
|
141
|
+
</div>
|
|
142
|
+
<div
|
|
143
|
+
class="animate-float-in flex items-center gap-2 text-sm text-gray-400 px-4 py-2.5 bg-gray-50 rounded-lg border border-gray-200 border-dashed"
|
|
144
|
+
style="animation-delay: 0.3s;"
|
|
145
|
+
>
|
|
146
|
+
<ServerIcon className="w-4 h-4" />
|
|
147
|
+
<span>Your services</span>
|
|
148
|
+
</div>
|
|
149
|
+
<div
|
|
150
|
+
class="animate-float-in flex items-center gap-2 text-sm text-gray-400 px-4 py-2.5 bg-gray-50 rounded-lg border border-gray-200 border-dashed"
|
|
151
|
+
style="animation-delay: 0.6s;"
|
|
152
|
+
>
|
|
153
|
+
<ArrowLeftRightIcon className="w-4 h-4" />
|
|
154
|
+
<span>Your channels</span>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
{/* Arrow indicator */}
|
|
161
|
+
<div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
|
|
162
|
+
<svg class="w-10 h-10 text-gray-300 animate-pulse" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
163
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"></path>
|
|
164
|
+
</svg>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
{/* Design preview */}
|
|
168
|
+
<div class="absolute right-0 top-1/2 -translate-y-1/2 animate-fade-in-scale" style="animation-delay: 1.5s;">
|
|
169
|
+
<img
|
|
170
|
+
src="/studio-bg.png"
|
|
171
|
+
alt="Studio Design Preview"
|
|
172
|
+
class="rounded-xl shadow-lg border border-gray-200 w-56 h-auto"
|
|
173
|
+
/>
|
|
135
174
|
</div>
|
|
136
175
|
</div>
|
|
137
176
|
</div>
|
|
138
177
|
</div>
|
|
139
178
|
|
|
140
179
|
{/* Features Section */}
|
|
141
|
-
<div class="grid grid-cols-1 md:grid-cols-3 gap-
|
|
142
|
-
<div
|
|
143
|
-
|
|
144
|
-
|
|
180
|
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
|
181
|
+
<div
|
|
182
|
+
class="group bg-white rounded-xl p-6 border border-gray-200 hover:border-gray-300 hover:shadow-md transition-all duration-200"
|
|
183
|
+
>
|
|
184
|
+
<div
|
|
185
|
+
class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gray-200 transition-colors"
|
|
186
|
+
>
|
|
187
|
+
<svg class="w-5 h-5 text-gray-700" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
145
188
|
<rect width="8" height="8" x="3" y="3" rx="2"></rect>
|
|
146
189
|
<path d="M7 11v4a2 2 0 0 0 2 2h4"></path>
|
|
147
190
|
<rect width="8" height="8" x="13" y="13" rx="2"></rect>
|
|
148
191
|
</svg>
|
|
149
192
|
</div>
|
|
150
|
-
<h3 class="text-
|
|
151
|
-
<p class="text-gray-600">
|
|
152
|
-
Drag and drop messages, services, and domains from your catalog. No more copying names or keeping things
|
|
153
|
-
in sync.
|
|
193
|
+
<h3 class="text-base font-semibold text-gray-900 mb-2">Real Resources</h3>
|
|
194
|
+
<p class="text-sm text-gray-600 leading-relaxed">
|
|
195
|
+
Drag and drop messages, services, and domains from your catalog. No more copying names or keeping things in sync.
|
|
154
196
|
</p>
|
|
155
197
|
</div>
|
|
156
198
|
|
|
157
|
-
<div
|
|
158
|
-
|
|
159
|
-
|
|
199
|
+
<div
|
|
200
|
+
class="group bg-white rounded-xl p-6 border border-gray-200 hover:border-gray-300 hover:shadow-md transition-all duration-200"
|
|
201
|
+
>
|
|
202
|
+
<div
|
|
203
|
+
class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gray-200 transition-colors"
|
|
204
|
+
>
|
|
205
|
+
<svg class="w-5 h-5 text-gray-700" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
160
206
|
<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path>
|
|
161
207
|
<polyline points="17 21 17 13 7 13 7 21"></polyline>
|
|
162
208
|
<polyline points="7 3 7 8 15 8"></polyline>
|
|
163
209
|
</svg>
|
|
164
210
|
</div>
|
|
165
|
-
<h3 class="text-
|
|
166
|
-
<p class="text-gray-600">
|
|
211
|
+
<h3 class="text-base font-semibold text-gray-900 mb-2">Save & Version</h3>
|
|
212
|
+
<p class="text-sm text-gray-600 leading-relaxed">
|
|
213
|
+
Save designs locally and store in Git. All designs and data is owned by you.
|
|
214
|
+
</p>
|
|
167
215
|
</div>
|
|
168
216
|
|
|
169
|
-
<div
|
|
170
|
-
|
|
171
|
-
|
|
217
|
+
<div
|
|
218
|
+
class="group bg-white rounded-xl p-6 border border-gray-200 hover:border-gray-300 hover:shadow-md transition-all duration-200"
|
|
219
|
+
>
|
|
220
|
+
<div
|
|
221
|
+
class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center mb-4 group-hover:bg-gray-200 transition-colors"
|
|
222
|
+
>
|
|
223
|
+
<svg class="w-5 h-5 text-gray-700" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
172
224
|
<polyline points="16 18 22 12 16 6"></polyline>
|
|
173
225
|
<polyline points="8 6 2 12 8 18"></polyline>
|
|
174
226
|
</svg>
|
|
175
227
|
</div>
|
|
176
|
-
<h3 class="text-
|
|
177
|
-
<p class="text-gray-600">
|
|
228
|
+
<h3 class="text-base font-semibold text-gray-900 mb-2">Embed Anywhere</h3>
|
|
229
|
+
<p class="text-sm text-gray-600 leading-relaxed">
|
|
178
230
|
Drop diagrams directly into documentation pages. One source of truth for your architecture.
|
|
179
231
|
</p>
|
|
180
232
|
</div>
|
|
@@ -201,7 +253,7 @@ const resourcesToShow = [
|
|
|
201
253
|
@keyframes float-in {
|
|
202
254
|
0% {
|
|
203
255
|
opacity: 0;
|
|
204
|
-
transform: translateX(-
|
|
256
|
+
transform: translateX(-20px);
|
|
205
257
|
}
|
|
206
258
|
100% {
|
|
207
259
|
opacity: 1;
|
|
@@ -212,7 +264,7 @@ const resourcesToShow = [
|
|
|
212
264
|
@keyframes fade-in-scale {
|
|
213
265
|
0% {
|
|
214
266
|
opacity: 0;
|
|
215
|
-
transform: translateY(-50%) scale(0.
|
|
267
|
+
transform: translateY(-50%) scale(0.95);
|
|
216
268
|
}
|
|
217
269
|
100% {
|
|
218
270
|
opacity: 1;
|
|
@@ -221,12 +273,12 @@ const resourcesToShow = [
|
|
|
221
273
|
}
|
|
222
274
|
|
|
223
275
|
.animate-float-in {
|
|
224
|
-
animation: float-in 0.
|
|
276
|
+
animation: float-in 0.5s ease-out forwards;
|
|
225
277
|
opacity: 0;
|
|
226
278
|
}
|
|
227
279
|
|
|
228
280
|
.animate-fade-in-scale {
|
|
229
|
-
animation: fade-in-scale 0.
|
|
281
|
+
animation: fade-in-scale 0.6s ease-out forwards;
|
|
230
282
|
opacity: 0;
|
|
231
283
|
}
|
|
232
284
|
</style>
|
|
@@ -30,7 +30,33 @@ export function remarkDirectives() {
|
|
|
30
30
|
class: `rounded-lg p-4 my-4 ${blockTypes[node.name as keyof typeof blockTypes] || ''}`,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// Check if there's a custom title (label) provided via :::note[Custom Title]
|
|
34
|
+
// In remark-directive, the label is stored in node.children as a paragraph node
|
|
35
|
+
// with data.directiveLabel = true
|
|
36
|
+
let titleChildren;
|
|
37
|
+
let contentChildren;
|
|
38
|
+
|
|
39
|
+
const firstChild = node.children && node.children.length > 0 ? node.children[0] : null;
|
|
40
|
+
const hasCustomTitle = firstChild && firstChild.data?.directiveLabel === true;
|
|
41
|
+
|
|
42
|
+
if (hasCustomTitle && firstChild) {
|
|
43
|
+
// Custom title was provided in the label - it contains markdown parsed as inline content
|
|
44
|
+
titleChildren = firstChild.children || [
|
|
45
|
+
{ type: 'text', value: node.name.charAt(0).toUpperCase() + node.name.slice(1) },
|
|
46
|
+
];
|
|
47
|
+
contentChildren = node.children.slice(1);
|
|
48
|
+
} else {
|
|
49
|
+
// No custom title, use default based on directive name
|
|
50
|
+
titleChildren = [
|
|
51
|
+
{
|
|
52
|
+
type: 'text',
|
|
53
|
+
value: node.name.charAt(0).toUpperCase() + node.name.slice(1),
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
contentChildren = node.children;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Create header div that will contain icon and title
|
|
34
60
|
const headerNode = {
|
|
35
61
|
type: 'element',
|
|
36
62
|
data: {
|
|
@@ -70,7 +96,7 @@ export function remarkDirectives() {
|
|
|
70
96
|
},
|
|
71
97
|
],
|
|
72
98
|
},
|
|
73
|
-
//
|
|
99
|
+
// Title (with support for markdown)
|
|
74
100
|
{
|
|
75
101
|
type: 'element',
|
|
76
102
|
data: {
|
|
@@ -79,12 +105,7 @@ export function remarkDirectives() {
|
|
|
79
105
|
class: '',
|
|
80
106
|
},
|
|
81
107
|
},
|
|
82
|
-
children:
|
|
83
|
-
{
|
|
84
|
-
type: 'text',
|
|
85
|
-
value: node.name.charAt(0).toUpperCase() + node.name.slice(1),
|
|
86
|
-
},
|
|
87
|
-
],
|
|
108
|
+
children: titleChildren,
|
|
88
109
|
},
|
|
89
110
|
],
|
|
90
111
|
};
|
|
@@ -98,7 +119,7 @@ export function remarkDirectives() {
|
|
|
98
119
|
class: 'prose prose-md w-full !max-w-none ',
|
|
99
120
|
},
|
|
100
121
|
},
|
|
101
|
-
children:
|
|
122
|
+
children: contentChildren,
|
|
102
123
|
};
|
|
103
124
|
|
|
104
125
|
// Replace node's children with header and content
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { CollectionEntry } from 'astro:content';
|
|
2
2
|
import { buildUrl } from '@utils/url-builder';
|
|
3
3
|
import type { NavNode, ChildRef } from './shared';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
buildQuickReferenceSection,
|
|
6
|
+
buildOwnersSection,
|
|
7
|
+
shouldRenderSideBarSection,
|
|
8
|
+
buildRepositorySection,
|
|
9
|
+
buildAttachmentsSection,
|
|
10
|
+
} from './shared';
|
|
5
11
|
import { isVisualiserEnabled } from '@utils/feature';
|
|
6
12
|
|
|
7
13
|
export const buildContainerNode = (container: CollectionEntry<'containers'>, owners: any[]): NavNode => {
|
|
@@ -17,6 +23,8 @@ export const buildContainerNode = (container: CollectionEntry<'containers'>, own
|
|
|
17
23
|
|
|
18
24
|
const renderOwners = owners.length > 0 && shouldRenderSideBarSection(container, 'owners');
|
|
19
25
|
|
|
26
|
+
const hasAttachments = container.data.attachments && container.data.attachments.length > 0;
|
|
27
|
+
|
|
20
28
|
const renderRepository = container.data.repository && shouldRenderSideBarSection(container, 'repository');
|
|
21
29
|
|
|
22
30
|
return {
|
|
@@ -61,6 +69,7 @@ export const buildContainerNode = (container: CollectionEntry<'containers'>, own
|
|
|
61
69
|
},
|
|
62
70
|
renderOwners && buildOwnersSection(owners),
|
|
63
71
|
renderRepository && buildRepositorySection(container.data.repository as { url: string; language: string }),
|
|
72
|
+
hasAttachments && buildAttachmentsSection(container.data.attachments as any[]),
|
|
64
73
|
].filter(Boolean) as ChildRef[],
|
|
65
74
|
};
|
|
66
75
|
};
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
buildOwnersSection,
|
|
8
8
|
shouldRenderSideBarSection,
|
|
9
9
|
buildRepositorySection,
|
|
10
|
+
buildAttachmentsSection,
|
|
10
11
|
} from './shared';
|
|
11
12
|
import { isVisualiserEnabled } from '@utils/feature';
|
|
12
13
|
|
|
@@ -31,6 +32,8 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
31
32
|
|
|
32
33
|
const renderVisualiser = isVisualiserEnabled();
|
|
33
34
|
|
|
35
|
+
const hasAttachments = domain.data.attachments && domain.data.attachments.length > 0;
|
|
36
|
+
|
|
34
37
|
const renderRepository = domain.data.repository && shouldRenderSideBarSection(domain, 'repository');
|
|
35
38
|
return {
|
|
36
39
|
type: 'item',
|
|
@@ -49,7 +52,7 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
49
52
|
pages: [
|
|
50
53
|
{
|
|
51
54
|
type: 'item',
|
|
52
|
-
title: 'Architecture
|
|
55
|
+
title: 'Architecture Overview',
|
|
53
56
|
href: buildUrl(`/architecture/domains/${domain.data.id}/${domain.data.version}`),
|
|
54
57
|
},
|
|
55
58
|
renderEntities &&
|
|
@@ -63,8 +66,19 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
63
66
|
title: 'Interaction Map',
|
|
64
67
|
href: buildUrl(`/visualiser/domains/${domain.data.id}/${domain.data.version}`),
|
|
65
68
|
},
|
|
69
|
+
renderVisualiser && {
|
|
70
|
+
type: 'item',
|
|
71
|
+
title: 'Global Domain Map',
|
|
72
|
+
href: buildUrl(`/visualiser/domain-integrations`),
|
|
73
|
+
},
|
|
66
74
|
].filter(Boolean) as ChildRef[],
|
|
67
75
|
},
|
|
76
|
+
renderSubDomains && {
|
|
77
|
+
type: 'group',
|
|
78
|
+
title: 'Subdomains',
|
|
79
|
+
icon: 'Boxes',
|
|
80
|
+
pages: subDomains.map((domain) => `domain:${(domain as any).data.id}:${(domain as any).data.version}`),
|
|
81
|
+
},
|
|
68
82
|
hasFlows && {
|
|
69
83
|
type: 'group',
|
|
70
84
|
title: 'Flows',
|
|
@@ -81,12 +95,7 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
81
95
|
href: buildUrl(`/docs/entities/${(entity as any).data.id}/${(entity as any).data.version}`),
|
|
82
96
|
})),
|
|
83
97
|
},
|
|
84
|
-
|
|
85
|
-
type: 'group',
|
|
86
|
-
title: 'Subdomains',
|
|
87
|
-
icon: 'Boxes',
|
|
88
|
-
pages: subDomains.map((domain) => `domain:${(domain as any).data.id}:${(domain as any).data.version}`),
|
|
89
|
-
},
|
|
98
|
+
|
|
90
99
|
...(hasResourceGroups ? buildResourceGroupSections(resourceGroups, context) : []),
|
|
91
100
|
renderServices && {
|
|
92
101
|
type: 'group',
|
|
@@ -96,6 +105,7 @@ export const buildDomainNode = (domain: CollectionEntry<'domains'>, owners: any[
|
|
|
96
105
|
},
|
|
97
106
|
renderOwners && buildOwnersSection(owners),
|
|
98
107
|
renderRepository && buildRepositorySection(domain.data.repository as { url: string; language: string }),
|
|
108
|
+
hasAttachments && buildAttachmentsSection(domain.data.attachments as any[]),
|
|
99
109
|
].filter(Boolean) as ChildRef[],
|
|
100
110
|
};
|
|
101
111
|
};
|