diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 244af24..2dc6ed5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -62,7 +62,6 @@ jobs: test-api: name: API tests needs: changes - if: needs.changes.outputs.api == 'true' runs-on: ubuntu-24.04-arm timeout-minutes: 10 steps: @@ -132,7 +131,6 @@ jobs: helm-lint: name: Helm chart lint needs: changes - if: needs.changes.outputs.helm == 'true' runs-on: ubuntu-24.04-arm timeout-minutes: 5 steps: diff --git a/frontend/components/ChatArea.tsx b/frontend/components/ChatArea.tsx index bd58ca0..b579dc3 100644 --- a/frontend/components/ChatArea.tsx +++ b/frontend/components/ChatArea.tsx @@ -6,8 +6,14 @@ import { BookOpenText } from '@phosphor-icons/react/dist/ssr/BookOpenText'; import { Table } from '@phosphor-icons/react/dist/ssr/Table'; import { Compass } from '@phosphor-icons/react/dist/ssr/Compass'; import { Sparkle } from '@phosphor-icons/react/dist/ssr/Sparkle'; +import { FileArrowUp } from '@phosphor-icons/react/dist/ssr/FileArrowUp'; +import { SpinnerGap } from '@phosphor-icons/react/dist/ssr/SpinnerGap'; +import { WarningCircle } from '@phosphor-icons/react/dist/ssr/WarningCircle'; +import { ListBullets } from '@phosphor-icons/react/dist/ssr/ListBullets'; +import { Question } from '@phosphor-icons/react/dist/ssr/Question'; import { ThreadPrimitive } from '@assistant-ui/react'; import type { ChatAttachment, Message, ProjectDocument } from '@/lib/types'; +import { PROJECT_DOC_ACCEPT, PROJECT_DOC_MAX_MB, PROJECT_DOC_SUPPORTED_LABEL } from '@/lib/upload'; import MessageBubble from './MessageBubble'; import ChatInput from './ChatInput'; @@ -40,6 +46,31 @@ const SUGGESTIONS: SuggestionCard[] = [ }, ]; +// Shown once a project has at least one indexed document — orients the user +// toward their first grounded answer instead of generic tool prompts. +const DOC_SUGGESTIONS: SuggestionCard[] = [ + { + label: 'Summarize the key points', + query: 'Summarize the key points from my documents.', + icon: