-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] Prompt Studio Public Share & Clone (#429)
* Cloud URLs for public share * Adding public share cloud routes * Public share OSS components * Fixing linting issues * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Import fixes * Fixing path for FE Plugins * Exposing URLs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Sonar issue fixes * Fixing prettier issues * Fixing prettier issues * Removing console logs * Optimising code block * Fixing Cloud Import URLs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Seperating clone and Share components * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Resolving conflicts * Moving URLs to Cloud * Fixing headers * Fixing linting issues * Disabling Multi LLM runs for Public sharing * Adding URLs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Pre-commit fixes * Adding prompt studio helper * Resolving conflicts * Condition optimization Co-authored-by: jagadeeswaran-zipstack <[email protected]> Signed-off-by: harini-venkataraman <[email protected]> * Adapter null fixes Signed-off-by: harini-venkataraman <[email protected]> * Fixing prompt_id key Signed-off-by: harini-venkataraman <[email protected]> * Linting issues * Disabling checkboxes * Fixing sonar issues --------- Signed-off-by: harini-venkataraman <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: jagadeeswaran-zipstack <[email protected]> Co-authored-by: Hari John Kuriakose <[email protected]>
- Loading branch information
1 parent
f88acbb
commit 047aed2
Showing
23 changed files
with
356 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
frontend/src/components/custom-tools/header-title/HeaderTitle.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.custom-tools-name { | ||
padding: 0px 8px; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
margin-left:auto; | ||
} | ||
.custom-tools-header { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-right: auto; | ||
} |
34 changes: 34 additions & 0 deletions
34
frontend/src/components/custom-tools/header-title/HeaderTitle.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { ArrowLeftOutlined, EditOutlined } from "@ant-design/icons"; | ||
import { Button, Typography } from "antd"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
import { useCustomToolStore } from "../../../store/custom-tool-store"; | ||
import { useSessionStore } from "../../../store/session-store"; | ||
import "./HeaderTitle.css"; | ||
|
||
function HeaderTitle() { | ||
const navigate = useNavigate(); | ||
const { details } = useCustomToolStore(); | ||
const { sessionDetails } = useSessionStore(); | ||
|
||
return ( | ||
<div className="custom-tools-header"> | ||
<div> | ||
<Button | ||
size="small" | ||
type="text" | ||
onClick={() => navigate(`/${sessionDetails?.orgName}/tools`)} | ||
> | ||
<ArrowLeftOutlined /> | ||
</Button> | ||
</div> | ||
<div className="custom-tools-name"> | ||
<Typography.Text strong>{details?.tool_name}</Typography.Text> | ||
<Button size="small" type="text" disabled> | ||
<EditOutlined /> | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export { HeaderTitle }; |
Oops, something went wrong.