Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 909ed72502 | |||
| c352bf459f | |||
| 730a87b923 |
@@ -1,5 +1,20 @@
|
||||
# 업데이트 로그
|
||||
|
||||
## 2026-04-01 v1.3.18
|
||||
- 커스텀 아이템 기본 이름은 파일명 전체를 그대로 쓰지 않고 확장자 제거·공백 정리·60자 제한을 먼저 적용하도록 바꿔, 템플릿 요청 전에 커스텀 업로드가 길이 제한으로 실패하던 흐름을 줄임.
|
||||
- 템플릿 요청 실패 안내는 커스텀 이미지 업로드 실패와 일반 bad request를 구분해, 사용자가 제목/설명/아이템 이름 길이 제한 문제를 더 쉽게 파악할 수 있게 보강함.
|
||||
- 관리자 Image Optimization 월 필터는 기본 month input 대신 연도/월 셀렉트와 전체 초기화 버튼으로 바꿔, 기간 선택을 더 직관적으로 조작할 수 있게 정리함.
|
||||
|
||||
## 2026-04-01 v1.3.17
|
||||
- 티어 에디터 열 헤더 입력창과 행 라벨은 좌우 패딩을 대칭으로 다시 잡아, 드래그 핸들과 삭제 아이콘이 있어도 제목이 한쪽으로 쏠려 보이지 않도록 보정함.
|
||||
- 열 삭제도 이제 행 삭제와 같은 확인 모달을 거쳐 진행되도록 바꿔, 실수로 즉시 제거되던 문제를 막음.
|
||||
- 내보내기 보드는 여전히 960px 고정 폭이라 열 수가 늘수록 각 칸 폭이 줄어드는 구조라는 점을 기준으로 정리했고, 현재 보정은 헤더 정렬 문제를 우선 해결하는 쪽에 맞춤.
|
||||
|
||||
## 2026-04-01 v1.3.16
|
||||
- 티어 에디터의 행 삭제와 열 삭제는 다시 작은 X 아이콘 액션으로 정리해, 행/열 이름 주변의 반복 텍스트 때문에 보드가 답답해 보이던 문제를 줄임.
|
||||
- 열 헤더 편집 영역은 입력창 오른쪽에 아이콘 삭제만 남기고, 행 라벨도 상단 우측의 작은 제거 버튼으로 맞춰 더 압축된 편집 밀도를 유지하도록 조정함.
|
||||
- 저장 이미지에서 열 제목이 살짝 위로 떠 보이던 문제는 내보내기 헤더의 비대칭 패딩을 제거하고 flex 중앙 정렬로 바꿔, 시각적으로 정확한 중앙에 오도록 보정함.
|
||||
|
||||
## 2026-04-01 v1.3.15
|
||||
- 티어 에디터의 열 이름은 각 행 안에서 반복 렌더링되지 않도록 공통 상단 헤더로 분리해, 행 제목과 같은 구조로 더 또렷하게 구분되도록 수정함.
|
||||
- 행 추가/열 추가 액션은 새 SVG 아이콘 버튼으로 압축해, 텍스트 때문에 보드 상단 툴바 높이가 과하게 커지던 문제를 정리함.
|
||||
|
||||
@@ -270,6 +270,49 @@ const visibleLinkedGames = computed(() =>
|
||||
)
|
||||
|
||||
const imageStatsPeriodLabel = computed(() => (imageStatsMonth.value ? `${imageStatsMonth.value} 기준` : '전체 기간'))
|
||||
const imageStatsYearOptions = computed(() => {
|
||||
const currentYear = new Date().getFullYear()
|
||||
return Array.from({ length: 6 }, (_, index) => String(currentYear - index))
|
||||
})
|
||||
const imageStatsMonthOptions = [
|
||||
{ value: '01', label: '1월' },
|
||||
{ value: '02', label: '2월' },
|
||||
{ value: '03', label: '3월' },
|
||||
{ value: '04', label: '4월' },
|
||||
{ value: '05', label: '5월' },
|
||||
{ value: '06', label: '6월' },
|
||||
{ value: '07', label: '7월' },
|
||||
{ value: '08', label: '8월' },
|
||||
{ value: '09', label: '9월' },
|
||||
{ value: '10', label: '10월' },
|
||||
{ value: '11', label: '11월' },
|
||||
{ value: '12', label: '12월' },
|
||||
]
|
||||
const selectedImageStatsYear = computed({
|
||||
get: () => (imageStatsMonth.value ? imageStatsMonth.value.slice(0, 4) : ''),
|
||||
set: (year) => {
|
||||
if (!year) {
|
||||
imageStatsMonth.value = ''
|
||||
return
|
||||
}
|
||||
const month = imageStatsMonth.value ? imageStatsMonth.value.slice(5, 7) : '01'
|
||||
imageStatsMonth.value = `${year}-${month}`
|
||||
},
|
||||
})
|
||||
const selectedImageStatsMonthNumber = computed({
|
||||
get: () => (imageStatsMonth.value ? imageStatsMonth.value.slice(5, 7) : ''),
|
||||
set: (month) => {
|
||||
if (!month) {
|
||||
imageStatsMonth.value = ''
|
||||
return
|
||||
}
|
||||
const year = imageStatsMonth.value ? imageStatsMonth.value.slice(0, 4) : String(new Date().getFullYear())
|
||||
imageStatsMonth.value = `${year}-${month}`
|
||||
},
|
||||
})
|
||||
function clearImageStatsMonth() {
|
||||
imageStatsMonth.value = ''
|
||||
}
|
||||
|
||||
async function refreshImageDiagnostics() {
|
||||
try {
|
||||
@@ -2100,8 +2143,18 @@ async function saveFeaturedOrder() {
|
||||
|
||||
<section v-if="activeTab === 'featured'" class="adminSidebar__panel">
|
||||
<div class="adminSidebar__label">Image Optimization</div>
|
||||
<div class="adminSidebar__group">
|
||||
<input v-model="imageStatsMonth" class="input" type="month" />
|
||||
<div class="adminSidebar__group adminSidebar__group--monthPicker">
|
||||
<div class="monthPicker">
|
||||
<select v-model="selectedImageStatsYear" class="select monthPicker__select">
|
||||
<option value="">전체 기간</option>
|
||||
<option v-for="year in imageStatsYearOptions" :key="year" :value="year">{{ year }}년</option>
|
||||
</select>
|
||||
<select v-model="selectedImageStatsMonthNumber" class="select monthPicker__select" :disabled="!selectedImageStatsYear">
|
||||
<option value="">월 선택</option>
|
||||
<option v-for="month in imageStatsMonthOptions" :key="month.value" :value="month.value">{{ month.label }}</option>
|
||||
</select>
|
||||
<button class="btn btn--ghost btn--tiny" type="button" :disabled="!imageStatsMonth" @click="clearImageStatsMonth">전체</button>
|
||||
</div>
|
||||
<select v-model.number="imageStatsLimit" class="select">
|
||||
<option :value="6">최근 6건</option>
|
||||
<option :value="12">최근 12건</option>
|
||||
|
||||
@@ -51,7 +51,9 @@ const templateRequestDraftDescription = ref('')
|
||||
const templateRequestSaveToMyTierList = ref(true)
|
||||
const isDeleteModalOpen = ref(false)
|
||||
const isGroupDeleteModalOpen = ref(false)
|
||||
const isColumnDeleteModalOpen = ref(false)
|
||||
const pendingRemoveGroupId = ref('')
|
||||
const pendingRemoveColumnIndex = ref(-1)
|
||||
const ownerId = ref('')
|
||||
const authorName = ref('')
|
||||
const authorAccountName = ref('')
|
||||
@@ -340,6 +342,15 @@ function createColumnName(index = columns.value.length) {
|
||||
return `열 ${index + 1}`
|
||||
}
|
||||
|
||||
function createCustomItemLabel(fileName = '') {
|
||||
const normalized = String(fileName || '')
|
||||
.replace(/\.[^.]+$/, '')
|
||||
.replace(/[_-]+/g, ' ')
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim()
|
||||
return (normalized || 'custom').slice(0, 60)
|
||||
}
|
||||
|
||||
async function addGroup() {
|
||||
groups.value = [
|
||||
...groups.value,
|
||||
@@ -384,6 +395,24 @@ async function removeColumn(columnIndex) {
|
||||
await syncSortables()
|
||||
}
|
||||
|
||||
function openColumnDeleteModal(columnIndex) {
|
||||
if (!canEdit.value || columns.value.length <= 1) return
|
||||
pendingRemoveColumnIndex.value = columnIndex
|
||||
isColumnDeleteModalOpen.value = true
|
||||
}
|
||||
|
||||
function closeColumnDeleteModal() {
|
||||
isColumnDeleteModalOpen.value = false
|
||||
pendingRemoveColumnIndex.value = -1
|
||||
}
|
||||
|
||||
async function confirmRemoveColumn() {
|
||||
const columnIndex = pendingRemoveColumnIndex.value
|
||||
closeColumnDeleteModal()
|
||||
if (columnIndex < 0) return
|
||||
await removeColumn(columnIndex)
|
||||
}
|
||||
|
||||
async function performRemoveGroup(groupId) {
|
||||
if (groups.value.length <= 1) return
|
||||
const target = groups.value.find((group) => group.id === groupId)
|
||||
@@ -420,7 +449,7 @@ function addCustomImage(file) {
|
||||
const id = `c-${Date.now()}-${Math.random().toString(16).slice(2)}`
|
||||
itemsById.value = {
|
||||
...itemsById.value,
|
||||
[id]: { id, src: url, label: file.name || 'custom', origin: 'custom', pendingFile: file },
|
||||
[id]: { id, src: url, label: createCustomItemLabel(file.name), origin: 'custom', pendingFile: file },
|
||||
}
|
||||
pool.value = [id, ...pool.value]
|
||||
}
|
||||
@@ -554,7 +583,7 @@ async function uploadPendingCustomItems() {
|
||||
|
||||
for (const item of entries) {
|
||||
const fd = new FormData()
|
||||
fd.append('label', item.label || 'custom')
|
||||
fd.append('label', createCustomItemLabel(item.label || 'custom'))
|
||||
fd.append('image', item.pendingFile)
|
||||
|
||||
const res = await fetch(toApiUrl('/api/tierlists/custom-items'), {
|
||||
@@ -777,6 +806,10 @@ async function requestTemplate(type) {
|
||||
: '템플릿 업데이트 요청을 보냈어요.'
|
||||
)
|
||||
} catch (e) {
|
||||
if (e?.message === 'custom_upload_failed') {
|
||||
toast.error('커스텀 이미지 이름이 너무 길거나 업로드 조건에 맞지 않아 요청 전에 저장하지 못했어요. 아이템 이름을 60자 이하로 줄인 뒤 다시 시도해주세요.')
|
||||
return
|
||||
}
|
||||
if (e?.status === 409) {
|
||||
toast.error('이미 처리 대기 중인 같은 요청이 있어요.')
|
||||
return
|
||||
@@ -785,6 +818,10 @@ async function requestTemplate(type) {
|
||||
toast.error('먼저 커스텀 아이템을 추가한 뒤 요청해주세요.')
|
||||
return
|
||||
}
|
||||
if (e?.status === 400 && e?.data?.error === 'bad_request') {
|
||||
toast.error('요청 제목, 설명, 아이템 이름 중 길이 제한을 넘긴 값이 없는지 확인해주세요.')
|
||||
return
|
||||
}
|
||||
toast.error(type === 'create' ? '템플릿 등록 요청에 실패했어요.' : '템플릿 업데이트 요청에 실패했어요.')
|
||||
} finally {
|
||||
isRequestingTemplate.value = false
|
||||
@@ -1018,6 +1055,19 @@ onUnmounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="isColumnDeleteModalOpen" class="modalOverlay" @click.self="closeColumnDeleteModal">
|
||||
<div class="modalCard" role="dialog" aria-modal="true" aria-labelledby="deleteColumnTitle">
|
||||
<div id="deleteColumnTitle" class="modalCard__title">티어 열 삭제</div>
|
||||
<div class="modalCard__desc">
|
||||
이 열을 삭제하면 현재 들어 있는 아이템은 모두 첫 번째 열로 이동합니다. 삭제 후에도 아이템 자체는 유지돼요.
|
||||
</div>
|
||||
<div class="modalCard__actions">
|
||||
<button class="btn btn--ghost" @click="closeColumnDeleteModal">취소</button>
|
||||
<button class="btn btn--danger" @click="confirmRemoveColumn">열 삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="layout" :style="{ '--thumb-size': `${iconSize}px` }">
|
||||
<div class="editorMain">
|
||||
<section class="head">
|
||||
@@ -1077,7 +1127,7 @@ onUnmounted(() => {
|
||||
<template v-else>
|
||||
<div class="columnHeader">
|
||||
<input v-model="column.name" class="columnName" maxlength="16" placeholder="열 이름" />
|
||||
<button class="columnRemoveText" type="button" :disabled="columns.length <= 1" @click="removeColumn(columnIndex)">열 삭제</button>
|
||||
<button class="columnRemoveText" type="button" title="열 삭제" aria-label="열 삭제" :disabled="columns.length <= 1" @click="openColumnDeleteModal(columnIndex)">×</button>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
@@ -1097,10 +1147,11 @@ onUnmounted(() => {
|
||||
class="rowRemoveText"
|
||||
type="button"
|
||||
title="행 삭제"
|
||||
aria-label="행 삭제"
|
||||
:disabled="groups.length <= 1"
|
||||
@click="openGroupDeleteModal(g.id)"
|
||||
>
|
||||
행 삭제
|
||||
×
|
||||
</button>
|
||||
</template>
|
||||
</div>
|
||||
@@ -1731,11 +1782,17 @@ onUnmounted(() => {
|
||||
}
|
||||
.boardColumnsHeader__cell {
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
}
|
||||
.boardColumnsHeader__name {
|
||||
padding: 4px 0 8px;
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 12px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
font-weight: 800;
|
||||
opacity: 0.74;
|
||||
}
|
||||
@@ -1817,7 +1874,7 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 14px 12px 30px;
|
||||
padding: 14px 28px;
|
||||
font-weight: 900;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -1832,11 +1889,11 @@ onUnmounted(() => {
|
||||
min-width: 0;
|
||||
}
|
||||
.columnHeader {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 38px;
|
||||
padding: 0 2px;
|
||||
padding: 0 28px;
|
||||
}
|
||||
.columnName {
|
||||
width: 100%;
|
||||
@@ -1847,6 +1904,7 @@ onUnmounted(() => {
|
||||
padding: 4px 0;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
font-weight: 800;
|
||||
outline: none;
|
||||
}
|
||||
@@ -1854,14 +1912,28 @@ onUnmounted(() => {
|
||||
color: rgba(255, 255, 255, 0.34);
|
||||
}
|
||||
.columnRemoveText {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
transform: translateY(-50%);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: rgba(255, 255, 255, 0.56);
|
||||
font-size: 11px;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
.columnRemoveText:hover {
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.columnRemoveText:disabled {
|
||||
opacity: 0.32;
|
||||
cursor: not-allowed;
|
||||
@@ -1895,19 +1967,25 @@ onUnmounted(() => {
|
||||
}
|
||||
.rowRemoveText {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
bottom: 10px;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
cursor: pointer;
|
||||
font-size: 11px;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
font-weight: 800;
|
||||
}
|
||||
.rowRemoveText:hover {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.rowRemoveText:disabled {
|
||||
opacity: 0.32;
|
||||
|
||||
Reference in New Issue
Block a user