Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion calm-plugins/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "calm-vscode-plugin",
"displayName": "CALM",
"description": "Live-visualize CALM architecture models, validate, and generate docs.",
"version": "0.4.1",
"version": "0.4.2",
"publisher": "FINOS",
"homepage": "https://calm.finos.org",
"repository": {
Expand Down
9 changes: 9 additions & 0 deletions calm-widgets/src/widgets.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ describe('Widgets E2E - Handlebars Integration', () => {

expectToBeSameIgnoringLineEndings(result, expected);
});

it('renders primitive arrays inline with comma separator (MDX-safe)', () => {
const { context, template, expected } = fixtures.loadFixture('table-widget', 'metadata-primitive-array');

const compiledTemplate = handlebars.compile(template);
const result = compiledTemplate(context);

expectToBeSameIgnoringLineEndings(result, expected);
});
});

describe('List Widget', () => {
Expand Down
2 changes: 1 addition & 1 deletion calm-widgets/src/widgets/table/row-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{> table-template.html rows=(objectEntries this) headers=false flatTable=false hasRows=true isNested=true}}

{{else}}
{{this}}
{{this}}{{#unless @last}}, {{/unless}}
{{/if}}
{{/each}}
{{else}}
Expand Down
3 changes: 1 addition & 2 deletions calm-widgets/src/widgets/table/table-vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
{{> table-template.html rows=(objectEntries cellValue) headers=false flatTable=false hasRows=true isNested=true}}
{{else if (isArray cellValue)}}{{#each cellValue}}{{#if (isObject this)}}
{{> table-template.html rows=(objectEntries this) headers=false flatTable=false hasRows=true isNested=true}}
{{else}}{{this}}
{{/if}}{{/each}}{{else}}{{cellValue}}{{/if}}</td>
{{else}}{{this}}{{#unless @last}}, {{/unless}}{{/if}}{{/each}}{{else}}{{cellValue}}{{/if}}</td>
</tr>
{{/with}}
{{/with}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@
<tr>
<td><b>Value</b></td>
<td>
Product Catalog
Inventory Management
Product Catalog,
Inventory Management,
Price Calculation
</td>
</tr>
Expand Down Expand Up @@ -347,8 +347,8 @@
<tr>
<td><b>Value</b></td>
<td>
Order Processing
Payment Integration
Order Processing,
Payment Integration,
Order Tracking
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"metadata": {
"operations": ["add", "subtract", "multiply", "divide"],
"tags": ["payment", "financial", "api"],
"version": "1.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div class="table-container">
<table>
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<th>Operations</th>
<td>add, subtract, multiply, divide</td>
</tr>
<tr>
<th>Tags</th>
<td>payment, financial, api</td>
</tr>
<tr>
<th>Version</th>
<td>1.0.0</td>
</tr>
</tbody>
</table>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{table metadata orientation="vertical"}}
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,8 @@ The system follows a microservices architecture pattern deployed on Kubernetes,
<tr>
<td><b>Nodes</b></td>
<td>
load-balancer
attendees
load-balancer,
attendees,
attendees-store
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@ url-to-local-file-mapping: ../../../getting-started/url-to-local-file-mapping.js
<tr>
<td><b>Nodes</b></td>
<td>
load-balancer
attendees
load-balancer,
attendees,
attendees-store
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading