[OneChat] Simple Chat UI#222816
Conversation
3a003af to
07cef87
Compare
e62ad4a to
ee3b3f8
Compare
ee3b3f8 to
093140b
Compare
a8c2540 to
3f5ba3e
Compare
|
/ci |
…urce-definitions/scripts/fix-location-collection.ts'
| const setConversation = (updater: (conversation?: Conversation) => Conversation) => { | ||
| queryClient.setQueryData<Conversation>(queryKey, updater); | ||
| }; | ||
| const setCurrentRound = (updater: (conversationRound: ConversationRound) => void) => { | ||
| setConversation( | ||
| produce((draft) => { | ||
| const round = draft?.rounds?.at(-1); | ||
| if (round) { | ||
| updater(round); | ||
| } |
There was a problem hiding this comment.
Wasn't expecting that kind of approach, but I believe it makes sense in the react-query way.
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
miscellaneous assets size
History
|
69d2d10 to
71f1681
Compare
71f1681 to
a5d6af1
Compare
| To enable the Chat UI located at `/app/chat/`, add the following to your Kibana config: | ||
|
|
||
| ```yaml | ||
| uiSettings.overrides: |
There was a problem hiding this comment.
No problem, it was Oren's suggestion
|
|
||
| const conversationPanelClass = css` | ||
| min-height: 100%; | ||
| max-width: 850px; |
There was a problem hiding this comment.
we try not to hardcode widths here. You should be able to reach the euiTheme via hook and get the spacing values.
max-width: calc(${euiTheme.size.xl} * 10);
There was a problem hiding this comment.
Styling will likely be changing anyways in follow up
| `; | ||
|
|
||
| const inputFlexItemClass = css` | ||
| max-width: 900px; |
There was a problem hiding this comment.
same here with hardcoded width
| </div> | ||
| ) : ( | ||
| <EuiText size="s" color="subdued"> | ||
| No result available |
There was a problem hiding this comment.
missing localisation but we can ignore here as this is going to have changes.
joemcelroy
left a comment
There was a problem hiding this comment.
Looks great! Feel free to merge now without changes and address them in another PR, for the sake of a passing build :)
Summary
Simple.Chat.UI.mov
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesIdentify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.