From d03cf4d7f9e09df6cbaea3bc8a44b52ce3777ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 6 Oct 2025 08:55:22 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E9=80=9A=E7=9F=A5=E3=81=AE?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E7=94=BB=E9=9D=A2=E3=81=A7=E4=BA=88=E7=B4=84?= =?UTF-8?q?=E6=8A=95=E7=A8=BF=E9=96=A2=E9=80=A3=E3=81=AE=E7=BF=BB=E8=A8=B3?= =?UTF-8?q?=E3=81=8C=E5=BD=93=E3=81=9F=E3=81=A3=E3=81=A6=E3=81=84=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=81=AE=E4=BF=AE=E6=AD=A3=20(#1660?= =?UTF-8?q?3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(frontend): 予約投稿通知の設定画面に不足している翻訳を追加 * fix(misskey-js): 廃止された通知が定義に残っているのを修正 * fix(frontend): 予約投稿の完了/失敗通知はオンオフのみ --- locales/index.d.ts | 8 ++++++++ locales/ja-JP.yml | 2 ++ packages/frontend/src/pages/settings/notifications.vue | 2 +- packages/misskey-js/etc/misskey-js.api.md | 2 +- packages/misskey-js/src/consts.ts | 1 - 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index fe3e07fcfa..9e51d89760 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -10481,6 +10481,14 @@ export interface Locale extends ILocale { * アンケートが終了 */ "pollEnded": string; + /** + * 予約投稿が成功した + */ + "scheduledNotePosted": string; + /** + * 予約投稿が失敗した + */ + "scheduledNotePostFailed": string; /** * フォロー申請を受け取った */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8306a862e1..bfcc98243c 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2768,6 +2768,8 @@ _notification: quote: "引用" reaction: "リアクション" pollEnded: "アンケートが終了" + scheduledNotePosted: "予約投稿が成功した" + scheduledNotePostFailed: "予約投稿が失敗した" receiveFollowRequest: "フォロー申請を受け取った" followRequestAccepted: "フォローが受理された" roleAssigned: "ロールが付与された" diff --git a/packages/frontend/src/pages/settings/notifications.vue b/packages/frontend/src/pages/settings/notifications.vue index 64d61c0bee..2802d3263e 100644 --- a/packages/frontend/src/pages/settings/notifications.vue +++ b/packages/frontend/src/pages/settings/notifications.vue @@ -85,7 +85,7 @@ const $i = ensureSignin(); const nonConfigurableNotificationTypes = ['note', 'roleAssigned', 'followRequestAccepted', 'test', 'exportCompleted'] satisfies (typeof notificationTypes[number])[] as string[]; -const onlyOnOrOffNotificationTypes = ['app', 'achievementEarned', 'login', 'createToken'] satisfies (typeof notificationTypes[number])[] as string[]; +const onlyOnOrOffNotificationTypes = ['app', 'achievementEarned', 'login', 'createToken', 'scheduledNotePosted', 'scheduledNotePostFailed'] satisfies (typeof notificationTypes[number])[] as string[]; const allowButton = useTemplateRef('allowButton'); const pushRegistrationInServer = computed(() => allowButton.value?.pushRegistrationInServer); diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index fab205b939..32af619a49 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -3226,7 +3226,7 @@ type Notification_2 = components['schemas']['Notification']; type NotificationsCreateRequest = operations['notifications___create']['requestBody']['content']['application/json']; // @public (undocumented) -export const notificationTypes: readonly ["note", "follow", "mention", "reply", "renote", "quote", "reaction", "pollEnded", "scheduledNotePosted", "scheduledNotePostFailed", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app", "roleAssigned", "chatRoomInvitationReceived", "achievementEarned", "exportCompleted", "test", "login", "createToken"]; +export const notificationTypes: readonly ["note", "follow", "mention", "reply", "renote", "quote", "reaction", "pollEnded", "scheduledNotePosted", "scheduledNotePostFailed", "receiveFollowRequest", "followRequestAccepted", "app", "roleAssigned", "chatRoomInvitationReceived", "achievementEarned", "exportCompleted", "test", "login", "createToken"]; // @public (undocumented) export function nyaize(text: string): string; diff --git a/packages/misskey-js/src/consts.ts b/packages/misskey-js/src/consts.ts index 148c5ed831..eb6c5cd1b0 100644 --- a/packages/misskey-js/src/consts.ts +++ b/packages/misskey-js/src/consts.ts @@ -30,7 +30,6 @@ export const notificationTypes = [ 'scheduledNotePostFailed', 'receiveFollowRequest', 'followRequestAccepted', - 'groupInvited', 'app', 'roleAssigned', 'chatRoomInvitationReceived',