a↗agentbay.AgentBay 받기
내 계정 ▾
메뉴
← 실습 안내로 돌아가기
실습 결과

화면 설계

원본 다운로드 ↓

CRM-142 화면 설계

텍스트 와이어프레임만 제공하며 실행 화면이나 구현된 기능이 아닙니다.

Contacts                              [Import contacts]
Keep your customer contacts in one place.
┌ Import contacts ────────────────────────────────────┐
│ CSV stays in this browser.                          │
│ Maximum 100 KB (100,000 bytes), 500 nonblank records.│
│ Required columns: name, email. Optional: company.   │
│ CSV file [Choose file] customer-contacts.csv         │
│ [Review CSV]                    [Back to contacts]  │
│ Review: Ready 3 · Invalid 1 · Duplicate 2            │
│ Record 1 · Jordan Lee · jordan@example.test         │
│ Company: Fieldwork, Inc. · Ready                    │
│ …all six records, each with outcome/reason…         │
│ [ ] Fail next save                                 │
│ [Import ready contacts] [Cancel import]             │
└────────────────────────────────────────────────────┘
Search contacts [Name, email or company]
[Live status]
[Existing contact cards]
▸ Add contact

Import contacts 컨트롤은 패널을 열고 다음에 포커스를 둡니다: CSV file. Review CSV 버튼은 파일을 선택하지 않았거나 읽는 중이면 비활성화됩니다. 다음 값은 accept=".csv,text/csv" 선택기 안내로만 사용하며 검증으로 사용하지 않습니다. 파일 선택은 오류/개수/미리보기를 초기화하고 같은 파일을 다시 선택할 수 있게 합니다. 검토는 명시적인 로컬 읽기이며 아무것도 쓰지 않습니다. 읽기 상태를 표시한 뒤 검토 제목에 포커스를 두고(tabindex="-1") 기존 영역을 통해 개수를 알립니다: #status. 오래된 읽기 결과가 최신 선택을 덮어쓰거나 취소한 패널을 다시 열면 안 됩니다.

대상 samples/customer-contacts.csv 비교 대상 initialContacts 출처 src/contacts.js:

레코드이름결과 / 표시 사유
1Jordan LeeReady
2Alex DuplicateDuplicate: Email already in Contacts.
3Missing EmailInvalid: Enter a valid email.
4Casey "CJ" KimReady
5Jordan AgainDuplicate: Email repeats earlier valid record 1.
6<img src=x onerror=alert(1)>Ready; display literal text

각 레코드에서 앞뒤 공백을 제거한 name, email, company를 표시하고 company가 없으면 “: ”를 표시합니다. 사유에는 “Name is required.”와 이름 누락/잘못된 이메일이 함께 발생한 경우도 포함됩니다. 따옴표 안 줄바꿈은 pre-wrap으로 읽을 수 있게 유지합니다. 앱에서 행을 편집하지 않습니다: “Fix invalid rows in your CSV and choose the file again.” 구조 오류는 “Unclosed quote in record 2. Nothing imported.”처럼 표시하고 확인을 비활성화합니다. 제한 및 누락/중복 헤더에도 구체적인 메시지를 제공합니다.

확인 문구: “Import 3 ready contacts; skip 3 invalid or duplicate records.” 버튼의 접근 가능한 이름은 다음으로 유지합니다: Import ready contacts; Ready가 0개이거나 저장 중이면 비활성화합니다. 추가 확인 모달은 없습니다. 저장 중에는 “Saving contacts…”를 표시하고 파일/검토/취소/추가 변경을 막습니다. 실패 시 모든 미리보기 데이터를 유지하고 확인 버튼에 포커스를 둔 뒤 “Could not save contacts. Try again.”을 알립니다. 재시도에도 확인 레이블을 유지합니다. Fail next save 컨트롤은 실제 저장 시도(Add 또는 Import) 하나를 준비하며 사용되면 초기화되고 어댑터의 fail 옵션을 전달합니다. 연락처를 지우지 않습니다.

새 브라우저에서 예시 가져오기 성공 후: “Added 3 contacts; skipped 3 records.” 패널을 닫고 검색을 지워 가져온 연락처를 보여주며 총 연락처 5개를 표시하고 Import contacts에 포커스를 둡니다. 재검증 후 실제 개수는 달라질 수 있습니다. Cancel/Back은 Import contacts로 포커스를 돌리고 “Import cancelled. Contacts unchanged.”를 알리며 검색을 지우지 않습니다.

모든 컨트롤에 레이블, 네이티브 버튼/체크박스 의미 및 논리적 DOM 탭 순서가 있습니다. Enter는 버튼을 실행하고 Space는 데모 체크박스를 전환합니다. 기존의 보이는 포커스 테두리를 유지합니다. 포커스 트랩은 없습니다. 320px에서는 단일 열, 줄바꿈되는 동작, 너비가 제한된 파일 입력 및 긴 이메일/텍스트 줄바꿈을 사용합니다. 카드의 필드 레이블과 결과 텍스트는 계속 보여야 하며 색상만 사용하면 안 됩니다. 데스크톱에서는 기존 콘텐츠 너비 1050px와 더 넓은 카드 필드를 사용합니다. 가로 페이지 스크롤은 없습니다. 키보드, 320px 및 데스크톱 검증은 계획되었으며 아직 실행하지 않았습니다.

원본 파일 및 출처 세부 정보

output/docs/screen-design.md.txt · SHA-256 c2b1dc590b78cce4048445b09ac398e19d11c1bef1b9b255b3a71aeb91e48cd0

# CRM-142 screen design

Text wireframe only; no runtime screenshot or implemented feature.

```text
Contacts                              [Import contacts]
Keep your customer contacts in one place.
┌ Import contacts ────────────────────────────────────┐
│ CSV stays in this browser.                          │
│ Maximum 100 KB (100,000 bytes), 500 nonblank records.│
│ Required columns: name, email. Optional: company.   │
│ CSV file [Choose file] customer-contacts.csv         │
│ [Review CSV]                    [Back to contacts]  │
│ Review: Ready 3 · Invalid 1 · Duplicate 2            │
│ Record 1 · Jordan Lee · jordan@example.test         │
│ Company: Fieldwork, Inc. · Ready                    │
│ …all six records, each with outcome/reason…         │
│ [ ] Fail next save                                 │
│ [Import ready contacts] [Cancel import]             │
└────────────────────────────────────────────────────┘
Search contacts [Name, email or company]
[Live status]
[Existing contact cards]
▸ Add contact
```

`Import contacts` opens the panel and focuses `CSV file`. `Review CSV` is disabled without a selected file and while reading. Use `accept=".csv,text/csv"` as a chooser hint, not validation. File selection resets errors/counts/preview and permits reselecting the same file. Review is an explicit local read; it writes nothing. Show reading status, then focus the review heading (`tabindex="-1"`) and announce counts through existing `#status`. A stale read result must not replace a newer selection or reopen a cancelled panel.

For `samples/customer-contacts.csv` against `initialContacts` from `src/contacts.js`:

| Record | Name | Outcome / visible reason |
| --- | --- | --- |
| 1 | Jordan Lee | Ready |
| 2 | Alex Duplicate | Duplicate — Email already in Contacts. |
| 3 | Missing Email | Invalid — Enter a valid email. |
| 4 | Casey "CJ" Kim | Ready |
| 5 | Jordan Again | Duplicate — Email repeats earlier valid record 1. |
| 6 | `<img src=x onerror=alert(1)>` | Ready; display literal text |

Display every record's trimmed name, email and company; absent company shows “—”. Reasons also cover “Name is required.” and combined missing-name/invalid-email errors. Quoted embedded newlines remain readable with pre-wrap. No in-app row editing: “Fix invalid rows in your CSV and choose the file again.” Structural errors show e.g. “Unclosed quote in record 2. Nothing imported.” and disable confirmation. Limits and missing/duplicate headers have similarly specific messages.

Confirmation copy: “Import 3 ready contacts; skip 3 invalid or duplicate records.” Button accessible name stays `Import ready contacts`; disable when Ready is zero or saving. No additional confirmation modal. While saving show “Saving contacts…” and prevent file/review/cancel/add mutations. On failure keep all preview data, focus confirmation and announce “Could not save contacts. Try again.” Keep the confirmation label for retry. `Fail next save` arms one actual save attempt (Add or Import), resets when consumed, and passes the adapter's fail option; it does not clear contacts.

After successful sample import in a fresh browser: “Added 3 contacts; skipped 3 records.” Close panel, clear search to expose imported contacts, render five total contacts, focus Import contacts. Actual counts may differ after revalidation. Cancel/Back focus Import contacts and announce “Import cancelled. Contacts unchanged.” They do not clear the search.

All controls have labels, native buttons/checkbox semantics and logical DOM tab order; Enter activates buttons, Space toggles the demo checkbox. Retain the existing visible focus ring. No focus trap. At 320px use a single column, wrap actions, constrain file input, and break long emails/text; cards retain visible field labels and outcome text (never color alone). At desktop keep the existing 1050px content width and use wider card fields. No horizontal page scroll. Keyboard, 320px and desktop checks are planned, not executed.