Skip to content

Commit

Permalink
[front] - chore: update ConnectorPermissionModal (#8632)
Browse files Browse the repository at this point in the history
* Using ContentMessage in Permission modals

* [front] - feature: update @dust-tt/sparkle package to 0.2.310

 - Bump the version of @dust-tt/sparkle to incorporate new features or bug fixes
 - Ensure consistency across package-lock.json and package.json for dependency management

* [front] - fix: bump @dust-tt/sparkle to version 0.2.311

 - Update the @dust-tt/sparkle package to the latest version to include new patches and features
 - Ensure consistency between package-lock.json and package.json for dependency management

---------

Co-authored-by: Edouard Wautier <[email protected]>
  • Loading branch information
JulesBelveze and Duncid authored Nov 15, 2024
1 parent c1cdc88 commit 32536c8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
35 changes: 16 additions & 19 deletions front/components/ConnectorPermissionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {
Avatar,
Button,
CloudArrowLeftRightIcon,
ContentMessage,
Dialog,
Hoverable,
Icon,
Input,
LockIcon,
Expand Down Expand Up @@ -323,34 +325,29 @@ function DataSourceEditionModal({
{!isDataSourceOwner && (
<div className="item flex flex-col gap-2 border-t pt-4">
<Page.SectionHeader title="Editing permissions" />
<div className="mb-4 w-full rounded-lg border-pink-200 bg-pink-50 p-3">
<div className="flex items-center gap-2 font-medium text-pink-900">
<Icon visual={InformationCircleIcon} />
Important
</div>
<div className="pl-4 pt-2 font-medium text-pink-900">
You are not the owner of this connection.
</div>
<div className="p-4 text-sm text-amber-900">
Editing permission rights with a different account will likely
break the existing data structure in Dust and Assistants using
them.
</div>

<ContentMessage
size="md"
variant="pink"
title="You are not the owner of this connection."
icon={InformationCircleIcon}
>
Editing permission rights with a different account will likely
break the existing data structure in Dust and Assistants using
them.
{connectorConfiguration.guideLink && (
<div className="pl-4 text-sm text-amber-800">
<div>
Read our{" "}
<a
<Hoverable
href={connectorConfiguration.guideLink}
className="text-blue-600"
variant="primary"
target="_blank"
>
Playbook
</a>
</Hoverable>
.
</div>
)}
</div>
</ContentMessage>
</div>
)}

Expand Down
8 changes: 4 additions & 4 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"@auth0/nextjs-auth0": "^3.5.0",
"@dust-tt/client": "file:../sdks/js",
"@dust-tt/sparkle": "^0.2.309",
"@dust-tt/sparkle": "^0.2.311",
"@dust-tt/types": "file:../types",
"@headlessui/react": "^1.7.7",
"@heroicons/react": "^2.0.11",
Expand Down

0 comments on commit 32536c8

Please sign in to comment.