From ee191169f5ed90b9a343d21eaf2166ffd71efebc Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Nov 2023 17:14:35 +0900 Subject: [PATCH 1/2] enhance(frontend): tweak announcement manage ui --- locales/index.d.ts | 2 ++ locales/ja-JP.yml | 2 ++ packages/frontend/src/pages/admin/announcements.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/locales/index.d.ts b/locales/index.d.ts index b45559eea2..2437775648 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1169,6 +1169,8 @@ export interface Locale { "tooManyActiveAnnouncementDescription": string; "readConfirmTitle": string; "readConfirmText": string; + "shouldNotBeUsedToPresentPermanentInfo": string; + "dialogAnnouncementUxWarn": string; }; "_initialAccountSetting": { "accountCreated": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8fd77afd92..58ba8e04de 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1167,6 +1167,8 @@ _announcement: tooManyActiveAnnouncementDescription: "アクティブなお知らせが多いため、UXが低下する可能性があります。終了したお知らせはアーカイブすることを検討してください。" readConfirmTitle: "既読にしますか?" readConfirmText: "「{title}」の内容を読み、既読にします。" + shouldNotBeUsedToPresentPermanentInfo: "特に新規ユーザーのUXを損ねる可能性が高いため、ストック情報ではなくフロー情報の掲示にお知らせを使用することを推奨します。" + dialogAnnouncementUxWarn: "ダイアログ形式のお知らせが同時に2つ以上ある場合、UXに悪影響を及ぼす可能性が非常に高いため、使用は慎重に行うことを推奨します。" _initialAccountSetting: accountCreated: "アカウントの作成が完了しました!" diff --git a/packages/frontend/src/pages/admin/announcements.vue b/packages/frontend/src/pages/admin/announcements.vue index d29a07b8cd..36a67eba31 100644 --- a/packages/frontend/src/pages/admin/announcements.vue +++ b/packages/frontend/src/pages/admin/announcements.vue @@ -8,6 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
+ {{ i18n.ts._announcement.shouldNotBeUsedToPresentPermanentInfo }} {{ i18n.ts._announcement.tooManyActiveAnnouncementDescription }} @@ -43,6 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only + {{ i18n.ts._announcement.dialogAnnouncementUxWarn }} {{ i18n.ts._announcement.forExistingUsers }} From 4631e6cd4a4b8bf2d8dcbb729058a3b47300f016 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Nov 2023 17:18:30 +0900 Subject: [PATCH 2/2] fix(frontend): In deck layout, replies option is not saved after refresh Fix #12228 --- CHANGELOG.md | 1 + packages/frontend/src/ui/deck/tl-column.vue | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fdf9687ec..c99410696d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ - Fix: 個人カードのemojiがバッテリーになっている問題を修正 - Fix: 標準テーマと同じIDを使用してインストールできてしまう問題を修正 - Fix: 絵文字ピッカーでバッテリーの絵文字が複数表示される問題を修正 #12197 +- Fix: In deck layout, replies option is not saved after refresh ### Server - Feat: Registry APIがサードパーティから利用可能になりました diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue index bab93622f0..c5629f69a4 100644 --- a/packages/frontend/src/ui/deck/tl-column.vue +++ b/packages/frontend/src/ui/deck/tl-column.vue @@ -61,6 +61,12 @@ watch($$(withRenotes), v => { }); }); +watch($$(withReplies), v => { + updateColumn(props.column.id, { + withReplies: v, + }); +}); + watch($$(onlyFiles), v => { updateColumn(props.column.id, { onlyFiles: v,