Coast Demo Tutorial: UI Design

The heavy lifting on your end is now done. Since we've already indicated to Coast the fields we want to show, on both the request and the response, you can select one of Coast's pre-built UIs to enable user interactivity on this demo. Get to value quickly with a gallery UI, but you can always add, remove or custom-style any blocks on screen to get your demo experience tailored exactly how you wish.

Request

Simply head over the the Design screen (found in the top bar) and voila, Coast has auto-formatted the API details we provided. UI. Now, let' just select a gallery UI to get the screen populated with some nice interactive components.

Hit Presentation Mode and type into any of the fields on the mobile screen to see them update in real time in the code block to see Coast work its magic 🪄

This looks pretty good to me, out of the box! Any edits you wish to make on the UI can be done using the panel on the right-hand side. Coast uses a block-based system for designs, read more about how this works in the Blocks section. To change the narrative text in the Guide Panel above thew code block, just click and make the edits you want, in-line.

Response

Just like the request, Coast's builder automatically formatted the code block for the response. Let's select a gallery template to instantly populate the UI ⚡️.

If you recall, during Response Setup, we indicated to display the userEmail, accountStatus as well as createdAt fields. As a result, this data was automatically populated in the UI.

While in Presentation Mode, hover over any of th

For this example, the Payment Successful text is clearly not relevant. Let's change this to a welcome message, personalized to the user's information.

In Edit, mode, click the text block containing Payment Successful and you will various text-specific controls on the right panel. We will update the contents to Welcome the new user. To grab the user-input name from the local database, click on up the State on the left panel.

Let's now navigate through the Local Database to get the user's name. userSignupinputsfirstName will copy the path to the user's first name to your clipboard.

Now, let's paste this path into the text block.