당직근무 0.15.0 (웹 2026-11-25.4): 근무 순서 이름

- 옵션 → 근무 순서 이름: 당직 다음 날(비번)부터 순서 자리마다 그날 당직 서는 사람 이름. 근무 종류는 글자로만 보이고 당직 기초 설정 화면은 그대로
- 달력에 보일 것: 근무와 이름 둘 다 · 이름만 · 근무만(nameDisplay). 앱 달력·위젯·근무표 그림, 웹 달력·그림, 기본 달력 반영과 구독 제목
- 근무표 names(순서와 같은 길이) 저장·검사, 구버전 저장 때 보존, 소속 공유 제외. 날짜별 변경 날은 이름 없음
- 앱 0.15.0 / 설치 번호 24. APK 875878바이트, SHA-256 22f4070a33d0d4c553f0391cb13f473dbec73d2174ba7a5e653318b394c3c55e
- 검사: 서버 106개, 앱 단위 59개, 웹 이름 계산, 위젯 기기 검사(세 가지 표시)
This commit is contained in:
블리어 committed 2026-11-25 01:45:53 +00:00
1 parent 6c77fc998c
commit 8c455f4448
32 files changed
+432 -58

No files matched your search

@@ -83,14 +83,16 @@ object MonthWidgetViews {
val names=if(style.people)snapshot.workNames(date,schedule) else emptyList()
val colleagues=People.onDuty(people,date)
val lunar=if(style.lunar&&schedule.showLunar)LunarDates.label(context,date) else null
val extra=names.firstOrNull()?.name
val slot=ShiftNames.slotView(schedule,date)
val extra=slot.name.takeIf{it.isNotEmpty()}
?:names.firstOrNull()?.name
?:holiday?.takeIf{style.holidays}
?:lunar
?:anniversaries.firstOrNull()?.takeIf{style.anniversaries}?.getJSONObject("data")?.getString("title")
?:colleagues.firstOrNull()?.name
val mark=style.eventMark&&(events.isNotEmpty()||anniversaries.isNotEmpty())
val number=date.dayOfMonth.toString()+if(mark&&cellWidth>=24)"+" else ""
val shiftLabel=if(ShiftNames.cellLabel(shift).isEmpty())" " else if(cellWidth>=24)shift.shortTitle else when{shift==Shift.REGULAR&&ShiftNames.regular.isBlank()->"근";else->shift.shortTitle.take(1)}
val shiftLabel=if(slot.nameOnly)slot.name.take(if(cellWidth>=24)3 else 1) else if(ShiftNames.cellLabel(shift).isEmpty())" " else if(cellWidth>=24)shift.shortTitle else when{shift==Shift.REGULAR&&ShiftNames.regular.isBlank()->"근";else->shift.shortTitle.take(1)}
// 음력의 마지막 숫자를 자르면 16일이 1일처럼 보인다. 이름은 줄일 수 있지만
// 날짜 정보는 전체를 유지한다. 숫자 폭이 좁아 여섯 글자 음력도 같은 칸에 들어간다.
val extraLabel=if(extra==lunar)extra else extra?.take(4)