feat(ask-ai): host-mountable Ask AI chat panel - #429
Draft
haileyok wants to merge 3 commits into
Draft
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add AskAiPanel + MessageList/MessageBubble/EvidenceList and a safe Markdown renderer (react-markdown, no raw HTML) under osprey_ui/components/ask_ai. The panel takes host adapter props (endpoint, models, getContextSnapshot, renderEvidence/evidenceActions), streams assistant output, shows tool/query evidence (custom or default read-only card), supports retry/new-chat, and is accessible (labelled controls, aria-live log). One isolated Zustand store per panel via an injectable createStore seam. Add a Rstest DOM harness (rstest.config.ts: happy-dom + @rsbuild/plugin-react; rstest.setup.ts: matchMedia/ResizeObserver polyfills for Ant Design) and dev-deps @testing-library/react, @testing-library/dom, happy-dom; react-markdown as a runtime dep. Tests (component suite passing under happy-dom) cover host config + context_ref + model, streaming render, evidence default card vs custom renderer, retry, safe error display, safe markdown (no HTML injection), and new-chat reset. No Smite/SML/Druid/Discord imports. Implements osprey-ask-ai AC5.2, AC5.4 (render), AC5.5.
haileyok
force-pushed
the
hailey/ask-ai-4-frontend
branch
from
July 14, 2026 22:13
cad34a7 to
ea6844e
Compare
haileyok
force-pushed
the
hailey/ask-ai-5-panel
branch
from
July 14, 2026 22:13
eff1163 to
05457b8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part 5/5 of the Ask AI stack (stacked on
hailey/ask-ai-4-frontend). AddsAskAiPanel+ subcomponents and a safe Markdown renderer (react-markdown, no raw HTML) with host adapter props (endpoint, models,getContextSnapshot,renderEvidence/evidenceActions), streaming output, tool/query evidence display, retry/new-chat, and accessible controls. Adds a Rstest DOM harness (happy-dom +@rsbuild/plugin-react) and a host-integration doc (docs/ask-ai.md). Also includes a small docstring cleanup to drop product names from the generic layers (AC6.4). Implements AC5.2, AC5.4 (render), AC5.5.Note: planning docs under
docs/implementation-plans/are intentionally untracked and not part of this diff.Checklist
pnpm typecheck+eslint+prettier+rstest, 31 UI tests)uv run ruff check .passesuv tool run fawltydeps --check-unused --pyenv .venvpassesCHANGELOG.md(deferred — happy to add)