일반근무 숨기기, 달력 연동 안내, 게시판, 관리자 세부 설정 (웹 2026-11-25.2)
- 달력 표시에 일반근무 글자 숨기기(hideRegular). 앱·웹 달력 칸과 위젯 및 근무표 그림에서만 빼고 오늘 카드·날짜 상세·기본 달력 반영·구독은 그대로 - 달력 연동 안내 페이지(/calendar/guide): 구독 주소 · 안드로이드 앱 기본 달력 반영 · 구글 · 삼성 · 아이폰 · 아웃룩 · 파일 · 문제 해결. 글은 관리자에서 고침(guide_text.py 기본값) - 게시판(/calendar/board, board.py): 게시판 종류와 읽기·쓰기·댓글 권한을 관리자에서 만들고 고침, 글·댓글 쓰기·고치기·지우기, 운영진 숨김·고정·되살리기, 하루 한도 - 관리자: 설정 칸에 화면 구분(page)과 숫자·색·긴 글 종류. 색·메뉴·탭 제목·처음 기본값(웹)·게시판 한도 - 홈페이지 위쪽 메뉴 줄, 달력 연동·공유 창과 앱 메뉴에서 안내 페이지로 가는 링크 - 검사: 서버 103개(게시판 9개 새로), 앱 단위 54개, 위젯 기기 검사에 숨기기 확인. 로고 가져오기 시험의 같은 초 기록 순서 흔들림 고침
This commit is contained in:
1 parent
b28f1f6096
commit
9c6a1841e3
39 files changed
+1628
-79
No files matched your search
@@ -23,6 +23,7 @@ object WidgetAppearanceCheck {
|
||||
val schedulePrefs=app.getSharedPreferences("schedule",0)
|
||||
val originalWeekStart=schedulePrefs.all["weekStart"]
|
||||
val originalRegularName=schedulePrefs.all["regularName"]
|
||||
val originalHideRegular=schedulePrefs.all["hideRegular"]
|
||||
var success=false
|
||||
var message=""
|
||||
try {
|
||||
@@ -78,9 +79,9 @@ object WidgetAppearanceCheck {
|
||||
check(sunHeader.currentTextColor==WidgetStyle().color(0xFFBD5163.toInt()))
|
||||
}
|
||||
// 일반근무 이름을 바꾸면 위젯 칸에도 같은 이름이 보이고 다른 근무와 날짜 계산은 그대로다.
|
||||
if(ScheduleStore.isConfigured(app)) for(name in listOf("사무실","")) {
|
||||
if(ScheduleStore.isConfigured(app)) for((name,hide) in listOf("사무실" to false,"사무실" to true,"" to false)) {
|
||||
val current=ScheduleStore.load(app)
|
||||
ScheduleStore.saveDisplay(app,current.dutyAsWeekday,current.showLunar,current.offAsHoliday,current.weekStart,fromSync=true,regularName=name)
|
||||
ScheduleStore.saveDisplay(app,current.dutyAsWeekday,current.showLunar,current.offAsHoliday,current.weekStart,fromSync=true,regularName=name,hideRegular=hide)
|
||||
val schedule=ScheduleStore.load(app)
|
||||
val month=render(99001,500)
|
||||
val dates=calendarDays(java.time.YearMonth.now(),schedule.weekStart)
|
||||
@@ -88,6 +89,11 @@ object WidgetAppearanceCheck {
|
||||
DutyWidget.DAY_IDS.forEachIndexed { index,cellId ->
|
||||
val shift=schedule.shiftOn(dates[index])
|
||||
val lines=month.findViewById<TextView>(cellId).text.toString().lines()
|
||||
if(hide&&shift==Shift.REGULAR) {
|
||||
// 숨기기를 켜면 근무 글자 없이 빈 줄만 남아 날짜 칸 높이가 그대로다.
|
||||
check(expected !in lines && " " in lines){"위젯 일반근무 숨기기: $lines"}
|
||||
continue
|
||||
}
|
||||
check(shift.shortTitle in lines){"위젯 날짜 $index 근무 이름: $lines (기대 ${shift.shortTitle})"}
|
||||
if(shift==Shift.REGULAR)check(expected in lines){"위젯 일반근무 이름: $lines (기대 $expected)"}
|
||||
}
|
||||
@@ -171,12 +177,13 @@ object WidgetAppearanceCheck {
|
||||
}
|
||||
failure?.let{throw it}
|
||||
success=true
|
||||
message="일반근무 이름 바꾸기와 기본 이름 복귀 확인. 네 종류의 기본 배치와 한 달 전체 선택 확인. 월·일 시작과 80·100·120% 및 최소·확장 크기에서 42칸과 모든 날짜 및 마지막 주의 글자 높이와 생략 없음 확인. 월 이동과 연말 넘김 및 오늘 복귀와 개별 저장 및 구버전 설정 보존 확인."
|
||||
message="일반근무 이름 바꾸기와 숨기기 및 기본 이름 복귀 확인. 네 종류의 기본 배치와 한 달 전체 선택 확인. 월·일 시작과 80·100·120% 및 최소·확장 크기에서 42칸과 모든 날짜 및 마지막 주의 글자 높이와 생략 없음 확인. 월 이동과 연말 넘김 및 오늘 복귀와 개별 저장 및 구버전 설정 보존 확인."
|
||||
} catch(error:Throwable) {message=error.stackTraceToString()}
|
||||
finally {
|
||||
val scheduleRestore=schedulePrefs.edit()
|
||||
if(originalWeekStart is Int)scheduleRestore.putInt("weekStart",originalWeekStart) else scheduleRestore.remove("weekStart")
|
||||
if(originalRegularName is String)scheduleRestore.putString("regularName",originalRegularName) else scheduleRestore.remove("regularName")
|
||||
if(originalHideRegular is Boolean)scheduleRestore.putBoolean("hideRegular",originalHideRegular) else scheduleRestore.remove("hideRegular")
|
||||
check(scheduleRestore.commit());ScheduleStore.load(app)
|
||||
val editor=prefs.edit().clear()
|
||||
original.forEach{(key,value)->editor.putString(key,value as String)}
|
||||
|
||||
Reference in new issue
Block a user