feat: update dependencies and improve dashboard functionality
Deploy to VPS / deploy (push) Failing after 1m43s
Deploy to VPS / deploy (push) Failing after 1m43s
- Added new dependencies for Next.js and lucide-react in pnpm-workspace.yaml. - Refactored DashboardPage component to improve readability and error handling. - Enhanced Header component to display error status with an alert icon. - Updated MobileTabBar and Sidebar components to use a centralized tabs definition. - Improved ChannelsView in dashboard-panel to handle channel fetching more cleanly. - Fixed ActiveSpeaker type to use camelCase for userId. - Updated MessagesPanel to handle guildId checks more gracefully. - Adjusted API calls in dashboard and messages to align with backend expectations. - Refined type definitions across various interfaces for consistency and clarity.
This commit is contained in:
@@ -90,7 +90,7 @@ export function logModerationAnalysis(
|
||||
},
|
||||
parseErrors: string[] = [],
|
||||
): void {
|
||||
const response: ModerationAnalysisResponse = {
|
||||
const _response: ModerationAnalysisResponse = {
|
||||
messageIds,
|
||||
batchSize: messageIds.length,
|
||||
model,
|
||||
@@ -158,7 +158,7 @@ export function logCacheEvent(
|
||||
cacheKey: string,
|
||||
source: "text" | "media" | "sticker",
|
||||
): void {
|
||||
const event: CacheHitEvent = {
|
||||
const _event: CacheHitEvent = {
|
||||
type,
|
||||
cacheKey,
|
||||
source,
|
||||
@@ -260,7 +260,7 @@ export function logAnalysisSummary(
|
||||
duration_ms: durationMs,
|
||||
per_message_avg_ms: Math.round(durationMs / totalMessages),
|
||||
summary,
|
||||
success_rate: ((successCount / totalMessages) * 100).toFixed(1) + "%",
|
||||
success_rate: `${((successCount / totalMessages) * 100).toFixed(1)}%`,
|
||||
},
|
||||
`Analysis batch complete: ${successCount}/${totalMessages} successful in ${durationMs}ms`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user