fix: validate texture asset names server-side

This commit is contained in:
Tom Boullay
2026-04-28 00:17:28 +02:00
parent 2679d29ab4
commit 9dc0232e4a
5 changed files with 72 additions and 48 deletions
+3 -1
View File
@@ -58,13 +58,15 @@ export function buildCommitMessage(
const sectionTitles: Record<AssetCategory, string> = {
color: '🎨 Textures (color)',
diffuse: '🖌 Textures (diffuse)',
roughness: '🪶 Textures (roughness)',
normal: '🧭 Textures (normal)',
metalness: '🔩 Textures (metalness)',
opacity: '🪟 Textures (opacity)',
assets: '🧩 Assets',
}
for (const category of ['color', 'roughness', 'normal', 'metalness', 'assets'] as const) {
for (const category of ['color', 'diffuse', 'roughness', 'normal', 'metalness', 'opacity', 'assets'] as const) {
const entries = grouped.get(category)
if (!entries || entries.length === 0) continue
lines.push('')