The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add see records link to data model (#19163)
Weiko436333f11033
diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsxindex cf5fd512321..396d68b4a6c 100644--- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx+++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx@@ -19,8 +19,9 @@ import { isObjectMetadataReadOnly } from '@/object-record/read-only/utils/isObjeimport { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';import { useLingui } from '@lingui/react/macro';-import { getSettingsPath, isDefined } from 'twenty-shared/utils';+import { getAppPath, getSettingsPath, isDefined } from 'twenty-shared/utils';import {+ IconArrowUpRight,IconCodeCircle,IconListDetails,IconPlus,@@ -35,6 +36,13 @@ import { useNavigateApp } from '~/hooks/useNavigateApp';import { SETTINGS_OBJECT_DETAIL_TABS } from '~/pages/settings/data-model/constants/SettingsObjectDetailTabs';import { updatedObjectNamePluralState } from '~/pages/settings/data-model/states/updatedObjectNamePluralState';+const StyledTabsRow = styled.div`+ align-items: center;+ display: flex;+ justify-content: space-between;+ width: 100%;+`;+const StyledContentContainer = styled.div`flex: 1;padding-left: 0;@@ -171,12 +179,23 @@ export const SettingsObjectDetailPage = () => {}><SettingsPageContainer>- <TabList- tabs={tabs}- componentInstanceId={- SETTINGS_OBJECT_DETAIL_TABS.COMPONENT_INSTANCE_ID- }- />+ <StyledTabsRow>+ <TabList+ tabs={tabs}+ componentInstanceId={+ SETTINGS_OBJECT_DETAIL_TABS.COMPONENT_INSTANCE_ID+ }+ />+ <Button+ Icon={IconArrowUpRight}+ title={t`See records`}+ variant="tertiary"+ size="small"+ to={getAppPath(AppPath.RecordIndexPage, {+ objectNamePlural: objectMetadataItem.namePlural,+ })}+ />+ </StyledTabsRow><StyledContentContainer>{renderActiveTabContent()}</StyledContentContainer>