mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 14:12:10 +01:00
refactor: fix biome linting issues and update project documentation
- Fix 36+ biome linting issues reducing errors/warnings from 227 to 191 - Replace explicit 'any' types with proper TypeScript interfaces - Fix React hooks dependencies and useCallback patterns - Resolve unused variables and parameter assignment issues - Improve accessibility with proper label associations - Add comprehensive API documentation for admin and security features - Update README.md with accurate PostgreSQL setup and current tech stack - Create complete documentation for audit logging, CSP monitoring, and batch processing - Fix outdated project information and missing developer workflows
This commit is contained in:
@ -204,7 +204,7 @@ export function generateSessionAnalysisResponse(
|
||||
const sentences = text.split(/[.!?]+/).filter((s) => s.trim().length > 0);
|
||||
let summary = sentences[0]?.trim() || text.substring(0, 100);
|
||||
if (summary.length > 150) {
|
||||
summary = summary.substring(0, 147) + "...";
|
||||
summary = `${summary.substring(0, 147)}...`;
|
||||
}
|
||||
if (summary.length < 10) {
|
||||
summary = "User inquiry regarding company policies";
|
||||
@ -360,7 +360,7 @@ export function generateSummaryResponse(text: string): MockChatCompletion {
|
||||
let summary = sentences[0]?.trim() || text.substring(0, 100);
|
||||
|
||||
if (summary.length > 150) {
|
||||
summary = summary.substring(0, 147) + "...";
|
||||
summary = `${summary.substring(0, 147)}...`;
|
||||
}
|
||||
|
||||
const promptTokens = Math.ceil(text.length / 4);
|
||||
|
||||
Reference in New Issue
Block a user