diff options
| author | Kostya <mail@sartin.in> | 2026-10-13 13:14:50 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-10-13 13:15:15 +0300 |
| commit | c0e134981cb494f12c72fbbd3e5c4de513327520 (patch) | |
| tree | 8b073a9bbca4c975a1eb0bc1237b49e6b98fdc77 /api/src/test/java | |
| parent | a8bc9dce528abb6340315f7daa61ad76be4a8739 (diff) | |
| download | guess-market-c0e134981cb494f12c72fbbd3e5c4de513327520.tar.gz guess-market-c0e134981cb494f12c72fbbd3e5c4de513327520.tar.xz guess-market-c0e134981cb494f12c72fbbd3e5c4de513327520.zip | |
ui-fx: support running as one logged-in user of a server
The shared UI assumed the whole market was local: it showed nothing
until a file was loaded, let the user act as anyone in the list and
offered to create events by hand. None of that holds for a client of a
shared server.
AppState and AppView now take an optional session user. When it is set:
- the tabs show from the start, since other users' events are there
whether or not we loaded a file ourselves;
- the acting user is fixed, and the user list becomes a directory of
the other users with their balance and role;
- the buttons that create events are hidden, and the Users tab gets a
Deposit Funds button with a small dialog;
- loading a file skips the two-second pause Ex2 asked for.
Without a session user everything behaves as before.
Also keep the event's Trade and Close buttons from collapsing to an
ellipsis when the description is long.
Diffstat (limited to 'api/src/test/java')
0 files changed, 0 insertions, 0 deletions