DataControls
읽기 중지·연결만 해제·완전 삭제를 각각의 행동으로.
- 출시 화면에서 사용
개요
미리보기
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
예시
상태
연결됨
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
일시 중지
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
연결 끊김 · 보관본
Your data
Stops scanning new records. Scanned records stay.
Disconnected · copies kept
Deletes all records in Centralby. Original mail and documents stay.
지우는 중
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
지움
Your data
Records in Centralby are deleted. The original service is untouched.
오류
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
Couldn’t load this right now.
확인: 연결 해제
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
확인: 완전 삭제
Your data
Stops scanning new records. Scanned records stay.
Removes access to Google Calendar. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
쓰임 예
Gmail
Your data
Stops scanning new records. Scanned records stay.
Removes access to Gmail. Scanned records stay in Centralby.
Deletes all records in Centralby. Original mail and documents stay.
이렇게 · 이렇게 하지 않기
- 이렇게 세 행동을 하나로 합치지 않고 버튼마다 결과를 한 줄로 쓴다. 센트럴바이에서 지워도 원래 메일과 문서는 지워지지 않는다고 매번 쓴다.
- 이렇게 하지 않기 세 행동을 메뉴나 토글(Switch) 하나로 만들지 않는다. 연결 해제를 삭제처럼 쓰지 않는다.
토큰과 속성
| 이름 | 타입 | 기본값 | 설명 |
|---|---|---|---|
service? | 'gmail' | 'calendar' | 'drive' | 'slack' | 'notion' | calendar | 출처 서비스. |
state? | 'active' | 'paused' | 'disconnected-archive' | 'deleting' | 'deleted' | 'error' | active | 연결 상태. 바뀐 행동의 버튼 라벨이 바뀌고(“다시 읽기 시작”) 초점은 그 버튼으로 간다. |
confirmOpen? | 'none' | 'disconnect' | 'delete' | none | 열린 확인 대화상자(② neutral, ③ danger). 카탈로그에서는 비모달로 그린다. |
onPause? | () => void | — | ① 새 기록 읽기 멈추기(기존 기록 유지). 되돌릴 수 있음. |
onResume? | () => void | — | ① 다시 읽기 시작. |
onDisconnect? | () => void | — | ② 접근 철회, 보관본은 센트럴바이에 남음. 확인 뒤 호출. 되돌릴 수 있음. |
onReconnect? | () => void | — | ② 다시 연결. |
onDelete? | () => void | — | ③ 이 출처의 기록 모두 지우기. 확인 뒤 호출. 되돌릴 수 없음. 원래 서비스 자료는 그대로. |
접근성
키보드: 버튼 Tab. 확인 대화상자는 네이티브 모달: 열면 첫 버튼, Esc·취소 → 연 버튼으로 복귀.
- 결과는 화면의 Toast가 알린다(①② 되돌리기 있음, ③ 없음). 이 구획은 라이브 영역을 만들지 않는다.
- 완전 삭제의 typed confirm(문구 입력)은 법무 확인 대기라 넣지 않았다.