Skip to content

UI Structure 🟑 BETA

What it is. The layout of botui/ui/: the suite shell and its app fragments, the minimal single-file shell, the identity token layer and the local vendor scripts.

Open it. Read botui/ui/suite/desktop.html for the shell and botui/ui/suite/default.gbui for the minimal shell.

Do this. Add a new app under botui/ui/suite/<app>/, register it in the server registry, and reference resources with absolute /suite/… paths.

Limits. botserver serves only fragments and API responses. A complete HTML page is served by botui.

Directory Layout

Path Role
botui/ui/suite/desktop.html Full shell: title bar, sidebar, taskbar, launcher
botui/ui/suite/<app>/ App fragments, styles and numbered JS modules
botui/ui/suite/identity/ Theme, fonts and token shim
botui/ui/suite/css/ Component stylesheets and canonical tokens
botui/ui/suite/public/themes/ Selectable themes
botui/ui/suite/js/vendor/ Local third-party libraries
botui/ui/suite/default.gbui Single-file minimal shell

Suite Interface

The shell loads an app fragment into its content area. Subdirectory apps must use absolute resource paths: relative paths resolve against desktop.html and return 404 when injected.

Stacking order

Layers are fixed in the stylesheet: background pattern, content, action bar, sidebar, menus, overlays, title bar and dialogs. Do not introduce a new layer without a token or a documented z-index in the design system.

Type scale

Base sizes come from the --id-text-* tokens, written in rem and rewritten in px before first paint according to the chosen text size. Do not fix body text in pixels.

Minimal Interface

default.gbui is one HTML file with a header, apps dropdown, avatar and content area. It switches among chat, drive, tasks and mail sections and loads four local scripts. It is a reference shell, not a second product.

Configuration

Server Configuration

The registry in botserver/src/apps/registry/ defines the app list; product configuration decides launcher visibility. A hidden app is still compiled but not advertised.

Asset Serving Strategy

botui serves complete pages and static assets. botserver serves HTML fragments and API responses; it never returns a complete HTMX page.

Routing

Named routes such as /chat, /drive and /tasks are resolved by the shell, which then loads the matching fragment. A direct URL to a fragment HTML file skips bootstrapping.

API Compliance

Every UI request targets a registered endpoint. Before documenting an endpoint, confirm it in the generated API reference or the endpoint catalog.

Performance Characteristics

Suite Interface

Fragments keep the response small; local libraries avoid network fetches. The app's numbered modules load in order from lowest number to 99_init.js.

Minimal Interface

default.gbui loads four local scripts and three stylesheets, with no remote font or sprite request.

Browser Support

No separate matrix is published. The suite relies on the vendored libraries and local fonts shipped with it.

Switching Interfaces

Use the product's shell setting to choose between the suite shell and the assistant shell. Changing shells is not a theme change.

Troubleshooting

# Verify UI structure
# Test interfaces
# Check static file serving

Check that the shell is loaded, that the app id is registered, and that resource paths begin with /suite/. A 200 from a fallback page is not proof that the right page loaded; compare the title.

Customization

GBUI Templates

A .gbui file is a single-page shell. Copy the shipped one as a starting point and keep its local assets.

CSS Theming

Change token values in a local theme; see Theme Structure and CSS Customization.

Future Enhancements

Planned changes belong in issues, not in this page. Only shipped structure is described here.

See Also