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

This commit is contained in:
Dermot Duffy authored and GitHub committed 2026-07-21 19:13:29 -07:00
1 parent b6e1de5999
commit e29c0826cf
56 files changed
+1722 -353

No files matched your search

@@ -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(