From 847133f53540a48fecee4d30a18811e12a88e50c Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Thu, 1 May 2025 16:08:32 -0400 Subject: [PATCH 1/3] feat(ui): Fix `/settings/` when no org in context This should fix [todo] as the `/settings/` index page can link to invalid URLs when user is not apart of any orgs. Replace/remove all org links on this index page. Also fixes text clipping due to overflow + ellipsis. --- static/app/views/settings/settingsIndex.tsx | 86 ++++++++++++--------- 1 file changed, 49 insertions(+), 37 deletions(-) diff --git a/static/app/views/settings/settingsIndex.tsx b/static/app/views/settings/settingsIndex.tsx index ec319e9206eba7..2094a23b80fcea 100644 --- a/static/app/views/settings/settingsIndex.tsx +++ b/static/app/views/settings/settingsIndex.tsx @@ -74,7 +74,7 @@ function SettingsIndex(props: SettingsIndexProps) { - {t('My Account')} + {t('My Account')} @@ -102,35 +102,44 @@ function SettingsIndex(props: SettingsIndexProps) { const orgSettings = ( - - {organization ? ( + {organization ? ( + - ) : ( + {organization.slug} + + ) : ( + - )} - - {organization ? organization.slug : t('No Organization')} - - + {t('Create an Organization')} + + )}

{t('Quick links')}:

-
    -
  • - - {t('Projects')} - -
  • + {organization ? ( +
      +
    • + + {t('Projects')} + +
    • +
    • + {t('Teams')} +
    • +
    • + + {t('Members')} + +
    • +
    + ) : (
  • - {t('Teams')} + {t('Create an organization')}
  • -
  • - {t('Members')} -
  • -
+ )}
); @@ -142,7 +151,7 @@ function SettingsIndex(props: SettingsIndexProps) { - {t('Documentation')} + {t('Documentation')} @@ -176,7 +185,7 @@ function SettingsIndex(props: SettingsIndexProps) { - {t('Support')} + {t('Support')} @@ -210,26 +219,30 @@ function SettingsIndex(props: SettingsIndexProps) { - {t('API Keys')} + {t('API Keys')}

{t('Quick links')}: