fix: update customize fields navigation to go directly to object detail page (#12904)
## Summary - Updates "Customize fields" button navigation to go directly to the specific object's detail page - Changes navigation from `SettingsPath.Objects` to `SettingsPath.ObjectDetail` - Aligns with existing behavior of "Edit Fields" functionality ## Problem When clicking "Customize fields" in the record table header plus button dropdown, users were taken to the general objects list page instead of the specific object's fields page, making it harder to find and customize the relevant object. ## Solution Changed the navigation path from `SettingsPath.Objects` to `SettingsPath.ObjectDetail` in `RecordTableHeaderPlusButtonContent.tsx`, which takes users directly to the object-specific fields page where they can see and manage all fields for that object. ## Screenshots ### Before: Customize Fields Dropdown When clicking the "+" button in the table header, the dropdown shows "Customize fields" option: \ ### After: Direct Navigation to Object Fields Clicking "Customize fields" now navigates directly to the specific object's fields page: \ ## Test plan - [x] Navigate to any record table view (e.g., People, Companies) - [x] Click the "+" button in the table header - [x] Click "Customize fields" - [x] Verify navigation goes directly to that object's fields page instead of the general objects list - [x] Confirmed the URL is `/settings/objects/{objectNamePlural}` (e.g., `/settings/objects/companies`) Fixes #12835 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Jez (Jeremy Dawes) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -61,7 +61,7 @@ export const RecordTableHeaderPlusButtonContent = () => {
|
||||
<DropdownMenuItemsContainer scrollable={false}>
|
||||
<UndecoratedLink
|
||||
fullWidth
|
||||
to={getSettingsPath(SettingsPath.Objects, {
|
||||
to={getSettingsPath(SettingsPath.ObjectDetail, {
|
||||
objectNamePlural: objectMetadataItem.namePlural,
|
||||
})}
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user