From d7db034cec42063a7a8b30b6ce305f84fe64d128 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Sun, 22 Dec 2024 11:37:51 +0000 Subject: [PATCH 1/9] Add 'My apps' option to the apps dropdown --- web/app/(commonLayout)/apps/Apps.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index 5269571c210aa2..398e6b140d6ceb 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -76,6 +76,7 @@ const Apps = () => { const anchorRef = useRef(null) const options = [ { value: 'all', text: t('app.types.all'), icon: }, + { value: 'my-apps', text: 'My apps', icon: }, { value: 'chat', text: t('app.types.chatbot'), icon: }, { value: 'agent-chat', text: t('app.types.agent'), icon: }, { value: 'workflow', text: t('app.types.workflow'), icon: }, From e8b95928ae189f11fcfb41d7ca6193a586835282 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Mon, 23 Dec 2024 14:27:12 +0000 Subject: [PATCH 2/9] Add filter to show only apps created by the user --- api/controllers/console/app/app.py | 6 +++--- api/services/app_service.py | 5 ++++- web/app/(commonLayout)/apps/Apps.tsx | 15 ++++++++++++--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py index da72b704c71bd7..79331ec788d675 100644 --- a/api/controllers/console/app/app.py +++ b/api/controllers/console/app/app.py @@ -2,7 +2,7 @@ from typing import cast from flask_login import current_user -from flask_restful import Resource, inputs, marshal, marshal_with, reqparse +from flask_restful import Resource, inputs, marshal, marshal_with, reqparse, inputs from sqlalchemy import select from sqlalchemy.orm import Session from werkzeug.exceptions import BadRequest, Forbidden, abort @@ -55,14 +55,14 @@ def uuid_list(value): location="args", required=False, ) - parser.add_argument("name", type=str, location="args", required=False) + parser.add_argument("isCreatedByMe", type=inputs.boolean, location="args", required=False) parser.add_argument("tag_ids", type=uuid_list, location="args", required=False) args = parser.parse_args() # get app list app_service = AppService() - app_pagination = app_service.get_paginate_apps(current_user.current_tenant_id, args) + app_pagination = app_service.get_paginate_apps(current_user.id, current_user.current_tenant_id, args) if not app_pagination: return {"data": [], "total": 0, "page": 1, "limit": 20, "has_more": False} diff --git a/api/services/app_service.py b/api/services/app_service.py index 8d8ba735ecfa71..8073af2946b302 100644 --- a/api/services/app_service.py +++ b/api/services/app_service.py @@ -26,9 +26,10 @@ class AppService: - def get_paginate_apps(self, tenant_id: str, args: dict) -> Pagination | None: + def get_paginate_apps(self, user_id: str, tenant_id: str, args: dict) -> Pagination | None: """ Get app list with pagination + :param user_id: user id :param tenant_id: tenant id :param args: request args :return: @@ -44,6 +45,8 @@ def get_paginate_apps(self, tenant_id: str, args: dict) -> Pagination | None: elif args["mode"] == "channel": filters.append(App.mode == AppMode.CHANNEL.value) + if args.get("isCreatedByMe", False): + filters.append(App.created_by == user_id) if args.get("name"): name = args["name"][:30] filters.append(App.name.ilike(f"%{name}%")) diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index 398e6b140d6ceb..b3d05e68ff8212 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -25,16 +25,18 @@ import Input from '@/app/components/base/input' import { useStore as useTagStore } from '@/app/components/base/tag-management/store' import TagManagementModal from '@/app/components/base/tag-management' import TagFilter from '@/app/components/base/tag-management/filter' +import CheckboxWithLabel from '@/app/components/datasets/create/website/base/checkbox-with-label' const getKey = ( pageIndex: number, previousPageData: AppListResponse, activeTab: string, + isCreatedByMe: boolean, tags: string[], keywords: string, ) => { if (!pageIndex || previousPageData.has_more) { - const params: any = { url: 'apps', params: { page: pageIndex + 1, limit: 30, name: keywords } } + const params: any = { url: 'apps', params: { page: pageIndex + 1, limit: 30, name: keywords, isCreatedByMe } } if (activeTab !== 'all') params.params.mode = activeTab @@ -58,6 +60,7 @@ const Apps = () => { defaultTab: 'all', }) const { query: { tagIDs = [], keywords = '' }, setQuery } = useAppsQueryState() + const [isCreatedByMe, setIsCreatedByMe] = useState(false) const [tagFilterValue, setTagFilterValue] = useState(tagIDs) const [searchKeywords, setSearchKeywords] = useState(keywords) const setKeywords = useCallback((keywords: string) => { @@ -68,7 +71,7 @@ const Apps = () => { }, [setQuery]) const { data, isLoading, setSize, mutate } = useSWRInfinite( - (pageIndex: number, previousPageData: AppListResponse) => getKey(pageIndex, previousPageData, activeTab, tagIDs, searchKeywords), + (pageIndex: number, previousPageData: AppListResponse) => getKey(pageIndex, previousPageData, activeTab, isCreatedByMe, tagIDs, searchKeywords), fetchAppList, { revalidateFirstPage: true }, ) @@ -76,7 +79,7 @@ const Apps = () => { const anchorRef = useRef(null) const options = [ { value: 'all', text: t('app.types.all'), icon: }, - { value: 'my-apps', text: 'My apps', icon: }, + // { value: 'my-apps', text: 'My apps', icon: }, { value: 'chat', text: t('app.types.chatbot'), icon: }, { value: 'agent-chat', text: t('app.types.agent'), icon: }, { value: 'workflow', text: t('app.types.workflow'), icon: }, @@ -133,6 +136,12 @@ const Apps = () => { options={options} />
+ setIsCreatedByMe(!isCreatedByMe)} + /> Date: Mon, 23 Dec 2024 14:28:21 +0000 Subject: [PATCH 3/9] Remove duplicate import --- api/controllers/console/app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py index 79331ec788d675..5aafbf78d42920 100644 --- a/api/controllers/console/app/app.py +++ b/api/controllers/console/app/app.py @@ -2,7 +2,7 @@ from typing import cast from flask_login import current_user -from flask_restful import Resource, inputs, marshal, marshal_with, reqparse, inputs +from flask_restful import Resource, inputs, marshal, marshal_with, reqparse from sqlalchemy import select from sqlalchemy.orm import Session from werkzeug.exceptions import BadRequest, Forbidden, abort From 03a4dc004ef1516266bd8b32873fec688d67d032 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Mon, 23 Dec 2024 14:40:46 +0000 Subject: [PATCH 4/9] Rename isCreatedByMe to is_created_by_me for consistency --- api/controllers/console/app/app.py | 2 +- api/services/app_service.py | 2 +- web/app/(commonLayout)/apps/Apps.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py index 5aafbf78d42920..02db4d070a67b0 100644 --- a/api/controllers/console/app/app.py +++ b/api/controllers/console/app/app.py @@ -55,7 +55,7 @@ def uuid_list(value): location="args", required=False, ) - parser.add_argument("isCreatedByMe", type=inputs.boolean, location="args", required=False) + parser.add_argument("is_created_by_me", type=inputs.boolean, location="args", required=False) parser.add_argument("tag_ids", type=uuid_list, location="args", required=False) args = parser.parse_args() diff --git a/api/services/app_service.py b/api/services/app_service.py index 8073af2946b302..af9289a1d580f5 100644 --- a/api/services/app_service.py +++ b/api/services/app_service.py @@ -45,7 +45,7 @@ def get_paginate_apps(self, user_id: str, tenant_id: str, args: dict) -> Paginat elif args["mode"] == "channel": filters.append(App.mode == AppMode.CHANNEL.value) - if args.get("isCreatedByMe", False): + if args.get("is_created_by_me", False): filters.append(App.created_by == user_id) if args.get("name"): name = args["name"][:30] diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index b3d05e68ff8212..8806850c9941b9 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -36,7 +36,7 @@ const getKey = ( keywords: string, ) => { if (!pageIndex || previousPageData.has_more) { - const params: any = { url: 'apps', params: { page: pageIndex + 1, limit: 30, name: keywords, isCreatedByMe } } + const params: any = { url: 'apps', params: { page: pageIndex + 1, limit: 30, name: keywords, is_created_by_me: isCreatedByMe } } if (activeTab !== 'all') params.params.mode = activeTab From de105678f12cd242d033636c362b9cf7aaf24259 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Mon, 23 Dec 2024 16:18:19 +0000 Subject: [PATCH 5/9] Add translation for "Show my created apps only" in multiple languages --- web/app/(commonLayout)/apps/Apps.tsx | 2 +- web/i18n/de-DE/app.ts | 1 + web/i18n/en-US/app.ts | 1 + web/i18n/es-ES/app.ts | 1 + web/i18n/fa-IR/app.ts | 1 + web/i18n/fr-FR/app.ts | 1 + web/i18n/hi-IN/app.ts | 1 + web/i18n/it-IT/app.ts | 1 + web/i18n/ja-JP/app.ts | 1 + web/i18n/ko-KR/app.ts | 1 + web/i18n/pl-PL/app.ts | 1 + web/i18n/pt-BR/app.ts | 1 + web/i18n/ro-RO/app.ts | 1 + web/i18n/ru-RU/app.ts | 1 + web/i18n/sl-SI/app.ts | 1 + web/i18n/th-TH/app.ts | 1 + web/i18n/tr-TR/app.ts | 1 + web/i18n/uk-UA/app.ts | 1 + web/i18n/vi-VN/app.ts | 1 + web/i18n/zh-Hans/app.ts | 1 + web/i18n/zh-Hant/app.ts | 1 + 21 files changed, 21 insertions(+), 1 deletion(-) diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index 8806850c9941b9..d21fa37808c60c 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -138,7 +138,7 @@ const Apps = () => {
setIsCreatedByMe(!isCreatedByMe)} /> diff --git a/web/i18n/de-DE/app.ts b/web/i18n/de-DE/app.ts index 69bf0bce72f279..4429db34bc242d 100644 --- a/web/i18n/de-DE/app.ts +++ b/web/i18n/de-DE/app.ts @@ -190,6 +190,7 @@ const translation = { byCategories: 'NACH KATEGORIEN', searchAllTemplate: 'Alle Vorlagen durchsuchen...', }, + showMyCreatedAppsOnly: 'Nur meine erstellten Apps anzeigen', } export default translation diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts index 2d3ad99cae2803..2b5ef8dd3316ce 100644 --- a/web/i18n/en-US/app.ts +++ b/web/i18n/en-US/app.ts @@ -168,6 +168,7 @@ const translation = { removeConfirmTitle: 'Remove {{key}} configuration?', removeConfirmContent: 'The current configuration is in use, removing it will turn off the Tracing feature.', }, + showMyCreatedAppsOnly: 'Show my created apps only', }, } diff --git a/web/i18n/es-ES/app.ts b/web/i18n/es-ES/app.ts index a202eb9be748e8..6d0cdf8fbd837b 100644 --- a/web/i18n/es-ES/app.ts +++ b/web/i18n/es-ES/app.ts @@ -183,6 +183,7 @@ const translation = { byCategories: 'POR CATEGORÍAS', searchAllTemplate: 'Buscar todas las plantillas...', }, + showMyCreatedAppsOnly: 'Mostrar solo mis aplicaciones creadas', } export default translation diff --git a/web/i18n/fa-IR/app.ts b/web/i18n/fa-IR/app.ts index 8f695394e5777f..b387799fdaabf4 100644 --- a/web/i18n/fa-IR/app.ts +++ b/web/i18n/fa-IR/app.ts @@ -183,6 +183,7 @@ const translation = { byCategories: 'بر اساس دسته بندی ها', searchAllTemplate: 'همه قالب ها را جستجو کنید...', }, + showMyCreatedAppsOnly: 'فقط برنامه‌های ایجاد شده توسط من را نشان بده', } export default translation diff --git a/web/i18n/fr-FR/app.ts b/web/i18n/fr-FR/app.ts index b9ee68bb4b0a2c..f55a548ae76d5a 100644 --- a/web/i18n/fr-FR/app.ts +++ b/web/i18n/fr-FR/app.ts @@ -183,6 +183,7 @@ const translation = { byCategories: 'PAR CATÉGORIES', searchAllTemplate: 'Rechercher dans tous les modèles...', }, + showMyCreatedAppsOnly: 'Afficher uniquement mes applications créées', } export default translation diff --git a/web/i18n/hi-IN/app.ts b/web/i18n/hi-IN/app.ts index 3499a8f42023bd..d79d5b977146bb 100644 --- a/web/i18n/hi-IN/app.ts +++ b/web/i18n/hi-IN/app.ts @@ -183,6 +183,7 @@ const translation = { byCategories: 'श्रेणियों द्वारा', searchAllTemplate: 'सभी टेम्पलेट्स खोजें...', }, + showMyCreatedAppsOnly: 'केवल मेरे बनाए गए ऐप्स दिखाएं', } export default translation diff --git a/web/i18n/it-IT/app.ts b/web/i18n/it-IT/app.ts index 5ad976598a36d8..ec01516018ae63 100644 --- a/web/i18n/it-IT/app.ts +++ b/web/i18n/it-IT/app.ts @@ -195,6 +195,7 @@ const translation = { byCategories: 'PER CATEGORIE', searchAllTemplate: 'Cerca in tutti i modelli...', }, + showMyCreatedAppsOnly: 'Mostra solo le mie app create', } export default translation diff --git a/web/i18n/ja-JP/app.ts b/web/i18n/ja-JP/app.ts index 10fc2f18a4a790..06e542a8bfa3e6 100644 --- a/web/i18n/ja-JP/app.ts +++ b/web/i18n/ja-JP/app.ts @@ -184,6 +184,7 @@ const translation = { byCategories: 'カテゴリ別', searchAllTemplate: 'すべてのテンプレートを検索...', }, + showMyCreatedAppsOnly: '自分が作成したアプリのみを表示', } export default translation diff --git a/web/i18n/ko-KR/app.ts b/web/i18n/ko-KR/app.ts index d10f65f7045942..365fecc5eeccef 100644 --- a/web/i18n/ko-KR/app.ts +++ b/web/i18n/ko-KR/app.ts @@ -179,6 +179,7 @@ const translation = { byCategories: '카테고리별', searchAllTemplate: '모든 템플릿 검색...', }, + showMyCreatedAppsOnly: '내가 만든 앱만 보기', } export default translation diff --git a/web/i18n/pl-PL/app.ts b/web/i18n/pl-PL/app.ts index b36e488ec7d3da..c2d921bfd9bda4 100644 --- a/web/i18n/pl-PL/app.ts +++ b/web/i18n/pl-PL/app.ts @@ -190,6 +190,7 @@ const translation = { searchAllTemplate: 'Przeszukaj wszystkie szablony...', byCategories: 'WEDŁUG KATEGORII', }, + showMyCreatedAppsOnly: 'Pokaż tylko moje utworzone aplikacje', } export default translation diff --git a/web/i18n/pt-BR/app.ts b/web/i18n/pt-BR/app.ts index 99e64654449726..bf0ad15ea87946 100644 --- a/web/i18n/pt-BR/app.ts +++ b/web/i18n/pt-BR/app.ts @@ -183,6 +183,7 @@ const translation = { searchAllTemplate: 'Pesquisar todos os modelos...', byCategories: 'POR CATEGORIAS', }, + showMyCreatedAppsOnly: 'Mostrar apenas meus aplicativos criados', } export default translation diff --git a/web/i18n/ro-RO/app.ts b/web/i18n/ro-RO/app.ts index a84e2e371e43ca..cab1556520f037 100644 --- a/web/i18n/ro-RO/app.ts +++ b/web/i18n/ro-RO/app.ts @@ -183,6 +183,7 @@ const translation = { searchAllTemplate: 'Căutați toate șabloanele...', byCategories: 'DUPĂ CATEGORII', }, + showMyCreatedAppsOnly: 'Afișează doar aplicațiile create de mine', } export default translation diff --git a/web/i18n/ru-RU/app.ts b/web/i18n/ru-RU/app.ts index 132ea3d14118a9..59d79020d70c04 100644 --- a/web/i18n/ru-RU/app.ts +++ b/web/i18n/ru-RU/app.ts @@ -183,6 +183,7 @@ const translation = { searchAllTemplate: 'Поиск по всем шаблонам...', byCategories: 'ПО КАТЕГОРИЯМ', }, + showMyCreatedAppsOnly: 'Показать только созданные мной приложения', } export default translation diff --git a/web/i18n/sl-SI/app.ts b/web/i18n/sl-SI/app.ts index b5703af10a52d9..65421aa0f6345d 100644 --- a/web/i18n/sl-SI/app.ts +++ b/web/i18n/sl-SI/app.ts @@ -183,6 +183,7 @@ const translation = { byCategories: 'PO KATEGORIJAH', searchAllTemplate: 'Preišči vse predloge ...', }, + showMyCreatedAppsOnly: 'Prikaži samo aplikacije, ki sem jih ustvaril', } export default translation diff --git a/web/i18n/th-TH/app.ts b/web/i18n/th-TH/app.ts index f00e237329c184..a05bec8aa6d9fe 100644 --- a/web/i18n/th-TH/app.ts +++ b/web/i18n/th-TH/app.ts @@ -179,6 +179,7 @@ const translation = { searchAllTemplate: 'ค้นหาเทมเพลตทั้งหมด...', byCategories: 'ตามหมวดหมู่', }, + showMyCreatedAppsOnly: 'แสดงเฉพาะแอปที่ฉันสร้าง', } export default translation diff --git a/web/i18n/tr-TR/app.ts b/web/i18n/tr-TR/app.ts index 29c2aeaf45b4d8..3c4c379740a591 100644 --- a/web/i18n/tr-TR/app.ts +++ b/web/i18n/tr-TR/app.ts @@ -179,6 +179,7 @@ const translation = { searchAllTemplate: 'Tüm şablonlarda ara...', byCategories: 'KATEGORILERE GÖRE', }, + showMyCreatedAppsOnly: 'Sadece oluşturduğum uygulamaları göster', } export default translation diff --git a/web/i18n/uk-UA/app.ts b/web/i18n/uk-UA/app.ts index 00d6317f6ab28d..6600622a63b35e 100644 --- a/web/i18n/uk-UA/app.ts +++ b/web/i18n/uk-UA/app.ts @@ -183,6 +183,7 @@ const translation = { byCategories: 'ЗА КАТЕГОРІЯМИ', searchAllTemplate: 'Пошук по всіх шаблонах...', }, + showMyCreatedAppsOnly: 'Показати лише створені мною додатки', } export default translation diff --git a/web/i18n/vi-VN/app.ts b/web/i18n/vi-VN/app.ts index c3e7ecf9ae0b7c..e0ffaa84d5b769 100644 --- a/web/i18n/vi-VN/app.ts +++ b/web/i18n/vi-VN/app.ts @@ -183,6 +183,7 @@ const translation = { searchAllTemplate: 'Tìm kiếm tất cả các mẫu...', byCategories: 'THEO DANH MỤC', }, + showMyCreatedAppsOnly: 'Chỉ hiển thị ứng dụng do tôi tạo', } export default translation diff --git a/web/i18n/zh-Hans/app.ts b/web/i18n/zh-Hans/app.ts index 43486fcace570e..59e674fcdfd5d7 100644 --- a/web/i18n/zh-Hans/app.ts +++ b/web/i18n/zh-Hans/app.ts @@ -170,6 +170,7 @@ const translation = { }, }, openInExplore: '在“探索”中打开', + showMyCreatedAppsOnly: '仅显示我创建的应用', } export default translation diff --git a/web/i18n/zh-Hant/app.ts b/web/i18n/zh-Hant/app.ts index 16dfd510ee28f5..88f974d04c7586 100644 --- a/web/i18n/zh-Hant/app.ts +++ b/web/i18n/zh-Hant/app.ts @@ -182,6 +182,7 @@ const translation = { searchAllTemplate: '搜尋所有樣本...', byCategories: '按類別', }, + showMyCreatedAppsOnly: '僅顯示我建立的應用程式', } export default translation From 28920e29273cefff010f89f2e8e4fac45e27dca0 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Mon, 23 Dec 2024 16:19:49 +0000 Subject: [PATCH 6/9] rm unnec code --- web/app/(commonLayout)/apps/Apps.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx index d21fa37808c60c..34a28d908e1e37 100644 --- a/web/app/(commonLayout)/apps/Apps.tsx +++ b/web/app/(commonLayout)/apps/Apps.tsx @@ -79,7 +79,6 @@ const Apps = () => { const anchorRef = useRef(null) const options = [ { value: 'all', text: t('app.types.all'), icon: }, - // { value: 'my-apps', text: 'My apps', icon: }, { value: 'chat', text: t('app.types.chatbot'), icon: }, { value: 'agent-chat', text: t('app.types.agent'), icon: }, { value: 'workflow', text: t('app.types.workflow'), icon: }, From b045b1663808bd5c55afb1c5ccb88edca2dafc75 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Mon, 23 Dec 2024 16:22:58 +0000 Subject: [PATCH 7/9] Fix translation placement for "Show my created apps only" --- web/i18n/en-US/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts index 2b5ef8dd3316ce..e8d43afebfdabc 100644 --- a/web/i18n/en-US/app.ts +++ b/web/i18n/en-US/app.ts @@ -168,8 +168,8 @@ const translation = { removeConfirmTitle: 'Remove {{key}} configuration?', removeConfirmContent: 'The current configuration is in use, removing it will turn off the Tracing feature.', }, - showMyCreatedAppsOnly: 'Show my created apps only', }, + showMyCreatedAppsOnly: 'Show my created apps only', } export default translation From 9d3159cd6ef2681cc2d2c3d7e18e033a74ab7730 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Mon, 23 Dec 2024 16:24:20 +0000 Subject: [PATCH 8/9] Revert code --- api/controllers/console/app/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py index 02db4d070a67b0..385b460b3a90c2 100644 --- a/api/controllers/console/app/app.py +++ b/api/controllers/console/app/app.py @@ -55,8 +55,9 @@ def uuid_list(value): location="args", required=False, ) - parser.add_argument("is_created_by_me", type=inputs.boolean, location="args", required=False) + parser.add_argument("name", type=str, location="args", required=False) parser.add_argument("tag_ids", type=uuid_list, location="args", required=False) + parser.add_argument("is_created_by_me", type=inputs.boolean, location="args", required=False) args = parser.parse_args() From c15b10953adef66ea79ecd0c48b16b1859b0fc99 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Wed, 25 Dec 2024 12:14:21 +0000 Subject: [PATCH 9/9] fix 18n --- web/i18n/en-US/app.ts | 2 +- web/i18n/ja-JP/app.ts | 2 +- web/i18n/zh-Hans/app.ts | 2 +- web/i18n/zh-Hant/app.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts index e8d43afebfdabc..861827d3e3a3f5 100644 --- a/web/i18n/en-US/app.ts +++ b/web/i18n/en-US/app.ts @@ -169,7 +169,7 @@ const translation = { removeConfirmContent: 'The current configuration is in use, removing it will turn off the Tracing feature.', }, }, - showMyCreatedAppsOnly: 'Show my created apps only', + showMyCreatedAppsOnly: 'Created by me', } export default translation diff --git a/web/i18n/ja-JP/app.ts b/web/i18n/ja-JP/app.ts index 06e542a8bfa3e6..27d6bf6787bfc2 100644 --- a/web/i18n/ja-JP/app.ts +++ b/web/i18n/ja-JP/app.ts @@ -184,7 +184,7 @@ const translation = { byCategories: 'カテゴリ別', searchAllTemplate: 'すべてのテンプレートを検索...', }, - showMyCreatedAppsOnly: '自分が作成したアプリのみを表示', + showMyCreatedAppsOnly: '自分が作成したアプリ', } export default translation diff --git a/web/i18n/zh-Hans/app.ts b/web/i18n/zh-Hans/app.ts index 59e674fcdfd5d7..3d3e95130d8151 100644 --- a/web/i18n/zh-Hans/app.ts +++ b/web/i18n/zh-Hans/app.ts @@ -170,7 +170,7 @@ const translation = { }, }, openInExplore: '在“探索”中打开', - showMyCreatedAppsOnly: '仅显示我创建的应用', + showMyCreatedAppsOnly: '我创建的', } export default translation diff --git a/web/i18n/zh-Hant/app.ts b/web/i18n/zh-Hant/app.ts index 88f974d04c7586..99de5042c24fdf 100644 --- a/web/i18n/zh-Hant/app.ts +++ b/web/i18n/zh-Hant/app.ts @@ -182,7 +182,7 @@ const translation = { searchAllTemplate: '搜尋所有樣本...', byCategories: '按類別', }, - showMyCreatedAppsOnly: '僅顯示我建立的應用程式', + showMyCreatedAppsOnly: '我创建的', } export default translation