Xuda logo Xuda Docs User Guides
/
xuda.io
← All guides Xuda Studio

Xuda Studio Draft Small App User Guide

Source file: xuda-studio-small-app-one-table-one-component-user-guide.md

Xuda Studio Draft Small App User Guide

This guide explains how to build a very small app in Xuda Studio by choosing the Draft option first, then adding only two main parts:

  • One table to remember information.
  • One component to show and work with that information.

The example app is a simple Contacts app. The same pattern also works for bookings, tasks, products, tickets, or any other small list-based app.

The screenshots are dark, full-screen captures from https://dev.xuda.ai/studio. The build-step screenshots show real Draft, table, component, datasource, fields, events, preview, and chat screens. If you are signed in, Studio can save the created table, component, and changes to your account.

Feature Tips Map

Xuda user guide feature tips map

Use this visual as a quick reminder that most Xuda features work best when you connect the workspace, the data, the screen, and the next action instead of treating each area as separate.

What You Are Building

The finished small app has:

Part Purpose Result
Contacts table Stores each contact The app remembers names, emails, phone numbers, and notes.
Contacts component Shows the contacts screen The user has a place to view or edit contacts.

This is the smallest useful app shape: one place to store records and one place for users to interact with them.

Choose The Draft Option

Xuda Studio draft choice

From the Start a new project panel, choose Draft.

Draft is the right starting point for this small app because you can explore the idea, change direction, and build the first version without treating it as final yet.

Result: Studio prepares a draft workspace for early building.

Name The Draft

Xuda Studio named draft

Give the draft a clear name, such as Contacts Draft or Small Contacts App.

The name helps you recognize the idea later while it is still being shaped.

Result: Studio opens a draft workspace where you can build the one-table, one-component app.

Start From The Draft Workspace

Xuda Studio small app start workspace

The draft workspace is where you add the table and component. You can use the project map on the left, the prompt area in the center, and Studio AI on the right.

Result: you have a flexible space for building the first version of the app.

Step 1: Create The Table In The Draft

Xuda Studio create Contacts table step

The table is where the app remembers information.

For the Contacts app, create a table named Contacts.

In the project map:

  1. Open the Tables area.
  2. Choose Create.
  3. Select Table.
  4. Choose the available storage connection.
  5. Name the table Contacts.
  6. Create it.

Result: the draft now has a place to store contact records.

Step 2: Add Table Fields

Xuda Studio add Contacts fields step

Fields are the pieces of information each contact can have.

For the Contacts table, add a few simple fields:

Field What It Stores Example
Name The contact's name Dana Cohen
Email The contact's email address [email protected]
Phone The contact's phone number 555-0100
Notes Any extra details Met at conference

Keep the first version small. Four fields are enough to make the app useful without making it hard to test.

Result: every contact record can now hold the same important details.

Step 3: Add A Sample Record

Xuda Studio add sample contact record step

Add one test contact before building the screen.

This helps you check whether the component shows the table correctly later.

Example record:

Name Email Phone Notes
Dana Cohen [email protected] 555-0100 First test contact

Result: the table has real information for the component to display.

Step 4: Create The Component In The Draft

Xuda Studio create Contacts component step

The component is the screen users see.

For the Contacts app, create a component named Contacts Screen.

In the project map:

  1. Open the Programs area.
  2. Choose Create.
  3. Select Component.
  4. Choose the available UI framework.
  5. Choose Multi View if the screen should show a list of contacts.
  6. Choose Single View if the screen should focus on one contact at a time.
  7. Name it Contacts Screen.
  8. Create it.

For this example, Multi View is usually the best starting point because contacts are naturally shown as a list.

Result: the draft now has a screen for users to open.

Step 5: Connect The Component To The Table

Xuda Studio connect component to table step

The component needs to know where its information comes from.

Open Contacts Screen, then use the datasource area to connect it to the Contacts table.

Choose the Contacts table as the source of information.

Result: the component can now receive contact records from the table.

Step 6: Decide What The Component Should Show

Xuda Studio choose fields to show step

Start with a simple contact list.

The component should show:

  • Contact name
  • Email
  • Phone
  • Notes

You can begin with only the name and email if you want a cleaner first version.

Result: users can see the stored contact information on the screen.

Step 7: Add A Simple Action

Xuda Studio add save action step

A small app becomes useful when users can do something.

For the first version, add one action:

Action What It Does Result
Save contact Saves a new or edited contact The table updates with the user's changes.

If you want the first version to be read-only, skip saving at first and add it later.

Result: the screen can become interactive instead of only displaying data.

Step 8: Preview The App

Xuda Studio preview small app step

Use the preview area to test the small app as a user.

Check that:

  • The Contacts Screen opens.
  • The sample contact appears.
  • The fields are easy to understand.
  • Saving works if you added a save action.
  • The app does not show obvious errors.

Result: you know whether the table and component are connected correctly.

Step 9: Improve The First Version

Xuda Studio improve first version step

After the basic app works, improve only one thing at a time.

Good next improvements are:

  • Add a search or filter.
  • Add a cleaner contact card layout.
  • Add a button for creating a new contact.
  • Add a success message after saving.
  • Add a route so the screen can be opened as a page.
  • Ask Studio AI to suggest improvements.

Result: the draft grows from a working base instead of a large unfinished plan.

How The Pieces Work Together

Piece Role In The Small App What The User Experiences
Table Remembers contacts Information does not disappear after the screen changes.
Fields Define contact details Each contact has a name, email, phone, and notes.
Component Shows the app screen Users can see or edit contact information.
Datasource Connects screen to table The screen displays the right records.
Action Responds to user behavior Users can save, refresh, or move through the app.
Preview Tests the result You can confirm the app works before sharing.

Recommended Tiny-App Pattern

Use this same pattern for many small apps:

App Idea One Table One Component
Contact manager Contacts Contacts Screen
Booking tracker Bookings Booking List
Product inventory Products Product List
Task manager Tasks Task Board
Support desk Tickets Ticket List

The pattern is always the same:

  1. Create the table.
  2. Add the important fields.
  3. Add one sample record.
  4. Create the component.
  5. Connect the component to the table.
  6. Preview the result.
  7. Add one useful action.

Result: you can build a small working app without needing many screens or advanced setup.

When The Draft Is Ready To Grow

The one-table, one-component draft is ready to grow when:

  • The table stores the right information.
  • The component shows the information clearly.
  • The first action works.
  • Preview feels understandable.
  • You know what users need next.

From there, you can add more fields, more actions, more components, routes, alerts, or AI help. When the direction feels clear, the draft can become the foundation for a more complete app.

Start small, make it work, then expand.

Extra Feature Tips

  • Keep the first table focused on the main thing the app manages.
  • Add one sample record before designing the component so the preview has realistic content.
  • Use Suggested fields after connecting the component to the table.
  • Add one action first, then test it before adding secondary actions.
  • Grow the app only after the one-table, one-component version is understandable in preview.