feat: Add a simple mode to the visual card editor (#2588)

This commit is contained in:
Dermot Duffy
2026-07-21 19:13:29 -07:00
committed by GitHub
parent b6e1de5999
commit e29c0826cf
56 changed files with 1722 additions and 353 deletions
@@ -31,7 +31,7 @@ describe('getDocLinkPath', () => {
expect(
getDocLinkPath(['cameras', 2], {
type: 'expandable',
docPath: 'cameras.engine',
docPath: ['cameras', 'engine'],
schema: [],
}),
).toEqual(['cameras', 'engine']);
@@ -41,6 +41,12 @@ describe('getDocLinkPath', () => {
expect(getDocLinkPath(['cameras'], { type: 'expandable', schema: [] })).toBeNull();
});
it('should not link a grid', () => {
// A grid only lays out the fields within it, and documentation is linked
// for what a group of settings is, not for how it is arranged.
expect(getDocLinkPath(['dimensions'], { type: 'grid', schema: [] })).toBeNull();
});
it('should order nested container paths into configuration order', () => {
expect(
getDocLinkPath(