Skip to content

Commit dfc7f59

Browse files
authored
Merge pull request #1368 from WolframResearch/bugfix/Sidebar9
Bugfix/sidebar9
2 parents 855c61e + ec86d31 commit dfc7f59

File tree

20 files changed

+382
-122
lines changed

20 files changed

+382
-122
lines changed

DarkModeSupport/TextResources/ChatbookResources.tr

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9848,7 +9848,11 @@ VX/aMEEQzrerjFhhelYAzofFB3r8AgApYdcE
98489848
StandardForm],
98499849
DestroyAfterEvaluation->True],
98509850
DynamicBox[ToBoxes[Needs["Wolfram`Chatbook`" -> None]; RawBoxes[
9851-
Symbol["Wolfram`Chatbook`ChatModes`Common`sidebarChatInputCell"][]],
9851+
Symbol["Wolfram`Chatbook`ChatbookAction"][
9852+
"MakeSidebarChatScrollingCell"]], StandardForm],
9853+
DestroyAfterEvaluation->True],
9854+
DynamicBox[ToBoxes[Needs["Wolfram`Chatbook`" -> None]; RawBoxes[
9855+
Symbol["Wolfram`Chatbook`ChatbookAction"]["MakeSidebarChatInputCell"]],
98529856
StandardForm],
98539857
DestroyAfterEvaluation->True]}]],
98549858
Editable->True,
@@ -9861,8 +9865,8 @@ VX/aMEEQzrerjFhhelYAzofFB3r8AgApYdcE
98619865
CurrentValue[
98629866
EvaluationCell[], TaggingRules] = <|
98639867
"ChatNotebookSettings" ->
9864-
Wolfram`Chatbook`ChatModes`ShowNotebookAssistance`Private`$\
9865-
notebookAssistanceSidebarSettings, "ConversationTitle" -> ""|>),
9868+
Wolfram`Chatbook`NotebookAssistanceSidebarSettings[],
9869+
"ConversationTitle" -> ""|>),
98669870
CellFrameMargins->0,
98679871
ShowCursorTracker->False,
98689872
LineSpacing->{1, 0},
@@ -9873,8 +9877,8 @@ notebookAssistanceSidebarSettings, "ConversationTitle" -> ""|>),
98739877
GrayLevel[0.95],
98749878
RGBColor[0.1882352, 0.2078431, 0.2274509]],
98759879
CellTags->
9876-
"NotebookAssistantSidebarCell",ExpressionUUID->"63d02243-e7fb-e74f-b904-\
9877-
32a950285a1a"],
9880+
"NotebookAssistantSidebarCell",ExpressionUUID->"ceb7a8fa-8e67-e442-9d90-\
9881+
64f5b8406e2d"],
98789882

98799883
"SidebarIconHide" -> (GraphicsBox[{
98809884
Thickness[0.125],
@@ -9892,7 +9896,20 @@ W3sk8xku73mJwrdf8hSFv6b7IYr+bRfvoJh/JeyCPZL/YXxY+MDUw8KvYW0E
98929896
HTIfFh4w9bDw0lh5WcgBKTxh8i8MIfbC9PechdgL48PiF6YeFv8w98H4MPfD
98939897
1MP8l+B2RQjZ/yjpCwBvF7ac
98949898
"]]}, AspectRatio -> Automatic, BaselinePosition -> (Center -> Center),
9895-
ImageSize -> {9., 9.}, PlotRange -> {{-0.5, 8.5}, {-0.5, 8.5}}]& )
9899+
ImageSize -> {9., 9.}, PlotRange -> {{-0.5, 8.5}, {-0.5, 8.5}}]& ),
9900+
9901+
"SidebarAskAnythingArrowIcon" -> GraphicsBox[
9902+
{FaceForm[LightDarkSwitched[
9903+
GrayLevel[0.819607],
9904+
GrayLevel[0.392157]]],
9905+
FilledCurveBox[
9906+
Line[{{0, 1.7366173205033308`}, {0.233009708737864, 0.4119170984455958}, {
9907+
0.5097087378640774, 0.4119170984455958}, {0, 0}, {-0.5097087378640774,
9908+
0.4119170984455958}, {-0.233009708737864, 0.4119170984455958}, {
9909+
0, 1.7366173205033308`}}]]},
9910+
AspectRatio->3.3,
9911+
ImagePadding->1,
9912+
ImageSize->{24, 77}]
98969913
}
98979914
@|
98989915
@|

Developer/Resources/FrontEndResources/SideBarChat/NotebookAssistantSidebarCell.wl

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ Cell[
1212
DynamicBox[
1313
ToBoxes[
1414
Needs[ "Wolfram`Chatbook`" -> None ];
15-
RawBoxes @ Symbol[ "Wolfram`Chatbook`ChatModes`Common`sidebarChatInputCell" ][ ],
15+
RawBoxes @ Symbol[ "Wolfram`Chatbook`ChatbookAction" ][ "MakeSidebarChatScrollingCell" ],
16+
StandardForm ],
17+
DestroyAfterEvaluation -> True
18+
],
19+
DynamicBox[
20+
ToBoxes[
21+
Needs[ "Wolfram`Chatbook`" -> None ];
22+
RawBoxes @ Symbol[ "Wolfram`Chatbook`ChatbookAction" ][ "MakeSidebarChatInputCell" ],
1623
StandardForm ],
1724
DestroyAfterEvaluation -> True
1825
]
@@ -25,13 +32,13 @@ Cell[
2532
CellTags -> "NotebookAssistantSidebarCell",
2633
Editable -> True,
2734
FontSize -> 0.5, (* needed to workaround line wrapping issue where newlines are given their full line-height based on the FontSize *)
28-
Initialization :> (
29-
AttachCell[ EvaluationCell[ ], Cell[ "", CellTags -> "NotebookAssistantSidebarAttachedHelperCell" ], { Left, Top }, 0, { Left, Top } ];
30-
Needs[ "Wolfram`Chatbook`" -> None ];
31-
CurrentValue[ EvaluationCell[ ], TaggingRules ] = <| "ChatNotebookSettings" -> Wolfram`Chatbook`ChatModes`ShowNotebookAssistance`Private`$notebookAssistanceSidebarSettings, "ConversationTitle" -> "" |>),
32-
LineIndent -> 0,
33-
LineSpacing -> { 1, 0 },
34-
Magnification -> 1.,
35-
Selectable -> False,
36-
ShowCursorTracker -> False
35+
Initialization :> (
36+
AttachCell[ EvaluationCell[ ], Cell[ "", CellTags -> "NotebookAssistantSidebarAttachedHelperCell" ], { Left, Top }, 0, { Left, Top } ];
37+
Needs[ "Wolfram`Chatbook`" -> None ];
38+
CurrentValue[ EvaluationCell[ ], TaggingRules ] = <| "ChatNotebookSettings" -> Wolfram`Chatbook`NotebookAssistanceSidebarSettings[ ], "ConversationTitle" -> "" |>),
39+
LineIndent -> 0,
40+
LineSpacing -> { 1, 0 },
41+
Magnification -> 1.,
42+
Selectable -> False,
43+
ShowCursorTracker -> False
3744
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Graphics[
2+
{
3+
FaceForm @ color @ "NA_OverlayAskAnythingArrowIcon",
4+
FilledCurve @ Line @ {
5+
{ 0, 1.7366173205033308 },
6+
{ 0.233009708737864, 0.4119170984455958 },
7+
{ 0.5097087378640774, 0.4119170984455958 },
8+
{ 0, 0 },
9+
{ -0.5097087378640774, 0.4119170984455958 },
10+
{ -0.233009708737864, 0.4119170984455958 },
11+
{ 0, 1.7366173205033308 }
12+
}
13+
},
14+
ImagePadding -> 1,
15+
AspectRatio -> 3.3,
16+
ImageSize -> { 24, 77 }
17+
]

FrontEnd/TextResources/ChatbookResources.tr

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7454,7 +7454,7 @@ Ol8EjS+Dph+dL4GmHp0vg8aH0bj8pYAmjs5XcgAAE1oO7g==
74547454
TagBox[
74557455
TagBox[
74567456
DynamicModuleBox[{
7457-
Wolfram`ChatbookFrontEndResourceBuilder`Private`frame$$},
7457+
Wolfram`ChatbookFrontEndResourceBuilder`Private`frame$$ = 1},
74587458
OverlayBox[{
74597459
PaneBox[
74607460
AnimatorBox[Dynamic[
@@ -9486,7 +9486,73 @@ VX/aMEEQzrerjFhhelYAzofFB3r8AgApYdcE
94869486
CurrentValue["MouseOver"]],
94879487
BaselinePosition->(Top -> Scaled[0.9]),
94889488
FrameMargins->0,
9489-
ImageSize->Automatic]
9489+
ImageSize->Automatic],
9490+
9491+
"NotebookAssistantSidebarCell" -> Cell[BoxData[
9492+
RowBox[{
9493+
DynamicBox[ToBoxes[Needs["Wolfram`Chatbook`" -> None]; RawBoxes[
9494+
Symbol["Wolfram`Chatbook`ChatbookAction"]["MakeSidebarChatDockedCell"]],
9495+
StandardForm],
9496+
DestroyAfterEvaluation->True],
9497+
DynamicBox[ToBoxes[Needs["Wolfram`Chatbook`" -> None]; RawBoxes[
9498+
Symbol["Wolfram`Chatbook`ChatbookAction"][
9499+
"MakeSidebarChatScrollingCell"]], StandardForm],
9500+
DestroyAfterEvaluation->True],
9501+
DynamicBox[ToBoxes[Needs["Wolfram`Chatbook`" -> None]; RawBoxes[
9502+
Symbol["Wolfram`Chatbook`ChatbookAction"]["MakeSidebarChatInputCell"]],
9503+
StandardForm],
9504+
DestroyAfterEvaluation->True]}]],
9505+
Editable->True,
9506+
Selectable->False,
9507+
CellMargins->{{0, 0}, {0, 0}},
9508+
Initialization:>(AttachCell[
9509+
EvaluationCell[],
9510+
Cell["", CellTags -> "NotebookAssistantSidebarAttachedHelperCell"], {
9511+
Left, Top}, 0, {Left, Top}]; Needs["Wolfram`Chatbook`" -> None];
9512+
CurrentValue[
9513+
EvaluationCell[], TaggingRules] = <|
9514+
"ChatNotebookSettings" ->
9515+
Wolfram`Chatbook`NotebookAssistanceSidebarSettings[],
9516+
"ConversationTitle" -> ""|>),
9517+
CellFrameMargins->0,
9518+
ShowCursorTracker->False,
9519+
LineSpacing->{1, 0},
9520+
LineIndent->0,
9521+
FontSize->0.5,
9522+
Magnification->1.,
9523+
Background->GrayLevel[0.95],
9524+
CellTags->
9525+
"NotebookAssistantSidebarCell",ExpressionUUID->"e5fb495e-6bfb-ba4a-9d42-\
9526+
59b92f6652a6"],
9527+
9528+
"SidebarAskAnythingArrowIcon" -> GraphicsBox[
9529+
{FaceForm[GrayLevel[0.819607]],
9530+
FilledCurveBox[
9531+
Line[{{0, 1.7366173205033308`}, {0.233009708737864, 0.4119170984455958}, {
9532+
0.5097087378640774, 0.4119170984455958}, {0, 0}, {-0.5097087378640774,
9533+
0.4119170984455958}, {-0.233009708737864, 0.4119170984455958}, {
9534+
0, 1.7366173205033308`}}]]},
9535+
AspectRatio->3.3,
9536+
ImagePadding->1,
9537+
ImageSize->{24, 77}],
9538+
9539+
"SidebarIconHide" -> (GraphicsBox[{
9540+
Thickness[0.125],
9541+
FaceForm[{#,
9542+
Opacity[1.]}],
9543+
FilledCurveBox[{{{1, 4, 3}, {1, 3, 3}, {1, 3, 3}, {0, 1, 0}, {0, 1, 0}, {1,
9544+
3, 3}, {1, 3, 3}, {1, 3, 3}, {0, 1, 0}, {0, 1, 0}, {1, 3, 3}, {1, 3,
9545+
3}, {0, 1, 0}, {0, 1, 0}, {1, 3, 3}, {1, 3, 3}, {0, 1, 0}, {0, 1,
9546+
0}}}, CompressedData["
9547+
1:eJxTTMoPSmVmYGBgBGJ1IGZiAIMF1UZyDkA64UPrJ3sgvUXzF5ivUHDuHTKf
9548+
YfLKJ/ZI6htcbtwB8huaFc/JgvgHFk26BpIX5feG8C/mXwbxl/w5LoPMj/ng
9549+
isJ/c/eQNLL+C81x0kjmM0zwYxAA8QWKw7nA4j4tYHfC5Bn+fvtgj6SfIe3q
9550+
W3sk8xku73mJwrdf8hSFv6b7IYr+bRfvoJh/JeyCPZL/YXxY+MDUw8KvYW0E
9551+
2J0bkv7zOyDJ73gD8RdM/41ZajLI/AiDLFlk9TOeQMKZoXYd2N4Zk6DxoHn6
9552+
HTIfFh4w9bDw0lh5WcgBKTxh8i8MIfbC9PechdgL48PiF6YeFv8w98H4MPfD
9553+
1MP8l+B2RQjZ/yjpCwBvF7ac
9554+
"]]}, AspectRatio -> Automatic, BaselinePosition -> (Center -> Center),
9555+
ImageSize -> {9., 9.}, PlotRange -> {{-0.5, 8.5}, {-0.5, 8.5}}]& )
94909556
}
94919557
@|
94929558
@|

FrontEnd/TextResources/ChatbookStrings.tr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"SidebarToolbarButtonTooltipHideSidebar" -> "Hide notebook assistant",
221221
"SidebarToolbarButtonTooltipOpenAsWindowedAssistant" -> "Open as a separate window",
222222
"SidebarFocusIndicator" -> "Ignore notebook content",
223+
"SidebarOverlayAskAnything" -> "How can I help?",
223224

224225
"WorkspaceWindowTitle" -> "Notebook Assistant",
225226
"WorkspaceToolbarButtonLabelHistory" -> "History",

FrontEnd/TextResources/ChineseSimplified/ChatbookStrings.tr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"SidebarToolbarButtonTooltipHideSidebar" -> "Hide notebook assistant",
221221
"SidebarToolbarButtonTooltipOpenAsWindowedAssistant" -> "Open as a separate window",
222222
"SidebarFocusIndicator" -> "Ignore notebook content",
223+
"SidebarOverlayAskAnything" -> "How can I help?",
223224

224225
"WorkspaceWindowTitle" -> "\:7B14\:8BB0\:672C\:52A9\:624B",
225226
"WorkspaceToolbarButtonLabelHistory" -> "\:5386\:53F2\:8BB0\:5F55",

FrontEnd/TextResources/ChineseTraditional/ChatbookStrings.tr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"SidebarToolbarButtonTooltipHideSidebar" -> "Hide notebook assistant",
221221
"SidebarToolbarButtonTooltipOpenAsWindowedAssistant" -> "Open as a separate window",
222222
"SidebarFocusIndicator" -> "Ignore notebook content",
223+
"SidebarOverlayAskAnything" -> "How can I help?",
223224

224225
"WorkspaceWindowTitle" -> "\:7B46\:8A18\:672C\:5C0F\:5E6B\:624B",
225226
"WorkspaceToolbarButtonLabelHistory" -> "\:6B77\:53F2\:8A18\:9304",

FrontEnd/TextResources/French/ChatbookStrings.tr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"SidebarToolbarButtonTooltipHideSidebar" -> "Hide notebook assistant",
221221
"SidebarToolbarButtonTooltipOpenAsWindowedAssistant" -> "Open as a separate window",
222222
"SidebarFocusIndicator" -> "Ignore notebook content",
223+
"SidebarOverlayAskAnything" -> "How can I help?",
223224

224225
"WorkspaceWindowTitle" -> "Assistant de notebook",
225226
"WorkspaceToolbarButtonLabelHistory" -> "Historique",

FrontEnd/TextResources/Japanese/ChatbookStrings.tr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"SidebarToolbarButtonTooltipHideSidebar" -> "Hide notebook assistant",
221221
"SidebarToolbarButtonTooltipOpenAsWindowedAssistant" -> "Open as a separate window",
222222
"SidebarFocusIndicator" -> "Ignore notebook content",
223+
"SidebarOverlayAskAnything" -> "How can I help?",
223224

224225
"WorkspaceWindowTitle" -> "\:30ce\:30fc\:30c8\:30d6\:30c3\:30af\:30a2\:30b7\:30b9\:30bf\:30f3\:30c8",
225226
"WorkspaceToolbarButtonLabelHistory" -> "\:5c65\:6b74",

FrontEnd/TextResources/Korean/ChatbookStrings.tr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
"SidebarToolbarButtonTooltipHideSidebar" -> "Hide notebook assistant",
221221
"SidebarToolbarButtonTooltipOpenAsWindowedAssistant" -> "Open as a separate window",
222222
"SidebarFocusIndicator" -> "Ignore notebook content",
223+
"SidebarOverlayAskAnything" -> "How can I help?",
223224

224225
"WorkspaceWindowTitle" -> "\:B178\:D2B8\:BD81 \:C5B4\:C2DC\:C2A4\:D134\:D2B8",
225226
"WorkspaceToolbarButtonLabelHistory" -> "\:D788\:C2A4\:D1A0\:B9AC",

0 commit comments

Comments
 (0)