-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: this template is compatible with versions of @graasp/sdk >1.1.** and @graasp/apps-query-client > 2.** also upgrade other deps test: update tests for @graasp/sdk 1.1.* chore(main): release 1.0.0 (#4) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Use APP_KEY instead of APP_ID (#6) * build: use APP_KEY instead of APP_ID close #5 * chore(deps): minor upgrade feat: update template (#9) * fix: add demo * fix: create unity demo * fix: demo * fix: update template * fix: tests and workflows * fix: update readme * fix: update deps * fix: tests * fix: add renovate fix: env variable for VITE_API_HOST in README.md (#22) * fix: update value of env variables in readme * fix: set the time in deploy workflow * fix: add time to prod and stage deployements * fix: remove env variable as it is set in the vite.config.ts fix(test): update member emails (#24) chore(deps): update commitlint packages to v18.4.3 chore(deps): update devdependencies (non-major) fix(deps): update dependency @mui/lab to v5.0.0-alpha.153 fix(deps): update dependency @types/node to v20.9.5 fix(deps): update react monorepo chore(deps): update eslint packages to v6.12.0 fix(deps): update dependency @types/node to v20.10.0 (#26) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> fix(deps): update dependency typescript to v5.3.2 (#27) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> fix(deps): update dependency @graasp/sdk to v3.1.0 (#25) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> fix(deps): update dependency @sentry/react to v7.81.1 (#23) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> chore(deps): update dependency cypress to v13.6.0 (#20) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> fix: update template chore: update deps (#36) * chore: update deps * fix: update workflow variables fix: variables fix: udpate release-please condition fix: work in progress
- Loading branch information
Showing
41 changed files
with
3,447 additions
and
993 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ jobs: | |
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Unit Tests | ||
run: yarn vitest |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const AppActionsType = { | ||
// Message actions | ||
Create: 'create_comment', | ||
Edit: 'edit_comment', | ||
Delete: 'delete_comment', | ||
Reply: 'reply_comment', | ||
// chatbot actions | ||
AskChatbot: 'ask_chatbot', | ||
} as const; |
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,20 @@ | ||
import { AppData } from '@graasp/sdk'; | ||
|
||
export const AppDataTypes = { | ||
UserComment: 'comment', | ||
BotComment: 'bot-comment', | ||
}; | ||
|
||
export const COMMENT_APP_DATA_TYPES: string[] = [ | ||
AppDataTypes.UserComment, | ||
AppDataTypes.BotComment, | ||
]; | ||
|
||
export type VisibilityVariants = 'member' | 'item'; | ||
|
||
export type CommentData = { | ||
content: string; | ||
parent: string | null; | ||
chatbotPromptSettingId?: string; | ||
}; | ||
export type CommentAppData = AppData<CommentData>; |
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,26 @@ | ||
export const SettingsKeys = { | ||
ChatbotPrompt: 'chatbot-prompt', | ||
} as const; | ||
|
||
export type ChatCompletionMessageRoles = 'system' | 'user' | 'assistant'; | ||
|
||
export type ChatCompletionMessage = { | ||
role: ChatCompletionMessageRoles; | ||
content: string; | ||
}; | ||
|
||
// Chatbot Prompt Setting keys | ||
export enum ChatbotPromptSettingsKeys { | ||
InitialPrompt = 'initialPrompt', | ||
ChatbotCue = 'chatbotCue', | ||
ChatbotName = 'chatbotName', | ||
} | ||
|
||
export type ChatbotPromptSettings = { | ||
[ChatbotPromptSettingsKeys.InitialPrompt]: ChatCompletionMessage[]; | ||
[ChatbotPromptSettingsKeys.ChatbotCue]: string; | ||
[ChatbotPromptSettingsKeys.ChatbotName]: string; | ||
|
||
// used to allow access using settings[settingKey] syntax | ||
// [key: string]: unknown; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const DEFAULT_BOT_USERNAME = 'Graasp Bot'; | ||
export const ANONYMOUS_USER = 'Anonymous'; | ||
|
||
// UI | ||
export const SMALL_BORDER_RADIUS = '4px'; | ||
export const BIG_BORDER_RADIUS = '8px'; |
Oops, something went wrong.