Compare commits

...

2 Commits

Author SHA1 Message Date
4636a213b3 0.51.3 2026-07-03 03:59:16 +02:00
469954f613 Sorting actor tag sections by average tag weight. 2026-07-03 03:59:14 +02:00
3 changed files with 11 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.51.2", "version": "0.51.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.51.2", "version": "0.51.3",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@@ -92,7 +92,7 @@
"overrides": { "overrides": {
"vite": "$vite" "vite": "$vite"
}, },
"version": "0.51.2", "version": "0.51.3",
"imports": { "imports": {
"#/*": "./*.js" "#/*": "./*.js"
} }

View File

@@ -459,7 +459,14 @@ const tags = [
actor, actor,
tags: scene.tags.filter((tag) => tag.actorId === actor.id), tags: scene.tags.filter((tag) => tag.actorId === actor.id),
})), })),
].filter((actorTags) => actorTags.tags.length > 0); ]
.filter((actorTags) => actorTags.tags.length > 0)
.toSorted((actorTagsA, actorTagsB) => {
const priorityA = actorTagsA.tags.reduce((acc, tag) => acc + tag.priority, 0) / actorTagsA.tags.length;
const priorityB = actorTagsB.tags.reduce((acc, tag) => acc + tag.priority, 0) / actorTagsB.tags.length;
return priorityB - priorityA;
});
const showSummaryDialog = ref(false); const showSummaryDialog = ref(false);