From b1ec3bdf428dce9517f1f4c87a20119a1947a807 Mon Sep 17 00:00:00 2001 From: Lakshay saini Date: Tue, 19 Dec 2023 20:22:39 +0530 Subject: [PATCH] feat: add Settings/Accounts/New section with empty state (#3000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add Settings/Accounts/New section with empty state * fix: added label for Empty State Card * On RecordTable, if I have no records, the Record Table Layout is not broken (#2911) * On RecordTable, if I have no records, the Record Table Layout is not broken Co-authored-by: v1b3m Co-authored-by: RubensRafael * Revert scrollbar changes Co-authored-by: v1b3m Co-authored-by: RubensRafael * fix + button Co-authored-by: v1b3m Co-authored-by: RubensRafael * Revert unwanted changes Co-authored-by: v1b3m Co-authored-by: RubensRafael * Merge main Co-authored-by: Thiago Nascimbeni Co-authored-by: v1b3m Co-authored-by: RubensRafael * On RecordTable, if I have no records, the Record Table Layout is not broken Co-authored-by: v1b3m Co-authored-by: Thiago Nascimbeni Co-authored-by: RubensRafael * Add bottom border Co-authored-by: v1b3m Co-authored-by: Thiago Nascimbeni Co-authored-by: RubensRafael * Always show + button Co-authored-by: v1b3m Co-authored-by: Thiago Nascimbeni Co-authored-by: RubensRafael * Refactor according to review Co-authored-by: v1b3m Co-authored-by: Thiago Nascimbeni Co-authored-by: RubensRafael * Fix according to PR --------- Co-authored-by: gitstart-twenty Co-authored-by: v1b3m Co-authored-by: RubensRafael Co-authored-by: Charles Bochet Co-authored-by: Thiago Nascimbeni Co-authored-by: Lucas Bordeau * Add jest tests for twenty-front (#2983) * Add jest tests for twenty-front Co-authored-by: v1b3m * Fix tests --------- Co-authored-by: gitstart-twenty Co-authored-by: v1b3m Co-authored-by: Charles Bochet * feat: select default Unit for Currency field (#2996) Closes #2347 Co-authored-by: Thais GUIGON * Remaining UI docs (#2997) * remaining UI docs * completed ui component docs --------- Co-authored-by: Charles Bochet * Fix CIs (#3004) * Fix CIs * Fix docs * Fix eslint-build * Move file * Move back * Fix server ci * Fix server ci * Fix server ci * Fix server ci * Deactivate e2e tests * Fix front * Fix front * Fix front * Add twenty-zapier and twenty-utils to the yarn project * fix * fix * Remove pull_request trigger * Fix ExceptionHandler requiring httpAdapter (#3021) * Disable chromatic CI * Disable Danger CI on push trigger (#3024) Disable Danger CI on main * feat: add Show Page Emails tab (#2962) * feat: add Show Page Emails tab Closes #2926, Closes #2927 * feat: review - disable Emails tab if messaging not enabled * refactor: review - add FeatureFlagKey type --------- Co-authored-by: Thais GUIGON * 2880 timebox create a poc to fetch emails from the gmail api (#2993) * create empty service * getting threads is working * insert message channel * save threads in the db * clean * fetch messages * create a service to fetch a batch of messages * batch messages * use httpService instead * parse batch * base 64 decoding working * solve parsing bug * saving messages is working * bug to fix in fetchAllByBatches * fetching all messages is working but not saving yet * fecth 500 messages and threads is working * remove unused package and console log * set direction to incoming * fix bug after merging main * Fix modified files DangerCI (#3025) - fix modified files * feat: add Show Page Emails preview (#2964) * feat: add Show Page Emails preview Closes #2928 * refactor: review - rename StyledContainer to StyledCardContent * 2915 rest api documentation (#3020) * Init rest-api page * Add ugly form to fetch open api schema * Clean code * Make the form design more acceptable * Update doc * Use local storage * Update design * Add isLoading * Fix typo * Fix long lines * Code review returns * Remove staging and local url from servers * 2982-feat: Clear SelectableList reset scoped state (#2987) * 2982-feat: Clear SelectableList reset scoped state * State fixes as suggested in pr * State fixes as suggested in pr --------- Co-authored-by: Lucas Bordeau Co-authored-by: Charles Bochet * Fix docusaurus style overriden by spotlight/element (rest api playground) (#3033) * Fix docusaurus style overriden by spotlight/element (rest api playground) * Fix spacing * Fix spacing * Fix: keep the filter edition open if it is empty (#2986) Co-authored-by: 曹志浩 Co-authored-by: Charles Bochet --------- Co-authored-by: Lakshay saini Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Co-authored-by: gitstart-twenty Co-authored-by: v1b3m Co-authored-by: RubensRafael Co-authored-by: Charles Bochet Co-authored-by: Thiago Nascimbeni Co-authored-by: Lucas Bordeau Co-authored-by: Thaïs Co-authored-by: Thais GUIGON Co-authored-by: Nimra Ahmed <50912134+nimraahmed@users.noreply.github.com> Co-authored-by: Charles Bochet Co-authored-by: bosiraphael <71827178+bosiraphael@users.noreply.github.com> Co-authored-by: brendanlaschke Co-authored-by: martmull Co-authored-by: Kanav Arora Co-authored-by: Cao Z.H <150761799+CzhCN0@users.noreply.github.com> Co-authored-by: 曹志浩 --- .../components/SettingsAccountsEmptyStateCard.tsx | 10 ++++++++-- .../components/SettingsNewAccountSection.tsx | 15 +++++++++++++++ .../settings/accounts/SettingsNewAccount.tsx | 2 ++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 packages/twenty-front/src/modules/settings/accounts/components/SettingsNewAccountSection.tsx diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmptyStateCard.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmptyStateCard.tsx index 25c99fef7419..23fe1e1305c3 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmptyStateCard.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmptyStateCard.tsx @@ -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 () => { @@ -36,7 +42,7 @@ export const SettingsAccountsEmptyStateCard = () => { return ( - No connected account + {label || 'No connected account'}