Commit graph

1194 commits

Author SHA1 Message Date
bsu3338
78278b5322
Merge branch 'main' into Speech-to-Text 2023-08-09 14:49:01 -05:00
bsu3338
e313637229
Update SpeechRecognition.tsx 2023-08-09 14:48:31 -05:00
Fuegovic
f101419af3
docs: general update (#781)
* Update windows_install.md

* Update linux_install.md

* Update mac_install.md

* Update docker_install.md

* Update linux_install.md

* Update windows_install.md

* Update README.md

* Update breaking_changes.md

* Update breaking_changes.md
2023-08-09 13:38:17 -04:00
Danny Avila
251d8ac410
Release 0.5.7 (#780) 2023-08-09 12:22:05 -04:00
Danny Avila
bdccadbe06 fix(playwright.yml): fix condition for running Playwright tests on pull requests
The condition for running Playwright tests on pull requests was not properly formatted. The repository name was not enclosed in quotes. This commit fixes the condition by adding single quotes around the repository name.
2023-08-09 10:28:04 -04:00
Danny Avila
70a56ac04a chore(client): update @vitejs/plugin-react to version 4.0.4
chore(client): update vite to version 4.4.9
2023-08-09 10:28:04 -04:00
Danny Avila
193ed93ee8 chore(style.css): update font paths to use a variable for the fonts directory
chore(vite.config.ts): import the resolve function from the path module
2023-08-09 10:28:04 -04:00
Danny Avila
b096fb98ce chore: remove next.js artifacts from ui primitives 2023-08-09 10:28:04 -04:00
Danny Avila
002bba20f9 refactor(Slider.tsx): remove unused import and type declaration
fix(Slider.tsx): fix type error in onClick event handler
2023-08-09 10:28:04 -04:00
Fuegovic
b896225bd8
Language Translation: French (#778) 2023-08-09 09:27:32 -04:00
bsu3338
e7d7d7325d
Update SpeechSynthesis.tsx 2023-08-09 07:50:37 -05:00
bsu3338
09c68d159e
Update index.jsx 2023-08-09 00:59:58 -05:00
bsu3338
f9ed2ad8db
Create SpeechSynthesis.tsx 2023-08-09 00:57:57 -05:00
bsu3338
252325dcda
Merge branch 'main' into Speech-to-Text 2023-08-08 20:33:12 -05:00
XHyperDEVX
de34d8b47c
feat: German translations (#772)
* Language translation: German translation

* Language translation: German translation

* Language translation: German translation
2023-08-08 11:48:56 -04:00
Danny Avila
759e585c29
chore(playwright.yml): add condition to run the job only for pull requests from danny-avila/LibreChat repository (#773)
chore(playwright.yml): comment out caching of Node.js modules and Playwright installations
2023-08-08 11:35:17 -04:00
Danny Avila
c6f5d5d65c
ci: add e2e workflow, optimize client code for testing (#771)
* refactor(e2e): fix tests with latest changes, convert to TS, use test Ids

* chore(EndpointMenu.jsx): add data-testid attribute to new-conversation-menu button

* refactor(EndpointItem): add data-testid attr., convert to TS

* refactor(e2e): remove unnecessary awaits and convert to TS

* chore(playwright.config.local.ts): add absolute path to server index.js file
chore(playwright.config.local.ts): add dotenv configuration
chore(playwright.config.local.ts): change webServer command to use absolute path
chore(playwright.config.local.ts): add NODE_ENV and process.env to webServer env
chore(playwright.config.local.ts): remove unused import
chore(login.spec.js): delete login.spec.js file

* chore(.gitignore): add 'my.secrets' to the list of ignored files
fix(Registration.tsx): add 'data-testid' attribute to the error message div
fix(Registration.spec.tsx): comment out test case that calls 'registerUser.mutate'

* chore(ConvoIcon.tsx): add data-testid attribute to svg element
chore(messages.spec.ts): refactor conversation navigation logic

* chore(playwright.config.ts): add support for absolute path to server index.js file
feat(playwright.config.ts): add support for dotenv configuration
feat(playwright.config.ts): set NODE_ENV to 'production' in webServer environment variables

* chore(workflows): comment out push event and specify paths for pull_request event in backend-review.yml
chore(workflows): comment out push event and specify paths for pull_request event in frontend-review.yml

* chore(install.js): add check to skip install script in CI environment

* chore: complete playwright workflow

* chore(Landing.tsx): add data-testid attribute to landing title element
chore(authenticate.ts): update selector to wait for landing title element by test id instead of text content

* chore(playwright.yml): add step to upload screenshot artifact on failure
fix(authenticate.ts): capture screenshot before waiting for landing title and increase timeout due to GH Actions load time

* chore(playwright.yml): rename artifact name from 'screenshot' to 'login-screenshot'
feat(LoginForm.tsx): add data-testid attribute to login button
fix(authenticate.ts): change screenshot name to 'login-screenshot.png' and conditionally take screenshot only in CI environment

* chore(playwright.yml): add CI environment variable and set it to true

* chore(playwright.yml): update Playwright installation command
chore(playwright.config.ts): update storageState path to use process.cwd()

* fix(playwright.yml): update node version to 18 in setup-node action
fix(playwright.yml): update actions/cache to v3 in Cache Node.js modules step
fix(playwright.yml): update actions/cache to v3 in Cache Playwright installations step
fix(authenticate.ts): change login button click to press 'Enter' on password input

* chore(playwright.yml): update E2E_USER_EMAIL and E2E_USER_PASSWORD values for testing purposes
chore(authenticate.ts): add console.dir to log user object for debugging

* chore(playwright.yml): add step to upload storageState artifact

The storageState artifact is now uploaded as part of the workflow. This artifact contains the state of the storage used during the end-to-end tests. It will be retained for 2 days.

* chore(playwright.yml): comment out upload screenshot step
chore(playwright.config.ts): change NODE_ENV to development
chore(authenticate.ts): comment out screenshot related code

* chore(playwright.config.ts): add SESSION_EXPIRY environment variable with value 86400000

* chore(playwright.yml): update environment variables in Playwright workflow
fix(General.tsx): add data-testid attributes to clear conversations buttons
test(messages.spec.ts): add setup and teardown steps for clearing conversations before and after tests

* fix(messages.spec.ts): fix clearing conversations before and after message tests
feat(messages.spec.ts): add beforeEach and afterEach hooks to create and close new page for each test

* chore: remove storageStage upload artifact
2023-08-08 11:17:15 -04:00
bsu3338
148a71b95e
Merge branch 'main' into Speech-to-Text 2023-08-07 14:23:33 -05:00
Danny Avila
cb3cf9b33e
chore: Update pull_request_template.md 2023-08-07 12:27:48 -04:00
Danny Avila
68ad46a9be
fix(typing): minor typing resolutions and convert SearchBar to TS (#766)
* refactor(SearchBar): convert to TS, useLocalize

* fix(typing): minor type issues

* chore(package.json): add 'reinstall:docker' script for rebuilding Docker environment in current branch
2023-08-06 21:30:16 -04:00
bsu3338
fd23679e37
Merge branch 'main' into Speech-to-Text 2023-08-06 13:41:23 -05:00
Danny Avila
600a0d15b1
fix(backend-review.yml): update Node.js version from 19.x to 20.x (#767)
fix(frontend-review.yml): update Node.js version from 19.x to 20.x
2023-08-06 13:08:23 -04:00
Danny Avila
92f87b8dcc
fix: strict typescript issue, plugins localStorage, both causing App Errors (#765)
* fix(Enum): cannot be used as a value when imported as type

* hotfix(types): corrected types, some causing application error (bing null model)

* hotfix(Plugins): fix undefined localStorage item causing Application error
2023-08-06 11:26:37 -04:00
bsu3338
cfe6325282
Merge branch 'main' into Speech-to-Text 2023-08-05 19:35:30 -05:00
bsu3338
69ff48d84b
Update SpeechRecognition.tsx 2023-08-05 19:29:27 -05:00
bsu3338
28a00a5037
Update TextChat.jsx 2023-08-05 19:27:39 -05:00
bsu3338
b49024f1f0
Update SubmitButton.jsx 2023-08-05 19:24:48 -05:00
Danny Avila
06a7fba39b
fix(Enum): cannot be used as a value when imported as type (#764) 2023-08-05 20:23:07 -04:00
bsu3338
93ceae6e84
Merge branch 'danny-avila:main' into Speech-to-Text 2023-08-05 17:45:10 -05:00
Dan Orlando
96d29f7390
refactor(client): Refactors recent typescript changes for best practices (#763)
* create common types in client

* remove unnecessary rules from eslint config

* cleanup types

* put back eslintrc rules
2023-08-05 16:45:26 -04:00
bsu3338
5d760823ac
Update SpeechRecognition.tsx 2023-08-05 15:43:13 -05:00
bsu3338
5ad99272e2
Merge branch 'danny-avila:main' into Speech-to-Text 2023-08-05 11:25:19 -05:00
Danny Avila
5828200197
refactor(types): use zod for better type safety, style(Messages): new scroll behavior, style(Buttons): match ChatGPT (#761)
* feat: add zod schemas for better type safety

* refactor(useSetOptions): remove 'as Type' in favor of zod schema

* fix: descendant console error, change <p> tag to <div> tag for content in PluginTooltip component

* style(MessagesView): instant/snappier scroll behavior matching official site

* fix(Messages): add null check for scrollableRef before accessing its properties in handleScroll and useEffect

* fix(messageSchema.js): change type of invocationId from string to number
fix(schemas.ts): make authenticated property in tPluginSchema optional
fix(schemas.ts): make isButton property in tPluginSchema optional
fix(schemas.ts): make messages property in tConversationSchema optional and change its type to array of strings
fix(schemas.ts): make systemMessage property in tConversationSchema nullable and optional
fix(schemas.ts): make modelLabel property in tConversationSchema nullable and optional
fix(schemas.ts): make chatGptLabel property in tConversationSchema nullable and optional
fix(schemas.ts): make promptPrefix property in tConversationSchema nullable and optional
fix(schemas.ts): make context property in tConversationSchema nullable and optional
fix(schemas.ts): make jailbreakConversationId property in tConversationSchema nullable and optional
fix(schemas.ts): make conversationSignature property in tConversationSchema nullable and optional
fix(schemas.ts): make clientId property

* refactor(types): replace main types with zod schemas and inferred types

* refactor(types/schemas): use schemas for better type safety of main types

* style(ModelSelect/Buttons): remove shadow and transition

* style(ModelSelect): button changes to closer match OpenAI

* style(ModelSelect): remove green rings which flicker

* style(scrollToBottom): add two separate scrolling functions

* fix(OptionsBar.tsx): handle onFocus and onBlur events to update opacityClass
fix(Messages/index.jsx): increase debounce time for scrollIntoView function
2023-08-05 12:10:36 -04:00
bsu3338
42aadd2e79
Update SpeechRecognition.tsx 2023-08-05 11:10:18 -05:00
bsu3338
d9a4d2fcc0
Update SpeechRecognition.tsx 2023-08-05 11:04:44 -05:00
bsu3338
2522d7654e
Update SpeechRecognition.tsx 2023-08-05 10:56:41 -05:00
bsu3338
ca3f064a6e
Update TextChat.jsx 2023-08-05 09:57:45 -05:00
bsu3338
8982ec1439
Update SpeechRecognition.tsx 2023-08-05 09:50:50 -05:00
bsu3338
eb842c699b
Update TextChat.jsx 2023-08-05 09:42:49 -05:00
bsu3338
49a9daea34
Update TextChat.jsx 2023-08-05 09:26:25 -05:00
Anirudh
173b8ce2da
feat: Add SearchBar component to Nav (#760)
* feat: Add SearchBar component to Nav

This commit adds the SearchBar component to the navigation bar in order to enable search functionality. Now users can easily search for specific items within the navigation.

* Refactor Nav and SearchBar components

The commit refactors the Nav component by moving the SearchBar component within the Nav component. This change ensures that the SearchBar is rendered only when the isSearchEnabled condition is true.

In addition, the commit also modifies the styling of the SearchBar component by adding rounded corners and border to enhance the visual appearance.

* Update gitignore

* C

Refactor search bar styles

This commit refactors the styles of the search bar component in the Nav component. The border color and hover background color have been modified to improve the visual appearance.

* Fix margin

* Rename Logout.jsx to Logout.tsx and update import statements accordingly.
Replace the use of Recoil and store with useLocalize hook for localization.
Update the usage of localize function by removing the lang parameter.
2023-08-05 10:24:56 -04:00
bsu3338
2ffb5bedd3
Create SpeechRecognition.tsx 2023-08-05 09:18:31 -05:00
bsu3338
46c53d1395
Update ListeningIcon.tsx 2023-08-05 09:08:07 -05:00
bsu3338
37c0f5bf0d
Update ListeningIcon.tsx 2023-08-05 09:03:09 -05:00
bsu3338
74fa8d19ca
Update TextChat.jsx 2023-08-05 01:29:07 -05:00
bsu3338
31441ed1c0
Update SubmitButton.jsx 2023-08-05 01:24:35 -05:00
bsu3338
65a7b2b8d2
Update index.ts 2023-08-05 01:20:44 -05:00
bsu3338
14f4d66ea6
Create ListeningIcon.tsx 2023-08-05 01:20:05 -05:00
bsu3338
5a678747da
Update SubmitButton.jsx 2023-08-05 01:17:13 -05:00
bsu3338
07b2af1317
Merge branch 'danny-avila:main' into Speech-to-Text 2023-08-04 22:31:57 -05:00