Repository navigation
Add a Gemini-style AI side panel and unify the dashboard's chat and buttons - #4
Merged
Merged
Conversation
…uttons - Topbar AI button opens a resizable right-side assistant panel on every page (drag or arrow-key resize, width/open state/session persisted), backed by the existing /activity/chat + SSE chat backend - Page-specific suggested prompts; run-starting prompts only pre-fill. /activity/chat accepts an optional `page` so the assistant knows which dashboard page the user is on (known nav keys only) - Chat history view inside the panel lists every session, from any page or the Dashboard, and reopens one in place - Shared "Thinking..." indicator and paced reply reveal for both the panel and the Dashboard chat; reply bubbles carry the Loop X icon while streaming - Dashboard buttons, chips and hero links use the global .btn style; links carrying an icon align it with their text; topbar controls share a 40px height with the AI button first in the right group - Fix the empty Dashboard composer drifting off-center when the panel is open - Japanese, Chinese and French translations for all new strings
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.
Summary
A Gmail/Gemini-style assistant panel, available from every dashboard page, plus a consistency pass on the Dashboard chat and buttons.
AI side panel
POST /activity/chataccepts an optionalpage, so the assistant knows what the user is looking at. Only known nav keys are used; any other value is ignored./activity/chat+/activity/chat-streamSSE). No new state-changing routes.Chat experience (panel and Dashboard)
.md-spinner, it's not gated behindprefers-reduced-motion, since it's the only sign a reply is coming.Visual consistency
.btn .btn-neutralstyle.:where()rule, so component styles still win). The Dashboard announcement link uses an arrow icon instead of a text→.rightoffset underposition: relative).i18n
All new strings are translated into Japanese, Simplified Chinese and French.
Test plan
python3 -m pytest tests/ -q: 1861 passedpagecontext inbuild_chat_promptand the route, chats from any page landing in history, shared thinking indicator, reveal wiring, Dashboard.btnclasses, composer centering, topbar control heightsLOOP_ENGINEERING_HOMEscratch dir) driven with headless Chrome: open/close, drag and keyboard resize, persistence across navigation, history reopen, Escape handling, Japanese and narrow-viewport layouts, thinking → streaming → saved-reply transition. Chat requests were stubbed at the network layer, so no real messages were saved.