@conscience-technology/ovenn 0.6.7 → 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 +23 -1
- package/assets/components/AIMessage/AIMessage.tsx +27 -7
- package/assets/components/Accordion/Accordion.module.css +3 -0
- package/assets/components/AppFrame/AppFrame.module.css +2 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +50 -13
- package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +12 -9
- package/assets/components/Avatar/Avatar.module.css +26 -11
- package/assets/components/Avatar/Avatar.tsx +1 -1
- package/assets/components/AvatarUpload/AvatarUpload.module.css +4 -3
- package/assets/components/Badge/Badge.module.css +96 -70
- package/assets/components/Badge/Badge.tsx +33 -25
- package/assets/components/Breadcrumb/Breadcrumb.module.css +8 -4
- package/assets/components/Breadcrumb/Breadcrumb.tsx +1 -1
- package/assets/components/Bubble/Bubble.module.css +6 -0
- package/assets/components/Button/Button.module.css +6 -0
- package/assets/components/Calendar/Calendar.module.css +244 -0
- package/assets/components/Calendar/Calendar.tsx +419 -0
- package/assets/components/Calendar/index.ts +2 -0
- package/assets/components/Callout/Callout.module.css +54 -7
- package/assets/components/Callout/Callout.tsx +26 -2
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/Canvas/Canvas.module.css +75 -0
- package/assets/components/Canvas/Canvas.tsx +699 -0
- package/assets/components/Canvas/alignment.ts +34 -0
- package/assets/components/Canvas/clipboard.ts +30 -0
- package/assets/components/Canvas/collision.ts +67 -0
- package/assets/components/Canvas/edgeOptions.ts +11 -0
- package/assets/components/Canvas/graph.ts +11 -0
- package/assets/components/Canvas/history.ts +41 -0
- package/assets/components/Canvas/index.ts +4 -0
- package/assets/components/Canvas/selection.ts +56 -0
- package/assets/components/Canvas/tokens.css +61 -0
- package/assets/components/Canvas/types.ts +27 -0
- package/assets/components/Canvas/useCanvasSettlement.ts +79 -0
- package/assets/components/CanvasEdge/CanvasEdge.module.css +62 -0
- package/assets/components/CanvasEdge/CanvasEdge.tsx +121 -0
- package/assets/components/CanvasEdge/geometry.ts +350 -0
- package/assets/components/CanvasEdge/index.ts +4 -0
- package/assets/components/CanvasEdge/interactions.ts +14 -0
- package/assets/components/CanvasEdge/tokens.css +29 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +234 -30
- package/assets/components/CanvasNode/CanvasNode.tsx +95 -28
- package/assets/components/CanvasNode/index.ts +1 -1
- package/assets/components/CanvasNode/runningOutline.ts +59 -0
- package/assets/components/CanvasNode/tokens.css +76 -13
- package/assets/components/Card/Card.module.css +5 -0
- package/assets/components/Chart/Chart.module.css +278 -0
- package/assets/components/Chart/Chart.tsx +385 -0
- package/assets/components/Chart/entrance.tsx +57 -0
- package/assets/components/Chart/index.ts +14 -0
- 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 +197 -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/Checkbox/Checkbox.module.css +39 -0
- package/assets/components/Checkbox/Checkbox.tsx +99 -14
- package/assets/components/Checkbox/index.ts +1 -1
- package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -177
- package/assets/components/CheckboxCard/CheckboxCard.tsx +6 -72
- package/assets/components/Chip/Chip.module.css +20 -30
- package/assets/components/Code/Code.module.css +1 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +113 -13
- 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/ColorArea/ColorArea.module.css +3 -0
- package/assets/components/ColorField/ColorField.module.css +19 -190
- package/assets/components/ColorField/ColorField.tsx +116 -107
- package/assets/components/ColorPicker/ColorPicker.module.css +310 -0
- package/assets/components/ColorPicker/ColorPicker.tsx +387 -0
- package/assets/components/ColorPicker/index.ts +16 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +15 -12
- package/assets/components/ColorSlider/ColorSlider.tsx +3 -3
- package/assets/components/ColorSwatch/ColorSwatch.module.css +2 -2
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +4 -3
- package/assets/components/Combobox/Combobox.module.css +21 -4
- package/assets/components/Combobox/Combobox.tsx +38 -22
- package/assets/components/CommandPalette/CommandPalette.module.css +19 -24
- package/assets/components/CommandPalette/CommandPalette.tsx +7 -5
- package/assets/components/Comment/Comment.module.css +25 -0
- package/assets/components/Comment/Comment.tsx +44 -0
- package/assets/components/Comment/CommentComposer.module.css +26 -0
- package/assets/components/Comment/CommentComposer.tsx +56 -0
- package/assets/components/Comment/CommentEditor.module.css +8 -0
- package/assets/components/Comment/CommentEditor.tsx +43 -0
- package/assets/components/Comment/CommentMentionInput.module.css +9 -0
- package/assets/components/Comment/CommentMentionInput.tsx +150 -0
- package/assets/components/Comment/index.ts +9 -0
- package/assets/components/Comment/types.ts +1 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +5 -2
- package/assets/components/ContextMenu/ContextMenu.tsx +5 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +20 -7
- package/assets/components/DataTable/DataTable.module.css +2 -0
- package/assets/components/DatePicker/DateField.tsx +72 -25
- package/assets/components/DatePicker/DatePicker.module.css +56 -54
- package/assets/components/DatePicker/DatePicker.tsx +86 -40
- package/assets/components/DatePicker/TimeSelector.tsx +1 -1
- package/assets/components/Disclosure/Disclosure.module.css +1 -0
- package/assets/components/Drawer/Drawer.module.css +23 -19
- package/assets/components/Drawer/Drawer.tsx +20 -24
- package/assets/components/DropdownMenu/DropdownMenu.tsx +5 -0
- 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/EventChip/EventChip.module.css +120 -53
- package/assets/components/EventChip/EventChip.tsx +54 -6
- package/assets/components/EventChip/index.ts +1 -1
- package/assets/components/EventListItem/EventListItem.module.css +3 -0
- package/assets/components/EventListItem/EventListItem.tsx +15 -8
- package/assets/components/FileIcon/FileIcon.module.css +6 -6
- package/assets/components/FileUpload/FileUpload.module.css +10 -3
- package/assets/components/FileUpload/FileUpload.tsx +5 -9
- package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +16 -19
- package/assets/components/GeneratedImage/GeneratedImage.module.css +2 -0
- package/assets/components/Icon/Icon.tsx +264 -1088
- package/assets/components/Icon/LucideFamilyIcon.tsx +436 -0
- package/assets/components/Icon/MissingIcon.tsx +25 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +443 -0
- package/assets/components/Icon/catalogNames.ts +8 -0
- package/assets/components/Icon/context.tsx +1 -1
- package/assets/components/Icon/index.ts +2 -0
- package/assets/components/Icon/lucideCatalog.ts +11358 -0
- package/assets/components/Icon/phosphorCatalog.ts +3052 -0
- package/assets/components/Icon/solarCatalog.ts +16064 -0
- package/assets/components/IconButton/IconButton.module.css +3 -2
- package/assets/components/Input/Input.module.css +63 -22
- package/assets/components/Input/Input.tsx +21 -10
- package/assets/components/Kanban/Kanban.module.css +6 -0
- package/assets/components/ListItem/ListItem.module.css +9 -6
- package/assets/components/MenuItem/MenuItem.module.css +24 -22
- package/assets/components/MenuItem/MenuItem.tsx +12 -12
- package/assets/components/MessageActions/MessageActions.module.css +38 -2
- package/assets/components/MessageActions/MessageActions.tsx +53 -28
- package/assets/components/MessageQuote/MessageQuote.module.css +1 -0
- package/assets/components/MessageSources/MessageSources.module.css +2 -0
- package/assets/components/MessageState/MessageState.module.css +1 -1
- package/assets/components/MetricCard/MetricCard.module.css +96 -108
- package/assets/components/MetricCard/MetricCard.tsx +45 -23
- package/assets/components/MetricCard/tokens.css +10 -0
- package/assets/components/MiniCalendar/MiniCalendar.module.css +130 -0
- package/assets/components/MiniCalendar/MiniCalendar.tsx +161 -0
- package/assets/components/MiniCalendar/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +13 -4
- package/assets/components/Modal/Modal.tsx +4 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +12 -50
- package/assets/components/Onboarding/Onboarding.module.css +211 -278
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +81 -125
- package/assets/components/Onboarding/OnboardingPage.tsx +244 -467
- package/assets/components/Onboarding/actions.ts +5 -0
- package/assets/components/Onboarding/palette.css +8 -0
- package/assets/components/Onboarding/wizardData.ts +8 -8
- package/assets/components/ProgressBar/ProgressBar.module.css +42 -8
- package/assets/components/ProgressBar/ProgressBar.tsx +5 -6
- package/assets/components/ProgressBar/index.ts +0 -1
- package/assets/components/QuotationBar/QuotationBar.module.css +2 -0
- package/assets/components/Radio/Radio.module.css +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +96 -3
- package/assets/components/RadioCard/RadioCard.tsx +76 -13
- package/assets/components/RadioCard/index.ts +1 -1
- package/assets/components/SegmentedChart/SegmentedChart.module.css +16 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +25 -8
- package/assets/components/Select/Select.module.css +9 -7
- package/assets/components/Select/Select.tsx +22 -6
- package/assets/components/Shortcut/Shortcut.module.css +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +1 -0
- package/assets/components/Sidebar/Sidebar.tsx +2 -2
- package/assets/components/Skeleton/Skeleton.module.css +33 -0
- package/assets/components/Skeleton/Skeleton.tsx +20 -0
- package/assets/components/Skeleton/index.ts +2 -0
- package/assets/components/Skeleton/tokens.css +11 -0
- package/assets/components/Slider/Slider.module.css +3 -0
- package/assets/components/Slider/Slider.tsx +7 -2
- package/assets/components/Spinner/LottiePlayer.tsx +4 -4
- package/assets/components/Spinner/Spinner.module.css +3 -0
- package/assets/components/Spinner/lottieManifest.ts +3 -0
- package/assets/components/Stepper/Stepper.module.css +56 -8
- package/assets/components/Stepper/Stepper.tsx +13 -4
- package/assets/components/Switch/Switch.module.css +55 -42
- package/assets/components/Switch/Switch.tsx +6 -2
- package/assets/components/Switch/index.ts +1 -1
- package/assets/components/TabStrip/TabStrip.module.css +5 -1
- package/assets/components/TableCell/TableCell.module.css +8 -1
- package/assets/components/TableCell/TableCellBadge.tsx +7 -3
- package/assets/components/TableCell/TableCellImage.tsx +1 -1
- package/assets/components/TableCell/TableCellTag.tsx +23 -0
- package/assets/components/TableCell/index.ts +3 -0
- package/assets/components/TableHeader/TableHeader.module.css +4 -0
- package/assets/components/TableRow/TableRow.module.css +3 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +1 -0
- package/assets/components/Tabs/Tabs.module.css +23 -8
- package/assets/components/Tabs/Tabs.tsx +4 -3
- package/assets/components/Tag/Tag.module.css +101 -0
- package/assets/components/Tag/Tag.tsx +55 -0
- package/assets/components/Tag/index.ts +2 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +22 -18
- package/assets/components/TemplateBoundary/types.ts +2 -0
- package/assets/components/Textarea/Textarea.module.css +30 -226
- package/assets/components/Textarea/Textarea.tsx +2 -2
- package/assets/components/ThemeController.tsx +30 -3
- package/assets/components/TimePicker/TimePicker.module.css +17 -4
- package/assets/components/TimePicker/TimePicker.tsx +102 -23
- package/assets/components/TimelineView/TimelineEventBar.tsx +109 -0
- package/assets/components/TimelineView/TimelineView.module.css +203 -0
- package/assets/components/TimelineView/TimelineView.tsx +137 -0
- package/assets/components/TimelineView/axis.ts +62 -0
- package/assets/components/TimelineView/index.ts +3 -0
- package/assets/components/TimelineView/layout.ts +56 -0
- package/assets/components/TimelineView/move.ts +51 -0
- package/assets/components/TimelineView/useTimelineDrag.ts +215 -0
- package/assets/components/TimelineView/useTimelineZoom.ts +92 -0
- package/assets/components/Toast/Toast.module.css +20 -0
- package/assets/components/Toast/Toast.tsx +1 -1
- package/assets/components/Toolbar/Toolbar.module.css +31 -24
- package/assets/components/Toolbar/Toolbar.tsx +4 -3
- package/assets/components/Tooltip/Tooltip.module.css +10 -0
- package/assets/components/Tooltip/Tooltip.tsx +50 -15
- package/assets/components/TopLoader/TopLoader.module.css +1 -0
- package/assets/components/TreeNav/TreeNav.module.css +1 -0
- 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/_color.ts +2 -2
- package/assets/components/_data.ts +37 -31
- package/assets/components/_utils.css +36 -5
- package/assets/components/axisOptions.ts +2 -0
- package/assets/components/component-registry.json +1731 -94
- package/assets/components/index.ts +23 -0
- package/assets/components/materialScope.tsx +11 -0
- package/assets/components/reset.css +1 -0
- package/assets/components/themeBootScript.ts +3 -2
- package/assets/components/tokens.css +308 -71
- package/assets/components/useChartEntrance.ts +119 -0
- package/assets/prompts/ASSEMBLY.md +20 -7
- package/assets/prompts/CATALOG.md +110 -92
- package/assets/prompts/FEEDBACK_PROCESS.md +19 -0
- package/assets/prompts/PRINCIPLES.md +25 -1
- package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +48 -70
- package/assets/prompts/axes/font.md +12 -1
- package/assets/prompts/axes/icon.md +6 -4
- package/assets/prompts/axes/material.md +40 -0
- package/assets/prompts/axes/motion.md +2 -0
- package/assets/prompts/axes/palette.md +10 -2
- package/assets/prompts/axes/shape.md +8 -0
- 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 +38 -31
- 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 +32 -97
- package/assets/prompts/components/breadcrumb.md +25 -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 +151 -0
- package/assets/prompts/components/callout.md +39 -23
- package/assets/prompts/components/canvas-edge.md +70 -0
- package/assets/prompts/components/canvas-node.md +27 -10
- package/assets/prompts/components/canvas.md +85 -0
- package/assets/prompts/components/card.md +31 -31
- package/assets/prompts/components/chart-bar.md +77 -0
- package/assets/prompts/components/chart-pie.md +63 -0
- package/assets/prompts/components/chart-radar.md +56 -0
- package/assets/prompts/components/chart-radial.md +56 -0
- package/assets/prompts/components/chart.md +129 -0
- 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 +26 -45
- package/assets/prompts/components/checkbox.md +40 -17
- package/assets/prompts/components/chip.md +34 -34
- package/assets/prompts/components/code-block.md +109 -65
- 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 +173 -0
- package/assets/prompts/components/color-slider.md +14 -14
- 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 +31 -30
- package/assets/prompts/components/comment.md +75 -0
- package/assets/prompts/components/context-menu.md +28 -25
- package/assets/prompts/components/control-group.md +4 -4
- package/assets/prompts/components/data-table.md +9 -0
- package/assets/prompts/components/date-picker.md +41 -23
- package/assets/prompts/components/disclosure.md +10 -10
- package/assets/prompts/components/drawer.md +29 -18
- package/assets/prompts/components/dropdown-menu.md +23 -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 +70 -28
- package/assets/prompts/components/event-list-item.md +32 -28
- package/assets/prompts/components/file-icon.md +18 -19
- package/assets/prompts/components/file-upload.md +1 -1
- package/assets/prompts/components/gallery-item.md +24 -23
- 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 +42 -17
- package/assets/prompts/components/input.md +49 -46
- package/assets/prompts/components/kanban.md +35 -35
- package/assets/prompts/components/list-item.md +50 -41
- package/assets/prompts/components/menu-item.md +49 -44
- package/assets/prompts/components/message-actions.md +15 -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/metric-card.md +57 -109
- package/assets/prompts/components/mini-calendar.md +77 -0
- package/assets/prompts/components/modal.md +40 -39
- package/assets/prompts/components/multi-select.md +4 -1
- package/assets/prompts/components/onboarding.md +23 -19
- package/assets/prompts/components/page-header.md +42 -33
- package/assets/prompts/components/pagination.md +17 -17
- package/assets/prompts/components/progress-bar.md +26 -13
- package/assets/prompts/components/quotation-bar.md +10 -10
- package/assets/prompts/components/radio-card.md +34 -117
- package/assets/prompts/components/radio.md +9 -9
- package/assets/prompts/components/segmented-chart.md +19 -5
- package/assets/prompts/components/select.md +29 -25
- package/assets/prompts/components/shortcut.md +11 -11
- package/assets/prompts/components/sidebar.md +67 -58
- package/assets/prompts/components/skeleton.md +47 -0
- package/assets/prompts/components/slider.md +18 -18
- package/assets/prompts/components/spinner.md +16 -16
- package/assets/prompts/components/stepper.md +29 -15
- package/assets/prompts/components/switch.md +30 -26
- package/assets/prompts/components/tab-strip.md +32 -31
- package/assets/prompts/components/table-cell.md +9 -7
- 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 +29 -20
- package/assets/prompts/components/table-toolbar.md +9 -0
- package/assets/prompts/components/tabs.md +30 -27
- package/assets/prompts/components/tag.md +54 -0
- package/assets/prompts/components/textarea.md +16 -15
- package/assets/prompts/components/time-picker.md +22 -14
- package/assets/prompts/components/timeline-view.md +129 -0
- package/assets/prompts/components/toast.md +43 -42
- package/assets/prompts/components/toolbar.md +36 -23
- package/assets/prompts/components/tooltip.md +36 -17
- package/assets/prompts/components/top-loader.md +12 -12
- package/assets/prompts/components/topbar.md +43 -34
- package/assets/prompts/components/tree-nav.md +10 -10
- 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 +9 -1
- package/assets/prompts/templates/aurora.md +5 -4
- package/assets/prompts/templates/minimal.md +14 -6
- package/assets/prompts/templates/onboarding.md +156 -0
- package/assets/prompts/templates/workspace.md +16 -11
- package/assets/prompts/tokens/color.md +11 -4
- package/assets/prompts/tokens/material.md +51 -0
- package/assets/prompts/tokens/radius.md +34 -0
- package/assets/prompts/tokens/typography.md +24 -2
- package/assets/prompts/use-cases/chart-chart-area.md +1334 -0
- package/assets/prompts/use-cases/chart-chart-bar.md +1886 -0
- package/assets/prompts/use-cases/chart-chart-pie.md +1031 -0
- package/assets/prompts/use-cases/chart-chart-radar.md +785 -0
- package/assets/prompts/use-cases/chart-chart-radial.md +988 -0
- package/assets/prompts/use-cases/chart-segmented-chart.md +262 -0
- 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 +360 -0
- package/assets/prompts/use-cases/data-data-table.md +249 -0
- package/assets/prompts/use-cases/data-list-item.md +1056 -0
- package/assets/prompts/use-cases/data-metric-card.md +673 -0
- package/assets/prompts/use-cases/data-table-row.md +966 -0
- package/assets/prompts/use-cases/data-table-toolbar.md +481 -0
- package/assets/prompts/use-cases/feedback-drawer.md +1168 -0
- package/assets/prompts/use-cases/feedback-progress-bar.md +432 -0
- package/assets/prompts/use-cases/general-toolbar.md +854 -0
- package/assets/prompts/use-cases/general-tooltip.md +652 -0
- package/assets/prompts/use-cases/input-checkbox.md +443 -0
- package/assets/prompts/use-cases/structure-card.md +603 -0
- package/assets/prompts/use-cases/structure-page-header.md +755 -0
- package/assets/prompts/use-cases/structure-sidebar.md +1132 -0
- package/assets/prompts/use-cases/structure-topbar.md +1196 -0
- package/assets/public/ovenn-wordmark.svg +19 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
- package/package.json +10 -2
- package/src/commands/info.js +1 -1
- package/src/utils/design-examples.js +3 -4
- package/assets/prompts/templates/glass-button.md +0 -336
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useLayoutEffect, useRef, useState, type RefObject } from "react";
|
|
4
|
+
|
|
5
|
+
export type EntrancePhase = "pending" | "running" | "complete" | "off";
|
|
6
|
+
const linear = (t: number) => t;
|
|
7
|
+
|
|
8
|
+
/** Resolve CSS cubic curves to a pure function for Recharts and WAAPI sampling. */
|
|
9
|
+
export function chartEasing(value: string): (t: number) => number {
|
|
10
|
+
const points = value.match(/^cubic-bezier\(([^)]+)\)$/)?.[1].split(",").map(Number);
|
|
11
|
+
if (!points || points.length !== 4 || !points.every(Number.isFinite)) return linear;
|
|
12
|
+
const [x1, y1, x2, y2] = points;
|
|
13
|
+
const curve = (t: number, a: number, b: number) => 3 * (1 - t) ** 2 * t * a + 3 * (1 - t) * t ** 2 * b + t ** 3;
|
|
14
|
+
return progress => {
|
|
15
|
+
if (progress <= 0 || progress >= 1) return progress;
|
|
16
|
+
let low = 0, high = 1;
|
|
17
|
+
for (let i = 0; i < 18; i++) {
|
|
18
|
+
const t = (low + high) / 2;
|
|
19
|
+
if (curve(t, x1, x2) < progress) low = t; else high = t;
|
|
20
|
+
}
|
|
21
|
+
return curve((low + high) / 2, y1, y2);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function timing(element: HTMLElement) {
|
|
26
|
+
// CSS calc() must be resolved as a typed property, not parsed as custom-property text.
|
|
27
|
+
const probe = document.createElement("span");
|
|
28
|
+
probe.hidden = true;
|
|
29
|
+
probe.style.transitionDuration = "var(--chart-enter-duration, calc(var(--duration-slower) * 2))";
|
|
30
|
+
probe.style.transitionTimingFunction = "var(--chart-enter-easing, cubic-bezier(0.22, 1.12, 0.36, 1))";
|
|
31
|
+
probe.style.animationDuration = "var(--duration-fast)";
|
|
32
|
+
element.appendChild(probe);
|
|
33
|
+
const style = getComputedStyle(probe);
|
|
34
|
+
const milliseconds = (text: string) => parseFloat(text) * (text.endsWith("ms") ? 1 : 1000);
|
|
35
|
+
const result = {
|
|
36
|
+
duration: milliseconds(style.transitionDuration),
|
|
37
|
+
grace: milliseconds(style.animationDuration) * 2,
|
|
38
|
+
cssEasing: style.transitionTimingFunction,
|
|
39
|
+
easing: chartEasing(style.transitionTimingFunction),
|
|
40
|
+
};
|
|
41
|
+
probe.remove();
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Once per mounted chart, independent of ThemeController and optional Recharts. */
|
|
46
|
+
export function useChartEntrance(root: RefObject<HTMLDivElement | null>, enabled = true) {
|
|
47
|
+
const [phase, setPhase] = useState<EntrancePhase>(enabled ? "pending" : "off");
|
|
48
|
+
const [settings, setSettings] = useState(() => ({ duration: 0, cssEasing: "linear", easing: linear }));
|
|
49
|
+
const entered = useRef(false);
|
|
50
|
+
const hasStarted = useRef(false);
|
|
51
|
+
const completed = useRef(new Set<string>());
|
|
52
|
+
const earliestFinish = useRef(0);
|
|
53
|
+
const timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
|
|
54
|
+
const finish = useCallback(() => {
|
|
55
|
+
if (timer.current) clearTimeout(timer.current);
|
|
56
|
+
setPhase(value => value === "running" ? "complete" : value);
|
|
57
|
+
}, []);
|
|
58
|
+
const seriesComplete = useCallback((id: string, expected: number) => {
|
|
59
|
+
completed.current.add(id);
|
|
60
|
+
if (expected > 0 && completed.current.size >= expected && performance.now() >= earliestFinish.current) finish();
|
|
61
|
+
}, [finish]);
|
|
62
|
+
|
|
63
|
+
useLayoutEffect(() => {
|
|
64
|
+
const element = root.current;
|
|
65
|
+
if (!element) return;
|
|
66
|
+
const media = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
67
|
+
let observer: IntersectionObserver | undefined;
|
|
68
|
+
const clear = () => {
|
|
69
|
+
observer?.disconnect();
|
|
70
|
+
if (timer.current) clearTimeout(timer.current);
|
|
71
|
+
};
|
|
72
|
+
let signature = "";
|
|
73
|
+
const configure = () => {
|
|
74
|
+
const values = timing(element);
|
|
75
|
+
const scale = parseFloat(getComputedStyle(element).getPropertyValue("--motion-scale"));
|
|
76
|
+
const next = `${enabled}:${media.matches}:${scale}:${values.duration}:${values.cssEasing}`;
|
|
77
|
+
if (next === signature) return;
|
|
78
|
+
signature = next;
|
|
79
|
+
clear();
|
|
80
|
+
if (!enabled || media.matches || scale === 0 || !Number.isFinite(values.duration) || values.duration <= 1) {
|
|
81
|
+
entered.current = true;
|
|
82
|
+
setPhase("off");
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (entered.current) {
|
|
86
|
+
setPhase(value => value === "running" ? "complete" : value);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
setSettings(values);
|
|
90
|
+
setPhase("pending");
|
|
91
|
+
const start = () => {
|
|
92
|
+
if (entered.current) return;
|
|
93
|
+
entered.current = true;
|
|
94
|
+
hasStarted.current = true;
|
|
95
|
+
earliestFinish.current = performance.now() + values.duration;
|
|
96
|
+
completed.current.clear();
|
|
97
|
+
setPhase("running");
|
|
98
|
+
observer?.disconnect();
|
|
99
|
+
// Hidden/empty series may not dispatch callbacks. Never leave a chart in entrance mode.
|
|
100
|
+
timer.current = setTimeout(finish, values.duration + values.grace);
|
|
101
|
+
};
|
|
102
|
+
if (!("IntersectionObserver" in window)) { start(); return; }
|
|
103
|
+
observer = new IntersectionObserver(entries => {
|
|
104
|
+
if (entries.some(entry => entry.isIntersecting)) start();
|
|
105
|
+
}, { threshold: 0.08 });
|
|
106
|
+
observer.observe(element);
|
|
107
|
+
};
|
|
108
|
+
configure();
|
|
109
|
+
media.addEventListener("change", configure);
|
|
110
|
+
const changes = new MutationObserver(configure);
|
|
111
|
+
// ThemeBoundary can scope motion below documentElement.
|
|
112
|
+
for (let parent: HTMLElement | null = element; parent; parent = parent.parentElement) {
|
|
113
|
+
changes.observe(parent, { attributes: true, attributeFilter: ["data-motion"] });
|
|
114
|
+
}
|
|
115
|
+
return () => { clear(); changes.disconnect(); media.removeEventListener("change", configure); };
|
|
116
|
+
}, [enabled, finish, root]);
|
|
117
|
+
|
|
118
|
+
return { phase, hasStarted: hasStarted.current, ...settings, seriesComplete };
|
|
119
|
+
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
모든 클라이언트·모델에서 같은 절차를 사용한다. 정책은 [[PRINCIPLES]], 화면 판단과 검수 기준은 [[WORKFLOW_DESIGN]]을 읽는다. MCP는 아래 도구로, 파일 기반 환경은 해당 원본과 로컬 검사로 실행한다. 파일 조회를 MCP 호출로 기록하지 않는다.
|
|
4
4
|
|
|
5
|
-
## 1. 역할
|
|
5
|
+
## 1. 역할 나누기: roles
|
|
6
6
|
|
|
7
7
|
주 판단과 주 행동을 정한다. **페이지를 0부터 만들 때는 본문 배치와 개별 부품을 고르기 전에 AppFrame 구조부터 결정한다.** CATALOG에서 AppFrame을 확인하고 [[components/app-frame]]의 구조 선택 기준과 실제 API를 읽는다. 사이드바·탑바 각각의 사용/미사용, 둘 다 사용할 때의 배치(`topbar-first` 또는 `sidebar-first`), 모바일 탐색과 스크롤 컨테이너를 업무 흐름에 맞춰 정한다. 사용하지 않는 결정에도 이유를 남긴다. AppFrame을 먼저 검토한다는 이유로 불필요한 사이드바·탑바를 추가하지 않는다.
|
|
8
8
|
|
|
9
9
|
선택한 셸과 각 영역의 역할·선택 이유를 DESIGN.md에 짧게 기록한 뒤 본문을 자리별 역할로 나누고 전체 역할 맵을 남긴다. 기존 앱 안에 페이지를 추가하면 상위 셸을 먼저 확인해 재사용하며 중복 AppFrame을 만들지 않는다. 부분 UI·컴포넌트는 주변 셸을 확인하고 역할 단계 생략 사유를 기록한 뒤 2단계부터 시작할 수 있다.
|
|
10
10
|
|
|
11
|
-
## 2. 레퍼런스
|
|
11
|
+
## 2. 레퍼런스 고르기: reference
|
|
12
12
|
|
|
13
13
|
먼저 `list_design_examples` 또는 `prompts/design-examples/catalog.json`에서 status=approved인 디자인 사례의 용도를 확인한다. draft·상태 미지정 사례는 생성 참조에서 제외하며, 사용자가 완성과 사례 사용을 승인한 뒤에만 approved로 전환한다. 요청 단위에 맞춰 scope(app-shell|page-content|section|component)와 context(placement/userTask/assumptions)를 확인한다. `list_design_examples(scope=...)` 또는 CLI `--scope=...`로 좁혀 찾을 수 있다. 셸을 새로 결정하는 작업은 app-shell 사례 조회를 1단계에서 먼저 수행하고, 기존 셸 안의 페이지·부분 작업은 해당 셸을 보존하며 본문·섹션·부품 사례만 적용한다. 도메인명 일치만으로 후보를 제한하지 않는다. 업무·구조·행동의 핵심어(예: 필터 목록, 셀 편집, 상태 검토)로도 조회하고 patterns/aliases/reuseFor/referenceParts를 비교한다. 검색 점수는 키워드 일치 근거이며 디자인 적합성이나 의미 이해를 보증하지 않는다. 도메인이 달라도 참고할 수 있는 배치·동작·반응형 처리를 선택하고, 업무 데이터·권한·상태 의미는 대상 프로젝트에 맞춘다. coverage의 interactions/responsive 상태와 실제 구현·증거를 읽어 참고 범위를 정한다. planned·implemented·unverified를 검증 완료로 표시하지 않고, verified도 대상 프로젝트의 버튼 동작·키보드·모바일 재검증을 대신하지 않는다. 현재 업무와 맞는 사례 1~2개만 `get_design_example`으로 조회하거나 파일 환경에서 해당 코드·CSS·대표 캡처를 읽는다. 저장소는 catalog의 files.source, 설치본은 `prompts/design-examples/sources/<id>/`가 코드 위치다. 오프라인 CLI는 `ovenn info list-design-examples --local`, `ovenn info get-design-example <id> --local`을 지원한다. 전체 사례 코드를 일괄 주입하지 않는다. DESIGN.md에 선택/미선택 이유와 가져올 배치·위계 및 바꿀 부분을 기록한다. 예시의 디자인 승인은 기능·접근성 검수 합격이나 보편적 기본값을 뜻하지 않는다. 캡처를 볼 수 없으면 시각 참조는 미확인으로 남긴다. 맞는 사례가 없거나 구버전 설치에 목록이 없으면 이를 기록하고 아래 템플릿·레시피로 진행한다.
|
|
14
14
|
|
|
15
15
|
`list_templates`로 후보를 확인하고 적합한 후보는 `get_template(intent="reference")`으로 실제 구조를 읽는다. exact 보존 요청에만 intent="exact"를 사용한다. 없거나 부분적으로만 맞으면 `get_guide`의 recipes를 확인한다. 파일 환경은 설치된 `prompts/templates/README.md`와 개별 템플릿·레시피 원본을 확인한다. 저장소에서는 `web/lib/templates/generated-artifacts.json`이 템플릿 소스다. 목록이 없는 구버전 설치는 조회 불가를 기록하고 레시피로 시작한다. 선택/미선택 이유와 적용 범위를 남긴다. 부품을 고르기 전에 업무와 제품에 어울리는 시각적 방향을 DESIGN.md에 짧게 정한다. 타이포의 성격·크기 대비, 화면의 비례·공간 리듬, 색·표면의 관계와 정체성을 만드는 주요 표현을 구체적으로 선택한다. 스타일 이름이나 추상적인 형용사만 적고 끝내지 않는다. 레퍼런스가 없어도 이 판단은 수행하며 부분 UI는 주변 화면에 맞는 방향을 선택한다. 템플릿은 시작점이며 업무에 맞게 구조·스타일을 변형한다. 사용자가 exact 보존을 명시한 경우에는 보존 계약을 따른다. 부적합한 템플릿을 억지로 사용하지 않는다.
|
|
16
16
|
|
|
17
|
-
## 3. 부품
|
|
17
|
+
## 3. 부품 고르기: components
|
|
18
18
|
|
|
19
19
|
`find_components`를 query 없이 호출해 전체 목록을 확인한다. 역할마다 후보를 고르고 `get_component`로 Do/Don't·Props와 실제 구현을 읽는다. Brand Set이 필요한 경우 해당 경로를 사용한다. 파일 환경은 CATALOG와 해당 문서·코드를 읽는다. 없는 API를 추정하지 않는다. 기존 외형은 변형할 수 있다. 목록·표는 해당 문서의 작동 예시를 확인하고 주 행동·선택·보조 작업의 관계를 먼저 정한다. ListItem·DataTable·TableRow의 행 상호작용 계약을 따른다.
|
|
20
20
|
|
|
21
|
-
## 조립 전
|
|
21
|
+
## 조립 전 확인: componentPlan
|
|
22
22
|
|
|
23
23
|
UI 코드를 쓰기 전에 역할·시각적 방향·레퍼런스·부품 선택을 마친다. 역할별 실행기가 있는 환경에서는 WORKFLOW_DESIGN의 UX·구조 협업을 먼저 실행하고 쟁점별 결정과 해결 여부를 보존한다. orchestrationVersion=2에서는 UX·구조 제안을 병렬 실행한 뒤 조정자가 흐름·구조·실제 부품 계획을 한 번에 확정한다. 필수 충돌이 있을 때만 담당자의 추가 확인을 1회 수행하며 미해결이면 구현을 시작하지 않는다. 확정한 업무 흐름과 구조를 입력으로 부품을 선정한다. componentPlan 형식과 검사 의미는 get_design_workflow 또는 로컬 `ovenn info get-design-workflow --local`에서 받는다. 각 역할의 id, purpose, component, strategy(reuse|compose|derived|custom|preserved), source, reason, requires, sourceFiles를 기록한다. component는 실제 export 이름이며 조합은 components 배열에 추가한다. 직접 구현/보존은 대안·구체적 요구·검증 근거를 reason과 evidence에 남긴다. 계획 확인 전 UI를 만들고 사후 명세로 선행했다고 주장하지 않는다.
|
|
24
24
|
|
|
@@ -28,17 +28,30 @@ component와 components 배열에는 설치된 Ovenn 부품의 실제 export와
|
|
|
28
28
|
|
|
29
29
|
로컬 파생은 strategy=derived, source=원본의 정확한 프로젝트 상대 경로, originalHash=변경 전 원본 SHA256, evidence=실제로 수정한 파일 경로 배열, reason=변경 이유로 기록한다. 기존 설치 소스를 직접 수정한 경우도 변경 전 사본과 대조한다. 출처 검사를 통과하려고 정당한 접근성 수정을 되돌리지 않는다. 일반 reuse의 originalHash는 빈 문자열이며, 데이터·상태 저장 같은 부품이 없는 도메인 로직은 근거 있는 custom으로 기록할 수 있다.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
선택한 컴포넌트 문서에 `사용 사례 연결`이 있으면 업무에 맞는 사례 목록을 확인하고 필요한 원본 TSX/CSS만 읽어 조합한다. MCP는 연결된 `get_guide(topic="use-cases/...")`와 `sections`로, 파일 환경은 연결된 `prompts/use-cases/*.md`로 조회한다. 사례 연결은 디자인 승인·검증 완료를 뜻하지 않는다.
|
|
32
|
+
|
|
33
|
+
## 기존 UI 전환: migration
|
|
34
|
+
|
|
35
|
+
사용자가 기존 프로젝트의 화면·컴포넌트·디자인을 Ovenn으로 바꿔 달라고 요청하면 새 페이지 생성이 아니라 전환 작업이다. 이 절은 1~3단계 위에 적용한다. 전환 범위 안의 기존 구현은 preserved가 아니라 교체 대상이다. preserved는 사용자가 유지하라고 명시한 범위와 요청 밖 화면에만 사용한다. 기존 컴포넌트의 이름이 Ovenn과 다르거나 구조가 달라도 교체를 생략하지 않는다.
|
|
36
|
+
|
|
37
|
+
1. **인벤토리.** UI 코드를 쓰기 전에 대상 범위의 소스를 읽고 기존 UI 목록을 만든다. 프로젝트 자체 컴포넌트(예: `components/ui/*`), 외부 UI 라이브러리 import, 페이지 안의 native 컨트롤(`button`, `input`, `select`, `table`, `aside`·`nav` 셸), 전역 CSS·Tailwind·토큰 정의를 모두 포함한다. 항목마다 파일 경로, export 이름, 사용처 수, 담당 역할을 기록한다. 역할은 이름이 아니라 동작으로 판단한다. `PrimaryButton`·`TextField`·`SideNav`는 각각 action·text-input·navigation-shell 역할이다.
|
|
38
|
+
2. **매핑표.** 인벤토리의 각 항목에 Ovenn 부품과 strategy를 정한다. 역할이 맞는 설치 부품이 있으면 reuse 또는 compose, 기존 외형을 유지해야 하면 scoped skin 또는 derived, 대응 부품이 없는 도메인 UI만 custom이다. 셸은 1단계의 AppFrame 판단을 적용해 기존 레이아웃 컴포넌트를 AppFrame·Sidebar·Topbar로 바꾼다. 매핑표는 DESIGN.md에 남기고, componentPlan의 각 role은 reason에 대체하는 기존 경로와 export를 적는다. 대응 부품이 없어 남기는 항목도 이유와 함께 표에 적는다.
|
|
39
|
+
3. **교체.** 사용처의 import를 Ovenn 부품으로 바꾸고 props·이벤트·라벨·키보드 계약을 옮긴다. 기존 컴포넌트를 얇은 wrapper로 남겨 내부만 Ovenn으로 바꾸는 것은 임시 단계이며, 작업 범위 안에서는 wrapper를 제거하고 직접 사용으로 끝낸다. 기존 색·간격 리터럴과 전역 스타일은 Ovenn 토큰 정의부로 옮기거나 프로젝트 토큰으로 선언한다.
|
|
40
|
+
4. **정리와 검사.** 더 이상 import되지 않는 기존 컴포넌트·CSS를 삭제하거나 삭제 대상으로 보고한다. `check_component_usage`의 `component-bypass`와 `semantic-role-candidate`는 전환 범위에서 모두 해소하거나 근거 있는 예외로 기록한다. 교체 전후 화면을 모두 캡처해 6단계 검수에 전달하고 기능·키보드·모바일 회귀를 확인한다.
|
|
41
|
+
|
|
42
|
+
전환 보고에는 교체한 항목, 남긴 항목과 이유, 삭제한 파일을 적는다. 인벤토리 없이 일부만 바꾼 결과를 전환 완료로 표시하지 않는다.
|
|
43
|
+
|
|
44
|
+
## 4. 조립: assembly
|
|
32
45
|
|
|
33
46
|
`get_axis`, `get_token` 또는 설정·토큰 원본을 확인한다. 기존 토큰을 우선 사용하며 부족하면 프로젝트 공통 정의부에 추가한다. size를 지원하는 일반 컨트롤은 기본 **md**로 시작한다. 같은 작업 영역의 같은 역할은 크기를 통일하되 제목·본문의 위계, 터치·접근성에 필요한 차이는 유지한다. md API가 없는 부품에 임의 prop을 넣지 않는다.
|
|
34
47
|
|
|
35
|
-
## 5. 규칙
|
|
48
|
+
## 5. 규칙 검사: checks
|
|
36
49
|
|
|
37
50
|
앱 셸이 있으면 실제 Sidebar/Topbar의 유무와 배치가 DESIGN.md의 결정·componentPlan과 일치하는지 확인한다. 탑바를 사용하는 경우 `AppFrame.Topbar`와 `AppFrame.Content`를 형제 슬롯으로 두고, 탑바·본문 바탕을 공통 `--app-frame-bg`로 연결한다. 모바일 CSS에서도 높이·overflow 계약과 필요한 탐색 경로를 유지한다. 검사는 AppFrame의 import 유무를 넘어 실제 슬롯 위치·스크롤 컨테이너·표면 매핑을 확인한다. 상세 계약은 [[components/app-frame]]을 따른다.
|
|
38
51
|
|
|
39
52
|
`check_hardcoding`, `check_brand_compliance` 또는 로컬 동등 검사를 실행한다. `check_component_usage` 또는 `ovenn info check-component-usage --local --project=...`로 componentPlan과 실제 소스 그래프를 대조한다. import만 있거나 역할을 native HTML로 재작성한 것은 재사용 완료가 아니다. 파생은 원본 경로/hash·변경 이유·상태 검증을 남긴다. unknown/미실행은 부품 검증 대기다. 빌드·기능·접근성도 확인하고 통과/실패/미실행을 구별한다. 실제 검사한 소스 hash와 결과·위치를 남긴다. 검사 성공을 디자인 완성으로 표현하지 않는다.
|
|
40
53
|
|
|
41
|
-
## 6. 눈으로 보고
|
|
54
|
+
## 6. 눈으로 보고 고치기: visual
|
|
42
55
|
|
|
43
56
|
모든 UI를 실제 실행하고 캡처한다. 부분 UI도 주변 문맥 안에서 확인한다. 생성 대화와 분리된 검수 AI에게 요청, 실제 화면, 관련 상태 증거, [[WORKFLOW_DESIGN]]을 전달한다. 검수자는 파일을 수정하지 않고 구체적인 관측과 문제를 보고한다. 역할별 실행기가 있으면 부품 감사·UX·시각/금지규칙을 각각 별도 세션에서 검수한다. orchestrationVersion=2는 동일 소스·캡처의 세 검수를 병렬 실행하며, 시각 지적이 UX와 실제 충돌할 때만 UX가 해당 지적을 1회 재검증한다. UX 대안은 수정을 돕는 의견이며 필수 위반을 면제하지 않는다. 각 역할의 원시 보고서·세션·실제 소스·캡처 연결을 보존한다. 판정은 모든 미해결 필수 문제를 합쳐 결정한다. 생성자가 수정하고 재검사·재캡처한다. 자동 검사가 성공해도 이 단계를 생략하지 않는다. 선택한 시각적 방향이 실제 화면에서 아름답게 구현됐는지 확인한다. 무엇을 덜어낼지와 무엇을 더 다듬을지를 함께 검토한다. 미적 판단의 기준과 지적 방식은 WORKFLOW_DESIGN을 따른다.
|
|
44
57
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ovenn 컴포넌트 카탈로그
|
|
2
2
|
|
|
3
|
-
> 자동 생성
|
|
3
|
+
> 자동 생성 파일. 직접 수정하지 않는다. 원본은 `prompts/components/*.md`의 제목과 `### 원칙` 첫 문장.
|
|
4
4
|
> 재생성: `node scripts/build-catalog.mjs`
|
|
5
5
|
|
|
6
6
|
화면 요소를 직접 조립하기 전에 이 목록에서 **역할이 맞는 컴포넌트를 먼저 찾는다.**
|
|
@@ -10,118 +10,136 @@ variant 이름이 헷갈리면 `prompts/components/_variants.md`.
|
|
|
10
10
|
|
|
11
11
|
## 일반 · 액션
|
|
12
12
|
|
|
13
|
-
- **Avatar** · `prompts/components/avatar.md
|
|
14
|
-
- **AvatarUpload** · `prompts/components/avatar-upload.md
|
|
15
|
-
- **Badge** · `prompts/components/badge.md
|
|
16
|
-
- **Button** · `prompts/components/button.md
|
|
17
|
-
- **Chip** · `prompts/components/chip.md
|
|
18
|
-
- **Code** · `prompts/components/code.md
|
|
19
|
-
- **ControlGroup** · `prompts/components/control-group.md
|
|
20
|
-
- **IconButton** · `prompts/components/icon-button.md
|
|
21
|
-
- **MenuItem** · `prompts/components/menu-item.md
|
|
22
|
-
- **Shortcut** · `prompts/components/shortcut.md
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
13
|
+
- **Avatar** · `prompts/components/avatar.md`: 사람·팀의 식별 마커. 이미지 → 이니셜 → 아이콘 순서로 자동 폴백.
|
|
14
|
+
- **AvatarUpload** · `prompts/components/avatar-upload.md`: Avatar + 파일 피커. 프로필·조직 로고 설정의 "현재 사진 보여주고 바꾸기" 자리.
|
|
15
|
+
- **Badge** · `prompts/components/badge.md`: 수량·언리드·짧은 알림과 상태 dot을 표시하는 작은 시각 요소.
|
|
16
|
+
- **Button** · `prompts/components/button.md`: 텍스트 액션의 최소 단위. 클릭 시 무언가 일어나는 컨트롤: 페이지 이동은 link.
|
|
17
|
+
- **Chip** · `prompts/components/chip.md`: 선택을 담는 라벨. Chip 하나가 두 가지 모드로 쓰인다: 사용자가 이미 고른 값을 보여주며 제거할 수 있는 요약 모드, 그리고 사용자가 켜고 끌 수 있는 토글 모드.
|
|
18
|
+
- **Code** · `prompts/components/code.md`: 본문 안에서 변수명, 속성명, 짧은 코드 조각을 표시한다.
|
|
19
|
+
- **ControlGroup** · `prompts/components/control-group.md`: Button·Input·Select·DatePicker를 같은 높이의 한 몸체로 연결하는 가로 컨트롤 그룹.
|
|
20
|
+
- **IconButton** · `prompts/components/icon-button.md`: 아이콘만 있는 버튼. 툴바, 테이블 행 액션, 플로팅 액션, Input의 trailing 등 좁은 자리의 액션 전용.
|
|
21
|
+
- **MenuItem** · `prompts/components/menu-item.md`: 메뉴/리스트 안 개별 행의 최소 단위. Dropdown Menu · Context Menu · Sidebar · Command Palette · 일반 List가 공유.
|
|
22
|
+
- **Shortcut** · `prompts/components/shortcut.md`: 키보드 단축키를 표시하는 최소 시각 라벨. Menu Item의 trailing 슬롯, Tooltip 힌트, Command Palette 결과 행이 공유한다.
|
|
23
|
+
- **Tag** · `prompts/components/tag.md`: 분류·속성·텍스트 상태를 표시하는 정적인 라벨. Badge는 수량·알림·상태 dot, Tag는 `Design`, `API`, `Completed` 같은 이름을 담당한다.
|
|
24
|
+
- **Toolbar** · `prompts/components/toolbar.md`: IconButton 중심의 action 줄. 에디터·캔버스·갤러리 상단, 또는 "뜨 있는" 알약으로 콘텐츠 위에 떠서 액션을 모으는 자리.
|
|
25
|
+
- **Tooltip** · `prompts/components/tooltip.md`: hover·focus 시 뜨는 짧은 보조 설명. Radix Tooltip 위에 얹은 compound.
|
|
25
26
|
|
|
26
27
|
## 입력 · 폼
|
|
27
28
|
|
|
28
|
-
- **Checkbox** · `prompts/components/checkbox.md
|
|
29
|
-
- **CheckboxCard** · `prompts/components/checkbox-card.md
|
|
30
|
-
- **Combobox** · `prompts/components/combobox.md
|
|
31
|
-
- **DatePicker** · `prompts/components/date-picker.md
|
|
32
|
-
- **
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
40
|
-
- **
|
|
41
|
-
- **
|
|
29
|
+
- **Checkbox** · `prompts/components/checkbox.md`: 폼에서 다중 선택을 표시하는 최소 컨트롤. 시각 요소(`.indicator`)와 접근성(실제 `<input type="checkbox">`, visually-hidden)을 분리해 native 시맨틱을 유지한다.
|
|
30
|
+
- **CheckboxCard** · `prompts/components/checkbox-card.md`: 카드 전체로 여러 항목을 선택하는 다중 선택 컨트롤. radio-card와 아이콘·제목·설명·크기·배치·정렬 디자인을 공유하며 native `<input type="checkbox">`를 사용한다.
|
|
31
|
+
- **Combobox** · `prompts/components/combobox.md`: 정해진 옵션에서 하나를 검색해 선택하는 폼 필드. React Aria ComboBox가 키보드·포커스·IME·선택 의미를 담당한다.
|
|
32
|
+
- **DatePicker** · `prompts/components/date-picker.md`: 날짜·기간·시간 선택을 하나의 컴포넌트로 커버한다. props 조합으로 유즈케이스를 조립한다: 별도의 `DateRangePicker` / `TimePicker` 컴포넌트를 만들지 않는다.
|
|
33
|
+
- **EmojiPicker** · `prompts/components/emoji-picker.md`: 검색·카테고리·키보드 grid를 제공하는 공용 이모지 선택 패널.
|
|
34
|
+
- **FileUpload** · `prompts/components/file-upload.md`: 파일 선택·드롭에서 업로드 수명주기까지 연결하는 컴포넌트.
|
|
35
|
+
- **Input** · `prompts/components/input.md`: 폼 입력의 최소 단위. 사용자가 한 줄의 텍스트/숫자/비밀번호 등을 입력하는 컨트롤.
|
|
36
|
+
- **MultiSelect** · `prompts/components/multi-select.md`: 검색 가능한 다중 값 선택. combobox와 같은 React Aria 엔진을 쓰고 선택한 값은 chip으로 표시한다.
|
|
37
|
+
- **Radio** · `prompts/components/radio.md`: 같은 그룹 안에서 하나만 선택하는 컨트롤. 시각(`.indicator`: 외곽 원 + 내부 도트)과 시맨틱(native `<input type="radio">`)을 분리.
|
|
38
|
+
- **RadioCard** · `prompts/components/radio-card.md`: 카드 전체로 그룹에서 하나를 선택하는 단일 선택 컨트롤.
|
|
39
|
+
- **Select** · `prompts/components/select.md`: 단일 값 선택 콤보. Radix Select 위의 compound 어댑터.
|
|
40
|
+
- **Slider** · `prompts/components/slider.md`: 연속된 값이나 범위를 조절하는 컨트롤이다. 음량, 밝기, 확대율처럼 근사값을 고르는 작업에 사용한다.
|
|
41
|
+
- **Switch** · `prompts/components/switch.md`: 설정을 켜거나 끄고 결과를 즉시 반영하는 컨트롤이다. 저장이나 폼 제출 후 반영되는 선택에는 Checkbox를 사용한다.
|
|
42
|
+
- **Textarea** · `prompts/components/textarea.md`: 다중 행 텍스트 입력. input과 시각·width·label 규약 100% 공유: 다른 점은 높이 조절뿐.
|
|
43
|
+
- **TimePicker** · `prompts/components/time-picker.md`: 시간만 단독으로 고르는 자리. 트리거는 세그먼트 입력(HH:MM, 선택적 AM/PM) 하나: Popover·Grid·Quick 없음.
|
|
42
44
|
|
|
43
45
|
## 내비게이션 · 셸
|
|
44
46
|
|
|
45
|
-
- **AppFrame** · `prompts/components/app-frame.md
|
|
46
|
-
- **Breadcrumb** · `prompts/components/breadcrumb.md
|
|
47
|
-
- **
|
|
48
|
-
- **
|
|
49
|
-
- **
|
|
50
|
-
- **
|
|
51
|
-
- **
|
|
52
|
-
- **
|
|
53
|
-
- **
|
|
54
|
-
- **
|
|
55
|
-
- **
|
|
56
|
-
- **
|
|
47
|
+
- **AppFrame** · `prompts/components/app-frame.md`: Sidebar, Topbar, Tabs, Content의 배치를 정하는 앱 셸이다.
|
|
48
|
+
- **Breadcrumb** · `prompts/components/breadcrumb.md`: 현재 페이지가 계층 구조의 어디에 있는지 보여주고, 상위로 한 번에 돌아가게 해주는 nav 컨트롤.
|
|
49
|
+
- **Canvas** · `prompts/components/canvas.md`: CanvasNode와 CanvasEdge로 조립한 그래프 편집 표면.
|
|
50
|
+
- **CanvasEdge** · `prompts/components/canvas-edge.md`: 캔버스 노드 사이의 연결선이다. SVG의 g 요소로 렌더하며, 노드·선택 상태·좌표는 호스트에서 관리한다.
|
|
51
|
+
- **CanvasNode** · `prompts/components/canvas-node.md`: 캔버스 위의 범용 노드. 카드·타일·원형으로 정보 배치만 바꾸며 도메인·실행 엔진·연결선을 내장하지 않는다.
|
|
52
|
+
- **Card** · `prompts/components/card.md`: 콘텐츠 묶음의 표면. 역할은 셋뿐: 배경 · radius · padding.
|
|
53
|
+
- **PageHeader** · `prompts/components/page-header.md`: 페이지 body의 첫 블록. "이 페이지가 뭔지"를 담는 자리.
|
|
54
|
+
- **Pagination** · `prompts/components/pagination.md`: 긴 목록·테이블을 페이지 단위로 끊어 탐색시키는 nav 컨트롤.
|
|
55
|
+
- **Sidebar** · `prompts/components/sidebar.md`: 좌측 세로 nav. 라우팅 전용: Tabs/필터는 쓸 곳이 아님.
|
|
56
|
+
- **Stepper** · `prompts/components/stepper.md`: 다단계 프로세스의 진행 위치를 시각적으로 보여주는 컴포넌트.
|
|
57
|
+
- **TabStrip** · `prompts/components/tab-strip.md`: 열려 있는 문서나 파일 사이를 전환하는 탭이다. 각 탭은 독립 문서나 경로를 가리킨다.
|
|
58
|
+
- **Tabs** · `prompts/components/tabs.md`: 동일 문맥 안에서 한 번에 하나의 뷰만 보이는 여러 뷰를 전환하는 컨트롤.
|
|
59
|
+
- **Topbar** · `prompts/components/topbar.md`: 앱 shell 최상단의 가로 bar: Breadcrumb·탐색·검색·알림·사용자 메뉴처럼 "지금 어느 자리인지 + 공용 액션"만 담는 chrome.
|
|
60
|
+
- **TreeNav** · `prompts/components/tree-nav.md`: 여러 깊이의 항목을 펼치고 선택하는 계층형 탐색. menu-item 행을 조합하며 sidebar 없이도 사용할 수 있다.
|
|
57
61
|
|
|
58
62
|
## 색상
|
|
59
63
|
|
|
60
|
-
- **ColorArea** · `prompts/components/color-area.md
|
|
61
|
-
- **ColorField** · `prompts/components/color-field.md
|
|
62
|
-
- **
|
|
63
|
-
- **
|
|
64
|
-
- **
|
|
64
|
+
- **ColorArea** · `prompts/components/color-area.md`: `react-aria-components`의 `ColorArea` 어댑터.
|
|
65
|
+
- **ColorField** · `prompts/components/color-field.md`: `react-aria-components`의 `ColorField` 어댑터.
|
|
66
|
+
- **ColorPicker** · `prompts/components/color-picker.md`: `react-aria-components`의 `ColorPicker` 어댑터.
|
|
67
|
+
- **ColorSlider** · `prompts/components/color-slider.md`: `react-aria-components`의 `ColorSlider` 어댑터.
|
|
68
|
+
- **ColorSwatch** · `prompts/components/color-swatch.md`: `react-aria-components`의 `ColorSwatch` 어댑터.
|
|
69
|
+
- **ColorSwatchPicker** · `prompts/components/color-swatch-picker.md`: `react-aria-components`의 `ColorSwatchPicker` 어댑터.
|
|
65
70
|
|
|
66
71
|
## 차트
|
|
67
72
|
|
|
68
|
-
- **
|
|
73
|
+
- **Chart** · `prompts/components/chart.md`: Recharts를 Ovenn 토큰에 맞춰 감싼 어댑터.
|
|
74
|
+
- **Bar Chart** · `prompts/components/chart-bar.md`: 카테고리별 수치를 비교하는 자리. Recharts `BarChart` 어댑터.
|
|
75
|
+
- **Pie Chart** · `prompts/components/chart-pie.md`: 전체 대비 구성비를 보여주는 Recharts `PieChart` 어댑터.
|
|
76
|
+
- **Radar Chart** · `prompts/components/chart-radar.md`: 여러 항목의 상대적 프로필을 같은 축 위에서 비교하는 Recharts `RadarChart` 어댑터.
|
|
77
|
+
- **Radial Chart** · `prompts/components/chart-radial.md`: 진행률이나 작은 순위 집합을 원형 공간에 압축하는 Recharts `RadialBarChart` 어댑터.
|
|
78
|
+
- **SegmentedChart** · `prompts/components/segmented-chart.md`: 전체의 구성비를 하나의 분할 막대와 수치 목록으로 보여준다.
|
|
69
79
|
|
|
70
80
|
## 메뉴 · 오버레이
|
|
71
81
|
|
|
72
|
-
- **Accordion** · `prompts/components/accordion.md
|
|
73
|
-
- **CommandPalette** · `prompts/components/command-palette.md
|
|
74
|
-
- **ContextMenu** · `prompts/components/context-menu.md
|
|
75
|
-
- **DropdownMenu** · `prompts/components/dropdown-menu.md
|
|
82
|
+
- **Accordion** · `prompts/components/accordion.md`: 여러 섹션을 접었다 폈다 하는 구조 컴포넌트. 긴 콘텐츠를 압축해 "지금 중요한 것"만 보여주고, 사용자가 원할 때 세부를 펼친다.
|
|
83
|
+
- **CommandPalette** · `prompts/components/command-palette.md`: ⌘K로 열리는 전역 명령·검색 창. 페이지 이동과 자주 쓰는 액션을 키보드만으로 끝내는 자리.
|
|
84
|
+
- **ContextMenu** · `prompts/components/context-menu.md`: 우클릭·롱프레스로 열리는 한 객체에 대한 2차 액션 메뉴.
|
|
85
|
+
- **DropdownMenu** · `prompts/components/dropdown-menu.md`: 버튼 클릭(또는 Enter/Space)으로 열리는 트리거 중심 액션·옵션 메뉴.
|
|
76
86
|
|
|
77
87
|
## 피드백 · 다이얼로그
|
|
78
88
|
|
|
79
|
-
- **Callout** · `prompts/components/callout.md
|
|
80
|
-
- **Drawer** · `prompts/components/drawer.md
|
|
81
|
-
- **Hint** · `prompts/components/hint.md
|
|
82
|
-
- **Modal** · `prompts/components/modal.md
|
|
83
|
-
- **ProgressBar** · `prompts/components/progress-bar.md
|
|
84
|
-
- **
|
|
85
|
-
- **
|
|
86
|
-
- **
|
|
89
|
+
- **Callout** · `prompts/components/callout.md`: 사이드바·리스트 끝·설정 패널에 상주하는 안내. 카드와 토스트처럼 간결한 한 줄 가로 배치를 지원한다.
|
|
90
|
+
- **Drawer** · `prompts/components/drawer.md`: 화면 좌/우 가장자리에서 밀고 들어오는 세로 full-height 패널.
|
|
91
|
+
- **Hint** · `prompts/components/hint.md`: 문서나 화면 흐름 안에 짧은 참고 내용을 표시한다. 아이콘과 한두 줄의 텍스트로 구성하며, 큰 안내 영역이 필요하면 Callout을 사용한다.
|
|
92
|
+
- **Modal** · `prompts/components/modal.md`: 흐름을 끊고 한 가지 결정·입력·확인에 집중시키는 중앙 다이얼로그.
|
|
93
|
+
- **ProgressBar** · `prompts/components/progress-bar.md`: 얇은 가로 라인 로딩바. 두 모드: `value` 있으면 determinate(그 %로 채움, width transition으로 부드럽게), 없으면 indeterminate(NProgress 스타일 crawl).
|
|
94
|
+
- **Skeleton** · `prompts/components/skeleton.md`: 로딩할 콘텐츠의 크기와 배치를 미리 확보하는 장식 요소다.
|
|
95
|
+
- **Spinner** · `prompts/components/spinner.md`: 짧은 비동기 작업의 로딩 신호. 색은 currentColor로 묶여 부모 톤을 그대로 승계.
|
|
96
|
+
- **Toast** · `prompts/components/toast.md`: 휘발성 피드백: 사용자 액션의 결과를 짧게 알리고 자동으로 사라진다.
|
|
97
|
+
- **TopLoader** · `prompts/components/top-loader.md`: 얇은 가로 라우팅·네트워크 로딩 신호 바 (NProgress류).
|
|
87
98
|
|
|
88
99
|
## 데이터 표시
|
|
89
100
|
|
|
90
|
-
- **AttachmentItem** · `prompts/components/attachment-item.md
|
|
91
|
-
- **
|
|
92
|
-
- **
|
|
93
|
-
- **
|
|
94
|
-
- **
|
|
95
|
-
- **
|
|
96
|
-
- **
|
|
97
|
-
- **
|
|
98
|
-
- **
|
|
99
|
-
- **
|
|
100
|
-
- **
|
|
101
|
-
- **
|
|
102
|
-
- **
|
|
103
|
-
- **
|
|
104
|
-
- **
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- **
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
- **
|
|
113
|
-
- **
|
|
114
|
-
- **
|
|
115
|
-
- **
|
|
116
|
-
- **
|
|
117
|
-
- **
|
|
118
|
-
- **
|
|
119
|
-
- **
|
|
120
|
-
- **
|
|
101
|
+
- **AttachmentItem** · `prompts/components/attachment-item.md`: 첨부 파일 한 건의 아이콘, 파일명, 보조 정보와 액션을 표시한다.
|
|
102
|
+
- **Calendar** · `prompts/components/calendar.md`: 페이지의 주 콘텐츠 영역을 넓게 차지하는 풀페이지 일정 캘린더.
|
|
103
|
+
- **Comment** · `prompts/components/comment.md`: 작성자, 시간, 본문과 액션을 표시하는 댓글이다. CommentList로 목록과 답글을 구성하고, CommentComposer로 댓글과 답글을 작성한다.
|
|
104
|
+
- **DataTable** · `prompts/components/data-table.md`: table-toolbar·table-header·table-row·pagination에 단일 상태 계약을 연결한 업무용 테이블.
|
|
105
|
+
- **EmptyState** · `prompts/components/empty-state.md`: 텍스트는 공통 `--fg-muted` 색으로 낮은 강조를 유지한다.
|
|
106
|
+
- **EventChip** · `prompts/components/event-chip.md`: 캘린더 셀 안에서 "하루에 쌓이는 일정 하나"를 표현하는 작은 정보 블록.
|
|
107
|
+
- **EventListItem** · `prompts/components/event-list-item.md`: 리스트에 쌓이는 하나의 일정 아이템. 선택적인 좌측 날짜 블록(큰 숫자 + 요일) · 세로 hairline · 우측 제목 + status Tag + meta 라인으로 구성한다.
|
|
108
|
+
- **FileIcon** · `prompts/components/file-icon.md`: 콘텐츠 종류(문서·프레젠테이션·폴더·사진·비디오) 아이콘과 파일 확장자별 색·라벨·아이콘 배지.
|
|
109
|
+
- **GalleryItem** · `prompts/components/gallery-item.md`: 갤러리뷰 그리드에서 썸네일을 전면에 세우고 그 아래 title·description·meta·actions를 서술하는 콘텐츠 카드.
|
|
110
|
+
- **Kanban** · `prompts/components/kanban.md`: 워크플로우를 상태(컬럼)와 아이템(카드)의 2차원 격자로 보여주는 자리.
|
|
111
|
+
- **ListItem** · `prompts/components/list-item.md`: 리스트에 반복되는 한 줄 단위의 범용 anatomy. 피드·알림·활동 로그·작업 리스트·자원 목록이 전부 이 형태다.
|
|
112
|
+
- **MetricCard** · `prompts/components/metric-card.md`: 대시보드 상단에 조밀하게 늘어서는 KPI/Stat 카드.
|
|
113
|
+
- **MiniCalendar** · `prompts/components/mini-calendar.md`: 사이드바·작은 카드·대시보드 보조 영역에서 날짜 탐색과 일정 유무 확인에 쓰는 작은 캘린더.
|
|
114
|
+
- **TableHeader** · `prompts/components/table-header.md`: 데이터 그리드 상단의 columnheader 행. 시각 스타일(`line`/`divided`/`plate`/`grid`) × 두 기능(`resizable`/`reorderable`) 각각 on/off = 총 16조합을 하나의 컴포넌트로 담는다.
|
|
115
|
+
- **TableRow** · `prompts/components/table-row.md`: 데이터 그리드의 한 행. table-header와 같은 `columns` 스펙을 공유해 폭·정렬·순서가 자동으로 맞도록 설계된다.
|
|
116
|
+
- **TableRowEdit** · `prompts/components/table-row-edit.md`: Notion·Excel 톤의 edit 모드 행. table-row가 "읽는 행"(행 전체 클릭)이라면 이 컴포넌트는 "편집 가능한 셀 그리드": 상호작용 단위가 행이 아니라 셀이다.
|
|
117
|
+
- **TableRowSelect** · `prompts/components/table-row-select.md`: "선택 모드" 데이터 행. table-row의 navigate 모드가 "클릭 = 라우팅/상세 열기"였다면, select 모드는 "클릭 = 선택 토글" 하나로 묶인다.
|
|
118
|
+
- **TableToolbar** · `prompts/components/table-toolbar.md`: 표 위의 탭·검색·필터·요약·액션을 자유롭게 조합하는 배치 부품.
|
|
119
|
+
- **TimelineView** · `prompts/components/timeline-view.md`: 일정의 시작·종료·겹침을 명시적으로 선택한 시간 또는 날짜 축에서 비교하는 컴포넌트.
|
|
120
|
+
|
|
121
|
+
## 채팅 · AI
|
|
122
|
+
|
|
123
|
+
- **AIMessage** · `prompts/components/ai-message.md`: AI가 보낸 응답 메시지. 왼쪽 정렬, bubble 없이 본문 그대로 노출: user-message의 bubble과 대비.
|
|
124
|
+
- **AttachmentThumb** · `prompts/components/attachment-thumb.md`: ChatInput과 메시지에서 이미지 첨부를 보여주는 작은 썸네일이다.
|
|
125
|
+
- **Bubble** · `prompts/components/bubble.md`: 메시지 말풍선 primitive. Shape 4종 × Fill 4종 조합.
|
|
126
|
+
- **ChatComposer** · `prompts/components/chat-composer.md`: 사람 간 채널·DM·스레드 메시지를 작성하는 controlled 입력창.
|
|
127
|
+
- **ChatInput** · `prompts/components/chat-input.md`: AI 채팅의 입력 영역. 첨부물 바 → 인용 바 → 입력 본문(textarea 또는 input)의 세 층 구성.
|
|
128
|
+
- **ChatMessage** · `prompts/components/chat-message.md`: 채널·DM의 작성자·시간·본문 행. Comment를 실제 조합하여 아바타·키보드 접근 가능한 호버 액션을 재사용한다.
|
|
129
|
+
- **ChatReactions** · `prompts/components/chat-reactions.md`: 메시지에 붙는 이모지 반응 목록. 공용 Tooltip과 Button에 이모지와 작은 숫자를 나란히 표시한다.
|
|
130
|
+
- **CodeBlock** · `prompts/components/code-block.md`: 코드와 변경 내역을 표시하는 블록이다. 파일명·언어 라벨과 복사 버튼을 헤더에 두고 본문은 `pre`와 `code`로 렌더한다.
|
|
131
|
+
- **GeneratedImage** · `prompts/components/generated-image.md`: AI가 생성한 이미지 결과물의 큰 표시 자리. 세 상태(loading / placeholder / image)가 같은 프레임 안에서 바뀐다.
|
|
132
|
+
- **MessageActions** · `prompts/components/message-actions.md`: 메시지 하단에 붙는 아이콘 액션 바. user-message · ai-message · MessageState에서 공용.
|
|
133
|
+
- **MessageQuote** · `prompts/components/message-quote.md`: ai-message 안의 인용 블록. `plain`(그냥 글)과 `blockquote`(왼쪽 vertical bar 리더) 두 variant.
|
|
134
|
+
- **MessageSources** · `prompts/components/message-sources.md`: AIMessage의 하단 액션바 옆에 inline으로 붙는 chip.
|
|
135
|
+
- **MessageState** · `prompts/components/message-state.md`: AI 응답 중간에 쌓이는 "뭘 하고 있는지" 라인. Lottie-ish Spinner 또는 kind별 아이콘 + 통통거리는 라벨.
|
|
136
|
+
- **MessageTable** · `prompts/components/message-table.md`: AIMessage 안의 표에 공통 스타일을 적용하는 래퍼다.
|
|
137
|
+
- **QuotationBar** · `prompts/components/quotation-bar.md`: ChatInput이나 메시지에서 인용한 내용을 한 줄로 표시하는 바다.
|
|
138
|
+
- **UserMessage** · `prompts/components/user-message.md`: 사용자가 보낸 채팅 메시지. bubble + message-actions 조합.
|
|
121
139
|
|
|
122
140
|
## 기타
|
|
123
141
|
|
|
124
|
-
- **Disclosure** · `prompts/components/disclosure.md
|
|
125
|
-
- **Icon** · `prompts/components/icon.md
|
|
126
|
-
- **Onboarding** · `prompts/components/onboarding.md
|
|
127
|
-
- **TableCell** · `prompts/components/table-cell.md
|
|
142
|
+
- **Disclosure** · `prompts/components/disclosure.md`: 트리거와 본문으로 구성하는 접기 영역이다. 트리거를 눌러 본문을 펼치거나 접는다.
|
|
143
|
+
- **Icon** · `prompts/components/icon.md`: 의미 기반 아이콘 렌더러. `name`으로 의미 슬롯을 지정하고, 실제 SVG는 icon의 Family(phosphor/solar/lucide)가 결정.
|
|
144
|
+
- **Onboarding** · `prompts/components/onboarding.md`: Ovenn 설치 직후 `/ovenn` 라우트에 뜨는 위자드.
|
|
145
|
+
- **TableCell** · `prompts/components/table-cell.md`: table-row·table-row-edit의 셀 안쪽에 넣는 콘텐츠 포맷터 세트.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 사용자 피드백에서 WORKFLOW_DESIGN 규칙 개선까지
|
|
2
|
+
|
|
3
|
+
사용자 피드백으로 Ovenn 디자인 규칙을 개선하는 메타 프로세스. agent가 매 요청마다 실행할 지침이 아니라, `continue` 모드에서 피드백 원인 분석 계약과 사용자가 WORKFLOW_DESIGN을 유지관리할 때의 작업 순서를 담는다. 정책 원본은 [[WORKFLOW_DESIGN]]이다.
|
|
4
|
+
|
|
5
|
+
## 시각 교정 사례와 소비자 전달
|
|
6
|
+
|
|
7
|
+
규칙 준수와 미적 완성도는 별도로 판단한다. 규칙 위반 없음은 미감 합격이 아니며, 미감 채택도 위반을 면제하지 않는다. 사람 평가는 AI 독립 검수와 구분하고 해당 회차의 실제 소스·캡처, 평가 당시의 규칙 정의·원본 해시에 연결한다. 기준이 바뀌면 과거 판정과 현재 평가를 구분한다. 기준 사례에는 같은 업무의 전후 전체 화면과 필요한 부분 확대, 적용 문맥, 수정 전 관측, 바꾼 점, 좋아진 이유, 원본 부품과 변형 내용을 보존한다. 사례를 저장한 뒤의 사람 평가는 동일 소스·캡처일 때만 별도 이력으로 연결하며 저장 당시 근거를 덮어쓰지 않는다. 미확인은 합격으로 취급하지 않는다.
|
|
8
|
+
|
|
9
|
+
평가 기록 저장은 모델 학습이나 소비자 배포가 아니다. 수정 후 규칙 검사와 미감 판단을 완료한 사례에서 사람이 적용 판단과 범위를 작성하고 이 원본의 실험 초안으로 만든다. 한 화면의 값을 모든 화면의 정답으로 만들지 않는다. 초안으로 원래 과제를 재실험하고 독립 검수를 마친 뒤 문서 전후와 실제 화면을 검토해 채택한다. 기준을 만드는 데 쓰지 않은 새 요청과 모델별 결과도 별도로 평가한다. 평가 수는 회차·서로 다른 과제·모델을 구분하며 적은 사례의 개선을 전체 품질 보증으로 표현하지 않는다.
|
|
10
|
+
|
|
11
|
+
채택된 판단은 이 원본에서 관리하고 기존 get_design_workflow/get_guide 및 CLI의 설치된 prompts/WORKFLOW_DESIGN.md로 전달한다. 실제 서비스 배포 또는 CLI 패키지 배포와 설치 업데이트가 있어야 소비자에게 적용된다. 소비자가 텍스트로 요청해도 에이전트가 이 지침을 읽는 기존 절차를 따른다. 로컬 사례 이미지·소스를 자동 배포하거나 사용자가 매번 레퍼런스를 제공해야 하는 계약을 만들지 않는다. 시각 입력을 받지 못하는 환경에서 이미지까지 전달됐다고 주장하지 않는다.
|
|
12
|
+
|
|
13
|
+
후속 수정은 화면을 고치는 것과 원인을 찾는 것을 함께 수행한다. 이전 입력에 제공된 문서, 실제 도구 호출에 등장한 문서, 생성자의 선택 설명을 구분해 확인한다. 관련 컴포넌트 문서·실제 코드와 spacing/typography/PRINCIPLES를 다시 검토하고, 실제로 문제에 관계없는 문서까지 억지로 고치지 않는다.
|
|
14
|
+
|
|
15
|
+
원인은 implementation_error(기존 규칙 미준수), missing_rule(규칙 부족), incorrect_rule(규칙 오류), uncertain(근거 부족)으로 구분한다. 구현 미준수는 구현을 바로잡고 문서를 더 엄격하게 만드는 것으로 대신하지 않는다. 규칙의 부족·오류는 해당 조항·화면 관측·영향을 연결해 설명한다. 한 화면의 취향을 모든 화면의 금지 규칙으로 일반화하지 않는다. 사용자 피드백과 현재 원칙이 충돌하면 적용 범위를 밝히고 원본의 미감 정책을 조용히 뒤집지 않는다.
|
|
16
|
+
|
|
17
|
+
실험용 사본에서 화면을 수정하고, 근거 있는 문서 수정안만 함께 작성한다. 소비자 프로젝트의 원본은 바로 바꾸지 않는다. .ovenn/feedback.json에는 summary, issues 배열을 남기며 각 항목은 feedback, classification, observation, cause, documents([{path,reason}]), verification을 가진다. summary·feedback·observation·cause·verification·문서 reason은 짧은 문자열로 작성하고 문서 경로는 prompts/ 기준으로 명시한다. 구조화된 보조 검증 기록은 문자열 요약과 구분해 보존한다. 원인·적용 판단은 모델의 설명이며 관측 사실과 구분한다. 불확실하면 uncertain으로 남기고 문서 수정을 강제하지 않는다.
|
|
18
|
+
|
|
19
|
+
수정 전후 문서와 입력 hash를 보존하고, 문서 초안으로 원래 과제를 다시 실험해 화면·기능·기존 계약에 미치는 영향을 검토한다. 재실험의 실행·독립 검수 완료는 미적 우수성의 보증이 아니다. 근거·전후·재실험 결과를 사람이 검토해 채택한 변경만 원본에 반영한다.
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
기존 부품 → 공식 조합/slot → scoped skin·출처 있는 로컬 파생 → 근거 있는 직접 구현 순서로 선택한다. 문서 조회·파일 복사·미사용 import는 실제 사용이 아니다. 사용 가능한 부품의 기본 모양이나 compound API가 번거롭다는 이유로 native 컨트롤로 대체하지 않는다. 조립 전 역할별 선택을 ASSEMBLY의 componentPlan에 기록하고 구현 후 실제 사용을 검사한다.
|
|
63
63
|
|
|
64
|
-
예외는 사용자 보존 요청, 기존 프로젝트의 작업 범위 밖 구현, 설치본에 없는/WIP 부품, 기존 API로 충족할 수 없는 행동·접근성 요구 등 구체적 근거가 있을 때만 해당 범위에 적용한다. 일반 div/span·본문·레이아웃·도메인 시각화는 직접 조립할 수 있다. 불필요한 부품이나 영역을 추가해 사용률을 높이지 않는다. 예외가 검증되지 않으면 미확인으로 남긴다. 스타일 값의 하드코딩 검사와 부품 재사용 검사는 서로 다른 검사다.
|
|
64
|
+
예외는 사용자 보존 요청, 기존 프로젝트의 작업 범위 밖 구현, 설치본에 없는/WIP 부품, 기존 API로 충족할 수 없는 행동·접근성 요구 등 구체적 근거가 있을 때만 해당 범위에 적용한다. 사용자가 Ovenn 전환을 요청한 범위의 기존 컴포넌트와 native 컨트롤은 작업 범위 밖 구현이 아니라 교체 대상이다. 절차는 [[ASSEMBLY]]의 기존 UI 전환을 따른다. 일반 div/span·본문·레이아웃·도메인 시각화는 직접 조립할 수 있다. 불필요한 부품이나 영역을 추가해 사용률을 높이지 않는다. 예외가 검증되지 않으면 미확인으로 남긴다. 스타일 값의 하드코딩 검사와 부품 재사용 검사는 서로 다른 검사다.
|
|
65
65
|
|
|
66
66
|
허용: scoped CSS/토큰 override, 로컬 skin·어댑터·복사한 소스 수정, anatomy 변경, 페이지 전용 섹션/목록/표/탐색 조합. Sidebar의 색·폰트·폭·active 표현도 바꿀 수 있다. semantic main/nav/section/article/ul/li를 사용할 수 있다. 반복 목록을 반드시 특정 벤더 외형으로 만들지 않는다.
|
|
67
67
|
|
|
@@ -77,14 +77,38 @@
|
|
|
77
77
|
|
|
78
78
|
렌더링한 화면에서 확인하지 못한 조합은 **미확인**으로 남긴다. 정적 검사에서 배경과 테두리가 함께 발견됐다는 이유만으로 위반으로 단정하거나, 발견되지 않았다는 이유로 통과를 보증하지 않는다. 차이가 뚜렷하면 선을 배경에 가깝게 조정하거나 배경·테두리 중 하나를 제거한다. 색 샘플·데이터 시각화의 선과 채움은 표면 장식과 구별하며, 컨트롤의 식별·오류·키보드 상태에 필요한 접근성 계약은 보존한다.
|
|
79
79
|
|
|
80
|
+
### 5b-1. 직접 만든 표면에도 squircle 적용
|
|
81
|
+
|
|
82
|
+
**Ovenn 컴포넌트 사용 여부와 관계없이, 둥근 카드·패널·모달·팝오버 등 직접 만든 표면에도 squircle 곡선을 반드시 적용한다.** native HTML, 로컬 컴포넌트, scoped skin, 로컬 파생에도 같은 정책을 적용한다. 컴포넌트 재사용의 예외가 모서리 정책의 예외는 아니다.
|
|
83
|
+
|
|
84
|
+
반경만 지정한 일반 원호로 끝내지 않는다. 토큰 CSS의 전역 기본 곡선을 사용하거나 역할에 맞는 radius 토큰과 곡선 토큰을 함께 선언한다. 카드·일정·문서 프레임은 `corner-shape: var(--card-corner-shape)`, 모달·패널·기타 일반 표면은 `corner-shape: var(--corner-shape)`를 사용한다. 내부 표면이 반경을 상속하면 곡선도 함께 상속한다. 선언 예시와 예외는 [[tokens/radius]]를 따른다.
|
|
85
|
+
|
|
86
|
+
원형 의미의 Avatar·Radio·Spinner·dot·Slider thumb, 의도적으로 각진 표·시트 셀, 자체 곡률 계약이 있는 Switch는 해당 형태를 유지한다. 사용자가 다른 모서리 형태를 명시한 범위는 그 요청을 따른다. 미지원 브라우저의 radius fallback은 허용하되 squircle 적용 완료로 보고하지 않는다.
|
|
87
|
+
|
|
80
88
|
## 5c. 상태 표현
|
|
81
89
|
|
|
90
|
+
읽기 전용 입력·선택 필드는 배경색으로 칠하지 않는다. `line` 타입은 hover·포커스·열림·선택·오류·disabled·readOnly·자동완성 상태에도 입력 표면의 배경을 투명하게 유지한다. 그룹 안의 상태 스타일도 이 계약을 보존한다.
|
|
91
|
+
|
|
82
92
|
표면·선택 표시에는 다음 사용자 정책을 적용한다.
|
|
83
93
|
- **흰색·연한 중립색·연한 유색 배경 위에는 `filled` Input을 사용하지 않는다.** 이 자리에서는 경계가 읽히는 `outline`을 사용한다. 대비를 조정했다는 이유로 `filled`를 다시 허용하지 않는다.
|
|
84
94
|
- **탐색 항목의 액티브바는 기본적으로 사용하지 않는다.** 선택은 표면·텍스트 색·굵기로 전달한다. 바가 필요한 경우에도 둥근 블록의 border나 inset shadow에 직접 붙여 `(`처럼 휘게 만들지 않는다. 바는 블록의 radius와 분리된 직선이어야 하며 hover·focus·선택 상태에서도 휘거나 잘리지 않아야 한다.
|
|
85
95
|
|
|
86
96
|
hover가 선택/disabled/오류 상태를 알아보기 어렵게 만들지 않게 한다. overlay와 색 전환 중 재질·대비에 맞는 방식을 쓸 수 있다. 모션은 토큰과 reduced-motion을 따른다.
|
|
87
97
|
|
|
98
|
+
## 5d. 선택 옵션은 실제 결과를 시각화한다
|
|
99
|
+
|
|
100
|
+
폰트·크기·색상·선·도형·정렬처럼 **선택 결과를 눈으로 보여줄 수 있는 옵션은 텍스트 이름만 나열하지 않는다.** DropdownMenu·Select·ContextMenu·툴바의 선택 메뉴에 모두 적용한다. 사용자가 옵션을 읽고 모양을 상상하는 대신, 고르기 전에 결과를 직접 비교할 수 있게 만든다.
|
|
101
|
+
|
|
102
|
+
- 폰트는 각 항목을 해당 서체로 렌더한다. 서체 차이를 알아볼 수 있는 충분한 크기를 사용한다.
|
|
103
|
+
- 글자 크기는 해당 크기로 렌더하고, 글자가 커질수록 행 높이도 자연스럽게 늘린다. 고정 행 높이로 큰 글자를 잘라내지 않는다.
|
|
104
|
+
- 색상은 실제 색 스와치로 보여준다. 투명도가 선택의 핵심이면 투명도 차이도 구분되게 표현한다.
|
|
105
|
+
- 선 종류는 실제 실선·대시·도트 패턴으로, 선 두께는 실제 굵기가 다른 선으로 보여준다. 미리보기의 값과 실제 적용 값은 일치시킨다.
|
|
106
|
+
- 도형·정렬·레이아웃·끝 모양 등도 선택 결과를 비교할 수 있는 미리보기를 제공한다. 실제 의미가 있는 아이콘·도형·샘플을 사용한다.
|
|
107
|
+
- 구분에 필요한 이름·숫자 값은 미리보기와 함께 표시한다. 접근성 이름과 키보드 선택·타이핑 검색을 보존한다.
|
|
108
|
+
- 메뉴 폭은 미리보기와 필요한 라벨에 맞춘다. 글꼴·큰 글자는 충분히 읽히게 하고, 선 패턴처럼 작은 샘플은 표준 행 높이를 사용한다. 메뉴 정렬과 화면 경계·스크롤 계약을 유지한다.
|
|
109
|
+
|
|
110
|
+
구현 기준은 [[components/toolbar]]의 Text editor / Line editor 사용 사례와 연결된 [[use-cases/general-toolbar]] 원본이다.
|
|
111
|
+
|
|
88
112
|
## 6. 하드코딩 금지의 범위
|
|
89
113
|
|
|
90
114
|
색·크기·시간·그림자·폰트의 값은 토큰 **정의부**에 모으고 사용처는 CSS 변수로 참조한다. 정의부의 리터럴은 토큰을 만드는 행위이며 허용된다. 구조적 0/100%/1px border는 예외다. 사용자 제공 브랜드 입력·기계 데이터와 스타일 사용처를 혼동하지 않는다.
|