일반근무 이름 바꾸기 (웹 2026-11-25.1, 앱 0.14.2 소스)
달력 표시에서 일반근무를 직장에서 부르는 이름(주간·일근 등)으로 바꿀 수 있게 했다. 근무 식별자 REGULAR는 그대로 두고 보이는 이름만 바꾸므로 근무표와 통계는 그대로다. - 서버: 개인 설정 regularName 검사(8자·제어 문자 거부)와 구버전 저장 때 보존, 구독 제목 반영 - 웹: 달력 표시에 이름 칸, 달력 칸·오늘·고르는 목록·이름 표시 문구에 반영 - 앱: ShiftNames와 Shift.title/shortTitle/choiceTitle, 설정 창 칸, 위젯과 안내 줄 반영, 동기화 - 검사: 서버 93개, 앱 단위 53개, 위젯 기기 검사에 이름 확인 추가 - 근무 관리 기기 검사가 고정 날짜 때문에 날짜가 지나면 실패하던 것을 오늘 기준으로 고침 앱 0.14.2 APK는 외부 검사 뒤 따로 배포한다(release.json 앱 버전은 아직 0.14.1).
This commit is contained in:
1 parent
1982783048
commit
1aa4126727
27 files changed
+267
-41
No files matched your search
@@ -65,6 +65,9 @@ def project(state,chosen,today,holidays):
|
||||
for person in (state.get('company') or {}).get('members',[]):
|
||||
if not person['isSelf'] and person.get('rotation'):people['company:'+person['id']]={**person['rotation'],'name':person['name']}
|
||||
rules=[item['data'] for item in items if item['kind']=='name_rule'];output={}
|
||||
# 회원이 일반근무 이름을 바꿨으면 구독 제목도 그 이름을 쓴다. 근무 계산은 식별자로 하므로 바뀌지 않는다.
|
||||
regular=next((item['data'].get('regularName') for item in items if item['kind']=='preferences'),'')
|
||||
labels={**LABELS,'REGULAR':regular} if isinstance(regular,str) and regular.strip() else LABELS
|
||||
def put(key,title,notes,start,end,all_day):
|
||||
output[key]={'key':key,'title':title,'notes':notes,'start':start,'end':end,'allDay':all_day}
|
||||
if len(output)>10000:raise ValueError('내보낼 일정이 10,000개를 넘습니다. 선택 항목을 줄여 주세요.')
|
||||
@@ -79,7 +82,7 @@ def project(state,chosen,today,holidays):
|
||||
if name_matches(rule,day,own,holiday,shift(person,day) if person else None):
|
||||
name=person['name'] if rule['mode']=='PERSON' else rule['name']
|
||||
if name not in names:names.append(name)
|
||||
put('rotation:'+day.isoformat(),LABELS[own]+(' · '+' · '.join(names) if names else ''),'',day,day+timedelta(days=1),True)
|
||||
put('rotation:'+day.isoformat(),labels[own]+(' · '+' · '.join(names) if names else ''),'',day,day+timedelta(days=1),True)
|
||||
if chosen['anniversaries']:
|
||||
for item in items:
|
||||
d=item['data']
|
||||
|
||||
Reference in new issue
Block a user