-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
enhance: アバターデコレーションへのカテゴリの導入 #17034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
enhance: アバターデコレーションへのカテゴリの導入 #17034
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #17034 +/- ##
===========================================
+ Coverage 62.77% 62.82% +0.04%
===========================================
Files 1150 1152 +2
Lines 114944 115181 +237
Branches 7862 7899 +37
===========================================
+ Hits 72157 72358 +201
- Misses 40643 40678 +35
- Partials 2144 2145 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Backend Memory Usage Comparison
|
|
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -3310,6 +3310,12 @@
"items": {
"type": "string"
}
+ },
+ "category": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [
@@ -3359,6 +3365,12 @@
"type": "string",
"format": "id"
}
+ },
+ "category": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [
@@ -3368,7 +3380,8 @@
"name",
"description",
"url",
- "roleIdsThatCanBeUsedThisDecoration"
+ "roleIdsThatCanBeUsedThisDecoration",
+ "category"
]
}
}
@@ -3727,6 +3740,12 @@
"type": "string",
"format": "id"
}
+ },
+ "category": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [
@@ -3895,6 +3914,12 @@
"items": {
"type": "string"
}
+ },
+ "category": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [
@@ -51319,6 +51344,12 @@
"type": "string",
"format": "id"
}
+ },
+ "category": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [ |
7b5389a to
844bf91
Compare
|
(追加されたUIのキャプチャがあるとレビューがスムーズかもしれません) |
|
画面キャプチャを追加しておきました |
kakkokari-gtyih
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
group-avatar-decorations.ts が用意されているにも関わらず使われていないかもしれません
| import { ensureSignin } from '@/i.js'; | ||
| import MkInfo from '@/components/MkInfo.vue'; | ||
| import { definePage } from '@/page.js'; | ||
| import { groupAvatarDecorations } from '@/utility/group-avatar-decorations'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import { groupAvatarDecorations } from '@/utility/group-avatar-decorations'; | |
| import { groupAvatarDecorations } from '@/utility/group-avatar-decorations.js'; |
| * @param decorations アバターデコレーションの配列 | ||
| * @returns カテゴリごとにグループ化されたアバターデコレーションオブジェクト | ||
| */ | ||
| export const groupAvatarDecorations = (decorations: AvatarDecoration[]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| export const groupAvatarDecorations = (decorations: AvatarDecoration[]) => { | |
| export function groupAvatarDecorations(decorations: AvatarDecoration[]) { |
| } | ||
|
|
||
| return grouped; | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }; | |
| } |
samunohito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
バックエンド側実装は問題ないと思います(フロントエンド側は任せた)。
ただ、1点だけ軽微な指摘があります。
| export class AddCategoryToAvatarDecorations1766652173085 { | ||
| name = 'AddCategoryToAvatarDecorations1766652173085'; | ||
|
|
||
| /** | ||
| * @param {QueryRunner} queryRunner | ||
| */ | ||
| async up(queryRunner) { | ||
| await queryRunner.query('ALTER TABLE "avatar_decoration" ADD "category" character varying(128)'); | ||
| } | ||
|
|
||
| /** | ||
| * @param {QueryRunner} queryRunner | ||
| */ | ||
| async down(queryRunner) { | ||
| await queryRunner.query('ALTER TABLE "avatar_decoration" DROP COLUMN "category"'); | ||
| } | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
タブとスペースが混在しているのでフォーマッタをかけていただけると助かります
What
close #16854
アバターデコレーションに、カスタム絵文字と同様にカテゴリを設定できるようにしました。
Why
1画面に収まりきらないほど多くのデコレーションを登録しているサーバーにおいて整理できるようにし、管理画面およびアバターデコレーション設定画面の見通しの改善を支援します
Additional info (optional)
管理画面のスクリーンショット
一覧画面

編集画面

プロフィール画面のスクリーンショット
Checklist