-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge develop back into main (#148)
* chore: replaced property decorator for state where boolean * chore: update the import * chore: update vite config * chore: create a barrel for all exports * chore: add a teaser type * chore: add a barrel for core modules * chore: update global config according to teaser type * chore: move teaserlist styles to own file * chore: rename main styles import to chat * chore: remove default questions from main component * chore: create teaserlist component * chore: handle teaser click event on teaserlist * chore: handle teaserlist click on chat component * chore: remove debugging statements * chore: add tab component * chore: add tab component styles * chore: decouple tab component (thought process) * chore: add tab component to bundle * chore: change name of function to generic * chore: update styles from main restyling * chore: update styles for teaserlist * chore: add event cancellation from main * chore: add latest changes * fix: merge conflicts on error styles * chore: fix eslint errors * chore: refactor voice input into it's own component * chore: refactor tab component to be generic * chore: refactor markdown preview to it's own component * fix: fix follow up question click * test: add test for followup questions * test: iterate through all follow up questions * chore: use the imports for lit elements * feat: add support for pdf rendering in document-previewer * chore: correct teaserlist filename * chore: make tab content children of tab content * chore: move citations to their own component * chore: refactor the chat-thread-list into it's own component * fix: correct the action button disable * chore: refactor action buttons to it's own component * fix: exported name for chat-action * chore: delete old style file * chore: run github actions on develop * docs: update README.md with additional security measures * fix: fix typo Co-authored-by: Yohan Lasorsa <[email protected]> * fix(indexer): incorrect path on Windows (#141) * chore: cleanup unused webapp files. * fix: show which citation is being viewed across the chat-threads. * chore: refactor teaser list to be use passed in values * chore: clean up the styles * chore: cleanup tabs and teaser list * chore: move type to dev dependency * fix: use correct fields for developer settings * fix: tests to work with the correct overrides * fix: ask uses the prompt-template-* overrides only when it's not empty --------- Co-authored-by: Shibani <[email protected]> Co-authored-by: Shibani Basava (from Dev Box) <[email protected]> Co-authored-by: Yohan Lasorsa <[email protected]>
- Loading branch information
1 parent
793314b
commit 176f3b1
Showing
57 changed files
with
2,135 additions
and
2,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,11 @@ on: | |
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/chat-component/src/components/chat-action-button.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { LitElement, html } from 'lit'; | ||
import { customElement, property } from 'lit/decorators.js'; | ||
|
||
import { styles } from '../styles/chat-action-button.js'; | ||
import { unsafeSVG } from 'lit/directives/unsafe-svg.js'; | ||
|
||
export interface ChatActionButton { | ||
label: string; | ||
svgIcon: string; | ||
isDisabled: boolean; | ||
id: string; | ||
} | ||
|
||
@customElement('chat-action-button') | ||
export class ChatActionButtonComponent extends LitElement { | ||
static override styles = [styles]; | ||
|
||
@property({ type: String }) | ||
label = ''; | ||
|
||
@property({ type: String }) | ||
svgIcon = ''; | ||
|
||
@property({ type: Boolean }) | ||
isDisabled = false; | ||
|
||
@property({ type: String }) | ||
actionId = ''; | ||
|
||
@property({ type: String }) | ||
tooltip: string | undefined = undefined; | ||
|
||
override render() { | ||
return html` | ||
<button title="${this.label}" data-testid="${this.actionId}" ?disabled="${this.isDisabled}"> | ||
<span>${this.tooltip ?? this.label}</span> | ||
${unsafeSVG(this.svgIcon)} | ||
</button> | ||
`; | ||
} | ||
} |
Oops, something went wrong.