Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Anything Llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Mintplex Labs
Anything Llm
Commits
d2fc26d4
Unverified
Commit
d2fc26d4
authored
1 year ago
by
Timothy Carambat
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
change default workspace message for default user (#922)
parent
7e7e957e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx
+18
-10
18 additions, 10 deletions
...ponents/WorkspaceChat/ChatContainer/ChatHistory/index.jsx
with
18 additions
and
10 deletions
frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx
+
18
−
10
View file @
d2fc26d4
...
@@ -5,8 +5,10 @@ import { useManageWorkspaceModal } from "../../../Modals/MangeWorkspace";
...
@@ -5,8 +5,10 @@ import { useManageWorkspaceModal } from "../../../Modals/MangeWorkspace";
import
ManageWorkspace
from
"
../../../Modals/MangeWorkspace
"
;
import
ManageWorkspace
from
"
../../../Modals/MangeWorkspace
"
;
import
{
ArrowDown
}
from
"
@phosphor-icons/react
"
;
import
{
ArrowDown
}
from
"
@phosphor-icons/react
"
;
import
debounce
from
"
lodash.debounce
"
;
import
debounce
from
"
lodash.debounce
"
;
import
useUser
from
"
@/hooks/useUser
"
;
export
default
function
ChatHistory
({
history
=
[],
workspace
,
sendCommand
})
{
export
default
function
ChatHistory
({
history
=
[],
workspace
,
sendCommand
})
{
const
{
user
}
=
useUser
();
const
{
showing
,
showModal
,
hideModal
}
=
useManageWorkspaceModal
();
const
{
showing
,
showModal
,
hideModal
}
=
useManageWorkspaceModal
();
const
[
isAtBottom
,
setIsAtBottom
]
=
useState
(
true
);
const
[
isAtBottom
,
setIsAtBottom
]
=
useState
(
true
);
const
chatHistoryRef
=
useRef
(
null
);
const
chatHistoryRef
=
useRef
(
null
);
...
@@ -56,16 +58,22 @@ export default function ChatHistory({ history = [], workspace, sendCommand }) {
...
@@ -56,16 +58,22 @@ export default function ChatHistory({ history = [], workspace, sendCommand }) {
<
p
className
=
"text-white/60 text-lg font-base py-4"
>
<
p
className
=
"text-white/60 text-lg font-base py-4"
>
Welcome to your new workspace.
Welcome to your new workspace.
</
p
>
</
p
>
<
p
className
=
"w-full items-center text-white/60 text-lg font-base flex flex-col md:flex-row gap-x-1"
>
{
!
user
||
user
.
role
!==
"
default
"
?
(
To get started either
{
"
"
}
<
p
className
=
"w-full items-center text-white/60 text-lg font-base flex flex-col md:flex-row gap-x-1"
>
<
span
To get started either
{
"
"
}
className
=
"underline font-medium cursor-pointer"
<
span
onClick
=
{
showModal
}
className
=
"underline font-medium cursor-pointer"
>
onClick
=
{
showModal
}
upload a document
>
</
span
>
upload a document
or
<
b
className
=
"font-medium italic"
>
send a chat.
</
b
>
</
span
>
</
p
>
or
<
b
className
=
"font-medium italic"
>
send a chat.
</
b
>
</
p
>
)
:
(
<
p
className
=
"w-full items-center text-white/60 text-lg font-base flex flex-col md:flex-row gap-x-1"
>
To get started
<
b
className
=
"font-medium italic"
>
send a chat.
</
b
>
</
p
>
)
}
<
WorkspaceChatSuggestions
<
WorkspaceChatSuggestions
suggestions
=
{
workspace
?.
suggestedMessages
??
[]
}
suggestions
=
{
workspace
?.
suggestedMessages
??
[]
}
sendSuggestion
=
{
handleSendSuggestedMessage
}
sendSuggestion
=
{
handleSendSuggestedMessage
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment