fb2c9e12bc
## Display task target and note target relations https://github.com/user-attachments/assets/b291cc38-33b9-45b8-b685-e5890824176e ## Drop summary card in right drawer ### Before <img width="1362" height="2160" alt="CleanShot 2026-01-22 at 14 27 09@2x" src="https://github.com/user-attachments/assets/79f45d8f-976b-4999-8f62-5cb4b87b3ef6" /> ### After <img width="1362" height="2160" alt="CleanShot 2026-01-22 at 14 26 43@2x" src="https://github.com/user-attachments/assets/fb67ddbb-0585-48bd-8ef6-c0139bba4062" /> ## Add a tooltip to the see all action https://github.com/user-attachments/assets/ab05cfab-8a6c-4caf-bfe9-698c8b7904e6 ## Rename the Fields tab to Home ### Before <img width="544" height="354" alt="CleanShot 2026-01-22 at 14 28 26@2x" src="https://github.com/user-attachments/assets/62f7faa2-3a18-40af-8cdf-3fb9f7c7708c" /> ### After <img width="544" height="354" alt="CleanShot 2026-01-22 at 14 28 06@2x" src="https://github.com/user-attachments/assets/76c21ec9-3723-4933-b34f-88b6403cbad5" />
23 lines
681 B
TypeScript
23 lines
681 B
TypeScript
import { useFieldListFieldMetadataItems } from '@/object-record/record-field-list/hooks/useFieldListFieldMetadataItems';
|
|
|
|
type UseFieldsWidgetFieldMetadataItemsProps = {
|
|
objectNameSingular: string;
|
|
};
|
|
|
|
export const useFieldsWidgetFieldMetadataItems = ({
|
|
objectNameSingular,
|
|
}: UseFieldsWidgetFieldMetadataItemsProps) => {
|
|
const { inlineFieldMetadataItems, legacyActivityTargetFieldMetadataItems } =
|
|
useFieldListFieldMetadataItems({
|
|
objectNameSingular,
|
|
excludeFieldMetadataIds: [],
|
|
excludeCreatedAtAndUpdatedAt: true,
|
|
showRelationSections: true,
|
|
});
|
|
|
|
return {
|
|
inlineFieldMetadataItems,
|
|
legacyActivityTargetFieldMetadataItems,
|
|
};
|
|
};
|