To-do List UI
Once your new runner is accessible through your gateway, you can create a dedicated app and UI for it.
Last updated
Once your new runner is accessible through your gateway, you can create a dedicated app and UI for it.
Last updated
Open the App screen from your Design app. Unless you've modified your implementation, this screen is located at https://[YOUR_ADMIN_UI_DOMAIN]/app/design/common/app.
Next, you will create a new App, which will have its own home page and route in admin UI.
Click on "CREATE NEW" button on top of the menu lister and enter "example" to ID field. This ID will be used in the app URL path.
Enter the following details:
DEFINITION
App Name: Example
App Status: ACTIVE
Description (optional): Application dedicated to list of examples.
Home Image: /image/configuration.png
Home Title: Example Navigator
Home Description: Everything you need to manage your example services.
MENUS
Label: Todo
Icon: rules
Path: /common/todo
Save your new App and browse to https://[YOUR_ADMIN_UI_DOMAIN]/app/example. You should now see your new App home page as follows:
Click on the Source icon on navigation bar to switch to the Source screen on your Design app. Unless you've modified your implementation, this screen is located at https://[YOUR_ADMIN_UI_DOMAIN]/app/design/common/source.
Click on "CREATE NEW" button on top of the menu lister of Source screen and provide the unique identifier "todo" and enter the following details as the source information:
Source Name: Todo
Source Status: ACTIVE
Urls:
Action: default
URL: request/todo_crud/todo
These settings ensure that our UI requests for todo are directed to /api/request/todo_crud/todo endpoint we've created in previous sections.
Why do you need the Source?
Rierino core platform supports hyper-distributed applications, where each API endpoint could be maintained independent of the rest and serviced over a completely different server or even cluster. Having source mappings allows us to isolate such distribution from end users. It also simplifies the process of changing endpoints centrally.
Even when a Source does not require custom URLs (e.g. uses standard request/crud/[ui] endpoint), it is still mandatory to create a Source, as otherwise the platform will consider CRUD endpoint disabled for access.
Click on the Schema icon on navigation bar to switch to the Schema screen on your Design app. Unless you've modified your implementation, this screen is located at https://[YOUR_ADMIN_UI_DOMAIN]/app/design/common/schema.
Click on "CREATE NEW" button on top of the menu lister of Schema screen and provide the unique identifier "todo" and enter the following details as the schema information:
After editing the definition, save your schema. Title and description information entered in this screen populate labels in UI screens.
Our data schema definitions follow JSON Schema standards, providing ability to use them in other platforms as well.
Click on the UI icon on navigation bar to switch to the UI screen on your Design app. Unless you've modified your implementation, this screen is located at https://[YOUR_ADMIN_UI_DOMAIN]/app/design/common/ui.
Click on "CREATE NEW" button on top of the menu lister of UI screen and provide the unique identifier "todo" and enter the following details as the UI information:
DEFINITION
Name: Todo
Status: ACTIVE
Description (optional): UI design for todo list management
ID Field: id
Name Field: data.name
LISTER
Lister: Grouped
Lister Title: Todo List
Group By: data.project
Switch to the "TABS" tab and follow below steps:
Click on "Add Tab" to create a new tab.
Hover on the new tab label, click on edit icon and set tab label as "DEFINITION" on displayed dialog.
Click on "Add Grid" to create a new grid.
Click on "Add" to add a new field inside the grid.
Hover on the new field, click on edit icon and set its path to "data.name" and select "Text" widget for it on displayed dialog.
Click on "Add" to add another field inside the grid.
Hover on the new field, click on edit icon and set its path to "data.project" and select "Text" widget for it on displayed dialog.
Your screen should look like the following:
Save your UI design.
Why is UI separate from Schema?
Keeping UI and Schema definitions separate allows us to create multiple visualizations for the same data, which can be required for different organizational teams (e.g. one having access to only small part of data). It also makes sure that even our administration dashboard can be used as headless, without relying on our internal UI configurations.
For testing your new UI, you can simply go back to your Example app (e.g. https://[YOUR_ADMIN_UI_DOMAIN]/app/example) and click on the Todo card. This should display the todo entry we've created in previous steps and allow you to add, edit and remove new todo items, grouped by projects.