mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-13 00:11:57 +00:00
8cdfe861e8
Snippet import: new "Import from URL" flow fetches a page and stores its readable content as a snippet. Extraction uses the mackee/go-readability library (Mozilla Readability port) and outputs Markdown, so nav/footer boilerplate is dropped. The snippet list shows the source, and the edit dialog is now wider with a taller content box. Summarize: new "Summarize with AI" action on a conversation calls the AI and adds the result as a private note. It shows an info toast right away so the user knows it started, since the call can take a few seconds. This adds an "info" toast variant that any feature can use. Assistant languages: assistants can be given a list of allowed reply languages. The assistant replies in the customer's language when it is one of them, otherwise it falls back to the first. The preview also lists the knowledge sources it used. Cleanup: replace hardcoded gray/zinc/white colors with theme tokens (text-muted-foreground, text-foreground, bg-accent) across several components.
Libredesk frontend
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Compile and Minify for Production
npm run build
Run Headed Component Tests with Cypress Component Testing
npm run test:unit:dev # or `npm run test:unit` for headless testing
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint