Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat(study): activate study navigation, locale keys, and feature flags (Ticket 04)

IGECTbd66532d7871
diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.json
index 83f8d789..a37472c0 100644
--- a/src/lib/i18n/el.json
+++ b/src/lib/i18n/el.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "Μελέτη"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json
index bdf0f997..727c7506 100644
--- a/src/lib/i18n/en.json
+++ b/src/lib/i18n/en.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "Study"
},
"command_palette": {
"open": "Search",
@@ -8383,8 +8384,7 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
- }
-,
+ },
"open_nami": {
"page_title": "Open Nami - Social Media Downloader",
"sections_aria": "Open Nami sections",
@@ -8460,4 +8460,5 @@
"cookies_hint": "Cookies are only required for downloading Stories and Highlights.",
"saving": "Saving...",
"save_settings": "Save Settings"
- }}
+ }
+}
diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.json
index 31c8ed1c..f80a6e25 100644
--- a/src/lib/i18n/es.json
+++ b/src/lib/i18n/es.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "Estudio"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/fa.json b/src/lib/i18n/fa.json
index 8085f2f6..809126a7 100644
--- a/src/lib/i18n/fa.json
+++ b/src/lib/i18n/fa.json
@@ -482,7 +482,8 @@
"section_plugins": "افزونه‌ها",
"expand_plugins": "باز کردن افزونه‌ها",
"collapse_plugins": "بستن افزونه‌ها",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "مطالعه"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.json
index f516ee98..f39c8141 100644
--- a/src/lib/i18n/fr.json
+++ b/src/lib/i18n/fr.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "Étude"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.json
index aedcbb4a..37354282 100644
--- a/src/lib/i18n/it.json
+++ b/src/lib/i18n/it.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "Studio"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.json
index 08251555..56c969ec 100644
--- a/src/lib/i18n/ja.json
+++ b/src/lib/i18n/ja.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "学習"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.ts
index 87a04fef..6e82b9e1 100644
--- a/src/lib/i18n/keys.ts
+++ b/src/lib/i18n/keys.ts
@@ -971,6 +971,7 @@ export type TranslationKeys =
| 'nav.section_plugins'
| 'nav.section_primary'
| 'nav.settings'
+ | 'nav.study'
| 'nav.tools'
| 'notifications.badge_aria'
diff --git a/src/lib/i18n/lo.json b/src/lib/i18n/lo.json
index 73768341..9378ab11 100644
--- a/src/lib/i18n/lo.json
+++ b/src/lib/i18n/lo.json
@@ -482,7 +482,8 @@
"section_plugins": "ປລັກອິນ",
"expand_plugins": "ຂະຫຍາຍປລັກອິນ",
"collapse_plugins": "ຫຍໍ້ປລັກອິນ",
- "tools": "ເຄື່ອງມື"
+ "tools": "ເຄື່ອງມື",
+ "study": "ຮຽນ"
},
"command_palette": {
"open": "ຄົ້ນຫາ",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.json
index 65e8a292..bdd97b20 100644
--- a/src/lib/i18n/pt.json
+++ b/src/lib/i18n/pt.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Ferramentas"
+ "tools": "Ferramentas",
+ "study": "Estudo"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.json
index bb927fe1..f2e23ebf 100644
--- a/src/lib/i18n/ru.json
+++ b/src/lib/i18n/ru.json
@@ -482,7 +482,8 @@
"section_plugins": "Плагины",
"expand_plugins": "Развернуть плагины",
"collapse_plugins": "Свернуть плагины",
- "tools": "Инструменты"
+ "tools": "Инструменты",
+ "study": "Обучение"
},
"command_palette": {
"open": "Поиск",
@@ -8383,8 +8384,7 @@
"speed_unit_kb": "КБ/с",
"speed_unit_mb": "МБ/с",
"decimal_separator": ","
- }
-,
+ },
"open_nami": {
"page_title": "Open Nami — загрузчик из соцсетей",
"sections_aria": "Разделы Open Nami",
@@ -8460,4 +8460,5 @@
"cookies_hint": "Cookies требуются только для скачивания историй и актуального.",
"saving": "Сохранение...",
"save_settings": "Сохранить настройки"
- }}
+ }
+}
diff --git a/src/lib/i18n/zh-TW.json b/src/lib/i18n/zh-TW.json
index 48a6e4c3..5cb01d77 100644
--- a/src/lib/i18n/zh-TW.json
+++ b/src/lib/i18n/zh-TW.json
@@ -482,7 +482,8 @@
"section_plugins": "Plugins",
"expand_plugins": "Expand plugins",
"collapse_plugins": "Collapse plugins",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "學習"
},
"command_palette": {
"open": "Search",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.json
index e9c482c4..f75678b0 100644
--- a/src/lib/i18n/zh.json
+++ b/src/lib/i18n/zh.json
@@ -482,7 +482,8 @@
"section_plugins": "插件",
"expand_plugins": "展开插件",
"collapse_plugins": "收起插件",
- "tools": "Tools"
+ "tools": "Tools",
+ "study": "学习"
},
"command_palette": {
"open": "搜索",
@@ -8459,6 +8460,5 @@
"speed_unit_kb": "KB/s",
"speed_unit_mb": "MB/s",
"decimal_separator": "."
-
}
}
diff --git a/src/lib/nav-config.test.ts b/src/lib/nav-config.test.ts
index f34ed87e..1bb2e8f5 100644
--- a/src/lib/nav-config.test.ts
+++ b/src/lib/nav-config.test.ts
@@ -2,8 +2,16 @@ import { describe, it, expect } from "vitest";
import { CORE_NAV_ITEMS } from "./nav-config";
describe("CORE_NAV_ITEMS", () => {
- it("has the expected 8 core entries", () => {
- expect(CORE_NAV_ITEMS).toHaveLength(8);
+ it("has the expected 9 core entries", () => {
+ expect(CORE_NAV_ITEMS).toHaveLength(9);
+ });
+
+ it("Study is in primary group with order 26", () => {
+ const study = CORE_NAV_ITEMS.find((i) => i.href === "/study");
+ expect(study?.group).toBe("primary");
+ expect(study?.icon).toBe("study");
+ expect(study?.labelKey).toBe("nav.study");
+ expect(study?.order).toBe(26);
});
it("Open Nami is in primary group with order 28", () => {
diff --git a/src/lib/nav-config.ts b/src/lib/nav-config.ts
index a39160ed..cd24d8e7 100644
--- a/src/lib/nav-config.ts
+++ b/src/lib/nav-config.ts
@@ -14,6 +14,7 @@ export const CORE_NAV_ITEMS: NavItem[] = [
{ href: "/", labelKey: "nav.home", icon: "home", group: "primary", order: 10 },
{ href: "/downloads", labelKey: "nav.downloads", icon: "downloads", group: "primary", badge: "downloads", order: 20 },
{ href: "/omnidisc", labelKey: "nav.omnidisc", icon: "chat", group: "primary", badge: "omnidisc", order: 25 },
+ { href: "/study", labelKey: "nav.study", icon: "study", group: "primary", order: 26 },
{ href: "/tools", labelKey: "nav.tools", icon: "tools", group: "primary", order: 27 },
{ href: "/open-nami", label: "Open Nami", icon: "open-nami", group: "primary", order: 28 },
{ href: "/marketplace", labelKey: "nav.marketplace", icon: "marketplace", group: "app", order: 30 },
diff --git a/src/lib/study-feature-flags.ts b/src/lib/study-feature-flags.ts
index 07f7d35d..44a021bf 100644
--- a/src/lib/study-feature-flags.ts
+++ b/src/lib/study-feature-flags.ts
@@ -1,10 +1,7 @@
export const STUDY_NOTES_ENABLED = false;
export const STUDY_ANKI_ENABLED = false;
-export const STUDY_FOCUS_ENABLED = false;
-export const STUDY_PROGRESS_ENABLED = false;
+export const STUDY_FOCUS_ENABLED = true;
+export const STUDY_PROGRESS_ENABLED = true;
export const STUDY_ACHIEVEMENTS_ENABLED = false;
-export const STUDY_MAINTENANCE_NOTICE = !STUDY_FOCUS_ENABLED
- || !STUDY_PROGRESS_ENABLED
- || !STUDY_ACHIEVEMENTS_ENABLED
- || !STUDY_NOTES_ENABLED;
+export const STUDY_MAINTENANCE_NOTICE = false;