fix: added code for citation and chat history panel independence #911
Merged
Conversation
fix: dev to main - Add location parameter to AI search service and update package versions, improvements to local development setup
…eporting, and Strengthen Error Handling
Adds Bicep CLI (v0.33.0+) to the local deployment prerequisites so users provisioning this accelerator locally have the required Bicep version installed before running 'azd up' / 'az deployment'. Work item: AB#42634
docs: Add Bicep CLI (v0.33.0+) to local deployment prerequisites
chore: dev to main merge
Remove unconditional hideCitation() call from onHandlePanelStates so toggling one panel no longer closes the other. Citation is still correctly dismissed on conversation switch and history clear. Fixes #43310 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move CitationPanel outside the flex layout container (.main-container) and render it as a fixed-position overlay. This prevents the two panels from competing for flex space, which caused: - Closing Chat History to also close Citation panel - Opening Citation to push Chat History off-screen Fixes AB#43310 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates deployment prerequisites documentation and refactors the citation panel so it renders independently from the main dashboard/chat/history layout as a fixed overlay.
Changes:
- Added Bicep CLI to deployment prerequisite documentation.
- Moved citation panel rendering outside the main flex layout.
- Added
.citation-overlaystyling and stopped hiding citations on panel toggle.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/App/src/App.tsx |
Renders CitationPanel as a sibling overlay and updates panel toggle behavior. |
src/App/src/App.css |
Adds fixed-position citation overlay styling. |
documents/DeploymentGuide.md |
Adds Bicep CLI to local deployment required tools. |
documents/AVMPostDeploymentGuide.md |
Adds Bicep CLI to post-deployment required tools. |
Comments suppressed due to low confidence (1)
src/App/src/App.css:59
- With
min-width: 280pxon a fixed panel and no small-screen override, the citation overlay becomes wider than the viewport on very narrow windows and will be clipped/off-screen. Use a responsive width cap (for example based on100vw) so the dismiss button and content remain reachable during resize.
width: 20%;
min-width: 280px;
max-width: 400px;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Address review feedback: CitationPanel is now a flex participant inside .main-container using .citation-panel-wrapper (flex: 0 0 20%) instead of a fixed-position overlay. This reserves layout space and avoids blocking clicks on underlying panels. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Avijit-Microsoft
approved these changes
May 14, 2026
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.
Purpose
This pull request makes several improvements to the deployment documentation and refactors the way the citation panel is displayed in the application UI. The most important changes include adding Bicep CLI as a required tool in the documentation, and updating the citation panel to render as a fixed overlay instead of within the main layout, simplifying its visibility logic.
Documentation updates:
Bicep CLI(v0.33.0+) as a required tool in bothDeploymentGuide.mdandAVMPostDeploymentGuide.mdto ensure users have all necessary dependencies for deployment. [1] [2]UI/Code refactoring:
.citation-overlayCSS class, improving its visibility and separation from the main layout. [1] [2]hideCitation, and updated dependencies for the related callback. [1] [2]Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
panels
overlay
Other Information