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

Main Bug Fixes #896

Merged
merged 3 commits into from
Jul 28, 2023
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
36 changes: 26 additions & 10 deletions gui/pages/Content/Marketplace/AgentTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,32 @@ export default function AgentTemplate({template, env}) {
<span style={{fontSize: '12px', marginTop: '15px',}} className={styles.tool_publisher}>By SuperAGI <Image
width={14} height={14} src="/images/is_verified.svg" alt="is_verified"/>&nbsp;{'\u00B7'}&nbsp;<Image
width={14} height={14} src="/images/upload_icon.svg" alt="upload-icon"/></span>
<button className="primary_button" style={{
marginTop: '15px',
width: '100%',
background: isInstalled || (template && template.is_installed) ? 'rgba(255, 255, 255, 0.14)' : '#FFF',
color: isInstalled || (template && template.is_installed) ? '#FFFFFF' : '#000'
}} onClick={() => handleInstallClick()}>
{(isInstalled || (template && template.is_installed)) ?
<Image width={14} height={14} src="/images/tick.svg" alt="tick-icon"/> :
<Image width={14} height={14} src="/images/upload_icon_dark.svg"
alt="upload-icon"/>}&nbsp;{installed}</button>
{isInstalled || (template && template.is_installed) ? (
<button
className="primary_button"
style={{
marginTop: '15px',
width: '100%',
background: 'rgba(255, 255, 255, 0.14)',
color: '#FFFFFF'
}}
>
<Image width={14} height={14} src="/images/tick.svg" alt="tick-icon"/>&nbsp; Installed
</button>
) : (
<button
className="primary_button"
style={{
marginTop: '15px',
width: '100%',
background: '#FFF',
color: '#000'
}}
onClick={() => handleInstallClick()}
>
<Image width={14} height={14} src="/images/upload_icon_dark.svg" alt="upload-icon"/>&nbsp; Install
</button>
)}

<hr className={styles2.horizontal_line}/>

Expand Down
2 changes: 1 addition & 1 deletion gui/pages/Content/Marketplace/KnowledgeTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default function KnowledgeTemplate({template, env}) {
<div style={{overflowY: 'scroll', height: '84vh'}}>
<div className={styles2.left_container}
style={{marginBottom: '5px', color: 'white', padding: '16px'}}>
<span className={styles2.description_text}>Overview</span><br/>
<span className="text_20_bold">Overview</span><br/>
{/*{templateData?.overview.map((item, index) => (<div key={index} style={{marginTop: '0'}}>*/}
{/* <div className={styles2.description_text}>{index + 1}. {item || ''}</div>*/}
{/* {index !== item.length - 1}*/}
Expand Down
Binary file added gui/public/images/notion_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion gui/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const toolkitData = {
'Image Generation Toolkit': '/images/app-logo-light.png',
'DuckDuckGo Search Toolkit': '/images/duckduckgo_icon.png',
'Instagram Toolkit': '/images/instagram.png',
'Knowledge Search Toolkit': '/images/knowledeg_logo.png'
'Knowledge Search Toolkit': '/images/knowledeg_logo.png',
'Notion Toolkit': '/images/notion_logo.png',
};

export const getUserTimezone = () => {
Expand Down