lowcode
lowcode copied to clipboard
Codegen: 7b. Create page for table component
Dependencies
- 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)toAppGenerator -
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:
- 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