Repository navigation
Description
Part of #1902.
The problem
On a phone, the AI Assistant can't be used without leaving the phone layout. The phone app opens in its touch interface: the map, with a bar of buttons along the bottom (Layers, Add Data, Capture, More), each opening a panel that slides up from the bottom. The Assistant isn't one of them. To reach it you switch to the desktop interface, which is too small to use on a phone.
That matters more on a phone than anywhere else. The touch interface has buttons for a few dozen of RustGIS's commands, mostly for collecting data. The Assistant can run any command, so on a phone it can stand in for the buttons that aren't there: "add the parks in this view and colour them by size" is one sentence.
Until recently it couldn't have worked on Android anyway: paste and the keyboard's suggestions didn't reach text fields, and an API key was forgotten every time the app closed. Both are fixed now (#3001, #3002).
Proposal
I've built this on a branch to try it out, and the screenshots are from it. The conversation in them is scripted, not a real model's.
An Assistant panel in the touch interface, opening from the bottom like Layers or Capture:
- The conversation, with a text box at the bottom. Typing uses Android's own text field, so paste, suggestions and dictation work.
- Three heights: full, for reading; half, to see the map and the conversation together; and a thin strip while the Assistant is working, showing what it's doing and a Stop button, so you can watch the map change.
- When the Assistant wants to read or write a file or use the network, it asks first, as on the desktop. Those questions show as cards with buttons big enough for a finger.
| Half height | Full height, asking first | Working, panel lowered |
|---|---|---|
![]() |
![]() |
![]() |
It stays out of the way for anyone who doesn't use it. Until an AI provider is set up, the only sign of the Assistant is a "Set Up the Assistant" row in More. Anyone who turns the Assistant off in Extensions doesn't see that either. It never opens by itself.
A button on the bottom bar, once it's set up. Phone guidelines allow three to five buttons on a bar like this, and there are four now. I'd keep four: Add Data, Capture, Assistant and More, and move Layers to a button in the map's top-right corner, where the zoom buttons used to be (pinching zooms on a phone). Five buttons, adding Assistant and keeping Layers on the bar, would fit too.
| Today | Four buttons, Layers on the map | Five buttons |
|---|---|---|
![]() |
![]() |
![]() |
Not part of this
- The phone's own text field on iOS. The panel works there, but typing still goes through RustGIS's own text box, as it does today.
- An undo button under each of the Assistant's replies, which needs other work first (feat(ui): add clickable undo history #2406).
Question
Is a fifth button on the bar, or Layers moving to the map, all right? I'd go with Layers on the map.
cc @opengeos/rustgis-maintainers






Activity