Modern PHP User Group 2026-09 정기모임 설치 리뷰에서 접수된 제보 2건. 설치 완료·실패·중단·필수파일 안내는 페이지 최상단에 뜨는데, 진행 로그를 보느라 화면이 아래에 머물러 있으면 안내가 눈에 들어오지 않았다. 네 경로 모두 DOM 변경이 끝난 뒤 결과 섹션으로 부드럽게 이동시킨다(모션 최소화 설정 시 즉시 이동). 미인증 3화면의 테마 버튼은 setTheme 을 params.theme 으로 불렀는데 핸들러는 action.target 만 읽는다. 엔진에 상호 폴백이 없어 클릭이 콘솔 경고 한 줄만 남기고 아무 일도 하지 않았다. 로그인 이후 화면은 핸들러를 거치지 않는 ThemeToggle 을 쓰기 때문에 정상이었고, 그래서 이 세 화면에서만 나타났다. 같은 계약 불일치가 편집기 액션 레시피(admin 9·basic 3)와 두 템플릿 문서에도 있어 함께 고쳤다. 편집기로 만든 액션은 생성 즉시 no-op 이 되는데 오류가 남지 않는다. 정적 검사 레지스트리가 오히려 틀린 계약(params.theme 필수)을 강제하고 있어 올바른 형태를 막고 있었으므로 두 미러를 함께 정정했다. 테마를 고치는 과정에서 별개 결함이 드러났다. GDPR 스토리지 인터셉터가 기능 쿠키 미동의 상태에서 필수 목록 밖 저장을 부팅마다 파기하는데, 화면 테마가 그 목록에서 빠져 있었다. 저장소의 setItem 호출을 기계 도출해 대조한 결과 같은 이유로 사라지던 항목이 13건 더 있었다 — 비회원 주문 조회, 결제창 복귀 기록, 본인인증 복귀 기록, 관리자 화면 상태, 자산 주소 형식 캐시. 전량 필수로 분류하고, 동의 안내 문구가 "다크모드는 기능 쿠키" 라고 말하던 부분을 사실에 맞게 정정했다(기설치본의 저장된 문구는 업그레이드 스텝이 정정하며, 운영자가 고친 문구는 건드리지 않는다). 재발 방지는 허용목록을 직접 import 하고 모집단을 디렉토리 순회로 도출하는 커버리지 테스트가 맡는다 — 손으로 열거하지 않으므로 새 저장 키가 등재를 빠뜨리면 붉어진다.
267 lines
6.8 KiB
JSON
267 lines
6.8 KiB
JSON
{
|
|
"comment": "admin 은 callServerThen 강조(폼/테이블 저장). params + build 풀 프레임워크.",
|
|
"goToPage": {
|
|
"label": "$t:editor.action.go_to_page.label",
|
|
"params": [
|
|
{
|
|
"key": "url",
|
|
"label": "$t:editor.action.go_to_page.param_url",
|
|
"widget": "page-picker"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "navigate",
|
|
"params": {
|
|
"path": "{{url}}"
|
|
}
|
|
}
|
|
},
|
|
"showMessage": {
|
|
"label": "$t:editor.action.show_message.label",
|
|
"params": [
|
|
{
|
|
"key": "text",
|
|
"label": "$t:editor.action.show_message.param_text",
|
|
"widget": "i18n-text"
|
|
},
|
|
{
|
|
"key": "tone",
|
|
"label": "$t:editor.action.show_message.param_tone",
|
|
"widget": "select",
|
|
"options": [
|
|
{
|
|
"value": "success",
|
|
"label": "$t:editor.action.show_message.tone_success"
|
|
},
|
|
{
|
|
"value": "error",
|
|
"label": "$t:editor.action.show_message.tone_error"
|
|
},
|
|
{
|
|
"value": "info",
|
|
"label": "$t:editor.action.show_message.tone_info"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "toast",
|
|
"params": {
|
|
"message": "{{text}}",
|
|
"type": "{{tone}}"
|
|
}
|
|
}
|
|
},
|
|
"changeState": {
|
|
"label": "$t:editor.action.change_state.label",
|
|
"params": [
|
|
{
|
|
"key": "key",
|
|
"label": "$t:editor.action.change_state.param_key",
|
|
"widget": "state-key-picker"
|
|
},
|
|
{
|
|
"key": "value",
|
|
"label": "$t:editor.action.change_state.param_value",
|
|
"widget": "text"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "setState",
|
|
"params": {
|
|
"target": "local",
|
|
"{{key}}": "{{value}}"
|
|
}
|
|
}
|
|
},
|
|
"refreshData": {
|
|
"label": "$t:editor.action.refresh_data.label",
|
|
"params": [
|
|
{
|
|
"key": "src",
|
|
"label": "$t:editor.action.refresh_data.param_src",
|
|
"widget": "datasource-picker"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "refetchDataSource",
|
|
"params": {
|
|
"dataSourceId": "{{src}}"
|
|
}
|
|
}
|
|
},
|
|
"callServerThen": {
|
|
"label": "$t:editor.action.call_server_then.label",
|
|
"params": [
|
|
{
|
|
"key": "endpoint",
|
|
"label": "$t:editor.action.call_server_then.param_endpoint",
|
|
"widget": "text"
|
|
},
|
|
{
|
|
"key": "onSuccess",
|
|
"label": "$t:editor.action.call_server_then.param_on_success",
|
|
"widget": "action-list"
|
|
},
|
|
{
|
|
"key": "onError",
|
|
"label": "$t:editor.action.call_server_then.param_on_error",
|
|
"widget": "action-list"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "apiCall",
|
|
"target": "{{endpoint}}",
|
|
"onSuccess": "{{onSuccess}}",
|
|
"onError": "{{onError}}"
|
|
}
|
|
},
|
|
"setLocale": {
|
|
"label": "$t:editor.action.set_locale.label",
|
|
"params": [
|
|
{
|
|
"key": "target",
|
|
"label": "$t:editor.action.set_locale.param_target",
|
|
"widget": "select",
|
|
"options": [
|
|
{ "value": "ko", "label": "$t:editor.action.set_locale.target_ko" },
|
|
{ "value": "en", "label": "$t:editor.action.set_locale.target_en" },
|
|
{ "value": "ja", "label": "$t:editor.action.set_locale.target_ja" }
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "setLocale",
|
|
"target": "{{target}}"
|
|
}
|
|
},
|
|
"setTheme": {
|
|
"label": "$t:editor.action.set_theme.label",
|
|
"params": [
|
|
{
|
|
"key": "target",
|
|
"label": "$t:editor.action.set_theme.param_target",
|
|
"widget": "select",
|
|
"options": [
|
|
{ "value": "auto", "label": "$t:editor.action.set_theme.target_auto" },
|
|
{ "value": "light", "label": "$t:editor.action.set_theme.target_light" },
|
|
{ "value": "dark", "label": "$t:editor.action.set_theme.target_dark" }
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "setTheme",
|
|
"target": "{{target}}"
|
|
}
|
|
},
|
|
"scrollToSection": {
|
|
"label": "$t:editor.action.scroll_to_section.label",
|
|
"params": [
|
|
{
|
|
"key": "targetId",
|
|
"label": "$t:editor.action.scroll_to_section.param_target_id",
|
|
"widget": "text"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "scrollToSection",
|
|
"params": {
|
|
"targetId": "{{targetId}}"
|
|
}
|
|
}
|
|
},
|
|
"setDateRange": {
|
|
"label": "$t:editor.action.set_date_range.label",
|
|
"params": [
|
|
{
|
|
"key": "preset",
|
|
"label": "$t:editor.action.set_date_range.param_preset",
|
|
"widget": "select",
|
|
"options": [
|
|
{ "value": "today", "label": "$t:editor.action.set_date_range.preset_today" },
|
|
{ "value": "week", "label": "$t:editor.action.set_date_range.preset_week" },
|
|
{ "value": "month", "label": "$t:editor.action.set_date_range.preset_month" },
|
|
{ "value": "1year", "label": "$t:editor.action.set_date_range.preset_1year" }
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "setDateRange",
|
|
"params": {
|
|
"preset": "{{preset}}"
|
|
}
|
|
}
|
|
},
|
|
"toggleFilterVisibility": {
|
|
"label": "$t:editor.action.toggle_filter_visibility.label",
|
|
"params": [
|
|
{
|
|
"key": "storageKey",
|
|
"label": "$t:editor.action.toggle_filter_visibility.param_storage_key",
|
|
"widget": "text"
|
|
},
|
|
{
|
|
"key": "filterId",
|
|
"label": "$t:editor.action.toggle_filter_visibility.param_filter_id",
|
|
"widget": "text"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "toggleFilterVisibility",
|
|
"params": {
|
|
"storageKey": "{{storageKey}}",
|
|
"filterId": "{{filterId}}"
|
|
}
|
|
}
|
|
},
|
|
"saveMultilingualTag": {
|
|
"label": "$t:editor.action.save_multilingual_tag.label",
|
|
"params": [],
|
|
"build": {
|
|
"handler": "saveMultilingualTag"
|
|
}
|
|
},
|
|
"initTheme": {
|
|
"label": "$t:editor.action.init_theme.label",
|
|
"params": [
|
|
{
|
|
"key": "target",
|
|
"label": "$t:editor.action.init_theme.param_target",
|
|
"widget": "select",
|
|
"options": [
|
|
{ "value": "auto", "label": "$t:editor.action.init_theme.target_auto" },
|
|
{ "value": "light", "label": "$t:editor.action.init_theme.target_light" },
|
|
{ "value": "dark", "label": "$t:editor.action.init_theme.target_dark" }
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "initTheme",
|
|
"target": "{{target}}"
|
|
}
|
|
},
|
|
"initMenuFromUrl": {
|
|
"label": "$t:editor.action.init_menu_from_url.label",
|
|
"params": [],
|
|
"build": {
|
|
"handler": "initMenuFromUrl"
|
|
}
|
|
},
|
|
"initFilterVisibility": {
|
|
"label": "$t:editor.action.init_filter_visibility.label",
|
|
"params": [
|
|
{
|
|
"key": "storageKey",
|
|
"label": "$t:editor.action.init_filter_visibility.param_storage_key",
|
|
"widget": "text"
|
|
}
|
|
],
|
|
"build": {
|
|
"handler": "initFilterVisibility",
|
|
"params": {
|
|
"storageKey": "{{storageKey}}"
|
|
}
|
|
}
|
|
}
|
|
}
|