Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Prev-Next position #4183

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions front/components/assistant_builder/ActionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,39 +331,36 @@ export default function ActionScreen({
{noDataSources ? (
<ContentMessage
title="You don't have any Data source available"
variant="warning"
variant="pink"
>
<div className="flex flex-col gap-y-3">
{(() => {
switch (owner.role) {
case "admin":
return (
<div>
<strong>
Visit the "Connections", "Websites" and "Folders"
sections in the Build panel to add new data
sources.
</strong>
Go to <strong>"Connections"</strong>,{" "}
<strong>"Websites"</strong> and{" "}
<strong>"Folders"</strong>
sections in the Build panel to add new data sources.
</div>
);
case "builder":
return (
<div>
You can add Data Sources by visiting the "Websites"
and "Folders" sections in the Build panel.
<strong>
Only Admins can activate Connections. You can add
Data Sources by visiting the "Websites" and
"Folders" sections in the Build panel.
Only Admins can activate Connections (Notion,
Drive…).
</strong>
</div>
);
case "user":
return (
<div>
<strong>
Contact an Admin or Builder to activate
Connections, add public Websites or create
Folders.
</strong>
Contact an <strong>Admin</strong> to add Data
sources to your workspace!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sources to your workspace!
Sources to your workspace.

nit

</div>
);
case "none":
Expand Down
4 changes: 2 additions & 2 deletions front/components/assistant_builder/AssistantBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export default function AssistantBuilder({
>
<BuilderLayout
leftPanel={
<div className="flex h-full flex-col gap-5 py-4">
<div className="flex min-h-[64vh] flex-col gap-5 py-4">
<div className="flex flex-col flex-wrap justify-between gap-4 sm:flex-row">
<Tab tabs={tabs} variant="stepper" />
<div className="self-end pt-0.5">
Expand Down Expand Up @@ -552,7 +552,7 @@ function PrevNextButtons({
setScreen: (screen: BuilderScreen) => void;
}) {
return (
<div className="flex pt-6">
<div className="flex flex-grow items-end pt-6">
{screen !== "instructions" && (
<Button
label="Previous"
Expand Down
5 changes: 3 additions & 2 deletions front/components/sparkle/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,9 @@ export default function AppLayout({
<div
className={classNames(
"fixed left-0 right-0 top-0 z-30 flex flex-col pl-12 lg:pl-0",
!hideSidebar ? "lg:left-80" : "",
"border-b border-structure-300/30 bg-white/80 backdrop-blur",
!hideSidebar
? "border-b border-structure-300/30 bg-white/80 backdrop-blur lg:left-80"
: "",
titleChildren ? "fixed" : "lg:hidden"
)}
>
Expand Down
Loading