Allow users to set where new fields must be created in a record page layout (#18420)

## Demo


https://github.com/user-attachments/assets/eaf89d0c-96e0-4e49-ac58-290c8e7403ff
This commit is contained in:
Baptiste Devessier
2026-03-06 14:04:57 +01:00
committed by GitHub
parent d37ed7e07c
commit a79b816117
19 changed files with 579 additions and 15 deletions
@@ -0,0 +1,15 @@
import { getShortNestedFieldLabel } from '@/spreadsheet-import/utils/getShortNestedFieldLabel';
describe('getShortNestedFieldLabel', () => {
it('should return everything after the first separator', () => {
expect(getShortNestedFieldLabel('Address / City')).toBe('City');
});
it('should return empty string when there is no separator', () => {
expect(getShortNestedFieldLabel('Name')).toBe('');
});
it('should preserve nested separators after the first one', () => {
expect(getShortNestedFieldLabel('Address / City / Zip')).toBe('City / Zip');
});
});