Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz Source: /opt/alga-psa on psa.joliet.tech
30 lines
2.2 KiB
Markdown
30 lines
2.2 KiB
Markdown
# Scratchpad — Spotlight Quick Ask Overlay
|
|
|
|
## Goal
|
|
Spotlight-style Quick Ask overlay that shares chat session logic with the existing right-sidebar AI chat and can hand off an active session into the sidebar.
|
|
|
|
## Repo Notes / Discovery
|
|
- Sidebar toggle currently lives in `server/src/components/layout/DefaultLayout.tsx` (`⌘/Ctrl + L`).
|
|
- EE sidebar chat is implemented in `ee/server/src/components/layout/RightSidebarContent.tsx` and renders `ee/server/src/components/chat/Chat.tsx`.
|
|
- Chat persistence server actions live in `ee/server/src/lib/chat-actions/chatActions.tsx`.
|
|
- Client chat currently calls `POST /api/chat/v1/completions` (EE implementation delegated from `server/src/app/api/chat/v1/completions/route.ts`).
|
|
- Streaming routes exist at `POST /api/chat/stream/*` (delegated from `server/src/app/api/chat/stream/[...slug]/route.ts` to `ee/server/src/services/chatStreamService.ts`).
|
|
- There is an SSE parsing helper in `ee/server/src/services/streaming.ts` (currently points at an external inference endpoint for token streaming in one codepath).
|
|
- A Spotlight-adjacent UI exists as a reference: `server/src/components/assets/AssetCommandPalette.tsx` (Dialog + cmdk usage).
|
|
|
|
## Key Decisions (pending confirmation)
|
|
- Shortcut: hardcode `⌘+ArrowUp` / `Ctrl+ArrowUp`.
|
|
- Shortcut is NOT ignored while typing in inputs/textareas/contentEditable.
|
|
- If the right sidebar chat is already open, shortcut focuses the sidebar chat instead of opening Quick Ask.
|
|
- On “Open in sidebar”: close overlay immediately and open right sidebar bound to same session.
|
|
- Overlay session reuse behavior on reopen: always start fresh (past sessions revisited via chat history).
|
|
- Collapsed input: multiline supported; `Shift+Enter` inserts newline.
|
|
|
|
## Proposed Implementation Notes (high level)
|
|
- Create a shared chat session hook/provider in EE to avoid duplicating the send/persist/stream logic.
|
|
- Add a new overlay component that uses existing `Dialog` and adopts Spotlight-like styling.
|
|
- Add a small state handoff mechanism so sidebar can show a session started in the overlay without losing in-flight streamed content.
|
|
|
|
## Validation Commands
|
|
- Validate plan folder: `python3 scripts/validate_plan.py ee/docs/plans/2026-01-05-spotlight-quick-ask`
|