GeneratedSDK 0.10.1
Dashboard widget vocabulary
Widget types, widths, containers, column formats and the rules the manifest validator applies.
Two schema versions coexist. Schema 1 is the original widget set. Schema 2 adds containers, static widgets, action buttons, data sources and formatting. The vocabulary below is what the validator accepts; anything else is rejected at upload.
Widget types
Schema 1 and 2
alert chart form list markdown progress_bar stat_card table text Schema 2 only
action_button badge_list divider heading image key_value timeline user_list Need data
chart stat_card table need rpc_method, or in schema 2 a source.Static
action_button divider heading image take no data.Layout
| Width | Grid columns of 12 |
|---|---|
quarter | 3 |
third | 4 |
half | 6 |
two_thirds | 8 |
full | 12 |
Containers (schema 2)
section tabs One level only: a container cannot hold another container.Densitiescompact, cozy
Chart heightslg, md, sm
Refresh
refresh_seconds between 5 and 3600.Formatting
Table column formats
avatar badge code link number percent timestamp Badge colours
cyan gold gray green red Action button styles
danger default primary Permission values
manager owner viewer Who can see a widget. Cosmetic filtering with visible_when is not access control.Rules the validator applies
- Every widget has an
idand a validwidth. tableneedscolumns. A column is a key, or an object withkey,formatand, for badges,format_options.colorsmapping values to badge colours.imagetakes asrcthat is a path inside your zip underdashboard/, up to 200 characters, no...headingtakestextup to 200 characters andlevel1, 2 or 3.action_buttonusesaction_rpc_method, alabelup to 80 characters, an optionalconfirmup to 300 andsuccess_messageup to 200.sectioncontainers take a heading up to 120 characters, a description up to 500,collapsibleand a non-emptywidgetslist.tabstake a list of{id, title, widgets}with unique ids.- Schema 2 keys (
source,height,format) are errors in a schema 1 manifest. - The optional
rpcblock declares{"method_name": {"writes": true}}. A method marked as writing needs the manager role and skips the cache. A declaration can only raise a method to writing, never lower it. - Theme accepts
accentandaccent_secondaryas hex colours.
YourBot docs
Reference tables are generated from the code that is running.
Ask in Discord
Suggest a correction