Skip to content

Commit

Permalink
chore: modified stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukeybooi committed Jul 6, 2023
1 parent bd3d3b0 commit 95853d6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 95 deletions.
98 changes: 7 additions & 91 deletions shesha-reactjs/src/pages/dynamic/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,99 +24,15 @@ const Template: Story<IDynamicPageProps> = (args) => (
// Reuse that template for creating different stories
export const Basic = Template.bind({});

export const OrderDetails = addStory(Template, {
formId: { name: 'order-details', module: 'boxfusion.inventory' },
id: 'da4d3320-7c71-4df4-9d20-0ce51d9c1a66',
export const EpmUserManagemenet = addStory(Template, {
formId: { name: 'user-management-new', module: '' },
});

export const TableInlineEditing = addStory(Template, {
formId: { name: 'table-inline', module: 'test' },
export const FncTSchoolDetails = addStory(Template, {
formId: { name: 'School-Details', module: 'Boxfusion.SheshaFunctionalTests.Common' },
id: 'ca55ba17-6af1-4a62-b0f2-fb3657faa9c1',
});

export const FormsIndex = addStory(Template, {
formId: { name: 'forms', module: 'shesha' },
export const FncTextComponentDetails = addStory(Template, {
formId: { name: 'text-component-details', module: 'Shesha' },
});

export const OrganisationEdit = addStory(Template, {
formId: {
name: 'organisation-edit',
module: 'Test Module',
version: 1,
},
id: '5BC9A277-63ED-4A71-919F-0B4064363BBC'
});

export const PersonEdit = addStory(Template, {
formId: {
name: 'person-edit',
module: 'Test Module',
version: 7,
},
id: '32E2B3DD-4D99-4542-AF71-134EC7C0E2CE'
});

export const PersonDetails = addStory(Template, {
formId: {
name: 'person-details',
module: 'Test Module',
version: 1,
},
});

export const TestMap = addStory(Template, {
// formId: '21ca7d2c-6b26-4434-8df0-55523ab1827d',
formId: {
name: 'playground',
module: 'TestModule',
},
// mode: 'readonly',
id: 'dc7f6c47-d537-418f-8eda-d0b7f796ea67',
});

export const PermissionEdit = addStory(Template, {
formId: {
name: 'permission-edit',
module: 'Test Module',
version: 2,
},
});

export const Fetchers = addStory(Template, {
formId: {
name: 'fetchers',
module: 'TestModule'
},
mode: 'edit'
});

export const BugFix = addStory(Template, {
formId: {
name: 'auto-complete-component-table',
module: 'Shesha'
},
mode: 'edit'
});

export const Hydration = addStory(Template, {
formId: {
name: 'flattened-facility-appointment-table',
module: 'Boxfusion.His.Bookings'
},
mode: 'edit'
});

export const TableLayout = addStory(Template, {
formId: {
name: 'table-layout',
module: 'TestModule'
},
mode: 'edit'
});

export const InMemoryTable = addStory(Template, {
formId: {
name: 'in-memory-table',
module: 'TestModule'
},
mode: 'edit'
});
23 changes: 19 additions & 4 deletions shesha-reactjs/src/pages/forms-designer/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { MainLayout } from '../..';
export default {
title: 'Pages/Designer',
component: DesignerPage,
argTypes: {}
argTypes: {},
} as Meta;

// Create a master template for mapping args to render the Button component
const Template: Story<IDesignerPageProps> = args => (
const Template: Story<IDesignerPageProps> = (args) => (
<StoryApp>
<MainLayout>
<DesignerPage {...args} />
Expand All @@ -23,7 +23,22 @@ const Template: Story<IDesignerPageProps> = args => (
// Reuse that template for creating different stories
export const Basic = Template.bind({});

export const Test = addStory(Template, {
formId: 'b9b13fd7-21cf-4e65-9422-fb471c3ea216',
export const EpmDesignerUserManagement = addStory(Template, {
formId: 'd1d69771-07ec-46e0-9710-0c840295ecd2',
});

export const FncDesignerTSchoolDetails = addStory(Template, {
formId: '9da17eae-3099-4835-b196-200bfb955ae7',
});

export const FncDesignerTestDetails = addStory(Template, {
formId: 'e41926d1-0fe1-476d-804a-0b692cb8153d',
});

export const FncDesignerTextComponentDetails = addStory(Template, {
formId: 'd5e910a8-3f5b-4a96-9e7d-5142e14965f1',
});

export const DepDesignerCaseDetails = addStory(Template, {
formId: 'c6eb30fa-030e-4504-8247-64255377176b',
});

0 comments on commit 95853d6

Please sign in to comment.