tidy(ui): remove unused mock form builder data

This commit is contained in:
psychedelicious
2025-01-25 21:41:51 +11:00
parent 7c7d8928d0
commit 99b57acc8b

View File

@@ -252,77 +252,3 @@ export const _container = (...args: Parameters<typeof buildContainer>): Containe
const zFormElement = z.union([zContainerElement, zNodeFieldElement, zHeadingElement, zTextElement, zDividerElement]);
export type FormElement = z.infer<typeof zFormElement>;
// export const rootElementId: string = _container('column', [
// _heading('My Cool Workflow', 1).id,
// _nodeField('4f609a81-0e25-47d1-ba0d-f24fedd5273f', 'value').id,
// _nodeField('14744f68-9000-4694-b4d6-cbe83ee231ee', 'model').id,
// _container('row', [_container('column', []).id, _container('column', []).id, _container('column', []).id]).id,
// ]).id;
const rootContainer = buildContainer('column', []);
addElement(rootContainer);
const rowContainer = buildContainer('row', [], rootContainer.id);
const rowContainerChildren = [
_nodeField('58e748ec-7405-4816-a5ff-c168ee35161a', 'value', rowContainer.id),
_nodeField('1b383334-2efc-406d-a000-49c4c5ebccde', 'value', rowContainer.id),
_nodeField('7ebda150-63c7-4ccd-a1d2-444459107393', 'value', rowContainer.id),
];
rowContainerChildren.forEach((child) => {
addElement(child);
rowContainer.data.children.push(child.id);
});
const children = [
buildHeading('My Cool Workflow', 1, rootContainer.id),
buildText('This is a description of what my workflow does. It does things.', 'md', rootContainer.id),
buildDivider(rootContainer.id),
buildText('These are some text that are definitely super helpful.', 'sm', rootContainer.id),
rowContainer,
];
children.forEach((child) => {
addElement(child);
rootContainer.data.children.push(child.id);
});
export const rootElementId = rootContainer.id;
// export const rootElementId: string = _container('column', [
// _heading('My Cool Workflow', 1).id,
// _text('This is a description of what my workflow does. It does things.', 'md').id,
// _divider().id,
// _heading('First Section', 2).id,
// _text('The first section includes fields relevant to the first section. This note describes that fact.', 'sm').id,
// _divider().id,
// // _container('row', [
// // _nodeField('7aed1a5f-7fd7-4184-abe8-ddea0ea5e706', 'image').id,
// // _nodeField('7aed1a5f-7fd7-4184-abe8-ddea0ea5e706', 'image').id,
// // _nodeField('7aed1a5f-7fd7-4184-abe8-ddea0ea5e706', 'image').id,
// // ]).id,
// // _nodeField('9c058600-8d73-4702-912b-0ccf37403bfd', 'value').id,
// // _nodeField('7a8bbab2-6919-4cfc-bd7c-bcfda3c79ecf', 'value').id,
// // _nodeField('4e16cbf6-457c-46fb-9ab7-9cb262fa1e03', 'value').id,
// // _nodeField('39cb5272-a9d7-4da9-9c35-32e02b46bb34', 'color').id,
// // _container('row', [
// // _container('column', [
// // _nodeField('4f609a81-0e25-47d1-ba0d-f24fedd5273f', 'value').id,
// // _nodeField('4f609a81-0e25-47d1-ba0d-f24fedd5273f', 'value').id,
// // ]).id,
// // _container('column', [
// // _nodeField('4f609a81-0e25-47d1-ba0d-f24fedd5273f', 'value').id,
// // _nodeField('4f609a81-0e25-47d1-ba0d-f24fedd5273f', 'value').id,
// // _nodeField('7aed1a5f-7fd7-4184-abe8-ddea0ea5e706', 'image').id,
// // _nodeField('4f609a81-0e25-47d1-ba0d-f24fedd5273f', 'value').id,
// // ]).id,
// // ]).id,
// // _nodeField('14744f68-9000-4694-b4d6-cbe83ee231ee', 'model').id,
// _divider().id,
// _text('These are some text that are definitely super helpful.', 'sm').id,
// _divider().id,
// // _container('row', [
// // _container('column', [
// // _nodeField('7aed1a5f-7fd7-4184-abe8-ddea0ea5e706', 'image').id,
// // _nodeField('7aed1a5f-7fd7-4184-abe8-ddea0ea5e706', 'image').id,
// // ]).id,
// // _container('column', [_nodeField('7a8bbab2-6919-4cfc-bd7c-bcfda3c79ecf', 'value').id]).id,
// // ]).id,
// ]).id;