Skip to content

armgit / SOMA

Public Imported from GitHub
0

Desktop app for designing parametric 3D models in CadQuery together with the coding agent of your choice

App: link the video tutorial on YouTube

Kai-Jungsthoefelcc919fdf828a
diff --git a/app/resources/help/code.png b/app/resources/help/code.png
index 19dcb01..8838b4b 100644
Binary files a/app/resources/help/code.png and b/app/resources/help/code.png differ
diff --git a/app/resources/help/export.png b/app/resources/help/export.png
index 7a61382..2f6c28b 100644
Binary files a/app/resources/help/export.png and b/app/resources/help/export.png differ
diff --git a/app/resources/help/history.png b/app/resources/help/history.png
index 81215d4..412f677 100644
Binary files a/app/resources/help/history.png and b/app/resources/help/history.png differ
diff --git a/app/resources/help/markup.png b/app/resources/help/markup.png
index e74b097..9282441 100644
Binary files a/app/resources/help/markup.png and b/app/resources/help/markup.png differ
diff --git a/app/resources/help/start.png b/app/resources/help/start.png
index 69bd35c..2e35945 100644
Binary files a/app/resources/help/start.png and b/app/resources/help/start.png differ
diff --git a/app/resources/skills/soma-app.md b/app/resources/skills/soma-app.md
index 04e60ba..a40c5d5 100644
--- a/app/resources/skills/soma-app.md
+++ b/app/resources/skills/soma-app.md
@@ -47,7 +47,7 @@ The logo at the top left opens the start page.
1. **New model**: starts from a small example (a box with a lid) and opens a terminal in the model folder (Ctrl N). The arrow next to it also offers **From CadQuery script**, which starts from an existing CadQuery script instead (see "CadQuery scripts"), and **Open folder**, which uses SOMA in a folder of yours (see "Your own folder").
2. **Open**: opens a .soma or ZIP file (Ctrl O).
-3. **Tutorial**: a short guided tour of the app with an example model. No agent needed. The cross hides the card.
+3. **Tutorial**: **Watch video** opens the video tutorial on YouTube in your browser (9 min, from installing to export). **Start tutorial** is a short guided tour of the app with an example model, no agent needed. The cross hides the card.
4. **Recent**: models you worked on, the newest first. The field above filters them by name. "Open" marks the model that is open right now, "never saved" one that was never saved as a .soma file. The bin on a card removes the model from this computer, a saved .soma file stays.
5. **Agents**: the agents SOMA found. Any other agent that runs in a terminal works too. You install them yourself, SOMA does not bring one.
6. **Help**: this guide (F1).
@@ -63,7 +63,8 @@ fails, a grey label says so. Settings > About > **Check for new versions** turns
**Start tutorial** opens a new example model called "Tutorial" and walks you through the window in ten steps: starting
the agent, the code, clicking a part, measuring, marking up, parameters, history, saving and export, and help. An orange
frame shows where to look, and you can try everything right away. Back, Skip and Next move through the steps, Esc ends
-the tour. To see it again, click **Start tutorial** at the top of Help. If you leave the example model unchanged, it
+the tour. To see it again, click **Start tutorial** at the top of Help. **Watch video** next to it opens the
+[video tutorial](https://www.youtube.com/watch?v=FJrgMl8ZGKI) on YouTube. If you leave the example model unchanged, it
disappears like any new model you did not change.
## The agent
diff --git a/app/src/renderer/index.html b/app/src/renderer/index.html
index 48c6be3..8663e1a 100644
--- a/app/src/renderer/index.html
+++ b/app/src/renderer/index.html
@@ -560,7 +560,8 @@
<!-- Tutorial (E94): bis zum Kreuz (gespeichert in settings.json). Die Tour führt durch ein Beispielmodell, ohne Agent -->
<section id="start-tour" class="tour-intro" aria-label="Tutorial" hidden>
<span class="ico"><i data-icon="route" data-size="18" data-stroke="1.8"></i></span>
- <div class="ti-text"><b>New to SOMA?</b> <span class="c2">A few minutes with an example model, no agent needed.</span></div>
+ <div class="ti-text"><b>New to SOMA?</b> <span class="c2">A 9-minute video, or a short tour with an example model.</span></div>
+ <button id="btn-tour-video" class="btn sm" title="Video tutorial on YouTube (9 min), opens in your browser"><i data-icon="play" data-size="12" data-stroke="2"></i>Watch video</button>
<button id="btn-tour-start" class="btn sm primary">Start tutorial</button>
<button id="btn-tour-dismiss" class="ibtn" title="Hide this card. Help can start the tutorial at any time." aria-label="Hide the tutorial card"><i data-icon="x" data-size="14" data-stroke="2.2"></i></button>
</section>
@@ -647,6 +648,7 @@
<div id="help" class="st-scrim" hidden>
<div class="st-dlg" role="dialog" aria-modal="true" aria-labelledby="help-title">
<header class="st-hd"><i data-icon="help" data-size="18" data-stroke="1.7"></i><b id="help-title">Help</b><span class="c3 small">How SOMA works. The agent knows this guide too: just ask it.</span><span class="grow"></span>
+ <button id="btn-help-video" class="btn sm" title="Video tutorial on YouTube (9 min), opens in your browser"><i data-icon="play" data-size="12" data-stroke="2"></i>Watch video</button>
<button id="btn-help-tour" class="btn sm acc" title="A short guided tour with an example model"><i data-icon="route" data-size="14" data-stroke="1.9"></i>Start tutorial</button>
<button id="btn-help-close" class="ibtn" aria-label="Close help" title="Close (Escape)"><i data-icon="x" data-size="16" data-stroke="2"></i></button></header>
<div class="st-body">
diff --git a/app/src/renderer/main.ts b/app/src/renderer/main.ts
index 987e402..a4c73bb 100644
--- a/app/src/renderer/main.ts
+++ b/app/src/renderer/main.ts
@@ -2009,6 +2009,11 @@ async function startTutorial(): Promise<void> {
$('btn-tour-start').addEventListener('click', () => void startTutorial());
$('btn-tour-dismiss').addEventListener('click', () => void hideTourCard());
$('btn-help-tour').addEventListener('click', () => void startTutorial());
+// Video-Tutorial auf YouTube: nur ein Link, der im Browser öffnet (kein eingebettetes Video: Netz und Datenschutz)
+const TUTORIAL_VIDEO = 'https://www.youtube.com/watch?v=FJrgMl8ZGKI';
+const openVideo = (): void => { void api.openUrl(TUTORIAL_VIDEO).then((r) => { if (!r.ok) toast(r.error ?? `${TUTORIAL_VIDEO} could not be opened.`, 'error'); }); };
+$('btn-tour-video').addEventListener('click', openVideo);
+$('btn-help-video').addEventListener('click', openVideo);
if (store.get('soma.agentCollapsed') === '1') setAgentCollapsed(true);
// Seitenleiste wie beim letzten Mal, beim ersten Start zu: Die Bauteile stehen im Baum im Viewer (E82)