Learn: Back to skills and the Quick skill guide card run learn.skills

learn.skills {} shows the Learn panel on its Skills tab with the list of
skills, with no skill and no tutorial open, and returns what learn.list
returns. Back to skills after a skill's last tutorial and the Quick skill
guide card on the For you tab now run it, so the control channel and MCP
can reach the same view.

- The command is listed in both UI command catalogs, and its label has a
  row in every catalog.
- Docs: docs/mcp.md, docs/target-app-parity.md, docs/ui-parity.md.
This commit is contained in:
dotCooCoo committed 2026-11-13 04:34:35 -08:00
1 parent 3792561e1a
commit d747f5b365
34 files changed
+106 -16

No files matched your search

+6
View File
@@ -646,6 +646,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{} the Learn panel's skills in the order its Skills tab lists them: {skills: [{id, title, tutorials: [{id, title, steps: number of steps}]}]}",
),
(
"learn.skills",
"Back to Skills",
"",
"{} show the Learn panel on its Skills tab with the list of skills, with no skill and no tutorial open, as Back to skills after a skill's last tutorial and the Quick skill guide card do; returns what learn.list returns",
),
(
"learn.show",
"Show Tutorial",
+1
View File
@@ -6752,6 +6752,7 @@ breakText Glyphs Глифи
Open Tutorial Sample Отваряне на примерния файл на урока
Finish Tutorial Завършване на урок
Next Tutorial Следващ урок
Back to Skills Обратно към уменията
@msg tutorial `{id}` has no practice sample урокът `{id}` няма примерен файл за упражнение
@msg open the practice sample of `{id}` first (see learn.openSample) първо отворете примерния файл за упражнение на `{id}` (вижте learn.openSample)
@msg finish `{id}` first (see learn.finish) първо завършете `{id}` (вижте learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -6806,6 +6806,7 @@ shape Open Otvoren
Open Tutorial Sample Otvori uzorak tutorijala
Finish Tutorial Završi tutorijal
Next Tutorial Sljedeći tutorijal
Back to Skills Nazad na vještine
@msg tutorial `{id}` has no practice sample tutorijal `{id}` nema uzorak za vježbu
@msg open the practice sample of `{id}` first (see learn.openSample) prvo otvorite uzorak za vježbu tutorijala `{id}` (vidi learn.openSample)
@msg finish `{id}` first (see learn.finish) prvo završite `{id}` (vidi learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7329,6 +7329,7 @@ breakText Glyphs Glifs
Open Tutorial Sample Obre la mostra del tutorial
Finish Tutorial Acaba el tutorial
Next Tutorial Tutorial següent
Back to Skills Torna a les habilitats
@msg tutorial `{id}` has no practice sample el tutorial `{id}` no té cap mostra de pràctica
@msg open the practice sample of `{id}` first (see learn.openSample) obriu primer la mostra de pràctica de `{id}` (vegeu learn.openSample)
@msg finish `{id}` first (see learn.finish) acabeu primer `{id}` (vegeu learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7348,6 +7348,7 @@ breakText Glyphs Glyfy
Open Tutorial Sample Otevřít ukázku výukového kurzu
Finish Tutorial Dokončit výukový kurz
Next Tutorial Další výukový kurz
Back to Skills Zpět na dovednosti
@msg tutorial `{id}` has no practice sample výukový kurz `{id}` nemá cvičnou ukázku
@msg open the practice sample of `{id}` first (see learn.openSample) nejprve otevřete cvičnou ukázku kurzu `{id}` (viz learn.openSample)
@msg finish `{id}` first (see learn.finish) nejprve dokončete `{id}` (viz learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -6768,6 +6768,7 @@ breakText Glyphs Glyffer
Open Tutorial Sample Åbn eksempel til vejledning
Finish Tutorial Afslut vejledning
Next Tutorial Næste vejledning
Back to Skills Tilbage til færdigheder
@msg tutorial `{id}` has no practice sample vejledningen `{id}` har intet øvelseseksempel
@msg open the practice sample of `{id}` first (see learn.openSample) åbn først øvelseseksemplet til `{id}` (se learn.openSample)
@msg finish `{id}` first (see learn.finish) afslut først `{id}` (se learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -6943,6 +6943,7 @@ breakText Glyphs Glyphen
Open Tutorial Sample Übungsdatei des Lernprogramms öffnen
Finish Tutorial Lernprogramm abschließen
Next Tutorial Nächstes Lernprogramm
Back to Skills Zurück zu den Fertigkeiten
@msg tutorial `{id}` has no practice sample das Lernprogramm `{id}` hat keine Übungsdatei
@msg open the practice sample of `{id}` first (see learn.openSample) öffnen Sie zuerst die Übungsdatei von `{id}` (siehe learn.openSample)
@msg finish `{id}` first (see learn.finish) schließen Sie zuerst `{id}` ab (siehe learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7300,6 +7300,7 @@ breakText Glyphs Γλύφοι
Open Tutorial Sample Άνοιγμα δείγματος οδηγού εκμάθησης
Finish Tutorial Ολοκλήρωση οδηγού εκμάθησης
Next Tutorial Επόμενος οδηγός εκμάθησης
Back to Skills Πίσω στις δεξιότητες
@msg tutorial `{id}` has no practice sample ο οδηγός εκμάθησης `{id}` δεν έχει δείγμα εξάσκησης
@msg open the practice sample of `{id}` first (see learn.openSample) ανοίξτε πρώτα το δείγμα εξάσκησης του `{id}` (δείτε learn.openSample)
@msg finish `{id}` first (see learn.finish) ολοκληρώστε πρώτα το `{id}` (δείτε learn.finish)
Can't render this file because it is too large.
+1
View File
@@ -7291,6 +7291,7 @@ breakText Glyphs Glifos
Open Tutorial Sample Abrir muestra del tutorial
Finish Tutorial Terminar tutorial
Next Tutorial Tutorial siguiente
Back to Skills Volver a las habilidades
@msg tutorial `{id}` has no practice sample el tutorial `{id}` no tiene muestra de práctica
@msg open the practice sample of `{id}` first (see learn.openSample) abre primero la muestra de práctica de `{id}` (consulta learn.openSample)
@msg finish `{id}` first (see learn.finish) termina primero `{id}` (consulta learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7383,6 +7383,7 @@ breakText Glyphs Merkit
Open Tutorial Sample Avaa opetusohjelman harjoitustiedosto
Finish Tutorial Viimeistele opetusohjelma
Next Tutorial Seuraava opetusohjelma
Back to Skills Takaisin taitoihin
@msg tutorial `{id}` has no practice sample opetusohjelmalla `{id}` ei ole harjoitustiedostoa
@msg open the practice sample of `{id}` first (see learn.openSample) avaa ensin opetusohjelman `{id}` harjoitustiedosto (ks. learn.openSample)
@msg finish `{id}` first (see learn.finish) viimeistele ensin `{id}` (ks. learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7343,6 +7343,7 @@ breakText Glyphs Glyphes
Open Tutorial Sample Ouvrir le fichier d’exercice du tutoriel
Finish Tutorial Terminer le tutoriel
Next Tutorial Tutoriel suivant
Back to Skills Retour aux compétences
@msg tutorial `{id}` has no practice sample le tutoriel `{id}` n’a pas de fichier d’exercice
@msg open the practice sample of `{id}` first (see learn.openSample) ouvrez d’abord le fichier d’exercice de `{id}` (voir learn.openSample)
@msg finish `{id}` first (see learn.finish) terminez d’abord `{id}` (voir learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -8741,6 +8741,7 @@ theme Appearance अपीयरेंस
Open Tutorial Sample ट्यूटोरियल का नमूना खोलें
Finish Tutorial ट्यूटोरियल पूरा करें
Next Tutorial अगला ट्यूटोरियल
Back to Skills कौशल पर वापस जाएँ
@msg tutorial `{id}` has no practice sample ट्यूटोरियल `{id}` का कोई अभ्यास नमूना नहीं है
@msg open the practice sample of `{id}` first (see learn.openSample) पहले `{id}` का अभ्यास नमूना खोलें (learn.openSample देखें)
@msg finish `{id}` first (see learn.finish) पहले `{id}` पूरा करें (learn.finish देखें)
Can't render this file because it is too large.
+1
View File
@@ -7332,6 +7332,7 @@ breakText Glyphs Glifák
Open Tutorial Sample Oktatóanyag mintafájljának megnyitása
Finish Tutorial Oktatóanyag befejezése
Next Tutorial Következő oktatóanyag
Back to Skills Vissza a készségekhez
@msg tutorial `{id}` has no practice sample nincs gyakorló mintafájl ehhez az oktatóanyaghoz: `{id}`
@msg open the practice sample of `{id}` first (see learn.openSample) előbb nyissa meg a gyakorló mintafájlt ehhez: `{id}` (lásd: learn.openSample)
@msg finish `{id}` first (see learn.finish) előbb fejezze be ezt: `{id}` (lásd: learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -6768,6 +6768,7 @@ breakText Glyphs Glif
Open Tutorial Sample Buka contoh tutorial
Finish Tutorial Selesaikan tutorial
Next Tutorial Tutorial berikutnya
Back to Skills Kembali ke keterampilan
@msg tutorial `{id}` has no practice sample tutorial `{id}` tidak memiliki contoh latihan
@msg open the practice sample of `{id}` first (see learn.openSample) buka contoh latihan `{id}` terlebih dahulu (lihat learn.openSample)
@msg finish `{id}` first (see learn.finish) selesaikan `{id}` terlebih dahulu (lihat learn.finish)
Can't render this file because it contains an unexpected character in line 2418 and column 5.
+1
View File
@@ -6977,6 +6977,7 @@ breakText Glyphs Glifi
Open Tutorial Sample Apri l’esempio del tutorial
Finish Tutorial Termina il tutorial
Next Tutorial Tutorial successivo
Back to Skills Torna alle competenze
@msg tutorial `{id}` has no practice sample il tutorial `{id}` non ha un esempio di esercitazione
@msg open the practice sample of `{id}` first (see learn.openSample) apri prima l’esempio di esercitazione di `{id}` (vedi learn.openSample)
@msg finish `{id}` first (see learn.finish) termina prima `{id}` (vedi learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7042,6 +7042,7 @@ breakText Glyphs 字形
Open Tutorial Sample チュートリアルのサンプルを開く
Finish Tutorial チュートリアルを完了
Next Tutorial 次のチュートリアル
Back to Skills スキルに戻る
@msg tutorial `{id}` has no practice sample チュートリアル `{id}` には練習用サンプルがありません
@msg open the practice sample of `{id}` first (see learn.openSample) 先に `{id}` の練習用サンプルを開いてください (learn.openSample を参照)
@msg finish `{id}` first (see learn.finish) 先に `{id}` を完了してください (learn.finish を参照)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7462,6 +7462,7 @@ font-script Japanese იაპონური
Open Tutorial Sample გაკვეთილის ნიმუშის გახსნა
Finish Tutorial გაკვეთილის დასრულება
Next Tutorial შემდეგი გაკვეთილი
Back to Skills უნარებზე დაბრუნება
@msg tutorial `{id}` has no practice sample გაკვეთილს `{id}` არ აქვს სავარჯიშო ნიმუში
@msg open the practice sample of `{id}` first (see learn.openSample) ჯერ გახსენით `{id}` გაკვეთილის სავარჯიშო ნიმუში (იხ. learn.openSample)
@msg finish `{id}` first (see learn.finish) ჯერ დაასრულეთ `{id}` (იხ. learn.finish)
Can't render this file because it is too large.
+1
View File
@@ -6938,6 +6938,7 @@ breakText Glyphs 글리프
Open Tutorial Sample 튜토리얼 샘플 열기
Finish Tutorial 튜토리얼 완료
Next Tutorial 다음 튜토리얼
Back to Skills 기술로 돌아가기
@msg tutorial `{id}` has no practice sample 튜토리얼 `{id}`에 연습용 샘플이 없습니다
@msg open the practice sample of `{id}` first (see learn.openSample) 먼저 `{id}`의 연습용 샘플을 여세요(learn.openSample 참조)
@msg finish `{id}` first (see learn.finish) 먼저 `{id}`을(를) 완료하세요(learn.finish 참조)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -6819,6 +6819,7 @@ breakText Glyphs Glyphs
Open Tutorial Sample Oefenbestand van tutorial openen
Finish Tutorial Tutorial voltooien
Next Tutorial Volgende tutorial
Back to Skills Terug naar vaardigheden
@msg tutorial `{id}` has no practice sample tutorial `{id}` heeft geen oefenbestand
@msg open the practice sample of `{id}` first (see learn.openSample) open eerst het oefenbestand van `{id}` (zie learn.openSample)
@msg finish `{id}` first (see learn.finish) voltooi eerst `{id}` (zie learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7204,6 +7204,7 @@ breakText Glyphs Glify
Open Tutorial Sample Otwórz przykład samouczka
Finish Tutorial Zakończ samouczek
Next Tutorial Następny samouczek
Back to Skills Powrót do umiejętności
@msg tutorial `{id}` has no practice sample samouczek `{id}` nie ma przykładu do ćwiczeń
@msg open the practice sample of `{id}` first (see learn.openSample) najpierw otwórz przykład do ćwiczeń samouczka `{id}` (patrz learn.openSample)
@msg finish `{id}` first (see learn.finish) najpierw zakończ `{id}` (patrz learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -7421,6 +7421,7 @@ swatch Yellow Green Verde-amarelado
Open Tutorial Sample Abrir Amostra do Tutorial
Finish Tutorial Concluir Tutorial
Next Tutorial Próximo Tutorial
Back to Skills Voltar às Habilidades
@msg tutorial `{id}` has no practice sample o tutorial `{id}` não tem amostra de prática
@msg open the practice sample of `{id}` first (see learn.openSample) abra primeiro a amostra de prática de `{id}` (veja learn.openSample)
@msg finish `{id}` first (see learn.finish) conclua primeiro `{id}` (veja learn.finish)
Can't render this file because it contains an unexpected character in line 6 and column 47.
+1
View File
@@ -7437,6 +7437,7 @@ shape Open Открытый
Open Tutorial Sample Открыть пример урока
Finish Tutorial Завершить урок
Next Tutorial Следующий урок
Back to Skills Назад к навыкам
@msg tutorial `{id}` has no practice sample у урока `{id}` нет учебного примера
@msg open the practice sample of `{id}` first (see learn.openSample) сначала откройте учебный пример урока `{id}` (см. learn.openSample)
@msg finish `{id}` first (see learn.finish) сначала завершите `{id}` (см. learn.finish)
Can't render this file because it is too large.
+1
View File
@@ -8787,6 +8787,7 @@ digits Hindi Hindi
Open Tutorial Sample Öppna övningsexempel för självstudie
Finish Tutorial Slutför självstudie
Next Tutorial Nästa självstudie
Back to Skills Tillbaka till färdigheter
@msg tutorial `{id}` has no practice sample självstudien `{id}` har inget övningsexempel
@msg open the practice sample of `{id}` first (see learn.openSample) öppna först övningsexemplet för `{id}` (se learn.openSample)
@msg finish `{id}` first (see learn.finish) slutför först `{id}` (se learn.finish)
Can't render this file because it is too large.
+1
View File
@@ -7304,6 +7304,7 @@ breakText Glyphs Glifler
Open Tutorial Sample Öğretici Örneğini Aç
Finish Tutorial Öğreticiyi Bitir
Next Tutorial Sonraki Öğretici
Back to Skills Becerilere Dön
@msg tutorial `{id}` has no practice sample `{id}` öğreticisinin alıştırma örneği yok
@msg open the practice sample of `{id}` first (see learn.openSample) önce `{id}` öğreticisinin alıştırma örneğini açın (bkz. learn.openSample)
@msg finish `{id}` first (see learn.finish) önce `{id}` öğreticisini bitirin (bkz. learn.finish)
Can't render this file because it contains an unexpected character in line 5 and column 25.
+1
View File
@@ -6957,6 +6957,7 @@ breakText Glyphs Гліфи
Open Tutorial Sample Відкрити приклад уроку
Finish Tutorial Завершити урок
Next Tutorial Наступний урок
Back to Skills Назад до навичок
@msg tutorial `{id}` has no practice sample урок `{id}` не має навчального прикладу
@msg open the practice sample of `{id}` first (see learn.openSample) спочатку відкрийте навчальний приклад уроку `{id}` (див. learn.openSample)
@msg finish `{id}` first (see learn.finish) спочатку завершіть `{id}` (див. learn.finish)
Can't render this file because it is too large.
+1
View File
@@ -6958,6 +6958,7 @@ breakText Glyphs Glyph
Open Tutorial Sample Mở tệp mẫu của hướng dẫn
Finish Tutorial Hoàn tất hướng dẫn
Next Tutorial Hướng dẫn tiếp theo
Back to Skills Quay lại kỹ năng
@msg tutorial `{id}` has no practice sample hướng dẫn `{id}` không có tệp mẫu thực hành
@msg open the practice sample of `{id}` first (see learn.openSample) hãy mở tệp mẫu thực hành của `{id}` trước (xem learn.openSample)
@msg finish `{id}` first (see learn.finish) hãy hoàn tất `{id}` trước (xem learn.finish)
Can't render this file because it contains an unexpected character in line 204 and column 5.
+1
View File
@@ -7186,6 +7186,7 @@ breakText Glyphs 字形
Open Tutorial Sample 打开教程示例
Finish Tutorial 完成教程
Next Tutorial 下一个教程
Back to Skills 返回技能
@msg tutorial `{id}` has no practice sample 教程 `{id}` 没有练习示例
@msg open the practice sample of `{id}` first (see learn.openSample) 请先打开 `{id}` 的练习示例 (请参阅 learn.openSample)
@msg finish `{id}` first (see learn.finish) 请先完成 `{id}` (请参阅 learn.finish)
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -6992,6 +6992,7 @@ breakText Glyphs 字符
Open Tutorial Sample 開啟教學課程範例
Finish Tutorial 完成教學課程
Next Tutorial 下一個教學課程
Back to Skills 返回技能
@msg tutorial `{id}` has no practice sample 教學課程 `{id}` 沒有練習範例
@msg open the practice sample of `{id}` first (see learn.openSample) 請先開啟 `{id}` 的練習範例 (請參閱 learn.openSample)
@msg finish `{id}` first (see learn.finish) 請先完成 `{id}` (請參閱 learn.finish)
Can't render this file because it contains an unexpected character in line 6 and column 47.
+6
View File
@@ -647,6 +647,12 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"",
"{} the Learn panel's skills in the order its Skills tab lists them: {skills: [{id, title, tutorials: [{id, title, steps: number of steps}]}]}",
),
(
"learn.skills",
"Back to Skills",
"",
"{} show the Learn panel on its Skills tab with the list of skills, with no skill and no tutorial open, as Back to skills after a skill's last tutorial and the Quick skill guide card do; returns what learn.list returns",
),
(
"learn.show",
"Show Tutorial",
+26 -13
View File
@@ -5,9 +5,10 @@
//! tutorial previews its numbered steps. A tool's name in a step is a link that shows where the tool
//! is ([`locate`]). Back goes up one level. Under the steps, View more opens the tutorial's practice
//! sample as a new untitled document; Finish tutorial then marks it finished, and Next Up shows the
//! next tutorial in the same skill. `learn.list` lists the tutorials, `learn.show` opens one,
//! `learn.locateTool` shows where a tool is, `learn.openSample`, `learn.finish` and `learn.next` run
//! the three practice controls, and `window.learn` shows or hides the panel.
//! next tutorial in the same skill. `learn.list` lists the tutorials, `learn.skills` shows the list
//! of skills, `learn.show` opens one tutorial, `learn.locateTool` shows where a tool is,
//! `learn.openSample`, `learn.finish` and `learn.next` run the three practice controls, and
//! `window.learn` shows or hides the panel.
pub mod catalog;
pub mod locate;
@@ -87,8 +88,10 @@ fn for_you(app: &mut VectorcraftApp, ui: &mut Ui) {
});
let resp = ui.interact(card.response.rect, ui.scope_id().with("quick-skill-guide"), Sense::click());
resp.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, ui.is_enabled(), tl!("Quick skill guide")));
if resp.clicked() {
app.ui.learn = View { tab: Tab::Skills, skill: None, tutorial: None };
if resp.clicked()
&& let Err(e) = app.run("learn.skills", json!({}))
{
app.status(e);
}
}
@@ -182,15 +185,16 @@ fn tool_link(ui: &mut Ui, t: &Tokens, name: &str) -> egui::Response {
fn practice(app: &mut VectorcraftApp, ui: &mut Ui, tutorial: &'static catalog::Tutorial) {
let t = Tokens::get(ui.ctx());
let id = tutorial.id;
let params = json!({ "tutorial": id });
let mut run = None;
ui.add_space(6.0);
ui.horizontal_wrapped(|ui| {
if ui.button(tl!("View more")).clicked() {
run = Some("learn.openSample");
run = Some(("learn.openSample", params.clone()));
}
let done = &app.ui.learn_practice;
if done.opened.contains(&id) && !done.finished.contains(&id) && ui.button(tl!("Finish tutorial")).clicked() {
run = Some("learn.finish");
run = Some(("learn.finish", params.clone()));
}
});
if app.ui.learn_practice.finished.contains(&id) {
@@ -199,7 +203,7 @@ fn practice(app: &mut VectorcraftApp, ui: &mut Ui, tutorial: &'static catalog::T
Some(next) => {
ui.horizontal_wrapped(|ui| {
if ui.button(tl!("Next Up")).clicked() {
run = Some("learn.next");
run = Some(("learn.next", params.clone()));
}
ui.add(egui::Label::new(egui::RichText::new(next.title).color(t.text)).wrap());
});
@@ -207,13 +211,13 @@ fn practice(app: &mut VectorcraftApp, ui: &mut Ui, tutorial: &'static catalog::T
None => {
ui.add(egui::Label::new(egui::RichText::new(tl!("You finished the last tutorial in this skill.")).color(t.text_dim)).wrap());
if ui.button(tl!("Back to skills")).clicked() {
app.ui.learn = View { tab: Tab::Skills, skill: None, tutorial: None };
run = Some(("learn.skills", json!({})));
}
}
}
}
if let Some(cmd) = run
&& let Err(e) = app.run(cmd, json!({ "tutorial": id }))
if let Some((cmd, params)) = run
&& let Err(e) = app.run(cmd, params)
{
app.status(e);
}
@@ -247,12 +251,13 @@ fn row(ui: &mut Ui, title: &str, tutorials: Option<usize>) -> egui::Response {
resp.on_hover_cursor(egui::CursorIcon::PointingHand)
}
/// The Learn panel's UI commands: `window.learn`, `learn.list`, `learn.show`, `learn.locateTool`,
/// `learn.openSample`, `learn.finish` and `learn.next`.
/// The Learn panel's UI commands: `window.learn`, `learn.list`, `learn.skills`, `learn.show`,
/// `learn.locateTool`, `learn.openSample`, `learn.finish` and `learn.next`.
pub(crate) fn command(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<Result<Value, String>> {
Some(match id {
"window.learn" => toggle(app, p),
"learn.list" => Ok(list()),
"learn.skills" => skills_list(app),
"learn.show" => open(app, p),
"learn.locateTool" => locate::locate_tool(app, p),
"learn.openSample" => open_sample(app, p),
@@ -291,6 +296,14 @@ fn list() -> Value {
json!({ "skills": skills.collect::<Vec<_>>() })
}
/// `learn.skills`: Back to skills, and the Quick skill guide card. Show the panel on the Skills tab
/// with the list of skills, with no skill and no tutorial open → what `learn.list` answers.
fn skills_list(app: &mut VectorcraftApp) -> Result<Value, String> {
crate::panel_docking::reveal_panel(app, ID)?;
app.ui.learn = View { tab: Tab::Skills, skill: None, tutorial: None };
Ok(list())
}
/// `learn.show {tutorial}`: show the panel on the Skills tab with that tutorial's steps → the
/// tutorial. A missing or unknown id is an error and changes nothing.
fn open(app: &mut VectorcraftApp, p: &Value) -> Result<Value, String> {
+35
View File
@@ -421,6 +421,41 @@ fn learn_finish_and_learn_next_follow_the_practice() {
assert_eq!(app.ui.learn, View { tab: Tab::Skills, skill: Some("color"), tutorial: Some("copy-colors") });
}
/// `learn.skills` shows the panel on the Skills tab with the list of skills and answers what
/// `learn.list` answers. Back to skills and the Quick skill guide card run it: each one also shows
/// a panel that was hidden, as the command does.
#[test]
fn learn_skills_shows_the_list_of_skills() {
let skills = View { tab: Tab::Skills, skill: None, tutorial: None };
assert!(crate::menus::UI_COMMANDS.iter().any(|c| c.0 == "learn.skills"), "learn.skills is in the UI command catalog");
let mut app = app();
app.run("learn.show", json!({"tutorial": "gradient"})).unwrap();
app.run("window.learn", json!({"show": false})).unwrap();
assert!(!shown(&app));
let list = app.run("learn.list", json!({})).unwrap();
assert_eq!(app.run("learn.skills", json!({})).unwrap(), list);
assert_eq!(app.ui.learn, skills);
assert!(shown(&app));
// Back to skills, after a skill's last tutorial.
let mut app = self::app();
let ctx = context();
app.run("learn.openSample", json!({"tutorial": "outline-type"})).unwrap();
app.run("learn.finish", json!({"tutorial": "outline-type"})).unwrap();
assert!(!shown(&app));
click(&mut app, &ctx, "Back to skills", show);
assert_eq!(app.ui.learn, skills);
assert!(shown(&app), "Back to skills runs learn.skills");
// The Quick skill guide card on the For you tab.
let mut app = self::app();
let ctx = context();
assert!(!shown(&app));
click(&mut app, &ctx, "Quick skill guide", show);
assert_eq!(app.ui.learn, skills);
assert!(shown(&app), "the Quick skill guide card runs learn.skills");
}
/// The practice commands reject a missing, mistyped or unknown tutorial id and change nothing.
#[test]
fn the_practice_commands_reject_a_missing_or_unknown_tutorial() {
+4 -1
View File
@@ -2683,7 +2683,9 @@ toggles it (`show` omitted or null), and answers whether it shows; Window › Le
The panel counts as hidden while the dock is hidden or a full screen mode hides the panels. Showing it shows a hidden
dock; in a full screen mode it makes Learn the front panel, which shows when the mode ends, and answers false. Any
other value of `show` is an error and changes nothing. `learn.list {}` → `{skills: [{id, title, tutorials: [{id, title, steps}]}]}`, in the order the Skills tab
lists them, where `steps` is the number of steps. `learn.show {tutorial}` shows the panel on its Skills tab with that
lists them, where `steps` is the number of steps. `learn.skills {}` shows the panel on its Skills tab with the list of
skills, with no skill and no tutorial open, as the Quick skill guide card and Back to skills do, and answers what
`learn.list` answers. `learn.show {tutorial}` shows the panel on its Skills tab with that
tutorial's steps → `{skill, tutorial, title, steps: [text]}`. A missing, non-string or unknown `tutorial` is an error
and changes nothing.
@@ -2708,6 +2710,7 @@ is an error, and an error changes nothing. Behavior reference:
{"name":"invoke_menu","arguments":{"command":"learn.openSample","params":{"tutorial":"pen-paths"}}}
{"name":"invoke_menu","arguments":{"command":"learn.finish","params":{"tutorial":"pen-paths"}}}
{"name":"invoke_menu","arguments":{"command":"learn.next","params":{"tutorial":"pen-paths"}}}
{"name":"invoke_menu","arguments":{"command":"learn.skills","params":{}}}
```
A step that names a tool shows the tool's name as a blue link. A click on it, or Enter or Space while it has the
+1 -1
View File
@@ -864,7 +864,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- Native macOS menu bar, vector tool cursors, a ⌘K command palette, middle-button panning with any tool. Native menus explicitly end tracking on command selection, outside window presses and Escape; menu updates wait until tracking ends, and a dismissing press never starts a canvas gesture (M14.8).
- The Learn panel (Window › Learn, or Explore tutorials beside the search icon on the app bar) has a For you tab with a Get started section and a Quick skill guide card, and a Skills tab that lists VectorCraft's own skills with their tutorial counts and empty progress rings; a skill lists its tutorials, a tutorial shows its numbered steps, and Back goes up a level; `learn.list` and `learn.show {tutorial}` script it ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html); `panels::learn::tests`).
- A tool's name in a Learn tutorial step is a blue link that shows where the tool is without choosing it (`learn.locateTool {tool}`): its toolbar button is marked, a collapsed group's flyout opens with the tool's row marked, a torn-off strip comes to the front, and a tool no shown toolbar holds is marked in the All Tools drawer. The mark, its 3 seconds and the hidden-toolbar cases are VectorCraft's own rules ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html); `panels::learn::tests`, the `a_learn_link_*` tests in `toolbar::tests`).
- Under a tutorial's steps, View more opens the tutorial's own practice sample as a new untitled document, and once the tutorial is finished, Next Up moves to the next tutorial in the same skill, as the help page describes ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html)). The samples are VectorCraft's own drawings. A Finish tutorial button that shows once the sample is open, the untitled copy, Back to skills in place of Next Up after a skill's last tutorial, and Next Up showing the next tutorial without opening its sample are VectorCraft's own rules. `learn.openSample`, `learn.finish` and `learn.next` script them. Not done: the help page's short video, and progress kept between sessions and shown in the skill rings. Regression tests: `view_more_opens_the_tutorial_s_sample_as_a_new_untitled_document`, `finishing_a_tutorial_offers_next_up_in_its_skill`, `the_practice_controls_work_from_the_keyboard`, `the_last_tutorial_of_a_skill_offers_back_to_skills`, `learn_finish_and_learn_next_follow_the_practice`, `the_practice_commands_reject_a_missing_or_unknown_tutorial`, `every_tutorial_has_its_own_readable_sample` and `the_next_tutorial_is_the_next_one_in_the_same_skill` in `crates/ui-egui/src/panels/learn/tests.rs`.
- Under a tutorial's steps, View more opens the tutorial's own practice sample as a new untitled document, and once the tutorial is finished, Next Up moves to the next tutorial in the same skill, as the help page describes ([the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html)). The samples are VectorCraft's own drawings. A Finish tutorial button that shows once the sample is open, the untitled copy, Back to skills in place of Next Up after a skill's last tutorial, and Next Up showing the next tutorial without opening its sample are VectorCraft's own rules. `learn.openSample`, `learn.finish`, `learn.next` and `learn.skills` (Back to skills) script them. Not done: the help page's short video, and progress kept between sessions and shown in the skill rings. Regression tests: `view_more_opens_the_tutorial_s_sample_as_a_new_untitled_document`, `finishing_a_tutorial_offers_next_up_in_its_skill`, `the_practice_controls_work_from_the_keyboard`, `the_last_tutorial_of_a_skill_offers_back_to_skills`, `learn_finish_and_learn_next_follow_the_practice`, `learn_skills_shows_the_list_of_skills`, `the_practice_commands_reject_a_missing_or_unknown_tutorial`, `every_tutorial_has_its_own_readable_sample` and `the_next_tutorial_is_the_next_one_in_the_same_skill` in `crates/ui-egui/src/panels/learn/tests.rs`.
- The errors of the blend spine commands (Move Spine Point, Reshape Spine Segment, Add Spine Point and Delete Spine Point) show in the status bar in the interface language: each has a row in every catalog that translates all status and error messages and in Bulgarian (`blend_spine_param_errors_are_translated`).
- The errors of the 3D effects (Extrude & Bevel, Revolve, Inflate, Rotate and their Classic forms) show in the status bar in the interface language: the art a 3D effect cannot build a solid from, invalid light, graphics and surface settings, and the notes for an object that draws no 3D faces or more wireframe edges than the limit. Each has a row in every catalog that translates all status and error messages, and the effect's name and the values in the message are translated or kept as written (`three_d_refusals_are_translated_in_every_complete_catalog`, `three_d_refusals_translate_with_their_values`).
- The errors of the parameter checks that many commands share show in the status bar in the interface language: a value that is not a number where a number goes (`object.move` with `"dx": "60 mm"`, and `object.rotate`, `object.setBounds` and the other commands that call `check_numbers`), a missing number or index, `ids` that are not a list of object ids, an object id that is not a non-negative integer or names no object, and a date that is not Unix seconds. Each has a row in every catalog that translates all status and error messages, and in Bulgarian, Danish, Indonesian and Dutch (`shared_param_check_errors_are_translated`).
+1 -1
View File
@@ -380,7 +380,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
|---|---|---|
| Effect > Warp Options: style previews, orientation choices and percent controls | done | #1760; focused input, mixed-style and history checks passed; original captures reviewed. No geometry or optional Properties changes. |
| Command search: Up and Down move through the results, Enter runs the highlighted one | done | #1798 (#1757) |
| Learn panel: Window › Learn and Explore tutorials on the app bar open it; For you holds a Quick skill guide card, Skills lists VectorCraft's own skills with tutorial counts and empty progress rings, a tutorial shows its numbered steps, Back goes up a level; a tool's name in a step is a link that marks the tool where the toolbars show it (its button, its group's flyout, a torn-off strip, a toolbar made with New Toolbar or the All Tools drawer) without choosing it; View more opens the tutorial's practice sample as a new untitled document, Finish tutorial then marks it finished, and Next Up shows the next tutorial in the same skill (no video) | done | [the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html); `learn.list`, `learn.show`, `learn.locateTool`, `learn.openSample`, `learn.finish`, `learn.next`; the mark's look and 3-second lifetime are VectorCraft's own rules; `panels::learn::tests`, `toolbar::tests` |
| Learn panel: Window › Learn and Explore tutorials on the app bar open it; For you holds a Quick skill guide card, Skills lists VectorCraft's own skills with tutorial counts and empty progress rings, a tutorial shows its numbered steps, Back goes up a level; a tool's name in a step is a link that marks the tool where the toolbars show it (its button, its group's flyout, a torn-off strip, a toolbar made with New Toolbar or the All Tools drawer) without choosing it; View more opens the tutorial's practice sample as a new untitled document, Finish tutorial then marks it finished, and Next Up shows the next tutorial in the same skill (no video) | done | [the help page](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html); `learn.list`, `learn.skills`, `learn.show`, `learn.locateTool`, `learn.openSample`, `learn.finish`, `learn.next`; the mark's look and 3-second lifetime are VectorCraft's own rules; `panels::learn::tests`, `toolbar::tests` |
| Pathfinder panel: a group selected alone counts its nested shapes, so an expanded stroked object keeps the Shape Modes enabled | done | #1642 (#1635) |
| Selected Grid Repeat shows row, column and corner handles and spacing sliders; bounding-box handles take priority where they meet | done | #2691, `tools/src/repeat_grid.rs`; [public behavior reference](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/create-and-edit-patterns/set-grid-repeat-options.html); drags preview and commit `object.repeat.options` as one undo step, Escape cancels; Radial Repeat has no handles yet |
| Grid Repeat Options (Object › Repeat › Options…) has a Preview checkbox: the repeat on the canvas follows the fields while the dialog is open, Cancel puts the original back without a history step, OK keeps the previewed values as one undo step | done | #2651; [public behavior reference](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/create-and-edit-patterns/set-grid-repeat-options.html) lists the Preview option for the grid options only, so Radial and Mirror Repeat Options have none; `dialogs/command.rs` tests |