Skip to content

Commit e39823b

Browse files
committed
fix(plugin-documentation): address second round of CodeRabbit review feedback
- Add pre-flight check in preview-themes.ts for missing .mmd input - Use getAllFields() in collectRelationships to include inherited/mixin fields - Track hasErdSvg/hasErdMmd separately to avoid broken index links when erdFormat is not 'both' - Move Mermaid entity overflow indicator outside the block as a %% comment to avoid invalid erDiagram syntax
1 parent 1a1b0a7 commit e39823b

File tree

27 files changed

+58
-44
lines changed

27 files changed

+58
-44
lines changed

packages/plugins/documentation/preview-output/showcase/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This documentation describes a [ZModel](https://zenstack.dev/docs/reference/zmod
8585
| Metric | Value |
8686
| --- | --- |
8787
| **Files** | 29 |
88-
| **Duration** | 64.56 ms |
88+
| **Duration** | 143.23 ms |
8989
| **Source** | `showcase.zmodel` |
9090
| **Generated** | 2026-02-22 |
9191

packages/plugins/documentation/preview-output/showcase/models/Activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ erDiagram
9999
Priority priority
100100
DateTime dueDate
101101
Float estimatedHours
102-
_more_ and_4_more_fields
103102
}
103+
%% … and 4 more fields
104104
User {
105105
DateTime createdAt
106106
DateTime updatedAt

packages/plugins/documentation/preview-output/showcase/models/Comment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ erDiagram
108108
Priority priority
109109
DateTime dueDate
110110
Float estimatedHours
111-
_more_ and_4_more_fields
112111
}
112+
%% … and 4 more fields
113113
Comment }o--|| User : "author"
114114
Comment }o--|| Task : "task"
115115
```

packages/plugins/documentation/preview-output/showcase/models/Organization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ erDiagram
104104
Float completionRate
105105
Boolean hasOverdueTasks
106106
String organizationId
107-
_more_ and_1_more_fields
108107
}
108+
%% … and 1 more fields
109109
Team {
110110
DateTime createdAt
111111
DateTime updatedAt

packages/plugins/documentation/preview-output/showcase/models/Project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ erDiagram
133133
Priority priority
134134
DateTime dueDate
135135
Float estimatedHours
136-
_more_ and_4_more_fields
137136
}
137+
%% … and 4 more fields
138138
Team {
139139
DateTime createdAt
140140
DateTime updatedAt

packages/plugins/documentation/preview-output/showcase/models/Tag.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ erDiagram
7676
Float completionRate
7777
Boolean hasOverdueTasks
7878
String organizationId
79-
_more_ and_1_more_fields
8079
}
80+
%% … and 1 more fields
8181
Task {
8282
DateTime createdAt
8383
DateTime updatedAt
@@ -89,8 +89,8 @@ erDiagram
8989
Priority priority
9090
DateTime dueDate
9191
Float estimatedHours
92-
_more_ and_4_more_fields
9392
}
93+
%% … and 4 more fields
9494
Tag ||--o{ Project : "projects"
9595
Tag ||--o{ Task : "tasks"
9696
```

packages/plugins/documentation/preview-output/showcase/models/Task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ erDiagram
160160
Priority priority
161161
DateTime dueDate
162162
Float estimatedHours
163-
_more_ and_4_more_fields
164163
}
164+
%% … and 4 more fields
165165
Comment {
166166
DateTime createdAt
167167
DateTime updatedAt
@@ -181,8 +181,8 @@ erDiagram
181181
Float completionRate
182182
Boolean hasOverdueTasks
183183
String organizationId
184-
_more_ and_1_more_fields
185184
}
185+
%% … and 1 more fields
186186
Tag {
187187
String id
188188
String name

packages/plugins/documentation/preview-output/showcase/models/Team.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ erDiagram
116116
Float completionRate
117117
Boolean hasOverdueTasks
118118
String organizationId
119-
_more_ and_1_more_fields
120119
}
120+
%% … and 1 more fields
121121
Team ||--o{ TeamMember : "members"
122122
Team }o--|| Organization : "organization"
123123
Team ||--o{ Project : "projects"

packages/plugins/documentation/preview-output/showcase/models/User.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ erDiagram
127127
Priority priority
128128
DateTime dueDate
129129
Float estimatedHours
130-
_more_ and_4_more_fields
131130
}
131+
%% … and 4 more fields
132132
Comment {
133133
DateTime createdAt
134134
DateTime updatedAt

packages/plugins/documentation/preview-output/verbose/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This documentation describes a [ZModel](https://zenstack.dev/docs/reference/zmod
8989
| Metric | Value |
9090
| --- | --- |
9191
| **Files** | 33 |
92-
| **Duration** | 35.01 ms |
92+
| **Duration** | 34.22 ms |
9393
| **Source** | `schema.zmodel` |
9494
| **Generated** | 2026-02-22 |
9595

0 commit comments

Comments
 (0)