@eventcatalog/core 3.39.4 → 3.39.6
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/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/{chunk-NSR4DZXS.js → chunk-4OSFLWLG.js} +1 -1
- package/dist/{chunk-WLUQZCIH.js → chunk-IKZ5ITXP.js} +1 -1
- package/dist/{chunk-PVOVC2UV.js → chunk-LEUIMTEQ.js} +1 -1
- package/dist/{chunk-O2CZERUN.js → chunk-MQAZ4LXP.js} +1 -1
- package/dist/{chunk-ONQOIF2X.js → chunk-ORVOST63.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/docs/api/03-domain-api.md +16 -0
- package/dist/docs/api/04-service-api.md +16 -0
- package/dist/docs/api/05-command-api.md +16 -0
- package/dist/docs/api/06-event-api.md +16 -0
- package/dist/docs/api/06-query-api.md +16 -0
- package/dist/docs/api/08-channel-api.md +16 -0
- package/dist/docs/api/09-flow-api.md +16 -0
- package/dist/docs/api/10-entity-api.md +15 -0
- package/dist/docs/api/12-data-product-api.md +17 -0
- package/dist/docs/development/01-fundamentals.md +7 -0
- package/dist/docs/development/01-getting-started/installation.md +8 -0
- package/dist/docs/development/01-getting-started/project-structure.md +2 -0
- package/dist/docs/development/bring-your-own-documentation/01-introduction.md +3 -1
- package/dist/docs/development/customization/customize-sidebars/00-application-sidebar.md +45 -5
- package/dist/docs/editor/00-overview.md +73 -0
- package/dist/docs/editor/01-first-edit.md +124 -0
- package/dist/docs/editor/_category_.json +12 -0
- package/dist/docs/editor/explanation/_category_.json +11 -0
- package/dist/docs/editor/explanation/beta-status-feedback.md +48 -0
- package/dist/docs/editor/explanation/how-it-works.md +49 -0
- package/dist/docs/editor/explanation/markdown-mdx-git.md +58 -0
- package/dist/docs/editor/how-to/_category_.json +11 -0
- package/dist/docs/editor/how-to/add-schemas-and-specifications.md +66 -0
- package/dist/docs/editor/how-to/edit-resource.md +88 -0
- package/dist/docs/editor/how-to/invite-editors.md +68 -0
- package/dist/docs/editor/how-to/open-catalog.md +44 -0
- package/dist/docs/editor/how-to/preview-changes.md +55 -0
- package/dist/docs/editor/how-to/revert-local-changes.md +43 -0
- package/dist/docs/editor/how-to/review-and-commit-changes.md +57 -0
- package/dist/docs/editor/how-to/run-locally.md +71 -0
- package/dist/docs/editor/how-to/use-flow-editor.md +66 -0
- package/dist/docs/editor/how-to/use-slash-commands.md +67 -0
- package/dist/docs/editor/reference/_category_.json +11 -0
- package/dist/docs/editor/reference/cli.md +61 -0
- package/dist/docs/editor/reference/supported-content.md +81 -0
- package/dist/docs/editor/reference/supported-resources.md +51 -0
- package/dist/docs/editor/reference/troubleshooting.md +76 -0
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- 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/src/components/Badge.astro +50 -0
- package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +1 -0
- package/eventcatalog/src/components/Tables/Discover/columns.tsx +35 -13
- package/eventcatalog/src/components/Tables/Table.tsx +1 -0
- package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +24 -11
- package/eventcatalog/src/content.config-shared-collections.ts +1 -0
- package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +2 -18
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +250 -205
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +2 -14
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +2 -14
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +3 -15
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +2 -18
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +2 -18
- package/eventcatalog/src/pages/docs/[type]/[id]/language/[dictionaryId]/index.astro +2 -11
- package/eventcatalog/src/utils/badge-styles.ts +31 -0
- package/eventcatalog/src/utils/sidebar-visibility.ts +41 -0
- package/package.json +4 -4
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "Editor",
|
|
3
|
+
"position": 2,
|
|
4
|
+
"collapsible": false,
|
|
5
|
+
"collapsed": false,
|
|
6
|
+
"link": {
|
|
7
|
+
"type": "generated-index",
|
|
8
|
+
"slug": "editor",
|
|
9
|
+
"title": "EventCatalog Editor",
|
|
10
|
+
"description": "Edit, preview, review, and commit EventCatalog documentation from a local visual editor."
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "Explanation",
|
|
3
|
+
"position": 5,
|
|
4
|
+
"collapsible": true,
|
|
5
|
+
"collapsed": false,
|
|
6
|
+
"link": {
|
|
7
|
+
"type": "generated-index",
|
|
8
|
+
"title": "Editor explanation",
|
|
9
|
+
"description": "Conceptual guides that explain how EventCatalog Editor fits with files, Markdown, MDX, Git, and beta access."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 3
|
|
3
|
+
sidebar_label: Beta and feedback
|
|
4
|
+
title: Beta status and feedback
|
|
5
|
+
description: Understand the beta status of EventCatalog Editor and how to give feedback.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor is in beta.
|
|
9
|
+
|
|
10
|
+
You can start using it today, but expect some features, workflows, and interface details to change as the product moves toward general availability.
|
|
11
|
+
|
|
12
|
+
## What beta means
|
|
13
|
+
|
|
14
|
+
During beta:
|
|
15
|
+
|
|
16
|
+
- Some workflows may be incomplete
|
|
17
|
+
- Some resource fields may only be editable in source mode
|
|
18
|
+
- Pull request creation and richer publishing flows may change
|
|
19
|
+
- Documentation and screenshots may lag behind fast-moving features
|
|
20
|
+
|
|
21
|
+
The editor is ready for real feedback, but not every planned workflow is finished.
|
|
22
|
+
|
|
23
|
+
## Access and seats
|
|
24
|
+
|
|
25
|
+
EventCatalog Editor is a seat-based paid product.
|
|
26
|
+
|
|
27
|
+
Community includes 1 editor seat. Starter includes 3 editor seats. Scale includes 10 editor seats. Enterprise includes unlimited editor seats.
|
|
28
|
+
|
|
29
|
+
Organization admins can [invite editors](/docs/editor/how-to/invite-editors) through [EventCatalog Cloud](https://eventcatalog.cloud). Admin and editor roles use editor seats; viewer roles are free.
|
|
30
|
+
|
|
31
|
+
See the [pricing page](/pricing) for current plan details.
|
|
32
|
+
|
|
33
|
+
## Give feedback
|
|
34
|
+
|
|
35
|
+
The best feedback is specific:
|
|
36
|
+
|
|
37
|
+
- What you were trying to document
|
|
38
|
+
- What catalog resource you were editing
|
|
39
|
+
- What worked
|
|
40
|
+
- What was confusing
|
|
41
|
+
- What blocked you
|
|
42
|
+
- What you expected the editor to do
|
|
43
|
+
|
|
44
|
+
Share feedback in the [EventCatalog Discord](https://eventcatalog.dev/discord) or [open an issue in the editor repository](https://github.com/event-catalog/eventcatalog-editor-code/issues).
|
|
45
|
+
|
|
46
|
+
## What the beta looks like
|
|
47
|
+
|
|
48
|
+

|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
sidebar_label: How it works
|
|
4
|
+
title: How EventCatalog Editor works
|
|
5
|
+
description: Understand the local architecture and workflow behind EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor is local-first.
|
|
9
|
+
|
|
10
|
+
It starts a small local server, opens a browser UI, reads your EventCatalog project from disk, and writes changes back to the same files.
|
|
11
|
+
|
|
12
|
+
```mermaid
|
|
13
|
+
flowchart LR
|
|
14
|
+
A[Browser UI] <--> B[Local editor server]
|
|
15
|
+
B <--> C[EventCatalog project files]
|
|
16
|
+
B <--> D[Git repository]
|
|
17
|
+
B -. detects .-> E[Local EventCatalog preview]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## The editor runs on your machine
|
|
21
|
+
|
|
22
|
+
The editor binds to your local machine and opens at [http://localhost:3900](http://localhost:3900) by default.
|
|
23
|
+
|
|
24
|
+
Your catalog stays on disk. Editing a resource changes files in the catalog directory, such as `index.mdx`, schema files, specification files, or `eventcatalog.config.js`.
|
|
25
|
+
|
|
26
|
+
## The browser talks to the local server
|
|
27
|
+
|
|
28
|
+
The browser UI does not edit files directly. It talks to the local editor server, which:
|
|
29
|
+
|
|
30
|
+
- Validates catalog paths
|
|
31
|
+
- Reads resources
|
|
32
|
+
- Writes resource files
|
|
33
|
+
- Manages schema and specification files
|
|
34
|
+
- Reads Git status and diffs
|
|
35
|
+
- Detects local EventCatalog preview URLs
|
|
36
|
+
|
|
37
|
+
## [EventCatalog Cloud](https://eventcatalog.cloud) controls access
|
|
38
|
+
|
|
39
|
+
The beta editor uses [EventCatalog Cloud](https://eventcatalog.cloud) for sign-in and editor access.
|
|
40
|
+
|
|
41
|
+
Organizations in [EventCatalog Cloud](https://eventcatalog.cloud) control which people can open the local editor. Admins and editors can start local editor sessions. Viewers can belong to an organization without using an editor seat, but they cannot open a local editor session.
|
|
42
|
+
|
|
43
|
+
After sign-in, editing still happens locally. The editor does not become a hosted catalog editor; it remains a local tool pointed at your local catalog files.
|
|
44
|
+
|
|
45
|
+
## Git remains the review boundary
|
|
46
|
+
|
|
47
|
+
The editor shows local Git changes, diffs, revert actions, and commits.
|
|
48
|
+
|
|
49
|
+
It does not replace your team's review and release process. After committing, push and publish the catalog the same way your team already does.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 2
|
|
3
|
+
sidebar_label: Markdown, MDX, and Git
|
|
4
|
+
title: Editor, Markdown, MDX, and Git
|
|
5
|
+
description: Understand how the editor works with EventCatalog's file-based authoring model.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog is file-based. The editor keeps that model.
|
|
9
|
+
|
|
10
|
+
Instead of asking every contributor to edit Markdown, MDX, YAML frontmatter, schemas, and Git diffs by hand, the editor gives them a visual workflow on top of the same project files.
|
|
11
|
+
|
|
12
|
+
## Markdown and MDX are still the source of truth
|
|
13
|
+
|
|
14
|
+
Each EventCatalog resource is still represented by files in your catalog.
|
|
15
|
+
|
|
16
|
+
For example, a [service](/docs/development/guides/services/introduction) might live at:
|
|
17
|
+
|
|
18
|
+
```txt
|
|
19
|
+
domains/Orders/services/OrderService/index.mdx
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
When you edit that service in the editor, the editor updates the same file.
|
|
23
|
+
|
|
24
|
+
## Visual editing is an authoring layer
|
|
25
|
+
|
|
26
|
+
The editor helps with common tasks:
|
|
27
|
+
|
|
28
|
+
- Writing documentation
|
|
29
|
+
- Changing summaries and owners
|
|
30
|
+
- Adding badges
|
|
31
|
+
- Modeling relationships
|
|
32
|
+
- Adding schemas and specifications
|
|
33
|
+
- Managing draft status
|
|
34
|
+
|
|
35
|
+
For advanced content, source mode lets you edit the underlying Markdown, MDX, and frontmatter.
|
|
36
|
+
|
|
37
|
+
## Git shows exactly what changed
|
|
38
|
+
|
|
39
|
+
Because the editor writes to files, Git can show the exact change.
|
|
40
|
+
|
|
41
|
+
That makes the editor useful for contributors who prefer a visual workflow while still giving reviewers the normal file diff.
|
|
42
|
+
|
|
43
|
+
```mermaid
|
|
44
|
+
flowchart LR
|
|
45
|
+
A[Visual edit] --> B[MDX and schema files]
|
|
46
|
+
B --> C[Git diff]
|
|
47
|
+
C --> D[Commit]
|
|
48
|
+
D --> E[Review and publish]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Why this matters
|
|
52
|
+
|
|
53
|
+
This keeps EventCatalog portable:
|
|
54
|
+
|
|
55
|
+
- You can still edit files in an IDE
|
|
56
|
+
- You can still review changes in pull requests
|
|
57
|
+
- You can still build and deploy with your existing pipeline
|
|
58
|
+
- You can let non-MDX contributors improve documentation safely
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "How-to guides",
|
|
3
|
+
"position": 3,
|
|
4
|
+
"collapsible": true,
|
|
5
|
+
"collapsed": false,
|
|
6
|
+
"link": {
|
|
7
|
+
"type": "generated-index",
|
|
8
|
+
"title": "Editor how-to guides",
|
|
9
|
+
"description": "Task-focused guides for running EventCatalog Editor and working with catalog changes."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 7
|
|
3
|
+
sidebar_label: Add schemas and specifications
|
|
4
|
+
title: Add schemas and specifications
|
|
5
|
+
description: Attach message schemas and API specifications from EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Use schemas and specifications to keep implementation contracts close to the architecture resources they describe.
|
|
9
|
+
|
|
10
|
+
## Add a schema to a message
|
|
11
|
+
|
|
12
|
+
Schemas are supported on:
|
|
13
|
+
|
|
14
|
+
- [Events](/docs/development/guides/messages/events/introduction)
|
|
15
|
+
- [Commands](/docs/development/guides/messages/commands/introduction)
|
|
16
|
+
- [Queries](/docs/development/guides/messages/queries/introduction)
|
|
17
|
+
|
|
18
|
+
Open the message resource, then use the **Schema** section to add or edit the schema file.
|
|
19
|
+
|
|
20
|
+
Supported schema formats include:
|
|
21
|
+
|
|
22
|
+
- JSON Schema
|
|
23
|
+
- Avro
|
|
24
|
+
- Protobuf
|
|
25
|
+
- Other text-based schema files
|
|
26
|
+
|
|
27
|
+
When you save a schema, the editor writes the schema file into the resource folder and updates the resource metadata so EventCatalog can render it.
|
|
28
|
+
|
|
29
|
+
If the schema editor does not expose the exact change you need yet, use source mode or edit the schema file directly.
|
|
30
|
+
|
|
31
|
+
## Add a specification to a domain or service
|
|
32
|
+
|
|
33
|
+
Specifications are supported on:
|
|
34
|
+
|
|
35
|
+
- [Domains](/docs/development/guides/domains/introduction)
|
|
36
|
+
- [Services](/docs/development/guides/services/introduction)
|
|
37
|
+
|
|
38
|
+
Open the domain or service, then use the specifications area to add:
|
|
39
|
+
|
|
40
|
+
- OpenAPI
|
|
41
|
+
- AsyncAPI
|
|
42
|
+
- GraphQL
|
|
43
|
+
|
|
44
|
+
The editor writes the specification file into the resource folder and updates the resource `specifications` metadata.
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
## Preview schema and specification changes
|
|
49
|
+
|
|
50
|
+
Start EventCatalog locally with:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm run dev
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Then use **Open Preview** in the editor to check how the schema or specification renders in the catalog.
|
|
57
|
+
|
|
58
|
+
## When to use source mode
|
|
59
|
+
|
|
60
|
+
Use source mode when you need to:
|
|
61
|
+
|
|
62
|
+
- Adjust a custom `SchemaViewer` component
|
|
63
|
+
- Add custom MDX around a schema
|
|
64
|
+
- Edit specification metadata the visual form does not expose yet
|
|
65
|
+
|
|
66
|
+
For more on schema documentation in EventCatalog, see the [schema documentation guides](/docs/development/guides/schemas/introduction).
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 4
|
|
3
|
+
sidebar_label: Edit a resource
|
|
4
|
+
title: Edit an EventCatalog resource
|
|
5
|
+
description: Update resource documentation, metadata, relationships, and source content in EventCatalog Editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Use this guide when you want to update a resource that already exists in your catalog.
|
|
9
|
+
|
|
10
|
+
## Open the resource
|
|
11
|
+
|
|
12
|
+
Start the editor and choose a resource from the resource list.
|
|
13
|
+
|
|
14
|
+
The editor supports common EventCatalog resource types, including [domains](/docs/development/guides/domains/introduction), [services](/docs/development/guides/services/introduction), [events](/docs/development/guides/messages/events/introduction), [commands](/docs/development/guides/messages/commands/introduction), [queries](/docs/development/guides/messages/queries/introduction), [channels](/docs/development/guides/channels/introduction), [entities](/docs/development/guides/domains/entities/introduction), [data stores](/docs/development/guides/data/introduction), [flows](/docs/development/guides/flows/introduction), [users](/docs/development/guides/owners/users/introduction), and [teams](/docs/development/guides/owners/teams/introduction).
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## Edit the documentation
|
|
19
|
+
|
|
20
|
+
Use the rich editor to change the resource body.
|
|
21
|
+
|
|
22
|
+
The rich editor supports common writing blocks such as headings, paragraphs, lists, tables, blockquotes, code blocks, links, and dividers.
|
|
23
|
+
|
|
24
|
+
Use `/` in an empty paragraph to open the block menu. Slash commands also help you insert EventCatalog components such as diagrams, callouts, steps, tiles, prompts, and resource-aware blocks. Learn more in [Use slash commands](/docs/editor/how-to/use-slash-commands).
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
## Edit resource metadata
|
|
29
|
+
|
|
30
|
+
Use the resource fields to update common frontmatter values such as:
|
|
31
|
+
|
|
32
|
+
- Name
|
|
33
|
+
- Summary
|
|
34
|
+
- Owners
|
|
35
|
+
- Badges
|
|
36
|
+
- Repository links
|
|
37
|
+
- Draft status
|
|
38
|
+
- Resource image or icon
|
|
39
|
+
|
|
40
|
+
Some resource types have extra fields. For example, services can model sent and received messages, and data stores can describe type, technology, access mode, classification, retention, and residency.
|
|
41
|
+
|
|
42
|
+
## Edit relationships
|
|
43
|
+
|
|
44
|
+
Use relationship fields to connect resources.
|
|
45
|
+
|
|
46
|
+
For example:
|
|
47
|
+
|
|
48
|
+
- Add services to a domain
|
|
49
|
+
- Show messages a service sends or receives
|
|
50
|
+
- Connect services to data stores they read from or write to
|
|
51
|
+
- Connect [owners](/docs/owners) to resources
|
|
52
|
+
|
|
53
|
+
These fields update the same resource metadata that EventCatalog uses when it renders architecture relationships.
|
|
54
|
+
|
|
55
|
+
## Create related resources
|
|
56
|
+
|
|
57
|
+
When a relationship field allows new resources, the editor can create the resource and model how it relates to the current resource.
|
|
58
|
+
|
|
59
|
+
For example, when creating an event from a service, choose whether the service publishes the event, consumes the event, or only contains the event in its folder.
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
## Edit flows
|
|
64
|
+
|
|
65
|
+
Flow resources include a visual Flow Editor for modeling business processes, user journeys, and architecture workflows.
|
|
66
|
+
|
|
67
|
+

|
|
68
|
+
|
|
69
|
+
Learn how to [use the Flow Editor](/docs/editor/how-to/use-flow-editor).
|
|
70
|
+
|
|
71
|
+
## Use source mode
|
|
72
|
+
|
|
73
|
+
Switch to source mode when you need to edit Markdown, MDX, or frontmatter directly.
|
|
74
|
+
|
|
75
|
+

|
|
76
|
+
|
|
77
|
+
Source mode is useful for:
|
|
78
|
+
|
|
79
|
+
- Checking exact frontmatter
|
|
80
|
+
- Editing custom MDX components
|
|
81
|
+
- Making changes the rich editor does not expose yet
|
|
82
|
+
- Copying content from another file
|
|
83
|
+
|
|
84
|
+
## Save conflicts
|
|
85
|
+
|
|
86
|
+
If the file changed on disk after the editor loaded it, the editor protects you from overwriting those changes.
|
|
87
|
+
|
|
88
|
+
Reload the resource, review the external change, and apply your edit again.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 3
|
|
3
|
+
sidebar_label: Invite editors
|
|
4
|
+
title: Invite editors to your organization
|
|
5
|
+
description: Add team members in EventCatalog Cloud and assign editor seats so they can use EventCatalog Editor locally.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Use [EventCatalog Cloud](https://eventcatalog.cloud) to manage who can use EventCatalog Editor.
|
|
9
|
+
|
|
10
|
+
The editor still runs locally on each person's machine. Cloud verifies that the person belongs to your organization and has a role that can open a local editor session.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
## Before you start
|
|
15
|
+
|
|
16
|
+
You need:
|
|
17
|
+
|
|
18
|
+
- An [EventCatalog Cloud](https://eventcatalog.cloud) organization
|
|
19
|
+
- Admin access to that organization
|
|
20
|
+
- An available editor seat if you want to invite another admin or editor
|
|
21
|
+
|
|
22
|
+
If you have not created an organization yet, sign in to [EventCatalog Cloud](https://eventcatalog.cloud) and complete the organization setup first.
|
|
23
|
+
|
|
24
|
+
## Editor seats by plan
|
|
25
|
+
|
|
26
|
+
Editor seats control how many people can use EventCatalog Editor for an organization.
|
|
27
|
+
|
|
28
|
+
- Community includes 1 editor seat
|
|
29
|
+
- Starter includes 3 editor seats
|
|
30
|
+
- Scale includes 10 editor seats
|
|
31
|
+
- Enterprise includes unlimited editor seats
|
|
32
|
+
|
|
33
|
+
Admins and editors use editor seats. Viewers are free, but viewers cannot open a local editor session.
|
|
34
|
+
|
|
35
|
+
You can compare plans on the [pricing page](/pricing).
|
|
36
|
+
|
|
37
|
+
## Invite a team member
|
|
38
|
+
|
|
39
|
+
1. Sign in to [EventCatalog Cloud](https://eventcatalog.cloud).
|
|
40
|
+
2. Open the organization you want the editor to use.
|
|
41
|
+
3. Go to **Team**.
|
|
42
|
+
4. Enter the team member's email address.
|
|
43
|
+
5. Choose their role.
|
|
44
|
+
6. Click **Invite**.
|
|
45
|
+
|
|
46
|
+
Invitations expire after 7 days.
|
|
47
|
+
|
|
48
|
+
Pending invitations for admin and editor roles count toward your editor seat usage. If you run out of editor seats, invite the person as a viewer, cancel an unused pending invitation, change an existing member's role, or upgrade your plan.
|
|
49
|
+
|
|
50
|
+
## Choose the right role
|
|
51
|
+
|
|
52
|
+
- Admin can manage the organization, invite members, and use EventCatalog Editor.
|
|
53
|
+
- Editor can use EventCatalog Editor for the organization.
|
|
54
|
+
- Viewer can belong to the organization without using an editor seat.
|
|
55
|
+
|
|
56
|
+
Use **Editor** for most people who need to maintain catalog content. Use **Admin** when the person also needs to manage organization settings and team access.
|
|
57
|
+
|
|
58
|
+
## What the invited person does next
|
|
59
|
+
|
|
60
|
+
After accepting the invitation, the team member can:
|
|
61
|
+
|
|
62
|
+
1. Clone or open the EventCatalog project locally.
|
|
63
|
+
2. Install catalog dependencies if needed.
|
|
64
|
+
3. [Run EventCatalog Editor locally](/docs/editor/how-to/run-locally).
|
|
65
|
+
4. Sign in with [EventCatalog Cloud](https://eventcatalog.cloud) when the editor asks for access.
|
|
66
|
+
5. Choose the organization if their account belongs to more than one organization.
|
|
67
|
+
|
|
68
|
+
The editor changes their local files and gives them a Git UI to publish a local commit. It does not upload catalog source files to [EventCatalog Cloud](https://eventcatalog.cloud).
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 2
|
|
3
|
+
sidebar_label: Open a catalog
|
|
4
|
+
title: Open a catalog in the editor
|
|
5
|
+
description: Mount an EventCatalog project from the CLI or from the editor UI.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor needs a local catalog directory before it can show resources.
|
|
9
|
+
|
|
10
|
+
## How the editor finds a catalog
|
|
11
|
+
|
|
12
|
+
When you run `npx @eventcatalog/editor`, the editor looks for a catalog in this order:
|
|
13
|
+
|
|
14
|
+
1. The path passed with `--catalog`
|
|
15
|
+
2. The current directory, if it contains `eventcatalog.config.js`
|
|
16
|
+
3. The first child directory containing `eventcatalog.config.js`
|
|
17
|
+
4. The catalog path screen in the browser
|
|
18
|
+
|
|
19
|
+
## Open a catalog from the CLI
|
|
20
|
+
|
|
21
|
+
Pass the catalog path:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @eventcatalog/editor --catalog /path/to/my-catalog
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use an absolute path when possible. It makes it clear which catalog the editor is changing.
|
|
28
|
+
|
|
29
|
+
## Open a catalog from the browser
|
|
30
|
+
|
|
31
|
+
If the editor cannot find a catalog automatically, it shows a catalog path screen.
|
|
32
|
+
|
|
33
|
+
Enter the path to your EventCatalog project and choose **Open**.
|
|
34
|
+
|
|
35
|
+
## Fix catalog loading errors
|
|
36
|
+
|
|
37
|
+
If the editor cannot open the catalog, check that:
|
|
38
|
+
|
|
39
|
+
- The path points to the catalog root
|
|
40
|
+
- The directory contains `eventcatalog.config.js`
|
|
41
|
+
- The config file can be imported by Node.js
|
|
42
|
+
- Dependencies for the catalog are installed
|
|
43
|
+
|
|
44
|
+
If you are not sure what the catalog root should look like, read the [EventCatalog project structure guide](/docs/development/getting-started/project-structure).
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 8
|
|
3
|
+
sidebar_label: Preview changes
|
|
4
|
+
title: Preview editor changes
|
|
5
|
+
description: Open local EventCatalog preview links from the editor.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Preview lets you check how a resource looks in EventCatalog before committing your changes.
|
|
9
|
+
|
|
10
|
+
## Start EventCatalog locally
|
|
11
|
+
|
|
12
|
+
In your catalog project, run:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm run dev
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
EventCatalog usually runs at [http://localhost:3000](http://localhost:3000).
|
|
19
|
+
|
|
20
|
+
## Start the editor
|
|
21
|
+
|
|
22
|
+
In another terminal, run:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx @eventcatalog/editor
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The editor checks whether EventCatalog is running locally. When it detects a preview, resource pages show **Open Preview**.
|
|
29
|
+
|
|
30
|
+
## Use a custom preview port
|
|
31
|
+
|
|
32
|
+
If EventCatalog is running on a different port, tell the editor:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx @eventcatalog/editor --eventcatalog-port 3001
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Open a preview
|
|
39
|
+
|
|
40
|
+
Open a resource in the editor and choose **Open Preview**.
|
|
41
|
+
|
|
42
|
+
The editor opens the matching resource page in the local EventCatalog site.
|
|
43
|
+
|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
## Fix missing preview links
|
|
47
|
+
|
|
48
|
+
If preview is unavailable:
|
|
49
|
+
|
|
50
|
+
- Check that EventCatalog is running
|
|
51
|
+
- Check the preview port
|
|
52
|
+
- Restart the editor after starting EventCatalog
|
|
53
|
+
- Open the local EventCatalog URL directly to confirm it works
|
|
54
|
+
|
|
55
|
+
Preview is local. It does not publish your changes.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 10
|
|
3
|
+
sidebar_label: Revert local changes
|
|
4
|
+
title: Revert local editor changes
|
|
5
|
+
description: Discard local catalog edits from the editor changes view.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Use revert when you want to discard local edits before committing them.
|
|
9
|
+
|
|
10
|
+
## Open the Changes page
|
|
11
|
+
|
|
12
|
+
Choose **Changes** from the editor navigation.
|
|
13
|
+
|
|
14
|
+
The editor shows modified, added, deleted, renamed, and untracked files when Git change tracking is available.
|
|
15
|
+
|
|
16
|
+
## Revert one file
|
|
17
|
+
|
|
18
|
+
Open a changed file and choose **Revert**.
|
|
19
|
+
|
|
20
|
+
The editor asks for confirmation before it discards the local file change.
|
|
21
|
+
|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
## Revert a resource group
|
|
25
|
+
|
|
26
|
+
If a resource has multiple changed files, you can revert the group from the Changes page.
|
|
27
|
+
|
|
28
|
+
For example, reverting a message resource might discard changes to both:
|
|
29
|
+
|
|
30
|
+
- `index.mdx`
|
|
31
|
+
- `schema.json`
|
|
32
|
+
|
|
33
|
+
## What revert does
|
|
34
|
+
|
|
35
|
+
Revert restores modified and deleted files from Git.
|
|
36
|
+
|
|
37
|
+
Untracked files are removed from disk.
|
|
38
|
+
|
|
39
|
+
::::warning Revert cannot be undone by the editor
|
|
40
|
+
|
|
41
|
+
Only revert files when you are sure you do not need the local edits. If you are unsure, inspect the diff first or commit the work to a temporary branch.
|
|
42
|
+
|
|
43
|
+
::::
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 9
|
|
3
|
+
sidebar_label: Review and publish changes
|
|
4
|
+
title: Review and publish editor changes
|
|
5
|
+
description: Use the editor changes view to inspect local Git changes and publish a local commit.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog Editor writes to your local catalog files. Use the **Changes** page to inspect what changed before you publish.
|
|
9
|
+
|
|
10
|
+
## Open the Changes page
|
|
11
|
+
|
|
12
|
+
Choose **Changes** from the editor navigation.
|
|
13
|
+
|
|
14
|
+
If the catalog is a Git repository, the editor shows local changes grouped by EventCatalog resource.
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## Inspect a file diff
|
|
19
|
+
|
|
20
|
+
Open a changed file to view the unified diff.
|
|
21
|
+
|
|
22
|
+
Use the diff to check:
|
|
23
|
+
|
|
24
|
+
- The intended Markdown or MDX changed
|
|
25
|
+
- Metadata changes are correct
|
|
26
|
+
- Generated schema or specification paths look right
|
|
27
|
+
- Unrelated files were not changed accidentally
|
|
28
|
+
|
|
29
|
+
## Publish from the editor
|
|
30
|
+
|
|
31
|
+
When the changes look right, click **Publish** in the editor.
|
|
32
|
+
|
|
33
|
+
In the beta editor, **Publish** commits your changes locally to Git. It does not deploy your catalog or open a pull request.
|
|
34
|
+
|
|
35
|
+
Use a short message that describes the catalog change, for example:
|
|
36
|
+
|
|
37
|
+
```txt
|
|
38
|
+
Document OrderPlaced event schema
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Continue with your team's workflow
|
|
42
|
+
|
|
43
|
+
After publishing, use your existing Git workflow to share and release the change.
|
|
44
|
+
|
|
45
|
+
For example:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
git push
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Then open a pull request if your team reviews catalog changes through GitHub or another Git hosting provider.
|
|
52
|
+
|
|
53
|
+
::::info Pull request creation
|
|
54
|
+
|
|
55
|
+
Built-in pull request creation is planned, but beta users should continue using their existing Git workflow after publishing local changes.
|
|
56
|
+
|
|
57
|
+
::::
|