Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: lint

Blue Mouse598d51650318
diff --git a/web/app/pages/Organisations/Organisations.tsx b/web/app/pages/Organisations/Organisations.tsx
index 8dd16b4b3..b67f98942 100644
--- a/web/app/pages/Organisations/Organisations.tsx
+++ b/web/app/pages/Organisations/Organisations.tsx
@@ -5,7 +5,6 @@ import _size from 'lodash/size'
import { SearchIcon, XIcon } from 'lucide-react'
import React, { useState, useEffect, useCallback, useRef } from 'react'
import { useTranslation } from 'react-i18next'
-import { Link } from 'react-router'
import { ClientOnly } from 'remix-utils/client-only'
import { toast } from 'sonner'
diff --git a/web/app/pages/Organisations/Settings/index.tsx b/web/app/pages/Organisations/Settings/index.tsx
index 124e169c2..a77df5b19 100644
--- a/web/app/pages/Organisations/Settings/index.tsx
+++ b/web/app/pages/Organisations/Settings/index.tsx
@@ -4,7 +4,7 @@ import _size from 'lodash/size'
import { Trash2Icon } from 'lucide-react'
import React, { useState, useEffect, useCallback, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
-import { useNavigate } from 'react-router'
+import { Link, useNavigate } from 'react-router'
import { toast } from 'sonner'
import { transferProject, getOrganisation, updateOrganisation, deleteOrganisation } from '~/api'
diff --git a/web/app/pages/Project/Settings/ProjectSettings.tsx b/web/app/pages/Project/Settings/ProjectSettings.tsx
index a5cdbf4dc..3dbbe097e 100644
--- a/web/app/pages/Project/Settings/ProjectSettings.tsx
+++ b/web/app/pages/Project/Settings/ProjectSettings.tsx
@@ -59,8 +59,8 @@ import Input from '~/ui/Input'
import Loader from '~/ui/Loader'
import Modal from '~/ui/Modal'
import MultiSelect from '~/ui/MultiSelect'
-import StatusPage from '~/ui/StatusPage'
import Select from '~/ui/Select'
+import StatusPage from '~/ui/StatusPage'
// Select is used inside tab components
import countries from '~/utils/isoCountries'
import routes from '~/utils/routes'
diff --git a/web/app/pages/Project/tabs/AskAI/AskAIView.tsx b/web/app/pages/Project/tabs/AskAI/AskAIView.tsx
index f285f941a..ab201fff1 100644
--- a/web/app/pages/Project/tabs/AskAI/AskAIView.tsx
+++ b/web/app/pages/Project/tabs/AskAI/AskAIView.tsx
@@ -409,7 +409,7 @@ const AssistantMessage = ({ message, isStreaming }: { message: Message; isStream
!message.parts!.slice(idx + 1).some((p) => p.type === 'text' && p.text?.trim())
return (
<div key={idx} className='mb-3'>
- <MessageContent content={part.text} isStreaming={isStreaming && isLastTextPart} />
+ <MessageContent content={part.text} isStreaming={isStreaming ? isLastTextPart : undefined} />
</div>
)
}
@@ -487,7 +487,6 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {
const abortControllerRef = useRef<AbortController | null>(null)
const [currentChatId, setCurrentChatId] = useState<string | null>(null)
- const [isCurrentChatOwner, setIsCurrentChatOwner] = useState(true)
const [recentChats, setRecentChats] = useState<AIChatSummary[]>([])
const [allChats, setAllChats] = useState<AIChatSummary[]>([])
const [allChatsTotal, setAllChatsTotal] = useState(0)
@@ -550,8 +549,6 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {
})),
)
setCurrentChatId(chatId)
- // Track if the current user owns this chat (defaults to true for new chats)
- setIsCurrentChatOwner(chat.isOwner !== false)
} catch (err) {
console.error('Failed to load chat:', err)
const newParams = new URLSearchParams(searchParams)
@@ -580,7 +577,6 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {
// If the chat was branched (user didn't own the original), update to the new chat ID
if (result.branched) {
setCurrentChatId(result.id)
- setIsCurrentChatOwner(true) // User now owns the branched chat
const newParams = new URLSearchParams(searchParams)
newParams.set('chat', result.id)
setSearchParams(newParams, { replace: true })
@@ -588,7 +584,6 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {
} else {
const chat = await createAIChat(projectId, apiMessages)
setCurrentChatId(chat.id)
- setIsCurrentChatOwner(true)
const newParams = new URLSearchParams(searchParams)
newParams.set('chat', chat.id)
setSearchParams(newParams, { replace: true })
@@ -615,7 +610,6 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {
const handleNewChat = () => {
setMessages([])
setCurrentChatId(null)
- setIsCurrentChatOwner(true)
setStreamingMessage(null)
setError(null)
const newParams = new URLSearchParams(searchParams)