Add unit tests for MessageEditorComponent, update message editing logic, and refactor ChatService model handling.

- Added comprehensive tests for `MessageEditorComponent`.
- Improved message editing functionality and added client store interactions.
- Refactored handling of `getSupportedModels` in `ChatService`.
- Updated PWA configuration and added a Safari-specific instruction.
- Adjusted `.dev.vars` file to reflect local development updates.
This commit is contained in:
geoffsee
2025-05-31 14:47:08 -04:00
committed by Geoff Seemueller
parent 5f913eb2d7
commit ce07b69fbe
5 changed files with 173 additions and 17 deletions

View File

@@ -33,10 +33,28 @@ export default defineConfig(({command}) => {
}),
react(),
// PWA plugin saves money on data transfer by caching assets on the client
/*
For safari, use this script in the console to unregister the service worker.
await navigator.serviceWorker.getRegistrations()
.then(registrations => {
registrations.map(r => {
r.unregister()
})
})
*/
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: false,
},
manifest: {
name: "open-gsio",
short_name: "open-gsio",
description: "Free and open-source platform for conversational AI."
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}']
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
navigateFallbackDenylist: [/^\/api\//],
}
})
],