Skip to content

Commit 98d88ae

Browse files
fix: added code for citation and chat history panel independence
2 parents 66ecc58 + 0f1925f commit 98d88ae

4 files changed

Lines changed: 15 additions & 11 deletions

File tree

documents/AVMPostDeploymentGuide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Ensure the following tools are installed on your machine:
3535
|------|---------|---------------|
3636
| PowerShell | v7.0+ | [Install PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.5) |
3737
| Azure Developer CLI (azd) | v1.18.0+ | [Install azd](https://aka.ms/install-azd) |
38+
| Bicep CLI | v0.33.0+ | [Install Bicep](https://learn.microsoft.com/azure/azure-resource-manager/bicep/install) |
3839
| Python | 3.9+ | [Download Python](https://www.python.org/downloads/) |
3940
| Docker Desktop | Latest | [Download Docker](https://www.docker.com/products/docker-desktop/) |
4041
| Git | Latest | [Download Git](https://git-scm.com/downloads) |

documents/DeploymentGuide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ Select one of the following options to deploy the Conversational Knowledge Minin
162162
**Required Tools:**
163163
- [PowerShell 7.0+](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell)
164164
- [Azure Developer CLI (azd) 1.18.0+](https://aka.ms/install-azd)
165+
- [Bicep CLI 0.33.0+](https://learn.microsoft.com/azure/azure-resource-manager/bicep/install)
165166
- [Python 3.9+](https://www.python.org/downloads/)
166167
- [Docker Desktop](https://www.docker.com/products/docker-desktop/)
167168
- [Git](https://git-scm.com/downloads)

src/App/src/App.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ body {
5050
font-weight: 400;
5151
}
5252

53+
.citation-panel-wrapper {
54+
flex: 0 0 20%;
55+
min-width: 280px;
56+
max-width: 400px;
57+
margin-block: var(--margin-base);
58+
}
59+
5360
.left-section {
5461
position: relative;
5562
margin-block-end: 0.1% !important;

src/App/src/App.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ const Dashboard: React.FC = () => {
153153

154154
const onHandlePanelStates = useCallback(
155155
(panelName: string) => {
156-
dispatch(hideCitation());
157156
setLayoutWidthUpdated((previousFlag) => !previousFlag);
158157
const nextState = {
159158
...panelShowStates,
@@ -170,7 +169,7 @@ const Dashboard: React.FC = () => {
170169
updateLayoutWidths(nextState);
171170
setPanelShowStates(nextState);
172171
},
173-
[dispatch, panelShowStates, updateLayoutWidths]
172+
[panelShowStates, updateLayoutWidths]
174173
);
175174

176175
const getHistoryListData = useCallback(async () => {
@@ -303,15 +302,6 @@ const Dashboard: React.FC = () => {
303302
/>
304303
</div>
305304
)}
306-
{showCitation && currentConversationIdForCitation !== "" && (
307-
<div
308-
style={{
309-
width: `${panelWidths[panels.CHATHISTORY] || 17}%`,
310-
}}
311-
>
312-
<CitationPanel activeCitation={activeCitation} />
313-
</div>
314-
)}
315305
{panelShowStates[panels.CHAT] &&
316306
panelShowStates[panels.CHATHISTORY] && (
317307
<div
@@ -331,6 +321,11 @@ const Dashboard: React.FC = () => {
331321
/>
332322
</div>
333323
)}
324+
{showCitation && currentConversationIdForCitation !== "" && (
325+
<div className="citation-panel-wrapper">
326+
<CitationPanel activeCitation={activeCitation} />
327+
</div>
328+
)}
334329
</div>
335330
</FluentProvider>
336331
);

0 commit comments

Comments
 (0)