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: add Settings/Accounts/New section with empty state #3000

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
94a3cff
feat: add Settings/Accounts/New section with empty state
Dec 15, 2023
c6bba4e
fix: added label for Empty State Card
Dec 16, 2023
96c1b8b
On RecordTable, if I have no records, the Record Table Layout is not …
gitstart-twenty Dec 15, 2023
71abf76
Add jest tests for twenty-front (#2983)
gitstart-twenty Dec 15, 2023
a2171bd
feat: select default Unit for Currency field (#2996)
thaisguigon Dec 15, 2023
ba49e26
Remaining UI docs (#2997)
nimraahmed Dec 15, 2023
78186af
Fix CIs (#3004)
charlesBochet Dec 15, 2023
0252b07
Fix ExceptionHandler requiring httpAdapter (#3021)
charlesBochet Dec 15, 2023
eaabc0f
Disable chromatic CI
charlesBochet Dec 15, 2023
141185e
Disable Danger CI on push trigger (#3024)
charlesBochet Dec 15, 2023
afeeb71
feat: add Show Page Emails tab (#2962)
thaisguigon Dec 15, 2023
69b7fcc
2880 timebox create a poc to fetch emails from the gmail api (#2993)
bosiraphael Dec 15, 2023
023a38d
Fix modified files DangerCI (#3025)
brendanlaschke Dec 15, 2023
daa1b45
feat: add Show Page Emails preview (#2964)
thaisguigon Dec 15, 2023
9b4b1eb
2915 rest api documentation (#3020)
martmull Dec 15, 2023
704b4a9
2982-feat: Clear SelectableList reset scoped state (#2987)
Kanav-Arora Dec 15, 2023
d1514d8
Fix docusaurus style overriden by spotlight/element (rest api playgro…
charlesBochet Dec 15, 2023
81f7541
Fix: keep the filter edition open if it is empty (#2986)
CzhCN0 Dec 15, 2023
4a1ea45
Merge branch 'main' into feat/add-settings-new-account-section
Dec 16, 2023
b1dfe37
Merge branch 'main' into feat/add-settings-new-account-section
charlesBochet Dec 19, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ const StyledBody = styled(CardContent)`
justify-content: center;
`;

export const SettingsAccountsEmptyStateCard = () => {
type SettingsAccountsEmptyStateCardProps = {
label?: string;
};

export const SettingsAccountsEmptyStateCard = ({
label,
}: SettingsAccountsEmptyStateCardProps) => {
const [generateTransientToken] = useGenerateTransientTokenMutation();

const handleGmailLogin = useCallback(async () => {
Expand All @@ -36,7 +42,7 @@ export const SettingsAccountsEmptyStateCard = () => {

return (
<Card>
<StyledHeader>No connected account</StyledHeader>
<StyledHeader>{label || 'No connected account'}</StyledHeader>
<StyledBody>
<Button
Icon={IconGoogle}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { H2Title } from '@/ui/display/typography/components/H2Title';
import { Section } from '@/ui/layout/section/components/Section';
import { SettingsAccountsEmptyStateCard } from './SettingsAccountsEmptyStateCard';

export const SettingsNewAccountSection = () => {
return (
<Section>
<H2Title
title="New account"
description="Connect a new account to your workspace"
/>
<SettingsAccountsEmptyStateCard label="Connect a Google account" />
</Section>
);
};
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SettingsNewAccountSection } from '@/settings/accounts/components/SettingsNewAccountSection';
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
import { IconSettings } from '@/ui/display/icon';
import { SubMenuTopBarContainer } from '@/ui/layout/page/SubMenuTopBarContainer';
Expand All @@ -13,6 +14,7 @@ export const SettingsNewAccount = () => {
{ children: `New` },
]}
/>
<SettingsNewAccountSection />
</SettingsPageContainer>
</SubMenuTopBarContainer>
);
Expand Down
Loading