@conscience-technology/ovenn 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/components/AIMessage/AIMessage.module.css +21 -0
- package/assets/components/AIMessage/AIMessage.tsx +27 -7
- package/assets/components/AttachmentItem/AttachmentItem.module.css +41 -10
- package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +9 -10
- package/assets/components/Callout/Callout.module.css +53 -7
- package/assets/components/Callout/Callout.tsx +26 -2
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/ChatComposer/ChatComposer.module.css +17 -0
- package/assets/components/ChatComposer/ChatComposer.tsx +131 -0
- package/assets/components/ChatComposer/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +192 -30
- package/assets/components/ChatInput/ChatInput.tsx +137 -45
- package/assets/components/ChatInput/SendButton.tsx +4 -1
- package/assets/components/ChatInput/index.ts +5 -0
- package/assets/components/ChatMessage/ChatMessage.module.css +19 -0
- package/assets/components/ChatMessage/ChatMessage.tsx +63 -0
- package/assets/components/ChatMessage/index.ts +2 -0
- package/assets/components/ChatReactions/ChatReactions.module.css +15 -0
- package/assets/components/ChatReactions/ChatReactions.tsx +58 -0
- package/assets/components/ChatReactions/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +106 -10
- package/assets/components/CodeBlock/CodeBlock.tsx +114 -29
- package/assets/components/CodeBlock/SyntaxHighlight.tsx +20 -0
- package/assets/components/CodeBlock/diff-lines.ts +21 -0
- package/assets/components/CodeBlock/index.ts +2 -1
- package/assets/components/CodeBlock/line-preview.ts +7 -0
- package/assets/components/CodeBlock/syntax-highlighter.ts +96 -0
- package/assets/components/CodeBlock/use-syntax-tokens.ts +17 -0
- package/assets/components/ColorField/ColorField.module.css +19 -196
- package/assets/components/ColorField/ColorField.tsx +116 -109
- package/assets/components/Combobox/Combobox.module.css +21 -4
- package/assets/components/Combobox/Combobox.tsx +37 -21
- package/assets/components/CommandPalette/CommandPalette.module.css +1 -1
- package/assets/components/ControlGroup/ControlGroup.module.css +13 -6
- package/assets/components/DatePicker/DateField.tsx +72 -25
- package/assets/components/DatePicker/DatePicker.module.css +28 -59
- package/assets/components/DatePicker/DatePicker.tsx +76 -40
- package/assets/components/Drawer/Drawer.module.css +12 -15
- package/assets/components/Drawer/Drawer.tsx +15 -23
- package/assets/components/EmojiPicker/EmojiGlyph.module.css +2 -0
- package/assets/components/EmojiPicker/EmojiGlyph.tsx +12 -0
- package/assets/components/EmojiPicker/EmojiPicker.module.css +43 -0
- package/assets/components/EmojiPicker/EmojiPicker.tsx +143 -0
- package/assets/components/EmojiPicker/UNICODE-LICENSE.txt +39 -0
- package/assets/components/EmojiPicker/data.ts +41 -0
- package/assets/components/EmojiPicker/emojiData-0.json +1 -0
- package/assets/components/EmojiPicker/emojiData-1.json +1 -0
- package/assets/components/EmojiPicker/emojiData-2.json +1 -0
- package/assets/components/EmojiPicker/emojiData-3.json +1 -0
- package/assets/components/EmojiPicker/emojiData.sources.json +35 -0
- package/assets/components/EmojiPicker/emojiData.ts +8 -0
- package/assets/components/EmojiPicker/emojiFallbacks.json +1 -0
- package/assets/components/EmojiPicker/index.ts +4 -0
- package/assets/components/EmptyState/EmptyState.module.css +2 -2
- package/assets/components/FileIcon/FileIcon.module.css +4 -6
- package/assets/components/Icon/LucideFamilyIcon.tsx +2 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +4 -0
- package/assets/components/Input/Input.module.css +33 -10
- package/assets/components/Input/Input.tsx +20 -9
- package/assets/components/MessageActions/MessageActions.module.css +2 -2
- package/assets/components/Onboarding/Onboarding.module.css +1 -1
- package/assets/components/ProgressBar/ProgressBar.module.css +38 -4
- package/assets/components/ProgressBar/ProgressBar.tsx +5 -1
- package/assets/components/RadioCard/RadioCard.module.css +18 -0
- package/assets/components/RadioCard/RadioCard.tsx +48 -7
- package/assets/components/Select/Select.module.css +9 -7
- package/assets/components/Select/Select.tsx +15 -2
- package/assets/components/Tabs/Tabs.module.css +1 -1
- package/assets/components/Tabs/Tabs.tsx +2 -2
- package/assets/components/Textarea/Textarea.module.css +28 -231
- package/assets/components/Textarea/Textarea.tsx +2 -2
- package/assets/components/TimePicker/TimePicker.module.css +16 -4
- package/assets/components/TimePicker/TimePicker.tsx +66 -8
- package/assets/components/Toast/Toast.module.css +18 -0
- package/assets/components/Toast/Toast.tsx +1 -1
- package/assets/components/Tooltip/Tooltip.tsx +33 -7
- package/assets/components/UserMessage/UserMessage.module.css +110 -1
- package/assets/components/UserMessage/UserMessage.tsx +138 -16
- package/assets/components/UserMessage/index.ts +4 -0
- package/assets/components/_data.ts +10 -5
- package/assets/components/_utils.css +31 -5
- package/assets/components/component-registry.json +1595 -107
- package/assets/components/index.ts +7 -0
- package/assets/components/tokens.css +83 -0
- package/assets/prompts/ASSEMBLY.md +11 -0
- package/assets/prompts/CATALOG.md +110 -106
- package/assets/prompts/PRINCIPLES.md +11 -1
- package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +2 -0
- package/assets/prompts/axes/font.md +6 -0
- package/assets/prompts/axes/material.md +1 -1
- package/assets/prompts/axes/motion.md +2 -0
- package/assets/prompts/axes/palette.md +9 -2
- package/assets/prompts/axes/voice.md +4 -0
- package/assets/prompts/components/README.md +3 -3
- package/assets/prompts/components/_variants.md +35 -35
- package/assets/prompts/components/accordion.md +15 -15
- package/assets/prompts/components/ai-message.md +14 -12
- package/assets/prompts/components/app-frame.md +16 -16
- package/assets/prompts/components/attachment-item.md +36 -30
- package/assets/prompts/components/attachment-thumb.md +14 -12
- package/assets/prompts/components/avatar-upload.md +10 -10
- package/assets/prompts/components/avatar.md +16 -16
- package/assets/prompts/components/badge.md +4 -4
- package/assets/prompts/components/breadcrumb.md +24 -24
- package/assets/prompts/components/bubble.md +13 -13
- package/assets/prompts/components/button-group.md +1 -1
- package/assets/prompts/components/button.md +36 -36
- package/assets/prompts/components/calendar.md +29 -29
- package/assets/prompts/components/callout.md +39 -23
- package/assets/prompts/components/canvas-edge.md +5 -2
- package/assets/prompts/components/canvas-node.md +3 -3
- package/assets/prompts/components/canvas.md +5 -2
- package/assets/prompts/components/card.md +21 -21
- package/assets/prompts/components/chart-bar.md +7 -7
- package/assets/prompts/components/chart-pie.md +3 -3
- package/assets/prompts/components/chart-radar.md +3 -3
- package/assets/prompts/components/chart-radial.md +4 -4
- package/assets/prompts/components/chat-composer.md +71 -0
- package/assets/prompts/components/chat-input.md +82 -27
- package/assets/prompts/components/chat-message.md +48 -0
- package/assets/prompts/components/chat-reactions.md +38 -0
- package/assets/prompts/components/checkbox-card.md +3 -3
- package/assets/prompts/components/checkbox.md +17 -17
- package/assets/prompts/components/chip.md +32 -32
- package/assets/prompts/components/code-block.md +109 -66
- package/assets/prompts/components/code.md +4 -4
- package/assets/prompts/components/color-area.md +9 -9
- package/assets/prompts/components/color-field.md +17 -13
- package/assets/prompts/components/color-picker.md +6 -6
- package/assets/prompts/components/color-slider.md +8 -8
- package/assets/prompts/components/color-swatch-picker.md +8 -8
- package/assets/prompts/components/color-swatch.md +9 -9
- package/assets/prompts/components/combobox.md +5 -2
- package/assets/prompts/components/command-palette.md +26 -26
- package/assets/prompts/components/comment.md +5 -2
- package/assets/prompts/components/context-menu.md +22 -22
- package/assets/prompts/components/control-group.md +4 -4
- package/assets/prompts/components/date-picker.md +31 -23
- package/assets/prompts/components/disclosure.md +10 -10
- package/assets/prompts/components/drawer.md +19 -18
- package/assets/prompts/components/dropdown-menu.md +21 -21
- package/assets/prompts/components/emoji-picker.md +45 -0
- package/assets/prompts/components/empty-state.md +20 -18
- package/assets/prompts/components/event-chip.md +11 -11
- package/assets/prompts/components/event-list-item.md +21 -21
- package/assets/prompts/components/file-icon.md +18 -19
- package/assets/prompts/components/gallery-item.md +19 -19
- package/assets/prompts/components/generated-image.md +10 -10
- package/assets/prompts/components/hint.md +19 -19
- package/assets/prompts/components/icon-button.md +16 -16
- package/assets/prompts/components/icon.md +12 -9
- package/assets/prompts/components/input.md +49 -46
- package/assets/prompts/components/kanban.md +34 -34
- package/assets/prompts/components/list-item.md +39 -39
- package/assets/prompts/components/menu-item.md +41 -41
- package/assets/prompts/components/message-actions.md +6 -6
- package/assets/prompts/components/message-quote.md +7 -7
- package/assets/prompts/components/message-sources.md +10 -10
- package/assets/prompts/components/message-state.md +17 -17
- package/assets/prompts/components/message-table.md +5 -5
- package/assets/prompts/components/mini-calendar.md +6 -1
- package/assets/prompts/components/modal.md +39 -39
- package/assets/prompts/components/multi-select.md +4 -1
- package/assets/prompts/components/onboarding.md +19 -19
- package/assets/prompts/components/page-header.md +31 -31
- package/assets/prompts/components/pagination.md +17 -17
- package/assets/prompts/components/progress-bar.md +14 -11
- package/assets/prompts/components/quotation-bar.md +10 -10
- package/assets/prompts/components/radio-card.md +7 -6
- package/assets/prompts/components/radio.md +9 -9
- package/assets/prompts/components/select.md +28 -25
- package/assets/prompts/components/shortcut.md +11 -11
- package/assets/prompts/components/sidebar.md +56 -56
- package/assets/prompts/components/skeleton.md +7 -4
- package/assets/prompts/components/slider.md +18 -18
- package/assets/prompts/components/spinner.md +16 -16
- package/assets/prompts/components/stepper.md +14 -14
- package/assets/prompts/components/switch.md +19 -20
- package/assets/prompts/components/tab-strip.md +31 -31
- package/assets/prompts/components/table-cell.md +4 -4
- package/assets/prompts/components/table-header.md +16 -16
- package/assets/prompts/components/table-row-edit.md +19 -19
- package/assets/prompts/components/table-row-select.md +9 -9
- package/assets/prompts/components/table-row.md +18 -18
- package/assets/prompts/components/tabs.md +26 -25
- package/assets/prompts/components/tag.md +6 -6
- package/assets/prompts/components/textarea.md +16 -15
- package/assets/prompts/components/time-picker.md +21 -14
- package/assets/prompts/components/timeline-view.md +4 -4
- package/assets/prompts/components/toast.md +42 -41
- package/assets/prompts/components/toolbar.md +23 -23
- package/assets/prompts/components/tooltip.md +15 -14
- package/assets/prompts/components/top-loader.md +11 -11
- package/assets/prompts/components/topbar.md +35 -35
- package/assets/prompts/components/tree-nav.md +9 -9
- package/assets/prompts/components/user-message.md +23 -12
- package/assets/prompts/design-examples/README.md +1 -1
- package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
- package/assets/prompts/design-examples/catalog.json +124 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +346 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +375 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +8 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +19 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +139 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useDemoTextStream.ts +30 -0
- package/assets/prompts/primitives/emerge.md +2 -0
- package/assets/prompts/templates/README.md +1 -1
- package/assets/prompts/templates/ains.md +7 -0
- package/assets/prompts/templates/minimal.md +6 -0
- package/assets/prompts/templates/onboarding.md +156 -0
- package/assets/prompts/templates/workspace.md +13 -8
- package/assets/prompts/tokens/color.md +7 -2
- package/assets/prompts/tokens/radius.md +22 -0
- package/assets/prompts/use-cases/chart-chart-area.md +40 -40
- package/assets/prompts/use-cases/chart-chart-bar.md +34 -34
- package/assets/prompts/use-cases/chart-chart-pie.md +14 -14
- package/assets/prompts/use-cases/chart-chart-radar.md +24 -24
- package/assets/prompts/use-cases/chart-chart-radial.md +14 -14
- package/assets/prompts/use-cases/chart-segmented-chart.md +32 -32
- package/assets/prompts/use-cases/chat-chat-composer.md +529 -0
- package/assets/prompts/use-cases/chat-chat-input.md +1766 -0
- package/assets/prompts/use-cases/data-comment.md +39 -39
- package/assets/prompts/use-cases/data-data-table.md +34 -34
- package/assets/prompts/use-cases/data-list-item.md +16 -16
- package/assets/prompts/use-cases/data-metric-card.md +18 -18
- package/assets/prompts/use-cases/data-table-row.md +19 -19
- package/assets/prompts/use-cases/data-table-toolbar.md +10 -10
- package/assets/prompts/use-cases/feedback-drawer.md +35 -30
- package/assets/prompts/use-cases/feedback-progress-bar.md +23 -18
- package/assets/prompts/use-cases/general-toolbar.md +16 -16
- package/assets/prompts/use-cases/general-tooltip.md +26 -26
- package/assets/prompts/use-cases/input-checkbox.md +27 -27
- package/assets/prompts/use-cases/structure-card.md +9 -9
- package/assets/prompts/use-cases/structure-page-header.md +17 -17
- package/assets/prompts/use-cases/structure-sidebar.md +20 -20
- package/assets/prompts/use-cases/structure-topbar.md +38 -42
- package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
- package/package.json +6 -2
- package/src/utils/design-examples.js +3 -4
- package/assets/prompts/templates/glass-button.md +0 -337
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
# User Message
|
|
1
|
+
# AI User Message
|
|
2
2
|
|
|
3
3
|
### 원칙
|
|
4
|
-
사용자가 보낸 채팅 메시지. [[components/bubble]] + [[components/message-actions]] 조합. **오른쪽 정렬** 고정. 액션은 기본 호버 시만
|
|
4
|
+
사용자가 보낸 채팅 메시지. [[components/bubble]] + [[components/message-actions]] 조합. **오른쪽 정렬** 고정. 액션은 기본 호버 시만 노출: 메시지 리스트가 액션 아이콘으로 어수선해지지 않게.
|
|
5
5
|
|
|
6
6
|
### Do
|
|
7
|
-
- 기본
|
|
7
|
+
- 기본 액션은 `[copy, edit]`만 제공한다. 복사와 편집 패널은 기본 내장한다. 편집 패널은 테두리 안에 입력과 취소·보내기를 배치한다. 패널만 내부 여백을 소유하고 Textarea 패딩은 0이며, 입력은 말풍선과 동일한 text-base/line-height 1.5를 사용한다. 보내기는 primary이며, 편집 진입 시 원문과 동일하거나 비어 있으면 disabled다. 앞뒤 공백을 제외한 내용이 바뀐 경우에만 전송하며, 원문으로 되돌리면 다시 비활성화한다. 버튼과 키보드 전송 모두 동일한 조건을 검사한다. 높이 전환·페이드는 모션 토큰과 reduced-motion을 따른다. 일반 문자열·중첩 텍스트는 자동 추출하고, 불투명한 커스텀 ReactNode 본문은 `textValue`로 편집·복사 원문을 제공한다. `onEdit(text)`으로 상위 데이터/재전송을 연결하고, Promise 완료 후 닫으며 실패하면 초안을 보존한다. 전달한 `actions[].onClick`은 내장 동작보다 우선한다. 삭제는 명시적으로 요청한 커스텀 액션에만 넣는다. 명시적 delete 액션은 onDelete 완료 후 메시지를 제거하며 실패하면 유지한다. 콜백이 없으면 로컬 상태를 갱신한다. 문서도 별도 편집 구현 없이 공용 동작을 사용한다.
|
|
8
|
+
- 좌우 패딩은 UserMessage에서 md=`space-4`, lg=`space-5`로 제공한다. fill=none은 기존 수평 패딩 0을 유지한다. Bubble 공통 크기를 바꾸지 않는다.
|
|
9
|
+
- 새 메시지는 기본 `animate=true`로 아래에서 위로 올라오며 fade-in한다. 기존 DOM의 일반 rerender에서는 재시작하지 않는다. 과거 이력을 불러오거나 스레드를 전환할 때는 `animate={false}`를 사용한다. Motion 축과 prefers-reduced-motion을 따른다.
|
|
10
|
+
- 기본 구성: `shape=circular-drop, fill=translucent, tail=end`: 레퍼런스 톤.
|
|
8
11
|
- 액션은 `[copy, edit]` 기본. `actionsVisibility="show" | "hover"`로 상시/호버.
|
|
12
|
+
- 이미지 첨부는 22×size-unit(기본 88px, md 썸네일의 2.2배)로 확대하고 오른쪽 정렬의 한 줄 최대 3개, 초과 시 다음 줄로 구성한다. 좁은 화면에서는 가용 너비에 맞춰 줄바꿈한다. 파일 첨부는 오른쪽 정렬의 세로 목록으로 구성한다. 첨부 묶음과 말풍선 사이 간격은 `space-2`이며 액션 간격은 그대로 유지한다.
|
|
9
13
|
- 첨부 있으면 `before` slot에 [[components/attachment-thumb]] / [[components/attachment-item]] 자유 조합. 상위에서 레이아웃 책임.
|
|
10
14
|
- 매우 긴 글은 bubble이 max-width 안에서 wrap, 그보다 넘으면 자연스레 아래로. 상한은 토큰 `--user-message-max`(= content-max × 0.72). AI 응답은 트랙 폭 전체를 쓰는 반면 user bubble은 상한을 둬서 "오른쪽 정렬 말풍선" 리듬을 유지(iMessage/ChatGPT/Claude 표준).
|
|
11
15
|
|
|
12
16
|
### Don't
|
|
13
|
-
- 왼쪽 정렬하지
|
|
14
|
-
- 액션 라벨을 아이콘 옆에 노출하지
|
|
15
|
-
- bubble 안에 복잡한 레이아웃(table·code block) 넣지
|
|
16
|
-
- 아바타·이름 넣지
|
|
17
|
+
- 왼쪽 정렬하지 않는다: user는 **항상 오른쪽**. 왼쪽은 AI/시스템.
|
|
18
|
+
- 액션 라벨을 아이콘 옆에 노출하지 않는다: title/aria-label만 (MessageActions 규약).
|
|
19
|
+
- bubble 안에 복잡한 레이아웃(table·code block) 넣지 않는다: 그건 AIMessage 영역.
|
|
20
|
+
- 아바타·이름 넣지 않는다: user 메시지는 암묵적으로 "나".
|
|
17
21
|
|
|
18
22
|
### Fallback
|
|
19
23
|
shape 애매하면 `circular-drop`, fill 애매하면 `translucent`, visibility 애매하면 `hover`.
|
|
20
24
|
|
|
21
25
|
### 관련
|
|
22
|
-
- [[components/bubble]]
|
|
23
|
-
- [[components/message-actions]]
|
|
24
|
-
- [[components/ai-message]]
|
|
25
|
-
- [[components/attachment-thumb]] / [[components/attachment-item]]
|
|
26
|
+
- [[components/bubble]]: 담는 그릇
|
|
27
|
+
- [[components/message-actions]]: 액션 바
|
|
28
|
+
- [[components/ai-message]]: 짝 컴포넌트
|
|
29
|
+
- [[components/attachment-thumb]] / [[components/attachment-item]]: before slot 조합
|
|
26
30
|
|
|
27
31
|
### Props 시그니처
|
|
28
32
|
```tsx
|
|
@@ -32,6 +36,10 @@ shape 애매하면 `circular-drop`, fill 애매하면 `translucent`, visibility
|
|
|
32
36
|
size="md | lg" // default: md
|
|
33
37
|
actionsVisibility="show | hover" // default: hover
|
|
34
38
|
actions={[{ kind: "copy" }, { kind: "edit" }]} // 비우려면 []
|
|
39
|
+
textValue={string} // 커스텀 본문의 편집·복사 원문
|
|
40
|
+
onEdit={(text) => void | Promise<void>} // 수정 전송/데이터 갱신
|
|
41
|
+
onDelete={() => void | Promise<void>} // 명시적 delete 액션만
|
|
42
|
+
animate={boolean} // default: true; history는 false
|
|
35
43
|
before={ReactNode} // 첨부·인용 등 bubble 위
|
|
36
44
|
>
|
|
37
45
|
메시지 본문
|
|
@@ -41,10 +49,13 @@ shape 애매하면 `circular-drop`, fill 애매하면 `translucent`, visibility
|
|
|
41
49
|
### 레이아웃
|
|
42
50
|
- root: `flex-direction: column; align-items: flex-end; gap: space-1; width: 100%`
|
|
43
51
|
- 메시지 리스트 안에서 각 UserMessage가 오른쪽에 자동 정렬됨.
|
|
44
|
-
- Bubble `tail="end"`
|
|
52
|
+
- Bubble `tail="end"` 고정: 오른쪽 상단 각짐.
|
|
45
53
|
- MessageActions `align="end"`.
|
|
46
54
|
|
|
47
55
|
<!-- component-contract -->
|
|
48
56
|
```json
|
|
49
57
|
{"roles":["user-message"],"native":[],"hints":[],"requires":[]}
|
|
50
58
|
```
|
|
59
|
+
|
|
60
|
+
### 이름 호환
|
|
61
|
+
- AI 전용 신규 조립에서는 `AIUserMessage`과 `AIUserMessageProps`를 사용한다. 기존 `UserMessage` export 및 문서 경로는 호환 유지한다. 팀 채팅은 [[components/chat-composer]]·[[components/chat-message]]를 사용한다.
|
|
Binary file
|
|
@@ -1 +1,124 @@
|
|
|
1
|
-
[
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "ai-chat-full-page",
|
|
4
|
+
"name": "쓰레드 탐색형 풀페이지 AI 채팅",
|
|
5
|
+
"status": "approved",
|
|
6
|
+
"approval": "2026-11-09 사용자가 현재 풀페이지 화면을 예시로 저장하도록 명시적으로 승인했다.",
|
|
7
|
+
"scope": "app-shell",
|
|
8
|
+
"domain": "업무용 AI 어시스턴트",
|
|
9
|
+
"useWhen": "채팅 쓰레드를 탐색하며 긴 AI 대화를 읽고 하단 입력창으로 이어서 작업하는 독립 앱 화면",
|
|
10
|
+
"context": {
|
|
11
|
+
"placement": "독립 풀페이지 앱 셸",
|
|
12
|
+
"userTask": "대화를 만들고 검색·전환·이름 변경·삭제하며 AI 응답을 읽고 메시지를 보낸다.",
|
|
13
|
+
"assumptions": [
|
|
14
|
+
"실제 AI 연결 없는 로컬 시나리오다.",
|
|
15
|
+
"데스크톱은 왼쪽 Sidebar와 옆 Topbar를 함께 사용한다.",
|
|
16
|
+
"문서 메뉴·검색·사용사례 목록에 독립 URL을 노출하지 않는다."
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"tags": [
|
|
20
|
+
"AI",
|
|
21
|
+
"채팅",
|
|
22
|
+
"쓰레드",
|
|
23
|
+
"사이드바",
|
|
24
|
+
"탑바",
|
|
25
|
+
"chat",
|
|
26
|
+
"conversation",
|
|
27
|
+
"sidebar"
|
|
28
|
+
],
|
|
29
|
+
"patterns": [
|
|
30
|
+
"sidebar-first-chat-shell",
|
|
31
|
+
"thread-navigation",
|
|
32
|
+
"fixed-chat-composer",
|
|
33
|
+
"streaming-conversation"
|
|
34
|
+
],
|
|
35
|
+
"aliases": [
|
|
36
|
+
"풀페이지 채팅",
|
|
37
|
+
"AI 채팅 앱",
|
|
38
|
+
"쓰레드 목록",
|
|
39
|
+
"full page chat",
|
|
40
|
+
"thread sidebar"
|
|
41
|
+
],
|
|
42
|
+
"reuseFor": [
|
|
43
|
+
"여러 대화와 작업 이력을 오가는 AI 업무 도구",
|
|
44
|
+
"하단 입력을 유지하면서 긴 대화를 읽는 화면"
|
|
45
|
+
],
|
|
46
|
+
"referenceParts": [
|
|
47
|
+
"전체 높이 왼쪽 Sidebar 옆에 48px Topbar를 배치하는 AppFrame",
|
|
48
|
+
"새 대화·검색·쓰레드 목록과 중앙 빈 상태",
|
|
49
|
+
"쓰레드명과 이름 변경·삭제 메뉴",
|
|
50
|
+
"하단 ChatInput과 본문 독립 스크롤",
|
|
51
|
+
"모바일 제목 caret을 통한 목록·대화 전환"
|
|
52
|
+
],
|
|
53
|
+
"principles": [
|
|
54
|
+
"대화 탐색과 메시지 작성을 서로 다른 고정 영역에 배치한다.",
|
|
55
|
+
"풀페이지는 불필요한 인사말·추천 질문 없이 대화에 집중한다.",
|
|
56
|
+
"공유 EmptyState·메뉴·입력 컴포넌트의 행동을 재사용한다."
|
|
57
|
+
],
|
|
58
|
+
"adaptation": "대상 제품의 AI API·영구 저장·권한·첨부 처리를 연결한다. 카드 분기는 별도 사용사례이므로 풀페이지와 구별한다. 대화 간격과 셸 폭은 대상 업무 밀도에 맞춰 조정하고 실제 상태를 검증한다.",
|
|
59
|
+
"limitations": [
|
|
60
|
+
"실제 AI API·인증·영구 저장은 연결하지 않았다. 새로고침하면 대화가 초기화된다.",
|
|
61
|
+
"첨부 버튼은 연결되지 않았다.",
|
|
62
|
+
"모든 테마·실제 모바일 키보드·스크린리더·오류 상태는 검증하지 않았다.",
|
|
63
|
+
"대표 캡처는 1440×900 라이트 모드의 한 쓰레드 대화 상태다."
|
|
64
|
+
],
|
|
65
|
+
"coverage": {
|
|
66
|
+
"interactions": {
|
|
67
|
+
"status": "implemented",
|
|
68
|
+
"details": [
|
|
69
|
+
"새 대화·검색·쓰레드 전환·이름 변경·삭제를 로컬 상태에 연결한다.",
|
|
70
|
+
"메시지 전송·응답 스트리밍·중지·메시지 편집과 재생성을 제공한다. 개별 검증 범위는 참고 문서의 한계를 따른다."
|
|
71
|
+
],
|
|
72
|
+
"evidence": [
|
|
73
|
+
"sources/ai-chat-full-page/REFERENCE.md"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"responsive": {
|
|
77
|
+
"status": "implemented",
|
|
78
|
+
"details": [
|
|
79
|
+
"700px 이하에서 제목 caret으로 쓰레드 목록과 대화를 전환한다. Drawer를 사용하지 않는다.",
|
|
80
|
+
"탑바·입력과 별개로 본문을 스크롤한다."
|
|
81
|
+
],
|
|
82
|
+
"evidence": [
|
|
83
|
+
"sources/ai-chat-full-page/REFERENCE.md"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"preview": "ai-chat-full-page.png",
|
|
88
|
+
"previewCapturedAt": "2026-11-09",
|
|
89
|
+
"files": [
|
|
90
|
+
{
|
|
91
|
+
"path": "FullPageChat.tsx",
|
|
92
|
+
"source": "web/examples/ai-chat/FullPageChat.tsx"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"path": "ChatExperience.tsx",
|
|
96
|
+
"source": "web/examples/ai-chat/ChatExperience.tsx"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"path": "ChatExperience.module.css",
|
|
100
|
+
"source": "web/examples/ai-chat/ChatExperience.module.css"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"path": "useChatDemo.ts",
|
|
104
|
+
"source": "web/examples/ai-chat/useChatDemo.ts"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"path": "useDemoTextStream.ts",
|
|
108
|
+
"source": "web/examples/ai-chat/useDemoTextStream.ts"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "REFERENCE.md",
|
|
112
|
+
"source": "prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"previewSourceDigests": {
|
|
116
|
+
"FullPageChat.tsx": "f7108555ef486d92627a651d1b6df56a061e69d99b45e261c908a26d47478d1e",
|
|
117
|
+
"ChatExperience.tsx": "e2c5dd647957fa0ba5d7019ec9e8ec56e9f80de22fa5a830563c7a82f4cd12f7",
|
|
118
|
+
"ChatExperience.module.css": "911b780c8443c0232f90566b4e0c03dafccb194bfe086bbb8c666a03a20f56de",
|
|
119
|
+
"useChatDemo.ts": "d8a410d0c14b26df6c26fdd1b15b64d2cc6b74ca1453d8ed5b6e776860395fa4",
|
|
120
|
+
"useDemoTextStream.ts": "72dc072b80252d5eec581e0a4ba8c1c9a045f246ba1b41d0e83308981fb96cf3",
|
|
121
|
+
"REFERENCE.md": "1a3e21aa009b0290fd091e3a735ddab5b4ae064af8919417eeda5d736d58e79c"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
.stage {
|
|
2
|
+
container-type: inline-size;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.card.card {
|
|
9
|
+
--chat-content-inset: var(--space-4);
|
|
10
|
+
--chat-secondary-fg: color-mix(in oklch, var(--fg-strong) 60%, var(--bg));
|
|
11
|
+
--chat-card-width: calc(var(--size-24) * 4.5);
|
|
12
|
+
--chat-card-height: calc(var(--size-24) * 5.5);
|
|
13
|
+
--chat-question-width: calc(var(--size-unit) * 40);
|
|
14
|
+
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
17
|
+
width: 100%;
|
|
18
|
+
max-width: var(--chat-card-width);
|
|
19
|
+
height: var(--chat-card-height);
|
|
20
|
+
min-height: 0;
|
|
21
|
+
padding: 0 0 var(--space-4);
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
background: var(--bg);
|
|
24
|
+
border-color: var(--border);
|
|
25
|
+
corner-shape: var(--card-corner-shape);
|
|
26
|
+
border-radius: var(--radius-xl);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.card.card:lang(en) {
|
|
30
|
+
--chat-question-width: calc(var(--size-24) * 2);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.header {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
padding: var(--space-2) var(--chat-content-inset) var(--space-1);
|
|
38
|
+
background: var(--bg);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.threadTrigger.threadTrigger {
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
padding-inline: var(--space-2);
|
|
46
|
+
font-size: var(--text-base);
|
|
47
|
+
font-weight: var(--font-weight-medium);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.threadTitle {
|
|
51
|
+
display: block;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.viewport {
|
|
59
|
+
min-height: 0;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
overscroll-behavior: contain;
|
|
63
|
+
padding-top: var(--space-4);
|
|
64
|
+
scroll-padding-block: var(--space-4);
|
|
65
|
+
mask-image: linear-gradient(to bottom, transparent, var(--fixed-black) var(--space-4));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.viewport:focus-visible {
|
|
69
|
+
outline: none;
|
|
70
|
+
background: var(--hover);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.messages {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
gap: var(--space-5);
|
|
77
|
+
padding: var(--space-2) var(--chat-content-inset) var(--space-5);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.messageText {
|
|
81
|
+
white-space: pre-wrap;
|
|
82
|
+
overflow-wrap: anywhere;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.assistant.assistant [data-ai-message-body] {
|
|
86
|
+
font-size: var(--text-base);
|
|
87
|
+
line-height: var(--lh-base);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.welcome {
|
|
91
|
+
display: flex;
|
|
92
|
+
min-height: 100%;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
gap: var(--space-1);
|
|
97
|
+
padding: var(--space-8) var(--space-5) var(--space-10);
|
|
98
|
+
text-align: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.greeting.greeting,
|
|
102
|
+
.invitation.invitation {
|
|
103
|
+
margin: 0;
|
|
104
|
+
font-size: clamp(var(--text-xl), 4cqi, var(--text-2xl));
|
|
105
|
+
font-weight: var(--font-weight-semibold);
|
|
106
|
+
line-height: var(--lh-snug);
|
|
107
|
+
letter-spacing: var(--tracking-tight);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.greeting.greeting {
|
|
111
|
+
color: var(--fg-strong);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.invitation.invitation {
|
|
115
|
+
color: var(--chat-secondary-fg);
|
|
116
|
+
text-wrap: balance;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.bottom {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
gap: var(--space-1);
|
|
123
|
+
min-width: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.questions {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: flex-start;
|
|
129
|
+
gap: var(--space-2);
|
|
130
|
+
padding: var(--space-2) var(--chat-content-inset);
|
|
131
|
+
overflow-x: auto;
|
|
132
|
+
overscroll-behavior-inline: contain;
|
|
133
|
+
scroll-padding-inline: var(--chat-content-inset);
|
|
134
|
+
scrollbar-width: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.question.question {
|
|
138
|
+
flex: 0 0 var(--chat-question-width);
|
|
139
|
+
margin-top: 0;
|
|
140
|
+
word-break: keep-all;
|
|
141
|
+
border-radius: var(--radius-lg);
|
|
142
|
+
--selected-fg: var(--fg-muted);
|
|
143
|
+
--ring-shadow-field: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.question > span:first-of-type {
|
|
147
|
+
box-shadow: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.question:focus-visible {
|
|
151
|
+
background: var(--hover);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.composer.composer {
|
|
155
|
+
--chat-input-padding-y: var(--space-2);
|
|
156
|
+
margin-inline: var(--chat-content-inset);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.composer textarea::placeholder {
|
|
160
|
+
color: var(--chat-secondary-fg);
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.composer button:disabled {
|
|
165
|
+
cursor: not-allowed;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@container (max-width: 480px) {
|
|
169
|
+
.card.card {
|
|
170
|
+
--chat-content-inset: var(--space-3);
|
|
171
|
+
--chat-card-height: calc(var(--size-24) * 5);
|
|
172
|
+
--chat-question-width: calc(var(--size-unit) * 40);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Independent page: shared conversation, wider track and its own shell. */
|
|
179
|
+
.fullPage {
|
|
180
|
+
--chat-content-inset: var(--space-6);
|
|
181
|
+
--chat-secondary-fg: color-mix(in oklch, var(--fg-strong) 60%, var(--bg));
|
|
182
|
+
--chat-page-width: calc(var(--size-24) * 8);
|
|
183
|
+
--app-frame-bg: var(--bg);
|
|
184
|
+
--chat-page-offset: 0px;
|
|
185
|
+
--chat-page-height: 100dvh;
|
|
186
|
+
|
|
187
|
+
position: fixed;
|
|
188
|
+
inset-inline: 0;
|
|
189
|
+
top: var(--chat-page-offset);
|
|
190
|
+
height: var(--chat-page-height);
|
|
191
|
+
width: 100%;
|
|
192
|
+
container-type: inline-size;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.fullPage > [data-slot="app-frame-content"] {
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.fullPage .header {
|
|
200
|
+
padding: 0;
|
|
201
|
+
background: transparent;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.pageBody {
|
|
205
|
+
display: grid;
|
|
206
|
+
grid-template-rows: minmax(0, 1fr) auto;
|
|
207
|
+
height: 100%;
|
|
208
|
+
min-height: 0;
|
|
209
|
+
min-width: 0;
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
background: var(--app-frame-bg);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.fullPage .messages {
|
|
215
|
+
width: 100%;
|
|
216
|
+
max-width: var(--chat-page-width);
|
|
217
|
+
margin-inline: auto;
|
|
218
|
+
gap: 0;
|
|
219
|
+
padding-block: var(--space-6) var(--space-8);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.fullPage .bottom {
|
|
223
|
+
width: 100%;
|
|
224
|
+
max-width: var(--chat-page-width);
|
|
225
|
+
margin-inline: auto;
|
|
226
|
+
padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.fullPage .composer.composer {
|
|
230
|
+
--chat-input-padding-y: var(--space-4);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
@media (max-width: 640px) {
|
|
236
|
+
.fullPage {
|
|
237
|
+
--chat-content-inset: var(--space-4);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
.fullPage .bottom {
|
|
243
|
+
padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Full application shell: full-height left navigation with a topbar beside it. */
|
|
248
|
+
.fullPage.fullPage[data-has-sidebar][data-layout="sidebar-first"] {
|
|
249
|
+
--chat-history-width: calc(var(--size-24) * 3);
|
|
250
|
+
|
|
251
|
+
grid-template-columns: var(--chat-history-width) minmax(0, 1fr);
|
|
252
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
253
|
+
grid-template-areas: "sidebar topbar" "sidebar content";
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.fullPage.fullPage[data-has-sidebar] > [data-slot="app-frame-sidebar"] {
|
|
257
|
+
display: flex;
|
|
258
|
+
min-width: 0;
|
|
259
|
+
border-inline-end: 1px solid var(--border);
|
|
260
|
+
background: var(--app-frame-bg);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.threadHeading {
|
|
264
|
+
flex: 1 1 0;
|
|
265
|
+
min-width: 0;
|
|
266
|
+
max-width: 100%;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.mobileThreadTrigger.mobileThreadTrigger {
|
|
270
|
+
max-width: 100%;
|
|
271
|
+
padding-inline: 0;
|
|
272
|
+
font: inherit;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.pageThreadTitle {
|
|
276
|
+
display: block;
|
|
277
|
+
overflow: hidden;
|
|
278
|
+
text-overflow: ellipsis;
|
|
279
|
+
white-space: nowrap;
|
|
280
|
+
color: var(--fg-strong);
|
|
281
|
+
font-size: var(--text-base);
|
|
282
|
+
font-weight: var(--font-weight-medium);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.pageThreadTitle:focus {
|
|
286
|
+
outline: none;
|
|
287
|
+
color: var(--fg-strong);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.history.history {
|
|
291
|
+
width: 100%;
|
|
292
|
+
min-width: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.historyHeaderInner {
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-direction: column;
|
|
298
|
+
gap: var(--space-2);
|
|
299
|
+
width: 100%;
|
|
300
|
+
padding: var(--space-4) var(--space-4) var(--space-2);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.historyTitle.historyTitle {
|
|
304
|
+
margin: 0;
|
|
305
|
+
font-size: var(--text-base);
|
|
306
|
+
line-height: var(--lh-base);
|
|
307
|
+
font-weight: var(--font-weight-semibold);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.historyBodyInner.historyBodyInner {
|
|
311
|
+
display: flex;
|
|
312
|
+
flex-direction: column;
|
|
313
|
+
flex: 1 0 auto;
|
|
314
|
+
gap: var(--space-3);
|
|
315
|
+
padding: var(--space-2) var(--space-3) var(--space-4);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.historyEmpty.historyEmpty {
|
|
319
|
+
flex: 1 0 auto;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
@media (max-width: 700px) {
|
|
324
|
+
.fullPage.fullPage[data-has-sidebar][data-layout="sidebar-first"] {
|
|
325
|
+
grid-template-columns: minmax(0, 1fr);
|
|
326
|
+
grid-template-areas: "topbar" "content";
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.fullPage.fullPage[data-has-sidebar] > [data-slot="app-frame-sidebar"] {
|
|
330
|
+
display: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.fullPage.fullPage[data-has-sidebar][data-mobile-view="threads"] {
|
|
334
|
+
grid-template-areas: "topbar" "sidebar";
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.fullPage.fullPage[data-has-sidebar][data-mobile-view="threads"] > [data-slot="app-frame-sidebar"] {
|
|
338
|
+
display: flex;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.fullPage.fullPage[data-has-sidebar][data-mobile-view="threads"] > [data-slot="app-frame-content"] {
|
|
342
|
+
display: none;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|