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

feat: Change any mention of us or we in the app #256

Merged
merged 4 commits into from
Aug 2, 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
11 changes: 5 additions & 6 deletions frontend/components/Main/MainHeader/AgentButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import { ServicesService } from '@/service/Services';
import { WalletService } from '@/service/Wallet';
import { getMinimumStakedAmountRequired } from '@/utils/service';

import { CannotStartAgent } from '../CannotStartAgent';
import {
CannotStartAgent,
CannotStartAgentDueToUnexpectedError,
} from '../CannotStartAgent';
import { requiredGas, requiredOlas } from '../constants';

const { Text } = Typography;
Expand Down Expand Up @@ -258,11 +261,7 @@ export const AgentButton = () => {
return <AgentNotRunningButton />;
}

return (
<Button type="primary" size="large" disabled>
Error, contact us!
</Button>
);
return <CannotStartAgentDueToUnexpectedError />;
}, [
hasInitialLoaded,
serviceStatus,
Expand Down
31 changes: 26 additions & 5 deletions frontend/components/Main/MainHeader/CannotStartAgent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@ const cannotStartAgentText = (
</Text>
);

const otherPopoverProps: PopoverProps = {
arrow: false,
placement: 'bottomRight',
};

export const CannotStartAgentDueToUnexpectedError = () => (
<Popover
{...otherPopoverProps}
title="Unexpected error"
content={
<div style={{ maxWidth: 340 }}>
<Paragraph>
Try to restart the app. If the issue persists, join the Olas community
Discord server to report or stay up to date on the issue.
</Paragraph>

<a href={SUPPORT_URL} target="_blank" rel="noreferrer">
Olas community Discord server {UNICODE_SYMBOLS.EXTERNAL_LINK}
</a>
</div>
}
>
{cannotStartAgentText}
</Popover>
);

const evictedDescription =
"You didn't run your agent enough and it missed its targets multiple times. Please wait a few days and try to run your agent again.";
const AgentEvictedPopover = () => (
Expand All @@ -27,11 +53,6 @@ const AgentEvictedPopover = () => (
</Popover>
);

const otherPopoverProps: PopoverProps = {
arrow: false,
placement: 'bottomRight',
};

const JoinOlasCommunity = () => (
<div style={{ maxWidth: 340 }}>
<Paragraph>
Expand Down
Loading