fix: hide agent chat button outside of project pages#570
fix: hide agent chat button outside of project pages#570AravJuneja wants to merge 2 commits intotraceroot-ai:mainfrom
Conversation
Greptile SummaryThis PR hides the AI chat assistant button when the user is not on a project page (i.e., the URL does not contain Key changes:
Issue found:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Route change] --> B{pathname includes '/projects/'?}
B -- Yes --> C[Render AI chat button]
B -- No --> D[Hide AI chat button]
C --> E{User clicks button}
E --> F[Toggle aiPanelOpen state]
F --> G[AiAssistantPanel renders open]
G --> H{User navigates away?}
H -- No --> G
H -- Yes --> B
D --> I[aiPanelOpen NOT reset]
I --> J[AiAssistantPanel stays open\nif previously opened]
style J fill:#f96,stroke:#c00
|
dc3928c to
0aed4d9
Compare
|
closing in favor of #558 |
Summary
Type of Change
Details
Screenshots / Recordings (if applicable)
Checklist