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

हर रिकॉर्ड का trim किया 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 शून्य होने या सहेजते समय बंद रखें। अतिरिक्त पुष्टि मोडल नहीं। सहेजते समय “Saving contacts…” दिखाएँ और फ़ाइल/समीक्षा/रद्द/जोड़ने के बदलाव रोकें। विफलता पर पूरा पूर्वावलोकन बनाए रखें, पुष्टि पर फ़ोकस दें और “Could not save contacts. Try again.” बताएँ। फिर कोशिश के लिए पुष्टि का वही लेबल रखें। Fail next save अगली वास्तविक Add या Import सेव कोशिश तैयार करता है, इस्तेमाल होने पर रीसेट होता है और अडैप्टर का fail विकल्प भेजता है; संपर्क साफ़ नहीं करता।

नए ब्राउज़र में सफल नमूना आयात के बाद: “Added 3 contacts; skipped 3 records.” पैनल बंद करें, खोज हटाकर आयात किए संपर्क दिखाएँ, कुल पाँच संपर्क रेंडर करें और Import contacts पर फ़ोकस दें। फिर सत्यापन के बाद असली गिनती बदल सकती है। Cancel/Back फ़ोकस Import contacts पर लौटाएँ और “Import cancelled. Contacts unchanged.” बताएँ। वे खोज नहीं हटाते।

सभी नियंत्रणों में लेबल, नेटिव बटन/चेकबॉक्स व्यवहार और तार्किक DOM Tab क्रम हो; 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.