Ask bricksui well
Small, clear asks and exact answers to its questions.
bricksui does careful work when the job is small and clear. Every extra thing you paste in is something it can misread or rush past.
Go slowly#
- One widget per ask. Building a full dashboard? Do one widget, finish it, then start the next.
- One change at a time. "Add a filter, a search box and change the colours" is three asks. Send them one by one and check each result.
- Only the fields you show. If the table has four columns, name four fields, not the whole table.
- No big pastes. Don't paste full API docs, full database schemas or old widgets "for reference". Give the endpoint or table name and the fields.
What a good ask says#
A few lines that answer these:
| Question | Example |
|---|---|
| What is it? | A table of open support tickets |
| Where does the data come from? | Supabase table tickets |
| Which fields? | ticket ID, customer, priority, status |
| How should it look? | Newest first, priority as a coloured badge |
| What can the user do? | Filter by status |
Answer its questions exactly#
bricksui stops to ask things it won't guess. Short, exact answers keep it on track:
- Spec version: the one deployed where the widget runs.
- Pulse or Chat: Pulse.
- States: the field and values, e.g.
priorityishigh,mediumorlow. - Thresholds: real numbers, e.g. "SLA breached when
hours_openis over 24". - Data source: endpoint or table, and any fixed filter.
If you don't know an answer yet, say so. Don't let it make one up.
Fixing a widget#
Paste the widget's JSON and ask for one fix:
Here's the tickets table widget. Only change one thing: sort by
created_at, newest first, in the query.
Don't re-explain the whole widget. Point at the one thing that's wrong.
Add the speed rules#
You can paste these under any ask:
code
Keep it fast:
- Use the highest-level built-in component that fits
- Only build popups and panels when they're opened
- Sort, filter and limit in the query
- Work out counts once and reuse them
- Define each API call once. Buttons just refresh it
- Theme colours and standard classes only. No API keys in the spec
- Realtime for Supabase. Poll only if you must