lowcode icon indicating copy to clipboard operation
lowcode copied to clipboard

Codegen: 7b. Create page for table component

Open mat-app opened this issue 4 years ago • 1 comments

Dependencies

  1. This issue depends on #96

Description

The goal of this issue is to create page for generated table. This page will be based on template created in this issue #96

Proposed solution

  • add generateListPage(template, Introspection) to AppGenerator
  • generateListComponent(template, Introspection) will take template from #96 and replace everything that needs to be replaced
  • extend generatePages() with calling of this new method and save this file as ${typeName}Page.tsx

Acceptance criteria

  • [ ] GIVEN have entity Customer WHEN i run generatePages() THEN CustomerListComponent.ts with table definition and CustomersPage.ts which use component in CustomerListComponent.ts are created
  • [ ] GIVEN have generated CustomerListComponent.ts and CustomersPage.ts WHEN i navigate to CustomersPage by route THEN list of customers is shown

mat-app avatar May 18 '21 14:05 mat-app

@mat-app:

  • renamed: generateListPage(), generateListComponent()
  • API params (please specify parameters - create pull request for an API before implementation) - this is important step for the integration
  • Acceptance criteria - please write automated test against the API in the same pull request - this is important step for ensuring that requirements are fulfilled

jozef-slezak avatar May 24 '21 10:05 jozef-slezak