Commit 10e1e8a
authored
[LG-5936] feat(message-feed): ResourceList Subcomponent (#3495)
* refactor(MessageFeed): convert to CompoundComponent and temp remove assistant name
* refactor(MessageFeed): enhance component structure
* feat(MessageFeed): add MessageFeedContext
* docs(MessageFeed): add changeset
* fix(MessageFeed): update error message for context provider
* refactor(Message): undo message changes
* chore(MessageFeed): add compound-component dependency
* chore(pnpm-lock): add compound-component to dependencies
* chore(MessageFeed): update dependencies for compound-component integration
* refactor(MessageFeed): move shared types
* refactor(InitialMessage): update import path for shared types and use enum for key
* feat(InitialMessage): integrate MessageFeedContext to manage initial message visibility
* chore(changeset): update dependency version for @lg-chat/message-feed
* fix(tsconfig): add missing newline at end of file
* fix(MessageFeedContext): handle error boundary for React 17 in context hook tests
* feat(InitialMessage): implement styles and update component structure for initial message display
* feat(InitialMessage): enhance initial message component with structured content and styles
* refactor(InitialMessage): replace hardcoded title and description with constants for improved maintainability
* feat(ChatWindow): add initial message prompts and enhance message handling in chat window stories
* refactor(ChatWindow): remove enableHideOnSelect prop from Suggested Prompts in initial message component
* test(InitialMessage): add unit tests for accessibility, rendering, and visibility behavior
* test(MessageFeed): enhance tests with scrollTo mock and update query methods for initial message visibility
* refactor(InitialMessage): simplify getWrapperStyles function and remove unused props
* chore(MessageFeed): update dependencies and tsconfig to include new LeafyGreen UI components
* refactor(ChatWindow): rename initial message component and update props for message prompts
* chore(MessageFeed): remove unused @leafygreen-ui/hooks dependency from package.json and pnpm-lock.yaml
* refactor(MessageFeed): remove commented-out MyMessage component from InitialMessage story
* chore(MessageFeed): update changeset
* refactor(MessageFeed): integrate MessagePrompts and MessagePrompt components into InitialMessage
* refactor(InitialMessage): update styles for title and description components
* refactor(InitialMessage): adjust inner wrapper styles with focus ring for improved layout
* test(InitialMessage, MessagePrompt, MessagePrompts): enhance tests for rendering and type validation
* refactor(InitialMessage): rename component and add message prompts for enhanced user interaction
* chore(pnpm-lock): add '@lg-chat/message-prompts' dependency and clean up unused entries
* test(InitialMessage, MessagePrompts): improve error handling tests for enableHideOnSelect prop
* chore(changeset): update to include new components
* test(InitialMessage): fix JSX syntax in type validation tests for proper rendering
* test(MessageFeed): add tests for rendering MessagePrompts and its child MessagePrompt components
* feat(MessageFeed): add ResourceLists and ResourceList properties to MessageFeedSubcomponentProperty
* feat(MessageFeed): add InitialMessageWithResourceList story and update InitialMessage component to include ResourceList and ResourceListItem
* refactor(InitialMessage): restructure inner wrapper and remove description styles for cleaner layout
* refactor(ResourceListItem): update styles to use theme-based icon colors and improve structure
* refactor(InitialMessage): integrate LeafyGreenProvider for dark mode support and simplify props in stories
* test(InitialMessage, MessageFeed): update tests to ensure proper rendering of MessagePrompts and prevent rendering of children when not a subcomponent
* refactor(InitialMessage): remove LeafyGreenProvider and simplify component structure for improved readability
* refactor(InitialMessage): remove LeafyGreenProvider and streamline component structure for improved readability
* feat(InitialMessage): add generated story for initialMessage
* feat(InitialMessage): enhance story with interactive MessagePrompts and update children prop for better demonstration
* chore(ALL_PACKAGES): revert ALL_PACKAGES
* fix(InitialMessage): remove unused darkMode prop from story and include resourceList in the InitialMessage component
* feat(ResourceList): integrate LeafyGreenProvider for dark mode support and update ResourceListProps to include DarkModeProps
* feat(InitialMessage): add additional resource list items and update story configuration for enhanced interactivity
* fix(ResourceListItem): update prop documentation for glyph and children to clarify usage
* docs(MessageFeed): update changeset
* refactor(InitialMessage): update AssistantAvatar size and adjust props in InitialMessage types for improved clarity
* fix(InitialMessage): export InitialMessageProps type for better type safety
* refactor(InitialMessage): Components to components
* refactor(InitialMessage): update import paths from Components to components
* feat(InitialMessage): add interactive story for message addition with state management
* fix(InitialMessage): add visibility property to transition styles for improved animation handling
* feat(MessageFeed): enhance InitialMessage stories with new message handling and improve visibility checks in tests
* feat(InitialMessage): rename Components to components
* fix(InitialMessage): update import paths from Components to components for consistency
* refactor(InitialMessage): replace MessageFeedSubcomponentProperty with InitialMessageSubcomponentProperty in relevant components
* feat(MessagePromptsItem): add MessagePromptsItem component with associated types and tests
* refactor(MessagePrompts): rename MessagePrompt to MessagePromptsItem across components and update related tests and stories
* feat(InitialMessage): implement InitialMessage component with accessibility tests, styles, and subcomponents for prompts and resource lists
* fix(MessageFeed): correct import paths for InitialMessage component
* feat(ResourceListItem): export ResourceListItemProps type for improved type safety
* test(InitialMessage): add tests for ResourceList subcomponent and update existing tests
* refactor(MessageFeed): simplify initial message handling by removing unnecessary state and improving readability
* refactor(MessageFeed): export InitialMessageProps type for better accessibility in message feed components
* feat(index): export ResourceList and its props for improved component accessibility
* refactor(MessageFeed): export additional message prompts types for improved component integration1 parent f74ae7e commit 10e1e8a
File tree
17 files changed
+296
-2
lines changed- .changeset
- chat/message-feed/src
- components
- InitialMessage
- ResourceListItem
- ResourceList
17 files changed
+296
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
166 | 191 | | |
167 | 192 | | |
168 | 193 | | |
| |||
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 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 | + | |
91 | 117 | | |
92 | 118 | | |
93 | | - | |
| 119 | + | |
94 | 120 | | |
95 | 121 | | |
96 | 122 | | |
| |||
106 | 132 | | |
107 | 133 | | |
108 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
109 | 145 | | |
110 | 146 | | |
111 | 147 | | |
| |||
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
24 | 41 | | |
25 | 42 | | |
26 | 43 | | |
| |||
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
32 | | - | |
| 49 | + | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments