Skip to content

Commit e22237b

Browse files
authored
Merge branch 'main' into timelines
2 parents b9906b3 + 07c70c3 commit e22237b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1013
-2110
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
name: 🐛 Bug Report
33
about: If something isn't working as expected 🤔
4-
4+
type: Bug
5+
labels: bug
6+
assignees: ''
57
---
68

79
## Bug Report

.github/ISSUE_TEMPLATE/Feature_proposal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: 🚀 Feature Proposal
33
about: Suggest a new feature for an existing project in the monorepo
4+
type: Feature
45
---
56

67
## Feature Proposal

.github/ISSUE_TEMPLATE/Meeting.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
name: 🤝 Architecture as Code Meeting Agenda (Part of the DevOps Automation SIG)
2+
name: 🤝 Architecture as Code Meeting Agenda
33
about: To track Architecture as Code meeting agenda and attendance
4+
type: Meeting
5+
labels: meeting
46
---
57

68
## Date

.github/ISSUE_TEMPLATE/Office_Hours.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: 🏢 Architecture as Code Office Hours
33
about: Track Office Hours meetings
4+
type: Meeting
5+
labels: meeting, office-hours
46
---
57

68
## Date

.github/ISSUE_TEMPLATE/Support_question.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
name: 🤗 Support Question
33
about: If you have a question about configuration, usage, etc. 💬
4-
54
---
65

76
## Support Question

.github/workflows/s3-sync.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ jobs:
3737
- name: Sync calm/getting-started folder to S3
3838
run: |
3939
aws s3 sync calm/getting-started s3://${{ vars.AWS_S3_BUCKET }}/getting-started --delete
40+
- name: Sync calm/interfaces folder to S3
41+
run: |
42+
aws s3 sync calm/interfaces s3://${{ vars.AWS_S3_BUCKET }}/interfaces --delete
43+
- name: Sync calm/controls folder to S3
44+
run: |
45+
aws s3 sync calm/controls s3://${{ vars.AWS_S3_BUCKET }}/controls --delete

.github/workflows/semgrep-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
2323
container:
24-
image: semgrep/semgrep@sha256:4372a1de903521f9f10f877b6caf15d150d17e1ca592582682c8d02b77cbd4f6
24+
image: semgrep/semgrep@sha256:e2a7ca874b5ef7dd47b3f613a429bc75050e6a1abfb2b42496d7ce2414d286cb
2525
if: (github.actor != 'dependabot[bot]')
2626
steps:
2727
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5

calm-plugins/vscode/media/preview.css

Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ body {
8585
#docify-content, #validation-content {
8686
overflow: auto;
8787
flex: 1 1 auto;
88-
padding: 6px;
88+
padding: 6px; /* Remove padding to allow diagram containers full width */
8989
background: transparent;
9090
}
9191

@@ -277,4 +277,95 @@ body {
277277
overflow: hidden;
278278
}
279279

280+
/* Diagram zoom and pan controls */
281+
.diagram-controls {
282+
position: absolute;
283+
top: 16px;
284+
right: 16px;
285+
z-index: 1000;
286+
display: flex;
287+
gap: 4px;
288+
background: var(--vscode-editor-background, #fff);
289+
border: 1px solid var(--vscode-editorWidget-border, #ddd);
290+
border-radius: 6px;
291+
padding: 4px;
292+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
293+
}
294+
295+
.diagram-control-btn {
296+
appearance: none;
297+
background-color: var(--vscode-button-background);
298+
color: var(--vscode-button-foreground);
299+
border: 1px solid var(--vscode-button-border, transparent);
300+
border-radius: 4px;
301+
padding: 6px 10px;
302+
font-size: 14px;
303+
line-height: 1;
304+
cursor: pointer;
305+
min-width: 32px;
306+
display: flex;
307+
align-items: center;
308+
justify-content: center;
309+
transition: background-color 0.2s;
310+
}
311+
312+
.diagram-control-btn:hover {
313+
background-color: var(--vscode-button-hoverBackground);
314+
}
315+
316+
.diagram-control-btn:focus-visible {
317+
outline: 1px solid var(--vscode-focusBorder);
318+
outline-offset: 2px;
319+
}
320+
321+
.diagram-control-btn:active {
322+
transform: translateY(1px);
323+
}
324+
325+
.diagram-control-btn:disabled {
326+
opacity: 0.5;
327+
cursor: not-allowed;
328+
}
329+
330+
/* Mermaid diagram container styling */
331+
.mermaid-diagram-container {
332+
position: relative;
333+
width: 100%;
334+
height: 600px;
335+
margin: 16px 0;
336+
border: 1px solid var(--vscode-editorWidget-border, #ddd);
337+
border-radius: 6px;
338+
background: var(--vscode-editor-background, #fff);
339+
overflow: hidden;
340+
}
341+
342+
.mermaid-diagram-container svg {
343+
display: block;
344+
}
345+
346+
/* Clickable nodes and edges in Mermaid diagrams */
347+
.clickable-node,
348+
.clickable-edge {
349+
cursor: pointer !important;
350+
transition: opacity 0.2s ease;
351+
}
352+
353+
.clickable-node:hover {
354+
opacity: 0.7;
355+
}
356+
357+
.clickable-edge:hover {
358+
opacity: 0.8;
359+
}
360+
361+
/* Back button styles */
362+
#back-button:hover {
363+
background: var(--vscode-button-secondaryHoverBackground);
364+
opacity: 0.9;
365+
}
366+
367+
#back-button:active {
368+
transform: translateY(1px);
369+
}
370+
280371
/* End of styles */

calm-plugins/vscode/media/preview.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
<button class="tab-button" role="tab" data-target="model-panel">Model</button>
3838
</div>
3939
<div style="display:flex;align-items:center;gap:12px;">
40+
<button id="back-button" style="padding:4px 12px;border:1px solid var(--vscode-button-border);background:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);border-radius:2px;font-size:12px;cursor:pointer;" title="Clear selection and show full architecture">
41+
🏠 Home
42+
</button>
4043
<div id="show-labels-control" style="display:none;align-items:center;gap:6px;font-size:12px;">
4144
<input type="checkbox" id="show-labels-checkbox" checked>
4245
<label for="show-labels-checkbox" style="color:var(--vscode-editor-foreground);user-select:none;cursor:pointer;">Show Labels</label>

calm-plugins/vscode/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "calm-vscode-plugin",
33
"displayName": "CALM Preview & Tools",
44
"description": "Live-visualize CALM architecture models, validate, and generate docs.",
5-
"version": "0.0.6",
5+
"version": "0.0.8",
66
"publisher": "FINOS",
77
"homepage": "https://calm.finos.org",
88
"repository": {
@@ -141,9 +141,10 @@
141141
"vscode:prepublish": "npm run build"
142142
},
143143
"devDependencies": {
144+
"@types/lodash": "^4.17.16",
144145
"@types/markdown-it": "^14.1.2",
145146
"@types/node": "^22.0.0",
146-
"@types/lodash": "^4.17.16",
147+
"@types/svg-pan-zoom": "^3.3.0",
147148
"@types/vscode": "^1.88.0",
148149
"@typescript-eslint/eslint-plugin": "^8.29.1",
149150
"@typescript-eslint/parser": "^8.29.1",
@@ -162,6 +163,7 @@
162163
"lodash": "^4.17.21",
163164
"markdown-it": "^13.0.1",
164165
"mermaid": "^10.4.0",
166+
"svg-pan-zoom": "^3.6.2",
165167
"yaml": "^2.5.1",
166168
"zustand": "^5.0.8"
167169
}

0 commit comments

Comments
 (0)